models_cubicmap.js 1.5 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217
  1. var Module;
  2. if (typeof Module === 'undefined') Module = {};
  3. if (!Module.expectedDataFileDownloads) {
  4. Module.expectedDataFileDownloads = 0;
  5. Module.finishedDataFileDownloads = 0;
  6. }
  7. Module.expectedDataFileDownloads++;
  8. (function() {
  9. var loadPackage = function(metadata) {
  10. var PACKAGE_PATH;
  11. if (typeof window === 'object') {
  12. PACKAGE_PATH = window['encodeURIComponent'](window.location.pathname.toString().substring(0, window.location.pathname.toString().lastIndexOf('/')) + '/');
  13. } else if (typeof location !== 'undefined') {
  14. // worker
  15. PACKAGE_PATH = encodeURIComponent(location.pathname.toString().substring(0, location.pathname.toString().lastIndexOf('/')) + '/');
  16. } else {
  17. throw 'using preloaded data can only be done on a web page or in a web worker';
  18. }
  19. var PACKAGE_NAME = 'models/models_cubicmap.data';
  20. var REMOTE_PACKAGE_BASE = 'models_cubicmap.data';
  21. if (typeof Module['locateFilePackage'] === 'function' && !Module['locateFile']) {
  22. Module['locateFile'] = Module['locateFilePackage'];
  23. Module.printErr('warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)');
  24. }
  25. var REMOTE_PACKAGE_NAME = typeof Module['locateFile'] === 'function' ?
  26. Module['locateFile'](REMOTE_PACKAGE_BASE) :
  27. ((Module['filePackagePrefixURL'] || '') + REMOTE_PACKAGE_BASE);
  28. var REMOTE_PACKAGE_SIZE = metadata.remote_package_size;
  29. var PACKAGE_UUID = metadata.package_uuid;
  30. function fetchRemotePackage(packageName, packageSize, callback, errback) {
  31. var xhr = new XMLHttpRequest();
  32. xhr.open('GET', packageName, true);
  33. xhr.responseType = 'arraybuffer';
  34. xhr.onprogress = function(event) {
  35. var url = packageName;
  36. var size = packageSize;
  37. if (event.total) size = event.total;
  38. if (event.loaded) {
  39. if (!xhr.addedTotal) {
  40. xhr.addedTotal = true;
  41. if (!Module.dataFileDownloads) Module.dataFileDownloads = {};
  42. Module.dataFileDownloads[url] = {
  43. loaded: event.loaded,
  44. total: size
  45. };
  46. } else {
  47. Module.dataFileDownloads[url].loaded = event.loaded;
  48. }
  49. var total = 0;
  50. var loaded = 0;
  51. var num = 0;
  52. for (var download in Module.dataFileDownloads) {
  53. var data = Module.dataFileDownloads[download];
  54. total += data.total;
  55. loaded += data.loaded;
  56. num++;
  57. }
  58. total = Math.ceil(total * Module.expectedDataFileDownloads/num);
  59. if (Module['setStatus']) Module['setStatus']('Downloading data... (' + loaded + '/' + total + ')');
  60. } else if (!Module.dataFileDownloads) {
  61. if (Module['setStatus']) Module['setStatus']('Downloading data...');
  62. }
  63. };
  64. xhr.onerror = function(event) {
  65. throw new Error("NetworkError for: " + packageName);
  66. }
  67. xhr.onload = function(event) {
  68. if (xhr.status == 200 || xhr.status == 304 || xhr.status == 206 || (xhr.status == 0 && xhr.response)) { // file URLs can return 0
  69. var packageData = xhr.response;
  70. callback(packageData);
  71. } else {
  72. throw new Error(xhr.statusText + " : " + xhr.responseURL);
  73. }
  74. };
  75. xhr.send(null);
  76. };
  77. function handleError(error) {
  78. console.error('package error:', error);
  79. };
  80. var fetchedCallback = null;
  81. var fetched = Module['getPreloadedPackage'] ? Module['getPreloadedPackage'](REMOTE_PACKAGE_NAME, REMOTE_PACKAGE_SIZE) : null;
  82. if (!fetched) fetchRemotePackage(REMOTE_PACKAGE_NAME, REMOTE_PACKAGE_SIZE, function(data) {
  83. if (fetchedCallback) {
  84. fetchedCallback(data);
  85. fetchedCallback = null;
  86. } else {
  87. fetched = data;
  88. }
  89. }, handleError);
  90. function runWithFS() {
  91. function assert(check, msg) {
  92. if (!check) throw msg + new Error().stack;
  93. }
  94. Module['FS_createPath']('/', 'resources', true, true);
  95. function DataRequest(start, end, crunched, audio) {
  96. this.start = start;
  97. this.end = end;
  98. this.crunched = crunched;
  99. this.audio = audio;
  100. }
  101. DataRequest.prototype = {
  102. requests: {},
  103. open: function(mode, name) {
  104. this.name = name;
  105. this.requests[name] = this;
  106. Module['addRunDependency']('fp ' + this.name);
  107. },
  108. send: function() {},
  109. onload: function() {
  110. var byteArray = this.byteArray.subarray(this.start, this.end);
  111. this.finish(byteArray);
  112. },
  113. finish: function(byteArray) {
  114. var that = this;
  115. Module['FS_createDataFile'](this.name, null, byteArray, true, true, true); // canOwn this data in the filesystem, it is a slide into the heap that will never change
  116. Module['removeRunDependency']('fp ' + that.name);
  117. this.requests[this.name] = null;
  118. }
  119. };
  120. var files = metadata.files;
  121. for (i = 0; i < files.length; ++i) {
  122. new DataRequest(files[i].start, files[i].end, files[i].crunched, files[i].audio).open('GET', files[i].filename);
  123. }
  124. function processPackageData(arrayBuffer) {
  125. Module.finishedDataFileDownloads++;
  126. assert(arrayBuffer, 'Loading data file failed.');
  127. assert(arrayBuffer instanceof ArrayBuffer, 'bad input to processPackageData');
  128. var byteArray = new Uint8Array(arrayBuffer);
  129. var curr;
  130. // copy the entire loaded file into a spot in the heap. Files will refer to slices in that. They cannot be freed though
  131. // (we may be allocating before malloc is ready, during startup).
  132. if (Module['SPLIT_MEMORY']) Module.printErr('warning: you should run the file packager with --no-heap-copy when SPLIT_MEMORY is used, otherwise copying into the heap may fail due to the splitting');
  133. var ptr = Module['getMemory'](byteArray.length);
  134. Module['HEAPU8'].set(byteArray, ptr);
  135. DataRequest.prototype.byteArray = Module['HEAPU8'].subarray(ptr, ptr+byteArray.length);
  136. var files = metadata.files;
  137. for (i = 0; i < files.length; ++i) {
  138. DataRequest.prototype.requests[files[i].filename].onload();
  139. }
  140. Module['removeRunDependency']('datafile_models/models_cubicmap.data');
  141. };
  142. Module['addRunDependency']('datafile_models/models_cubicmap.data');
  143. if (!Module.preloadResults) Module.preloadResults = {};
  144. Module.preloadResults[PACKAGE_NAME] = {fromCache: false};
  145. if (fetched) {
  146. processPackageData(fetched);
  147. fetched = null;
  148. } else {
  149. fetchedCallback = processPackageData;
  150. }
  151. }
  152. if (Module['calledRun']) {
  153. runWithFS();
  154. } else {
  155. if (!Module['preRun']) Module['preRun'] = [];
  156. Module["preRun"].push(runWithFS); // FS is not initialized yet, wait for it
  157. }
  158. }
  159. loadPackage({"files": [{"audio": 0, "start": 0, "crunched": 0, "end": 201, "filename": "/resources/cubicmap.png"}, {"audio": 0, "start": 201, "crunched": 0, "end": 37426, "filename": "/resources/cubicmap_atlas.png"}], "remote_package_size": 37426, "package_uuid": "68436111-ec50-4203-a7c7-1199499cedf4"});
  160. })();
  161. // The Module object: Our interface to the outside world. We import
  162. // and export values on it, and do the work to get that through
  163. // closure compiler if necessary. There are various ways Module can be used:
  164. // 1. Not defined. We create it here
  165. // 2. A function parameter, function(Module) { ..generated code.. }
  166. // 3. pre-run appended it, var Module = {}; ..generated code..
  167. // 4. External script tag defines var Module.
  168. // We need to do an eval in order to handle the closure compiler
  169. // case, where this code here is minified but Module was defined
  170. // elsewhere (e.g. case 4 above). We also need to check if Module
  171. // already exists (e.g. case 3 above).
  172. // Note that if you want to run closure, and also to use Module
  173. // after the generated code, you will need to define var Module = {};
  174. // before the code. Then that object will be used in the code, and you
  175. // can continue to use Module afterwards as well.
  176. var Module;
  177. if (!Module) Module = (typeof Module !== 'undefined' ? Module : null) || {};
  178. // Sometimes an existing Module object exists with properties
  179. // meant to overwrite the default module functionality. Here
  180. // we collect those properties and reapply _after_ we configure
  181. // the current environment's defaults to avoid having to be so
  182. // defensive during initialization.
  183. var moduleOverrides = {};
  184. for (var key in Module) {
  185. if (Module.hasOwnProperty(key)) {
  186. moduleOverrides[key] = Module[key];
  187. }
  188. }
  189. // The environment setup code below is customized to use Module.
  190. // *** Environment setup code ***
  191. var ENVIRONMENT_IS_WEB = false;
  192. var ENVIRONMENT_IS_WORKER = false;
  193. var ENVIRONMENT_IS_NODE = false;
  194. var ENVIRONMENT_IS_SHELL = false;
  195. // Three configurations we can be running in:
  196. // 1) We could be the application main() thread running in the main JS UI thread. (ENVIRONMENT_IS_WORKER == false and ENVIRONMENT_IS_PTHREAD == false)
  197. // 2) We could be the application main() thread proxied to worker. (with Emscripten -s PROXY_TO_WORKER=1) (ENVIRONMENT_IS_WORKER == true, ENVIRONMENT_IS_PTHREAD == false)
  198. // 3) We could be an application pthread running in a worker. (ENVIRONMENT_IS_WORKER == true and ENVIRONMENT_IS_PTHREAD == true)
  199. if (Module['ENVIRONMENT']) {
  200. if (Module['ENVIRONMENT'] === 'WEB') {
  201. ENVIRONMENT_IS_WEB = true;
  202. } else if (Module['ENVIRONMENT'] === 'WORKER') {
  203. ENVIRONMENT_IS_WORKER = true;
  204. } else if (Module['ENVIRONMENT'] === 'NODE') {
  205. ENVIRONMENT_IS_NODE = true;
  206. } else if (Module['ENVIRONMENT'] === 'SHELL') {
  207. ENVIRONMENT_IS_SHELL = true;
  208. } else {
  209. throw new Error('The provided Module[\'ENVIRONMENT\'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.');
  210. }
  211. } else {
  212. ENVIRONMENT_IS_WEB = typeof window === 'object';
  213. ENVIRONMENT_IS_WORKER = typeof importScripts === 'function';
  214. ENVIRONMENT_IS_NODE = typeof process === 'object' && typeof require === 'function' && !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_WORKER;
  215. ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_WORKER;
  216. }
  217. if (ENVIRONMENT_IS_NODE) {
  218. // Expose functionality in the same simple way that the shells work
  219. // Note that we pollute the global namespace here, otherwise we break in node
  220. if (!Module['print']) Module['print'] = console.log;
  221. if (!Module['printErr']) Module['printErr'] = console.warn;
  222. var nodeFS;
  223. var nodePath;
  224. Module['read'] = function read(filename, binary) {
  225. if (!nodeFS) nodeFS = require('fs');
  226. if (!nodePath) nodePath = require('path');
  227. filename = nodePath['normalize'](filename);
  228. var ret = nodeFS['readFileSync'](filename);
  229. return binary ? ret : ret.toString();
  230. };
  231. Module['readBinary'] = function readBinary(filename) {
  232. var ret = Module['read'](filename, true);
  233. if (!ret.buffer) {
  234. ret = new Uint8Array(ret);
  235. }
  236. assert(ret.buffer);
  237. return ret;
  238. };
  239. Module['load'] = function load(f) {
  240. globalEval(read(f));
  241. };
  242. if (!Module['thisProgram']) {
  243. if (process['argv'].length > 1) {
  244. Module['thisProgram'] = process['argv'][1].replace(/\\/g, '/');
  245. } else {
  246. Module['thisProgram'] = 'unknown-program';
  247. }
  248. }
  249. Module['arguments'] = process['argv'].slice(2);
  250. if (typeof module !== 'undefined') {
  251. module['exports'] = Module;
  252. }
  253. process['on']('uncaughtException', function(ex) {
  254. // suppress ExitStatus exceptions from showing an error
  255. if (!(ex instanceof ExitStatus)) {
  256. throw ex;
  257. }
  258. });
  259. Module['inspect'] = function () { return '[Emscripten Module object]'; };
  260. }
  261. else if (ENVIRONMENT_IS_SHELL) {
  262. if (!Module['print']) Module['print'] = print;
  263. if (typeof printErr != 'undefined') Module['printErr'] = printErr; // not present in v8 or older sm
  264. if (typeof read != 'undefined') {
  265. Module['read'] = read;
  266. } else {
  267. Module['read'] = function read() { throw 'no read() available' };
  268. }
  269. Module['readBinary'] = function readBinary(f) {
  270. if (typeof readbuffer === 'function') {
  271. return new Uint8Array(readbuffer(f));
  272. }
  273. var data = read(f, 'binary');
  274. assert(typeof data === 'object');
  275. return data;
  276. };
  277. if (typeof scriptArgs != 'undefined') {
  278. Module['arguments'] = scriptArgs;
  279. } else if (typeof arguments != 'undefined') {
  280. Module['arguments'] = arguments;
  281. }
  282. if (typeof quit === 'function') {
  283. Module['quit'] = function(status, toThrow) {
  284. quit(status);
  285. }
  286. }
  287. }
  288. else if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) {
  289. Module['read'] = function read(url) {
  290. var xhr = new XMLHttpRequest();
  291. xhr.open('GET', url, false);
  292. xhr.send(null);
  293. return xhr.responseText;
  294. };
  295. if (ENVIRONMENT_IS_WORKER) {
  296. Module['readBinary'] = function read(url) {
  297. var xhr = new XMLHttpRequest();
  298. xhr.open('GET', url, false);
  299. xhr.responseType = 'arraybuffer';
  300. xhr.send(null);
  301. return xhr.response;
  302. };
  303. }
  304. Module['readAsync'] = function readAsync(url, onload, onerror) {
  305. var xhr = new XMLHttpRequest();
  306. xhr.open('GET', url, true);
  307. xhr.responseType = 'arraybuffer';
  308. xhr.onload = function xhr_onload() {
  309. if (xhr.status == 200 || (xhr.status == 0 && xhr.response)) { // file URLs can return 0
  310. onload(xhr.response);
  311. } else {
  312. onerror();
  313. }
  314. };
  315. xhr.onerror = onerror;
  316. xhr.send(null);
  317. };
  318. if (typeof arguments != 'undefined') {
  319. Module['arguments'] = arguments;
  320. }
  321. if (typeof console !== 'undefined') {
  322. if (!Module['print']) Module['print'] = function print(x) {
  323. console.log(x);
  324. };
  325. if (!Module['printErr']) Module['printErr'] = function printErr(x) {
  326. console.warn(x);
  327. };
  328. } else {
  329. // Probably a worker, and without console.log. We can do very little here...
  330. var TRY_USE_DUMP = false;
  331. if (!Module['print']) Module['print'] = (TRY_USE_DUMP && (typeof(dump) !== "undefined") ? (function(x) {
  332. dump(x);
  333. }) : (function(x) {
  334. // self.postMessage(x); // enable this if you want stdout to be sent as messages
  335. }));
  336. }
  337. if (ENVIRONMENT_IS_WORKER) {
  338. Module['load'] = importScripts;
  339. }
  340. if (typeof Module['setWindowTitle'] === 'undefined') {
  341. Module['setWindowTitle'] = function(title) { document.title = title };
  342. }
  343. }
  344. else {
  345. // Unreachable because SHELL is dependant on the others
  346. throw 'Unknown runtime environment. Where are we?';
  347. }
  348. function globalEval(x) {
  349. eval.call(null, x);
  350. }
  351. if (!Module['load'] && Module['read']) {
  352. Module['load'] = function load(f) {
  353. globalEval(Module['read'](f));
  354. };
  355. }
  356. if (!Module['print']) {
  357. Module['print'] = function(){};
  358. }
  359. if (!Module['printErr']) {
  360. Module['printErr'] = Module['print'];
  361. }
  362. if (!Module['arguments']) {
  363. Module['arguments'] = [];
  364. }
  365. if (!Module['thisProgram']) {
  366. Module['thisProgram'] = './this.program';
  367. }
  368. if (!Module['quit']) {
  369. Module['quit'] = function(status, toThrow) {
  370. throw toThrow;
  371. }
  372. }
  373. // *** Environment setup code ***
  374. // Closure helpers
  375. Module.print = Module['print'];
  376. Module.printErr = Module['printErr'];
  377. // Callbacks
  378. Module['preRun'] = [];
  379. Module['postRun'] = [];
  380. // Merge back in the overrides
  381. for (var key in moduleOverrides) {
  382. if (moduleOverrides.hasOwnProperty(key)) {
  383. Module[key] = moduleOverrides[key];
  384. }
  385. }
  386. // Free the object hierarchy contained in the overrides, this lets the GC
  387. // reclaim data used e.g. in memoryInitializerRequest, which is a large typed array.
  388. moduleOverrides = undefined;
  389. // {{PREAMBLE_ADDITIONS}}
  390. // === Preamble library stuff ===
  391. // Documentation for the public APIs defined in this file must be updated in:
  392. // site/source/docs/api_reference/preamble.js.rst
  393. // A prebuilt local version of the documentation is available at:
  394. // site/build/text/docs/api_reference/preamble.js.txt
  395. // You can also build docs locally as HTML or other formats in site/
  396. // An online HTML version (which may be of a different version of Emscripten)
  397. // is up at http://kripken.github.io/emscripten-site/docs/api_reference/preamble.js.html
  398. //========================================
  399. // Runtime code shared with compiler
  400. //========================================
  401. var Runtime = {
  402. setTempRet0: function (value) {
  403. tempRet0 = value;
  404. return value;
  405. },
  406. getTempRet0: function () {
  407. return tempRet0;
  408. },
  409. stackSave: function () {
  410. return STACKTOP;
  411. },
  412. stackRestore: function (stackTop) {
  413. STACKTOP = stackTop;
  414. },
  415. getNativeTypeSize: function (type) {
  416. switch (type) {
  417. case 'i1': case 'i8': return 1;
  418. case 'i16': return 2;
  419. case 'i32': return 4;
  420. case 'i64': return 8;
  421. case 'float': return 4;
  422. case 'double': return 8;
  423. default: {
  424. if (type[type.length-1] === '*') {
  425. return Runtime.QUANTUM_SIZE; // A pointer
  426. } else if (type[0] === 'i') {
  427. var bits = parseInt(type.substr(1));
  428. assert(bits % 8 === 0);
  429. return bits/8;
  430. } else {
  431. return 0;
  432. }
  433. }
  434. }
  435. },
  436. getNativeFieldSize: function (type) {
  437. return Math.max(Runtime.getNativeTypeSize(type), Runtime.QUANTUM_SIZE);
  438. },
  439. STACK_ALIGN: 16,
  440. prepVararg: function (ptr, type) {
  441. if (type === 'double' || type === 'i64') {
  442. // move so the load is aligned
  443. if (ptr & 7) {
  444. assert((ptr & 7) === 4);
  445. ptr += 4;
  446. }
  447. } else {
  448. assert((ptr & 3) === 0);
  449. }
  450. return ptr;
  451. },
  452. getAlignSize: function (type, size, vararg) {
  453. // we align i64s and doubles on 64-bit boundaries, unlike x86
  454. if (!vararg && (type == 'i64' || type == 'double')) return 8;
  455. if (!type) return Math.min(size, 8); // align structures internally to 64 bits
  456. return Math.min(size || (type ? Runtime.getNativeFieldSize(type) : 0), Runtime.QUANTUM_SIZE);
  457. },
  458. dynCall: function (sig, ptr, args) {
  459. if (args && args.length) {
  460. assert(args.length == sig.length-1);
  461. assert(('dynCall_' + sig) in Module, 'bad function pointer type - no table for sig \'' + sig + '\'');
  462. return Module['dynCall_' + sig].apply(null, [ptr].concat(args));
  463. } else {
  464. assert(sig.length == 1);
  465. assert(('dynCall_' + sig) in Module, 'bad function pointer type - no table for sig \'' + sig + '\'');
  466. return Module['dynCall_' + sig].call(null, ptr);
  467. }
  468. },
  469. functionPointers: [],
  470. addFunction: function (func) {
  471. for (var i = 0; i < Runtime.functionPointers.length; i++) {
  472. if (!Runtime.functionPointers[i]) {
  473. Runtime.functionPointers[i] = func;
  474. return 2*(1 + i);
  475. }
  476. }
  477. throw 'Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS.';
  478. },
  479. removeFunction: function (index) {
  480. Runtime.functionPointers[(index-2)/2] = null;
  481. },
  482. warnOnce: function (text) {
  483. if (!Runtime.warnOnce.shown) Runtime.warnOnce.shown = {};
  484. if (!Runtime.warnOnce.shown[text]) {
  485. Runtime.warnOnce.shown[text] = 1;
  486. Module.printErr(text);
  487. }
  488. },
  489. funcWrappers: {},
  490. getFuncWrapper: function (func, sig) {
  491. assert(sig);
  492. if (!Runtime.funcWrappers[sig]) {
  493. Runtime.funcWrappers[sig] = {};
  494. }
  495. var sigCache = Runtime.funcWrappers[sig];
  496. if (!sigCache[func]) {
  497. // optimize away arguments usage in common cases
  498. if (sig.length === 1) {
  499. sigCache[func] = function dynCall_wrapper() {
  500. return Runtime.dynCall(sig, func);
  501. };
  502. } else if (sig.length === 2) {
  503. sigCache[func] = function dynCall_wrapper(arg) {
  504. return Runtime.dynCall(sig, func, [arg]);
  505. };
  506. } else {
  507. // general case
  508. sigCache[func] = function dynCall_wrapper() {
  509. return Runtime.dynCall(sig, func, Array.prototype.slice.call(arguments));
  510. };
  511. }
  512. }
  513. return sigCache[func];
  514. },
  515. getCompilerSetting: function (name) {
  516. throw 'You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work';
  517. },
  518. stackAlloc: function (size) { var ret = STACKTOP;STACKTOP = (STACKTOP + size)|0;STACKTOP = (((STACKTOP)+15)&-16);(assert((((STACKTOP|0) < (STACK_MAX|0))|0))|0); return ret; },
  519. staticAlloc: function (size) { var ret = STATICTOP;STATICTOP = (STATICTOP + (assert(!staticSealed),size))|0;STATICTOP = (((STATICTOP)+15)&-16); return ret; },
  520. dynamicAlloc: function (size) { assert(DYNAMICTOP_PTR);var ret = HEAP32[DYNAMICTOP_PTR>>2];var end = (((ret + size + 15)|0) & -16);HEAP32[DYNAMICTOP_PTR>>2] = end;if (end >= TOTAL_MEMORY) {var success = enlargeMemory();if (!success) {HEAP32[DYNAMICTOP_PTR>>2] = ret;return 0;}}return ret;},
  521. alignMemory: function (size,quantum) { var ret = size = Math.ceil((size)/(quantum ? quantum : 16))*(quantum ? quantum : 16); return ret; },
  522. makeBigInt: function (low,high,unsigned) { var ret = (unsigned ? ((+((low>>>0)))+((+((high>>>0)))*4294967296.0)) : ((+((low>>>0)))+((+((high|0)))*4294967296.0))); return ret; },
  523. GLOBAL_BASE: 8,
  524. QUANTUM_SIZE: 4,
  525. __dummy__: 0
  526. }
  527. Module["Runtime"] = Runtime;
  528. //========================================
  529. // Runtime essentials
  530. //========================================
  531. var ABORT = 0; // whether we are quitting the application. no code should run after this. set in exit() and abort()
  532. var EXITSTATUS = 0;
  533. function assert(condition, text) {
  534. if (!condition) {
  535. abort('Assertion failed: ' + text);
  536. }
  537. }
  538. var globalScope = this;
  539. // Returns the C function with a specified identifier (for C++, you need to do manual name mangling)
  540. function getCFunc(ident) {
  541. var func = Module['_' + ident]; // closure exported function
  542. if (!func) {
  543. try { func = eval('_' + ident); } catch(e) {}
  544. }
  545. assert(func, 'Cannot call unknown function ' + ident + ' (perhaps LLVM optimizations or closure removed it?)');
  546. return func;
  547. }
  548. var cwrap, ccall;
  549. (function(){
  550. var JSfuncs = {
  551. // Helpers for cwrap -- it can't refer to Runtime directly because it might
  552. // be renamed by closure, instead it calls JSfuncs['stackSave'].body to find
  553. // out what the minified function name is.
  554. 'stackSave': function() {
  555. Runtime.stackSave()
  556. },
  557. 'stackRestore': function() {
  558. Runtime.stackRestore()
  559. },
  560. // type conversion from js to c
  561. 'arrayToC' : function(arr) {
  562. var ret = Runtime.stackAlloc(arr.length);
  563. writeArrayToMemory(arr, ret);
  564. return ret;
  565. },
  566. 'stringToC' : function(str) {
  567. var ret = 0;
  568. if (str !== null && str !== undefined && str !== 0) { // null string
  569. // at most 4 bytes per UTF-8 code point, +1 for the trailing '\0'
  570. var len = (str.length << 2) + 1;
  571. ret = Runtime.stackAlloc(len);
  572. stringToUTF8(str, ret, len);
  573. }
  574. return ret;
  575. }
  576. };
  577. // For fast lookup of conversion functions
  578. var toC = {'string' : JSfuncs['stringToC'], 'array' : JSfuncs['arrayToC']};
  579. // C calling interface.
  580. ccall = function ccallFunc(ident, returnType, argTypes, args, opts) {
  581. var func = getCFunc(ident);
  582. var cArgs = [];
  583. var stack = 0;
  584. assert(returnType !== 'array', 'Return type should not be "array".');
  585. if (args) {
  586. for (var i = 0; i < args.length; i++) {
  587. var converter = toC[argTypes[i]];
  588. if (converter) {
  589. if (stack === 0) stack = Runtime.stackSave();
  590. cArgs[i] = converter(args[i]);
  591. } else {
  592. cArgs[i] = args[i];
  593. }
  594. }
  595. }
  596. var ret = func.apply(null, cArgs);
  597. if ((!opts || !opts.async) && typeof EmterpreterAsync === 'object') {
  598. assert(!EmterpreterAsync.state, 'cannot start async op with normal JS calling ccall');
  599. }
  600. if (opts && opts.async) assert(!returnType, 'async ccalls cannot return values');
  601. if (returnType === 'string') ret = Pointer_stringify(ret);
  602. if (stack !== 0) {
  603. if (opts && opts.async) {
  604. EmterpreterAsync.asyncFinalizers.push(function() {
  605. Runtime.stackRestore(stack);
  606. });
  607. return;
  608. }
  609. Runtime.stackRestore(stack);
  610. }
  611. return ret;
  612. }
  613. var sourceRegex = /^function\s*[a-zA-Z$_0-9]*\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/;
  614. function parseJSFunc(jsfunc) {
  615. // Match the body and the return value of a javascript function source
  616. var parsed = jsfunc.toString().match(sourceRegex).slice(1);
  617. return {arguments : parsed[0], body : parsed[1], returnValue: parsed[2]}
  618. }
  619. // sources of useful functions. we create this lazily as it can trigger a source decompression on this entire file
  620. var JSsource = null;
  621. function ensureJSsource() {
  622. if (!JSsource) {
  623. JSsource = {};
  624. for (var fun in JSfuncs) {
  625. if (JSfuncs.hasOwnProperty(fun)) {
  626. // Elements of toCsource are arrays of three items:
  627. // the code, and the return value
  628. JSsource[fun] = parseJSFunc(JSfuncs[fun]);
  629. }
  630. }
  631. }
  632. }
  633. cwrap = function cwrap(ident, returnType, argTypes) {
  634. argTypes = argTypes || [];
  635. var cfunc = getCFunc(ident);
  636. // When the function takes numbers and returns a number, we can just return
  637. // the original function
  638. var numericArgs = argTypes.every(function(type){ return type === 'number'});
  639. var numericRet = (returnType !== 'string');
  640. if ( numericRet && numericArgs) {
  641. return cfunc;
  642. }
  643. // Creation of the arguments list (["$1","$2",...,"$nargs"])
  644. var argNames = argTypes.map(function(x,i){return '$'+i});
  645. var funcstr = "(function(" + argNames.join(',') + ") {";
  646. var nargs = argTypes.length;
  647. if (!numericArgs) {
  648. // Generate the code needed to convert the arguments from javascript
  649. // values to pointers
  650. ensureJSsource();
  651. funcstr += 'var stack = ' + JSsource['stackSave'].body + ';';
  652. for (var i = 0; i < nargs; i++) {
  653. var arg = argNames[i], type = argTypes[i];
  654. if (type === 'number') continue;
  655. var convertCode = JSsource[type + 'ToC']; // [code, return]
  656. funcstr += 'var ' + convertCode.arguments + ' = ' + arg + ';';
  657. funcstr += convertCode.body + ';';
  658. funcstr += arg + '=(' + convertCode.returnValue + ');';
  659. }
  660. }
  661. // When the code is compressed, the name of cfunc is not literally 'cfunc' anymore
  662. var cfuncname = parseJSFunc(function(){return cfunc}).returnValue;
  663. // Call the function
  664. funcstr += 'var ret = ' + cfuncname + '(' + argNames.join(',') + ');';
  665. if (!numericRet) { // Return type can only by 'string' or 'number'
  666. // Convert the result to a string
  667. var strgfy = parseJSFunc(function(){return Pointer_stringify}).returnValue;
  668. funcstr += 'ret = ' + strgfy + '(ret);';
  669. }
  670. funcstr += "if (typeof EmterpreterAsync === 'object') { assert(!EmterpreterAsync.state, 'cannot start async op with normal JS calling cwrap') }";
  671. if (!numericArgs) {
  672. // If we had a stack, restore it
  673. ensureJSsource();
  674. funcstr += JSsource['stackRestore'].body.replace('()', '(stack)') + ';';
  675. }
  676. funcstr += 'return ret})';
  677. return eval(funcstr);
  678. };
  679. })();
  680. Module["ccall"] = ccall;
  681. Module["cwrap"] = cwrap;
  682. function setValue(ptr, value, type, noSafe) {
  683. type = type || 'i8';
  684. if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit
  685. switch(type) {
  686. case 'i1': HEAP8[((ptr)>>0)]=value; break;
  687. case 'i8': HEAP8[((ptr)>>0)]=value; break;
  688. case 'i16': HEAP16[((ptr)>>1)]=value; break;
  689. case 'i32': HEAP32[((ptr)>>2)]=value; break;
  690. case 'i64': (tempI64 = [value>>>0,(tempDouble=value,(+(Math_abs(tempDouble))) >= 1.0 ? (tempDouble > 0.0 ? ((Math_min((+(Math_floor((tempDouble)/4294967296.0))), 4294967295.0))|0)>>>0 : (~~((+(Math_ceil((tempDouble - +(((~~(tempDouble)))>>>0))/4294967296.0)))))>>>0) : 0)],HEAP32[((ptr)>>2)]=tempI64[0],HEAP32[(((ptr)+(4))>>2)]=tempI64[1]); break;
  691. case 'float': HEAPF32[((ptr)>>2)]=value; break;
  692. case 'double': HEAPF64[((ptr)>>3)]=value; break;
  693. default: abort('invalid type for setValue: ' + type);
  694. }
  695. }
  696. Module["setValue"] = setValue;
  697. function getValue(ptr, type, noSafe) {
  698. type = type || 'i8';
  699. if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit
  700. switch(type) {
  701. case 'i1': return HEAP8[((ptr)>>0)];
  702. case 'i8': return HEAP8[((ptr)>>0)];
  703. case 'i16': return HEAP16[((ptr)>>1)];
  704. case 'i32': return HEAP32[((ptr)>>2)];
  705. case 'i64': return HEAP32[((ptr)>>2)];
  706. case 'float': return HEAPF32[((ptr)>>2)];
  707. case 'double': return HEAPF64[((ptr)>>3)];
  708. default: abort('invalid type for setValue: ' + type);
  709. }
  710. return null;
  711. }
  712. Module["getValue"] = getValue;
  713. var ALLOC_NORMAL = 0; // Tries to use _malloc()
  714. var ALLOC_STACK = 1; // Lives for the duration of the current function call
  715. var ALLOC_STATIC = 2; // Cannot be freed
  716. var ALLOC_DYNAMIC = 3; // Cannot be freed except through sbrk
  717. var ALLOC_NONE = 4; // Do not allocate
  718. Module["ALLOC_NORMAL"] = ALLOC_NORMAL;
  719. Module["ALLOC_STACK"] = ALLOC_STACK;
  720. Module["ALLOC_STATIC"] = ALLOC_STATIC;
  721. Module["ALLOC_DYNAMIC"] = ALLOC_DYNAMIC;
  722. Module["ALLOC_NONE"] = ALLOC_NONE;
  723. // allocate(): This is for internal use. You can use it yourself as well, but the interface
  724. // is a little tricky (see docs right below). The reason is that it is optimized
  725. // for multiple syntaxes to save space in generated code. So you should
  726. // normally not use allocate(), and instead allocate memory using _malloc(),
  727. // initialize it with setValue(), and so forth.
  728. // @slab: An array of data, or a number. If a number, then the size of the block to allocate,
  729. // in *bytes* (note that this is sometimes confusing: the next parameter does not
  730. // affect this!)
  731. // @types: Either an array of types, one for each byte (or 0 if no type at that position),
  732. // or a single type which is used for the entire block. This only matters if there
  733. // is initial data - if @slab is a number, then this does not matter at all and is
  734. // ignored.
  735. // @allocator: How to allocate memory, see ALLOC_*
  736. function allocate(slab, types, allocator, ptr) {
  737. var zeroinit, size;
  738. if (typeof slab === 'number') {
  739. zeroinit = true;
  740. size = slab;
  741. } else {
  742. zeroinit = false;
  743. size = slab.length;
  744. }
  745. var singleType = typeof types === 'string' ? types : null;
  746. var ret;
  747. if (allocator == ALLOC_NONE) {
  748. ret = ptr;
  749. } else {
  750. ret = [typeof _malloc === 'function' ? _malloc : Runtime.staticAlloc, Runtime.stackAlloc, Runtime.staticAlloc, Runtime.dynamicAlloc][allocator === undefined ? ALLOC_STATIC : allocator](Math.max(size, singleType ? 1 : types.length));
  751. }
  752. if (zeroinit) {
  753. var ptr = ret, stop;
  754. assert((ret & 3) == 0);
  755. stop = ret + (size & ~3);
  756. for (; ptr < stop; ptr += 4) {
  757. HEAP32[((ptr)>>2)]=0;
  758. }
  759. stop = ret + size;
  760. while (ptr < stop) {
  761. HEAP8[((ptr++)>>0)]=0;
  762. }
  763. return ret;
  764. }
  765. if (singleType === 'i8') {
  766. if (slab.subarray || slab.slice) {
  767. HEAPU8.set(slab, ret);
  768. } else {
  769. HEAPU8.set(new Uint8Array(slab), ret);
  770. }
  771. return ret;
  772. }
  773. var i = 0, type, typeSize, previousType;
  774. while (i < size) {
  775. var curr = slab[i];
  776. if (typeof curr === 'function') {
  777. curr = Runtime.getFunctionIndex(curr);
  778. }
  779. type = singleType || types[i];
  780. if (type === 0) {
  781. i++;
  782. continue;
  783. }
  784. assert(type, 'Must know what type to store in allocate!');
  785. if (type == 'i64') type = 'i32'; // special case: we have one i32 here, and one i32 later
  786. setValue(ret+i, curr, type);
  787. // no need to look up size unless type changes, so cache it
  788. if (previousType !== type) {
  789. typeSize = Runtime.getNativeTypeSize(type);
  790. previousType = type;
  791. }
  792. i += typeSize;
  793. }
  794. return ret;
  795. }
  796. Module["allocate"] = allocate;
  797. // Allocate memory during any stage of startup - static memory early on, dynamic memory later, malloc when ready
  798. function getMemory(size) {
  799. if (!staticSealed) return Runtime.staticAlloc(size);
  800. if (!runtimeInitialized) return Runtime.dynamicAlloc(size);
  801. return _malloc(size);
  802. }
  803. Module["getMemory"] = getMemory;
  804. function Pointer_stringify(ptr, /* optional */ length) {
  805. if (length === 0 || !ptr) return '';
  806. // TODO: use TextDecoder
  807. // Find the length, and check for UTF while doing so
  808. var hasUtf = 0;
  809. var t;
  810. var i = 0;
  811. while (1) {
  812. assert(ptr + i < TOTAL_MEMORY);
  813. t = HEAPU8[(((ptr)+(i))>>0)];
  814. hasUtf |= t;
  815. if (t == 0 && !length) break;
  816. i++;
  817. if (length && i == length) break;
  818. }
  819. if (!length) length = i;
  820. var ret = '';
  821. if (hasUtf < 128) {
  822. var MAX_CHUNK = 1024; // split up into chunks, because .apply on a huge string can overflow the stack
  823. var curr;
  824. while (length > 0) {
  825. curr = String.fromCharCode.apply(String, HEAPU8.subarray(ptr, ptr + Math.min(length, MAX_CHUNK)));
  826. ret = ret ? ret + curr : curr;
  827. ptr += MAX_CHUNK;
  828. length -= MAX_CHUNK;
  829. }
  830. return ret;
  831. }
  832. return Module['UTF8ToString'](ptr);
  833. }
  834. Module["Pointer_stringify"] = Pointer_stringify;
  835. // Given a pointer 'ptr' to a null-terminated ASCII-encoded string in the emscripten HEAP, returns
  836. // a copy of that string as a Javascript String object.
  837. function AsciiToString(ptr) {
  838. var str = '';
  839. while (1) {
  840. var ch = HEAP8[((ptr++)>>0)];
  841. if (!ch) return str;
  842. str += String.fromCharCode(ch);
  843. }
  844. }
  845. Module["AsciiToString"] = AsciiToString;
  846. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  847. // null-terminated and encoded in ASCII form. The copy will require at most str.length+1 bytes of space in the HEAP.
  848. function stringToAscii(str, outPtr) {
  849. return writeAsciiToMemory(str, outPtr, false);
  850. }
  851. Module["stringToAscii"] = stringToAscii;
  852. // Given a pointer 'ptr' to a null-terminated UTF8-encoded string in the given array that contains uint8 values, returns
  853. // a copy of that string as a Javascript String object.
  854. var UTF8Decoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf8') : undefined;
  855. function UTF8ArrayToString(u8Array, idx) {
  856. var endPtr = idx;
  857. // TextDecoder needs to know the byte length in advance, it doesn't stop on null terminator by itself.
  858. // Also, use the length info to avoid running tiny strings through TextDecoder, since .subarray() allocates garbage.
  859. while (u8Array[endPtr]) ++endPtr;
  860. if (endPtr - idx > 16 && u8Array.subarray && UTF8Decoder) {
  861. return UTF8Decoder.decode(u8Array.subarray(idx, endPtr));
  862. } else {
  863. var u0, u1, u2, u3, u4, u5;
  864. var str = '';
  865. while (1) {
  866. // For UTF8 byte structure, see http://en.wikipedia.org/wiki/UTF-8#Description and https://www.ietf.org/rfc/rfc2279.txt and https://tools.ietf.org/html/rfc3629
  867. u0 = u8Array[idx++];
  868. if (!u0) return str;
  869. if (!(u0 & 0x80)) { str += String.fromCharCode(u0); continue; }
  870. u1 = u8Array[idx++] & 63;
  871. if ((u0 & 0xE0) == 0xC0) { str += String.fromCharCode(((u0 & 31) << 6) | u1); continue; }
  872. u2 = u8Array[idx++] & 63;
  873. if ((u0 & 0xF0) == 0xE0) {
  874. u0 = ((u0 & 15) << 12) | (u1 << 6) | u2;
  875. } else {
  876. u3 = u8Array[idx++] & 63;
  877. if ((u0 & 0xF8) == 0xF0) {
  878. u0 = ((u0 & 7) << 18) | (u1 << 12) | (u2 << 6) | u3;
  879. } else {
  880. u4 = u8Array[idx++] & 63;
  881. if ((u0 & 0xFC) == 0xF8) {
  882. u0 = ((u0 & 3) << 24) | (u1 << 18) | (u2 << 12) | (u3 << 6) | u4;
  883. } else {
  884. u5 = u8Array[idx++] & 63;
  885. u0 = ((u0 & 1) << 30) | (u1 << 24) | (u2 << 18) | (u3 << 12) | (u4 << 6) | u5;
  886. }
  887. }
  888. }
  889. if (u0 < 0x10000) {
  890. str += String.fromCharCode(u0);
  891. } else {
  892. var ch = u0 - 0x10000;
  893. str += String.fromCharCode(0xD800 | (ch >> 10), 0xDC00 | (ch & 0x3FF));
  894. }
  895. }
  896. }
  897. }
  898. Module["UTF8ArrayToString"] = UTF8ArrayToString;
  899. // Given a pointer 'ptr' to a null-terminated UTF8-encoded string in the emscripten HEAP, returns
  900. // a copy of that string as a Javascript String object.
  901. function UTF8ToString(ptr) {
  902. return UTF8ArrayToString(HEAPU8,ptr);
  903. }
  904. Module["UTF8ToString"] = UTF8ToString;
  905. // Copies the given Javascript String object 'str' to the given byte array at address 'outIdx',
  906. // encoded in UTF8 form and null-terminated. The copy will require at most str.length*4+1 bytes of space in the HEAP.
  907. // Use the function lengthBytesUTF8 to compute the exact number of bytes (excluding null terminator) that this function will write.
  908. // Parameters:
  909. // str: the Javascript string to copy.
  910. // outU8Array: the array to copy to. Each index in this array is assumed to be one 8-byte element.
  911. // outIdx: The starting offset in the array to begin the copying.
  912. // maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
  913. // terminator, i.e. if maxBytesToWrite=1, only the null terminator will be written and nothing else.
  914. // maxBytesToWrite=0 does not write any bytes to the output, not even the null terminator.
  915. // Returns the number of bytes written, EXCLUDING the null terminator.
  916. function stringToUTF8Array(str, outU8Array, outIdx, maxBytesToWrite) {
  917. if (!(maxBytesToWrite > 0)) // Parameter maxBytesToWrite is not optional. Negative values, 0, null, undefined and false each don't write out any bytes.
  918. return 0;
  919. var startIdx = outIdx;
  920. var endIdx = outIdx + maxBytesToWrite - 1; // -1 for string null terminator.
  921. for (var i = 0; i < str.length; ++i) {
  922. // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.
  923. // See http://unicode.org/faq/utf_bom.html#utf16-3
  924. // For UTF8 byte structure, see http://en.wikipedia.org/wiki/UTF-8#Description and https://www.ietf.org/rfc/rfc2279.txt and https://tools.ietf.org/html/rfc3629
  925. var u = str.charCodeAt(i); // possibly a lead surrogate
  926. if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);
  927. if (u <= 0x7F) {
  928. if (outIdx >= endIdx) break;
  929. outU8Array[outIdx++] = u;
  930. } else if (u <= 0x7FF) {
  931. if (outIdx + 1 >= endIdx) break;
  932. outU8Array[outIdx++] = 0xC0 | (u >> 6);
  933. outU8Array[outIdx++] = 0x80 | (u & 63);
  934. } else if (u <= 0xFFFF) {
  935. if (outIdx + 2 >= endIdx) break;
  936. outU8Array[outIdx++] = 0xE0 | (u >> 12);
  937. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  938. outU8Array[outIdx++] = 0x80 | (u & 63);
  939. } else if (u <= 0x1FFFFF) {
  940. if (outIdx + 3 >= endIdx) break;
  941. outU8Array[outIdx++] = 0xF0 | (u >> 18);
  942. outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
  943. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  944. outU8Array[outIdx++] = 0x80 | (u & 63);
  945. } else if (u <= 0x3FFFFFF) {
  946. if (outIdx + 4 >= endIdx) break;
  947. outU8Array[outIdx++] = 0xF8 | (u >> 24);
  948. outU8Array[outIdx++] = 0x80 | ((u >> 18) & 63);
  949. outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
  950. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  951. outU8Array[outIdx++] = 0x80 | (u & 63);
  952. } else {
  953. if (outIdx + 5 >= endIdx) break;
  954. outU8Array[outIdx++] = 0xFC | (u >> 30);
  955. outU8Array[outIdx++] = 0x80 | ((u >> 24) & 63);
  956. outU8Array[outIdx++] = 0x80 | ((u >> 18) & 63);
  957. outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
  958. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  959. outU8Array[outIdx++] = 0x80 | (u & 63);
  960. }
  961. }
  962. // Null-terminate the pointer to the buffer.
  963. outU8Array[outIdx] = 0;
  964. return outIdx - startIdx;
  965. }
  966. Module["stringToUTF8Array"] = stringToUTF8Array;
  967. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  968. // null-terminated and encoded in UTF8 form. The copy will require at most str.length*4+1 bytes of space in the HEAP.
  969. // Use the function lengthBytesUTF8 to compute the exact number of bytes (excluding null terminator) that this function will write.
  970. // Returns the number of bytes written, EXCLUDING the null terminator.
  971. function stringToUTF8(str, outPtr, maxBytesToWrite) {
  972. assert(typeof maxBytesToWrite == 'number', 'stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!');
  973. return stringToUTF8Array(str, HEAPU8,outPtr, maxBytesToWrite);
  974. }
  975. Module["stringToUTF8"] = stringToUTF8;
  976. // Returns the number of bytes the given Javascript string takes if encoded as a UTF8 byte array, EXCLUDING the null terminator byte.
  977. function lengthBytesUTF8(str) {
  978. var len = 0;
  979. for (var i = 0; i < str.length; ++i) {
  980. // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.
  981. // See http://unicode.org/faq/utf_bom.html#utf16-3
  982. var u = str.charCodeAt(i); // possibly a lead surrogate
  983. if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);
  984. if (u <= 0x7F) {
  985. ++len;
  986. } else if (u <= 0x7FF) {
  987. len += 2;
  988. } else if (u <= 0xFFFF) {
  989. len += 3;
  990. } else if (u <= 0x1FFFFF) {
  991. len += 4;
  992. } else if (u <= 0x3FFFFFF) {
  993. len += 5;
  994. } else {
  995. len += 6;
  996. }
  997. }
  998. return len;
  999. }
  1000. Module["lengthBytesUTF8"] = lengthBytesUTF8;
  1001. // Given a pointer 'ptr' to a null-terminated UTF16LE-encoded string in the emscripten HEAP, returns
  1002. // a copy of that string as a Javascript String object.
  1003. var UTF16Decoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-16le') : undefined;
  1004. function UTF16ToString(ptr) {
  1005. assert(ptr % 2 == 0, 'Pointer passed to UTF16ToString must be aligned to two bytes!');
  1006. var endPtr = ptr;
  1007. // TextDecoder needs to know the byte length in advance, it doesn't stop on null terminator by itself.
  1008. // Also, use the length info to avoid running tiny strings through TextDecoder, since .subarray() allocates garbage.
  1009. var idx = endPtr >> 1;
  1010. while (HEAP16[idx]) ++idx;
  1011. endPtr = idx << 1;
  1012. if (endPtr - ptr > 32 && UTF16Decoder) {
  1013. return UTF16Decoder.decode(HEAPU8.subarray(ptr, endPtr));
  1014. } else {
  1015. var i = 0;
  1016. var str = '';
  1017. while (1) {
  1018. var codeUnit = HEAP16[(((ptr)+(i*2))>>1)];
  1019. if (codeUnit == 0) return str;
  1020. ++i;
  1021. // fromCharCode constructs a character from a UTF-16 code unit, so we can pass the UTF16 string right through.
  1022. str += String.fromCharCode(codeUnit);
  1023. }
  1024. }
  1025. }
  1026. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  1027. // null-terminated and encoded in UTF16 form. The copy will require at most str.length*4+2 bytes of space in the HEAP.
  1028. // Use the function lengthBytesUTF16() to compute the exact number of bytes (excluding null terminator) that this function will write.
  1029. // Parameters:
  1030. // str: the Javascript string to copy.
  1031. // outPtr: Byte address in Emscripten HEAP where to write the string to.
  1032. // maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
  1033. // terminator, i.e. if maxBytesToWrite=2, only the null terminator will be written and nothing else.
  1034. // maxBytesToWrite<2 does not write any bytes to the output, not even the null terminator.
  1035. // Returns the number of bytes written, EXCLUDING the null terminator.
  1036. function stringToUTF16(str, outPtr, maxBytesToWrite) {
  1037. assert(outPtr % 2 == 0, 'Pointer passed to stringToUTF16 must be aligned to two bytes!');
  1038. assert(typeof maxBytesToWrite == 'number', 'stringToUTF16(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!');
  1039. // Backwards compatibility: if max bytes is not specified, assume unsafe unbounded write is allowed.
  1040. if (maxBytesToWrite === undefined) {
  1041. maxBytesToWrite = 0x7FFFFFFF;
  1042. }
  1043. if (maxBytesToWrite < 2) return 0;
  1044. maxBytesToWrite -= 2; // Null terminator.
  1045. var startPtr = outPtr;
  1046. var numCharsToWrite = (maxBytesToWrite < str.length*2) ? (maxBytesToWrite / 2) : str.length;
  1047. for (var i = 0; i < numCharsToWrite; ++i) {
  1048. // charCodeAt returns a UTF-16 encoded code unit, so it can be directly written to the HEAP.
  1049. var codeUnit = str.charCodeAt(i); // possibly a lead surrogate
  1050. HEAP16[((outPtr)>>1)]=codeUnit;
  1051. outPtr += 2;
  1052. }
  1053. // Null-terminate the pointer to the HEAP.
  1054. HEAP16[((outPtr)>>1)]=0;
  1055. return outPtr - startPtr;
  1056. }
  1057. // Returns the number of bytes the given Javascript string takes if encoded as a UTF16 byte array, EXCLUDING the null terminator byte.
  1058. function lengthBytesUTF16(str) {
  1059. return str.length*2;
  1060. }
  1061. function UTF32ToString(ptr) {
  1062. assert(ptr % 4 == 0, 'Pointer passed to UTF32ToString must be aligned to four bytes!');
  1063. var i = 0;
  1064. var str = '';
  1065. while (1) {
  1066. var utf32 = HEAP32[(((ptr)+(i*4))>>2)];
  1067. if (utf32 == 0)
  1068. return str;
  1069. ++i;
  1070. // Gotcha: fromCharCode constructs a character from a UTF-16 encoded code (pair), not from a Unicode code point! So encode the code point to UTF-16 for constructing.
  1071. // See http://unicode.org/faq/utf_bom.html#utf16-3
  1072. if (utf32 >= 0x10000) {
  1073. var ch = utf32 - 0x10000;
  1074. str += String.fromCharCode(0xD800 | (ch >> 10), 0xDC00 | (ch & 0x3FF));
  1075. } else {
  1076. str += String.fromCharCode(utf32);
  1077. }
  1078. }
  1079. }
  1080. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  1081. // null-terminated and encoded in UTF32 form. The copy will require at most str.length*4+4 bytes of space in the HEAP.
  1082. // Use the function lengthBytesUTF32() to compute the exact number of bytes (excluding null terminator) that this function will write.
  1083. // Parameters:
  1084. // str: the Javascript string to copy.
  1085. // outPtr: Byte address in Emscripten HEAP where to write the string to.
  1086. // maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
  1087. // terminator, i.e. if maxBytesToWrite=4, only the null terminator will be written and nothing else.
  1088. // maxBytesToWrite<4 does not write any bytes to the output, not even the null terminator.
  1089. // Returns the number of bytes written, EXCLUDING the null terminator.
  1090. function stringToUTF32(str, outPtr, maxBytesToWrite) {
  1091. assert(outPtr % 4 == 0, 'Pointer passed to stringToUTF32 must be aligned to four bytes!');
  1092. assert(typeof maxBytesToWrite == 'number', 'stringToUTF32(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!');
  1093. // Backwards compatibility: if max bytes is not specified, assume unsafe unbounded write is allowed.
  1094. if (maxBytesToWrite === undefined) {
  1095. maxBytesToWrite = 0x7FFFFFFF;
  1096. }
  1097. if (maxBytesToWrite < 4) return 0;
  1098. var startPtr = outPtr;
  1099. var endPtr = startPtr + maxBytesToWrite - 4;
  1100. for (var i = 0; i < str.length; ++i) {
  1101. // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! We must decode the string to UTF-32 to the heap.
  1102. // See http://unicode.org/faq/utf_bom.html#utf16-3
  1103. var codeUnit = str.charCodeAt(i); // possibly a lead surrogate
  1104. if (codeUnit >= 0xD800 && codeUnit <= 0xDFFF) {
  1105. var trailSurrogate = str.charCodeAt(++i);
  1106. codeUnit = 0x10000 + ((codeUnit & 0x3FF) << 10) | (trailSurrogate & 0x3FF);
  1107. }
  1108. HEAP32[((outPtr)>>2)]=codeUnit;
  1109. outPtr += 4;
  1110. if (outPtr + 4 > endPtr) break;
  1111. }
  1112. // Null-terminate the pointer to the HEAP.
  1113. HEAP32[((outPtr)>>2)]=0;
  1114. return outPtr - startPtr;
  1115. }
  1116. // Returns the number of bytes the given Javascript string takes if encoded as a UTF16 byte array, EXCLUDING the null terminator byte.
  1117. function lengthBytesUTF32(str) {
  1118. var len = 0;
  1119. for (var i = 0; i < str.length; ++i) {
  1120. // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! We must decode the string to UTF-32 to the heap.
  1121. // See http://unicode.org/faq/utf_bom.html#utf16-3
  1122. var codeUnit = str.charCodeAt(i);
  1123. if (codeUnit >= 0xD800 && codeUnit <= 0xDFFF) ++i; // possibly a lead surrogate, so skip over the tail surrogate.
  1124. len += 4;
  1125. }
  1126. return len;
  1127. }
  1128. function demangle(func) {
  1129. var __cxa_demangle_func = Module['___cxa_demangle'] || Module['__cxa_demangle'];
  1130. if (__cxa_demangle_func) {
  1131. try {
  1132. var s =
  1133. func.substr(1);
  1134. var len = lengthBytesUTF8(s)+1;
  1135. var buf = _malloc(len);
  1136. stringToUTF8(s, buf, len);
  1137. var status = _malloc(4);
  1138. var ret = __cxa_demangle_func(buf, 0, 0, status);
  1139. if (getValue(status, 'i32') === 0 && ret) {
  1140. return Pointer_stringify(ret);
  1141. }
  1142. // otherwise, libcxxabi failed
  1143. } catch(e) {
  1144. // ignore problems here
  1145. } finally {
  1146. if (buf) _free(buf);
  1147. if (status) _free(status);
  1148. if (ret) _free(ret);
  1149. }
  1150. // failure when using libcxxabi, don't demangle
  1151. return func;
  1152. }
  1153. Runtime.warnOnce('warning: build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling');
  1154. return func;
  1155. }
  1156. function demangleAll(text) {
  1157. var regex =
  1158. /__Z[\w\d_]+/g;
  1159. return text.replace(regex,
  1160. function(x) {
  1161. var y = demangle(x);
  1162. return x === y ? x : (x + ' [' + y + ']');
  1163. });
  1164. }
  1165. function jsStackTrace() {
  1166. var err = new Error();
  1167. if (!err.stack) {
  1168. // IE10+ special cases: It does have callstack info, but it is only populated if an Error object is thrown,
  1169. // so try that as a special-case.
  1170. try {
  1171. throw new Error(0);
  1172. } catch(e) {
  1173. err = e;
  1174. }
  1175. if (!err.stack) {
  1176. return '(no stack trace available)';
  1177. }
  1178. }
  1179. return err.stack.toString();
  1180. }
  1181. function stackTrace() {
  1182. var js = jsStackTrace();
  1183. if (Module['extraStackTrace']) js += '\n' + Module['extraStackTrace']();
  1184. return demangleAll(js);
  1185. }
  1186. Module["stackTrace"] = stackTrace;
  1187. // Memory management
  1188. var PAGE_SIZE = 16384;
  1189. var WASM_PAGE_SIZE = 65536;
  1190. var ASMJS_PAGE_SIZE = 16777216;
  1191. var MIN_TOTAL_MEMORY = 16777216;
  1192. function alignUp(x, multiple) {
  1193. if (x % multiple > 0) {
  1194. x += multiple - (x % multiple);
  1195. }
  1196. return x;
  1197. }
  1198. var HEAP;
  1199. var buffer;
  1200. var HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64;
  1201. function updateGlobalBuffer(buf) {
  1202. Module['buffer'] = buffer = buf;
  1203. }
  1204. function updateGlobalBufferViews() {
  1205. Module['HEAP8'] = HEAP8 = new Int8Array(buffer);
  1206. Module['HEAP16'] = HEAP16 = new Int16Array(buffer);
  1207. Module['HEAP32'] = HEAP32 = new Int32Array(buffer);
  1208. Module['HEAPU8'] = HEAPU8 = new Uint8Array(buffer);
  1209. Module['HEAPU16'] = HEAPU16 = new Uint16Array(buffer);
  1210. Module['HEAPU32'] = HEAPU32 = new Uint32Array(buffer);
  1211. Module['HEAPF32'] = HEAPF32 = new Float32Array(buffer);
  1212. Module['HEAPF64'] = HEAPF64 = new Float64Array(buffer);
  1213. }
  1214. var STATIC_BASE, STATICTOP, staticSealed; // static area
  1215. var STACK_BASE, STACKTOP, STACK_MAX; // stack area
  1216. var DYNAMIC_BASE, DYNAMICTOP_PTR; // dynamic area handled by sbrk
  1217. STATIC_BASE = STATICTOP = STACK_BASE = STACKTOP = STACK_MAX = DYNAMIC_BASE = DYNAMICTOP_PTR = 0;
  1218. staticSealed = false;
  1219. // Initializes the stack cookie. Called at the startup of main and at the startup of each thread in pthreads mode.
  1220. function writeStackCookie() {
  1221. assert((STACK_MAX & 3) == 0);
  1222. HEAPU32[(STACK_MAX >> 2)-1] = 0x02135467;
  1223. HEAPU32[(STACK_MAX >> 2)-2] = 0x89BACDFE;
  1224. }
  1225. function checkStackCookie() {
  1226. if (HEAPU32[(STACK_MAX >> 2)-1] != 0x02135467 || HEAPU32[(STACK_MAX >> 2)-2] != 0x89BACDFE) {
  1227. abort('Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x02135467, but received 0x' + HEAPU32[(STACK_MAX >> 2)-2].toString(16) + ' ' + HEAPU32[(STACK_MAX >> 2)-1].toString(16));
  1228. }
  1229. // Also test the global address 0 for integrity. This check is not compatible with SAFE_SPLIT_MEMORY though, since that mode already tests all address 0 accesses on its own.
  1230. if (HEAP32[0] !== 0x63736d65 /* 'emsc' */) throw 'Runtime error: The application has corrupted its heap memory area (address zero)!';
  1231. }
  1232. function abortStackOverflow(allocSize) {
  1233. abort('Stack overflow! Attempted to allocate ' + allocSize + ' bytes on the stack, but stack has only ' + (STACK_MAX - asm.stackSave() + allocSize) + ' bytes available!');
  1234. }
  1235. function abortOnCannotGrowMemory() {
  1236. abort('Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value ' + TOTAL_MEMORY + ', (2) compile with -s ALLOW_MEMORY_GROWTH=1 which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ');
  1237. }
  1238. function enlargeMemory() {
  1239. abortOnCannotGrowMemory();
  1240. }
  1241. var TOTAL_STACK = Module['TOTAL_STACK'] || 5242880;
  1242. var TOTAL_MEMORY = Module['TOTAL_MEMORY'] || 16777216;
  1243. if (TOTAL_MEMORY < TOTAL_STACK) Module.printErr('TOTAL_MEMORY should be larger than TOTAL_STACK, was ' + TOTAL_MEMORY + '! (TOTAL_STACK=' + TOTAL_STACK + ')');
  1244. // Initialize the runtime's memory
  1245. // check for full engine support (use string 'subarray' to avoid closure compiler confusion)
  1246. assert(typeof Int32Array !== 'undefined' && typeof Float64Array !== 'undefined' && !!(new Int32Array(1)['subarray']) && !!(new Int32Array(1)['set']),
  1247. 'JS engine does not provide full typed array support');
  1248. // Use a provided buffer, if there is one, or else allocate a new one
  1249. if (Module['buffer']) {
  1250. buffer = Module['buffer'];
  1251. assert(buffer.byteLength === TOTAL_MEMORY, 'provided buffer should be ' + TOTAL_MEMORY + ' bytes, but it is ' + buffer.byteLength);
  1252. } else {
  1253. // Use a WebAssembly memory where available
  1254. {
  1255. buffer = new ArrayBuffer(TOTAL_MEMORY);
  1256. }
  1257. assert(buffer.byteLength === TOTAL_MEMORY);
  1258. }
  1259. updateGlobalBufferViews();
  1260. function getTotalMemory() {
  1261. return TOTAL_MEMORY;
  1262. }
  1263. // Endianness check (note: assumes compiler arch was little-endian)
  1264. HEAP32[0] = 0x63736d65; /* 'emsc' */
  1265. HEAP16[1] = 0x6373;
  1266. if (HEAPU8[2] !== 0x73 || HEAPU8[3] !== 0x63) throw 'Runtime error: expected the system to be little-endian!';
  1267. Module['HEAP'] = HEAP;
  1268. Module['buffer'] = buffer;
  1269. Module['HEAP8'] = HEAP8;
  1270. Module['HEAP16'] = HEAP16;
  1271. Module['HEAP32'] = HEAP32;
  1272. Module['HEAPU8'] = HEAPU8;
  1273. Module['HEAPU16'] = HEAPU16;
  1274. Module['HEAPU32'] = HEAPU32;
  1275. Module['HEAPF32'] = HEAPF32;
  1276. Module['HEAPF64'] = HEAPF64;
  1277. function callRuntimeCallbacks(callbacks) {
  1278. while(callbacks.length > 0) {
  1279. var callback = callbacks.shift();
  1280. if (typeof callback == 'function') {
  1281. callback();
  1282. continue;
  1283. }
  1284. var func = callback.func;
  1285. if (typeof func === 'number') {
  1286. if (callback.arg === undefined) {
  1287. Module['dynCall_v'](func);
  1288. } else {
  1289. Module['dynCall_vi'](func, callback.arg);
  1290. }
  1291. } else {
  1292. func(callback.arg === undefined ? null : callback.arg);
  1293. }
  1294. }
  1295. }
  1296. var __ATPRERUN__ = []; // functions called before the runtime is initialized
  1297. var __ATINIT__ = []; // functions called during startup
  1298. var __ATMAIN__ = []; // functions called when main() is to be run
  1299. var __ATEXIT__ = []; // functions called during shutdown
  1300. var __ATPOSTRUN__ = []; // functions called after the runtime has exited
  1301. var runtimeInitialized = false;
  1302. var runtimeExited = false;
  1303. function preRun() {
  1304. // compatibility - merge in anything from Module['preRun'] at this time
  1305. if (Module['preRun']) {
  1306. if (typeof Module['preRun'] == 'function') Module['preRun'] = [Module['preRun']];
  1307. while (Module['preRun'].length) {
  1308. addOnPreRun(Module['preRun'].shift());
  1309. }
  1310. }
  1311. callRuntimeCallbacks(__ATPRERUN__);
  1312. }
  1313. function ensureInitRuntime() {
  1314. checkStackCookie();
  1315. if (runtimeInitialized) return;
  1316. runtimeInitialized = true;
  1317. callRuntimeCallbacks(__ATINIT__);
  1318. }
  1319. function preMain() {
  1320. checkStackCookie();
  1321. callRuntimeCallbacks(__ATMAIN__);
  1322. }
  1323. function exitRuntime() {
  1324. checkStackCookie();
  1325. callRuntimeCallbacks(__ATEXIT__);
  1326. runtimeExited = true;
  1327. }
  1328. function postRun() {
  1329. checkStackCookie();
  1330. // compatibility - merge in anything from Module['postRun'] at this time
  1331. if (Module['postRun']) {
  1332. if (typeof Module['postRun'] == 'function') Module['postRun'] = [Module['postRun']];
  1333. while (Module['postRun'].length) {
  1334. addOnPostRun(Module['postRun'].shift());
  1335. }
  1336. }
  1337. callRuntimeCallbacks(__ATPOSTRUN__);
  1338. }
  1339. function addOnPreRun(cb) {
  1340. __ATPRERUN__.unshift(cb);
  1341. }
  1342. Module["addOnPreRun"] = addOnPreRun;
  1343. function addOnInit(cb) {
  1344. __ATINIT__.unshift(cb);
  1345. }
  1346. Module["addOnInit"] = addOnInit;
  1347. function addOnPreMain(cb) {
  1348. __ATMAIN__.unshift(cb);
  1349. }
  1350. Module["addOnPreMain"] = addOnPreMain;
  1351. function addOnExit(cb) {
  1352. __ATEXIT__.unshift(cb);
  1353. }
  1354. Module["addOnExit"] = addOnExit;
  1355. function addOnPostRun(cb) {
  1356. __ATPOSTRUN__.unshift(cb);
  1357. }
  1358. Module["addOnPostRun"] = addOnPostRun;
  1359. // Tools
  1360. function intArrayFromString(stringy, dontAddNull, length /* optional */) {
  1361. var len = length > 0 ? length : lengthBytesUTF8(stringy)+1;
  1362. var u8array = new Array(len);
  1363. var numBytesWritten = stringToUTF8Array(stringy, u8array, 0, u8array.length);
  1364. if (dontAddNull) u8array.length = numBytesWritten;
  1365. return u8array;
  1366. }
  1367. Module["intArrayFromString"] = intArrayFromString;
  1368. function intArrayToString(array) {
  1369. var ret = [];
  1370. for (var i = 0; i < array.length; i++) {
  1371. var chr = array[i];
  1372. if (chr > 0xFF) {
  1373. assert(false, 'Character code ' + chr + ' (' + String.fromCharCode(chr) + ') at offset ' + i + ' not in 0x00-0xFF.');
  1374. chr &= 0xFF;
  1375. }
  1376. ret.push(String.fromCharCode(chr));
  1377. }
  1378. return ret.join('');
  1379. }
  1380. Module["intArrayToString"] = intArrayToString;
  1381. // Deprecated: This function should not be called because it is unsafe and does not provide
  1382. // a maximum length limit of how many bytes it is allowed to write. Prefer calling the
  1383. // function stringToUTF8Array() instead, which takes in a maximum length that can be used
  1384. // to be secure from out of bounds writes.
  1385. function writeStringToMemory(string, buffer, dontAddNull) {
  1386. Runtime.warnOnce('writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!');
  1387. var lastChar, end;
  1388. if (dontAddNull) {
  1389. // stringToUTF8Array always appends null. If we don't want to do that, remember the
  1390. // character that existed at the location where the null will be placed, and restore
  1391. // that after the write (below).
  1392. end = buffer + lengthBytesUTF8(string);
  1393. lastChar = HEAP8[end];
  1394. }
  1395. stringToUTF8(string, buffer, Infinity);
  1396. if (dontAddNull) HEAP8[end] = lastChar; // Restore the value under the null character.
  1397. }
  1398. Module["writeStringToMemory"] = writeStringToMemory;
  1399. function writeArrayToMemory(array, buffer) {
  1400. assert(array.length >= 0, 'writeArrayToMemory array must have a length (should be an array or typed array)')
  1401. HEAP8.set(array, buffer);
  1402. }
  1403. Module["writeArrayToMemory"] = writeArrayToMemory;
  1404. function writeAsciiToMemory(str, buffer, dontAddNull) {
  1405. for (var i = 0; i < str.length; ++i) {
  1406. assert(str.charCodeAt(i) === str.charCodeAt(i)&0xff);
  1407. HEAP8[((buffer++)>>0)]=str.charCodeAt(i);
  1408. }
  1409. // Null-terminate the pointer to the HEAP.
  1410. if (!dontAddNull) HEAP8[((buffer)>>0)]=0;
  1411. }
  1412. Module["writeAsciiToMemory"] = writeAsciiToMemory;
  1413. function unSign(value, bits, ignore) {
  1414. if (value >= 0) {
  1415. return value;
  1416. }
  1417. return bits <= 32 ? 2*Math.abs(1 << (bits-1)) + value // Need some trickery, since if bits == 32, we are right at the limit of the bits JS uses in bitshifts
  1418. : Math.pow(2, bits) + value;
  1419. }
  1420. function reSign(value, bits, ignore) {
  1421. if (value <= 0) {
  1422. return value;
  1423. }
  1424. var half = bits <= 32 ? Math.abs(1 << (bits-1)) // abs is needed if bits == 32
  1425. : Math.pow(2, bits-1);
  1426. if (value >= half && (bits <= 32 || value > half)) { // for huge values, we can hit the precision limit and always get true here. so don't do that
  1427. // but, in general there is no perfect solution here. With 64-bit ints, we get rounding and errors
  1428. // TODO: In i64 mode 1, resign the two parts separately and safely
  1429. value = -2*half + value; // Cannot bitshift half, as it may be at the limit of the bits JS uses in bitshifts
  1430. }
  1431. return value;
  1432. }
  1433. // check for imul support, and also for correctness ( https://bugs.webkit.org/show_bug.cgi?id=126345 )
  1434. if (!Math['imul'] || Math['imul'](0xffffffff, 5) !== -5) Math['imul'] = function imul(a, b) {
  1435. var ah = a >>> 16;
  1436. var al = a & 0xffff;
  1437. var bh = b >>> 16;
  1438. var bl = b & 0xffff;
  1439. return (al*bl + ((ah*bl + al*bh) << 16))|0;
  1440. };
  1441. Math.imul = Math['imul'];
  1442. if (!Math['clz32']) Math['clz32'] = function(x) {
  1443. x = x >>> 0;
  1444. for (var i = 0; i < 32; i++) {
  1445. if (x & (1 << (31 - i))) return i;
  1446. }
  1447. return 32;
  1448. };
  1449. Math.clz32 = Math['clz32']
  1450. if (!Math['trunc']) Math['trunc'] = function(x) {
  1451. return x < 0 ? Math.ceil(x) : Math.floor(x);
  1452. };
  1453. Math.trunc = Math['trunc'];
  1454. var Math_abs = Math.abs;
  1455. var Math_cos = Math.cos;
  1456. var Math_sin = Math.sin;
  1457. var Math_tan = Math.tan;
  1458. var Math_acos = Math.acos;
  1459. var Math_asin = Math.asin;
  1460. var Math_atan = Math.atan;
  1461. var Math_atan2 = Math.atan2;
  1462. var Math_exp = Math.exp;
  1463. var Math_log = Math.log;
  1464. var Math_sqrt = Math.sqrt;
  1465. var Math_ceil = Math.ceil;
  1466. var Math_floor = Math.floor;
  1467. var Math_pow = Math.pow;
  1468. var Math_imul = Math.imul;
  1469. var Math_fround = Math.fround;
  1470. var Math_round = Math.round;
  1471. var Math_min = Math.min;
  1472. var Math_clz32 = Math.clz32;
  1473. var Math_trunc = Math.trunc;
  1474. // A counter of dependencies for calling run(). If we need to
  1475. // do asynchronous work before running, increment this and
  1476. // decrement it. Incrementing must happen in a place like
  1477. // PRE_RUN_ADDITIONS (used by emcc to add file preloading).
  1478. // Note that you can add dependencies in preRun, even though
  1479. // it happens right before run - run will be postponed until
  1480. // the dependencies are met.
  1481. var runDependencies = 0;
  1482. var runDependencyWatcher = null;
  1483. var dependenciesFulfilled = null; // overridden to take different actions when all run dependencies are fulfilled
  1484. var runDependencyTracking = {};
  1485. function getUniqueRunDependency(id) {
  1486. var orig = id;
  1487. while (1) {
  1488. if (!runDependencyTracking[id]) return id;
  1489. id = orig + Math.random();
  1490. }
  1491. return id;
  1492. }
  1493. function addRunDependency(id) {
  1494. runDependencies++;
  1495. if (Module['monitorRunDependencies']) {
  1496. Module['monitorRunDependencies'](runDependencies);
  1497. }
  1498. if (id) {
  1499. assert(!runDependencyTracking[id]);
  1500. runDependencyTracking[id] = 1;
  1501. if (runDependencyWatcher === null && typeof setInterval !== 'undefined') {
  1502. // Check for missing dependencies every few seconds
  1503. runDependencyWatcher = setInterval(function() {
  1504. if (ABORT) {
  1505. clearInterval(runDependencyWatcher);
  1506. runDependencyWatcher = null;
  1507. return;
  1508. }
  1509. var shown = false;
  1510. for (var dep in runDependencyTracking) {
  1511. if (!shown) {
  1512. shown = true;
  1513. Module.printErr('still waiting on run dependencies:');
  1514. }
  1515. Module.printErr('dependency: ' + dep);
  1516. }
  1517. if (shown) {
  1518. Module.printErr('(end of list)');
  1519. }
  1520. }, 10000);
  1521. }
  1522. } else {
  1523. Module.printErr('warning: run dependency added without ID');
  1524. }
  1525. }
  1526. Module["addRunDependency"] = addRunDependency;
  1527. function removeRunDependency(id) {
  1528. runDependencies--;
  1529. if (Module['monitorRunDependencies']) {
  1530. Module['monitorRunDependencies'](runDependencies);
  1531. }
  1532. if (id) {
  1533. assert(runDependencyTracking[id]);
  1534. delete runDependencyTracking[id];
  1535. } else {
  1536. Module.printErr('warning: run dependency removed without ID');
  1537. }
  1538. if (runDependencies == 0) {
  1539. if (runDependencyWatcher !== null) {
  1540. clearInterval(runDependencyWatcher);
  1541. runDependencyWatcher = null;
  1542. }
  1543. if (dependenciesFulfilled) {
  1544. var callback = dependenciesFulfilled;
  1545. dependenciesFulfilled = null;
  1546. callback(); // can add another dependenciesFulfilled
  1547. }
  1548. }
  1549. }
  1550. Module["removeRunDependency"] = removeRunDependency;
  1551. Module["preloadedImages"] = {}; // maps url to image data
  1552. Module["preloadedAudios"] = {}; // maps url to audio data
  1553. var memoryInitializer = null;
  1554. // === Body ===
  1555. var ASM_CONSTS = [function($0, $1) { { Module.printErr('bad name in getProcAddress: ' + [Pointer_stringify($0), Pointer_stringify($1)]); } }];
  1556. function _emscripten_asm_const_iii(code, a0, a1) {
  1557. return ASM_CONSTS[code](a0, a1);
  1558. }
  1559. STATIC_BASE = 8;
  1560. STATICTOP = STATIC_BASE + 22992;
  1561. /* global initializers */ __ATINIT__.push();
  1562. /* memory initializer */ allocate([32,3,0,0,194,1,0,0,0,0,128,65,0,0,96,65,0,0,128,65,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,63,0,0,0,0,0,0,52,66,0,0,128,193,0,0,0,0,0,0,0,193,255,255,255,255,205,204,236,63,2,0,0,0,86,1,0,0,85,1,0,0,87,0,0,0,83,0,0,0,68,0,0,0,65,0,0,0,69,0,0,0,81,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,32,0,0,176,1,0,0,0,0,0,0,0,0,0,32,37,249,142,0,10,2,0,0,128,190,125,95,244,125,31,160,242,43,74,30,9,82,8,0,64,34,65,80,20,4,16,32,32,41,46,18,8,34,8,0,32,34,65,80,20,4,16,32,32,249,16,76,8,250,62,60,16,34,125,222,247,125,16,32,32,161,232,50,8,34,8,0,8,34,5,16,4,69,16,0,240,163,164,50,8,82,8,0,4,34,5,16,4,69,16,32,32,249,226,94,8,2,0,129,2,62,125,31,244,125,16,0,0,32,0,0,176,1,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,15,0,192,15,224,247,251,125,126,191,95,232,190,80,0,162,8,8,68,232,47,20,10,133,2,129,80,72,160,80,0,162,40,228,73,40,40,20,10,132,2,129,64,72,160,72,0,190,15,2,16,175,235,247,9,132,62,159,216,79,160,71,0,34,136,228,9,161,42,20,10,132,2,129,80,72,160,72,0,34,40,8,4,160,47,20,10,133,2,129,80,72,162,80,0,190,143,0,0,33,32,244,251,125,126,129,95,232,156,208,7,0,128,0,0,224,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,1,12,0,130,66,191,223,239,247,251,11,5,5,133,66,191,4,72,0,198,66,161,80,40,20,64,8,5,37,133,66,160,8,168,0,170,70,161,80,40,20,64,8,5,37,133,66,144,16,8,0,146,74,161,95,232,247,67,8,5,37,121,126,136,32,8,0,130,82,161,64,40,1,66,8,137,36,133,64,132,64,8,0,130,98,161,64,42,2,66,8,81,36,133,64,130,128,8,0,130,66,191,192,47,244,67,248,33,252,133,126,191,0,9,62,0,0,0,0,4,0,0,0,0,0,0,0,128,1,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,4,0,4,0,32,72,65,0,0,0,0,0,8,0,0,4,4,0,4,60,32,0,65,0,0,0,0,0,8,0,0,240,125,223,247,133,239,75,81,190,239,251,190,239,59,81,4,0,69,65,20,133,40,74,73,170,40,138,162,32,8,81,4,240,69,65,244,157,40,74,71,170,40,138,162,224,11,81,4,16,69,65,20,132,40,74,73,170,40,138,162,0,10,145,2,240,125,223,247,133,47,74,209,170,232,251,190,224,123,31,1,0,0,0,0,4,8,64,0,0,0,8,32,0,0,0,0,0,0,0,0,132,15,96,0,0,0,8,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,1,15,0,0,0,0,0,0,0,0,0,0,0,0,0,36,1,9,0,0,0,0,0,0,0,0,0,6,0,0,0,36,1,9,0,0,0,0,0,0,0,128,16,9,162,40,250,36,1,9,0,0,0,0,0,0,0,0,62,1,42,37,66,34,82,9,0,0,0,0,0,0,0,128,138,3,42,34,34,36,41,9,0,0,0,0,0,0,0,128,10,1,42,37,18,36,1,9,0,0,0,0,0,0,0,128,10,1,190,232,251,36,1,9,0,0,0,0,0,0,0,128,190,14,0,0,2,172,1,15,0,0,0,0,0,0,0,128,4,0,0,224,3,0,0,0,0,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,56,0,0,0,14,184,67,132,3,58,32,0,128,160,190,2,32,0,0,240,138,32,82,196,2,43,32,4,34,145,2,248,59,0,240,7,142,56,75,228,2,58,32,2,28,138,30,8,42,233,17,4,224,11,66,244,2,130,36,1,20,4,20,232,186,4,209,5,128,184,195,231,10,58,137,0,28,14,60,40,2,9,80,4,128,0,64,196,2,128,68,0,34,132,32,232,2,0,80,4,0,0,64,128,2,0,32,5,0,142,62,8,2,0,16,4,224,3,64,128,66,0,0,7,0,132,0,248,3,0,240,7,0,0,64,128,34,0,0,4,0,0,0,0,0,0,0,0,0,0,64,128,2,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,7,128,0,194,160,72,24,0,0,1,132,33,9,146,2,66,38,4,1,33,81,0,0,127,63,2,66,2,16,41,0,34,20,192,239,247,251,253,126,9,161,223,239,247,187,187,3,18,15,68,40,20,10,133,66,9,129,64,32,16,16,17,1,8,4,68,40,20,10,133,66,127,129,64,32,16,16,17,1,4,130,199,239,247,251,253,126,9,129,207,231,243,17,17,1,50,169,80,40,20,10,133,66,9,161,64,32,16,16,17,1,64,184,80,40,20,10,133,66,121,191,223,239,247,187,187,3,32,160,31,0,0,0,0,0,0,16,0,0,0,0,0,0,112,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,2,8,131,34,1,0,2,8,67,2,1,0,1,1,124,20,4,132,68,1,0,32,4,132,4,128,8,63,130,0,132,66,191,223,239,247,3,126,161,80,40,20,10,33,0,0,132,70,161,80,40,20,138,82,161,80,40,20,122,161,239,3,158,74,161,80,40,20,82,82,161,80,40,20,74,31,8,2,132,82,161,80,40,20,34,74,161,80,40,244,75,161,239,3,132,98,161,80,40,20,82,74,161,80,40,4,122,161,40,2,124,66,191,223,239,247,139,126,191,223,239,247,11,189,239,3,0,0,0,0,0,0,0,4,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,5,32,0,0,4,132,0,34,129,69,17,16,66,1,0,148,66,81,0,0,8,66,81,148,42,162,32,8,165,80,0,0,0,32,0,0,0,0,0,0,0,5,0,0,0,0,8,190,239,251,254,251,190,239,251,20,145,235,251,190,239,251,0,32,8,130,32,10,162,40,138,20,145,40,138,162,40,138,62,190,239,251,254,11,190,239,251,20,145,40,138,162,40,138,0,162,40,138,34,8,130,32,8,20,145,40,138,162,40,138,8,190,239,251,254,251,190,239,251,20,145,47,250,190,239,251,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,33,0,4,0,0,0,0,0,0,0,0,0,0,0,0,130,80,20,2,20,0,0,0,0,0,0,0,0,0,0,16,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,190,40,138,162,40,34,0,0,0,0,0,0,0,0,0,0,170,40,138,162,232,34,0,0,0,0,0,0,0,0,0,0,170,40,138,162,168,34,0,0,0,0,0,0,0,0,0,0,170,40,138,162,232,34,0,0,0,0,0,0,0,0,0,0,190,239,251,190,47,62,0,0,0,0,0,0,0,0,0,0,4,0,0,0,40,32,0,0,0,0,0,0,0,0,0,0,0,0,0,128,15,62,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,1,0,0,0,4,0,0,0,6,0,0,0,5,0,0,0,7,0,0,0,6,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,5,0,0,0,5,0,0,0,2,0,0,0,4,0,0,0,1,0,0,0,7,0,0,0,5,0,0,0,2,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,4,0,0,0,3,0,0,0,6,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,3,0,0,0,5,0,0,0,6,0,0,0,5,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,7,0,0,0,6,0,0,0,7,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,2,0,0,0,7,0,0,0,2,0,0,0,3,0,0,0,5,0,0,0,2,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,1,0,0,0,2,0,0,0,5,0,0,0,2,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,7,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,7,0,0,0,3,0,0,0,5,0,0,0,4,0,0,0,1,0,0,0,7,0,0,0,4,0,0,0,3,0,0,0,5,0,0,0,3,0,0,0,3,0,0,0,2,0,0,0,5,0,0,0,6,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,5,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,5,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,4,0,0,0,6,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,9,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,3,0,0,0,5,0,0,0,255,255,255,255,0,1,0,0,255,255,255,255,0,0,128,191,0,0,0,0,4,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,8,0,0,0,8,0,0,0,4,0,0,0,4,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,1,0,0,0,8,0,0,0,8,0,0,0,8,0,0,0,4,0,0,0,4,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,1,0,0,1,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,7,0,0,0,8,0,0,0,9,0,0,0,10,0,0,0,11,0,0,0,13,0,0,0,15,0,0,0,17,0,0,0,19,0,0,0,23,0,0,0,27,0,0,0,31,0,0,0,35,0,0,0,43,0,0,0,51,0,0,0,59,0,0,0,67,0,0,0,83,0,0,0,99,0,0,0,115,0,0,0,131,0,0,0,163,0,0,0,195,0,0,0,227,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,6,0,0,0,6,0,0,0,7,0,0,0,7,0,0,0,8,0,0,0,8,0,0,0,9,0,0,0,9,0,0,0,10,0,0,0,10,0,0,0,11,0,0,0,11,0,0,0,12,0,0,0,12,0,0,0,13,0,0,0,13,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,7,0,0,0,9,0,0,0,13,0,0,0,17,0,0,0,25,0,0,0,33,0,0,0,49,0,0,0,65,0,0,0,97,0,0,0,129,0,0,0,193,0,0,0,1,1,0,0,129,1,0,0,1,2,0,0,1,3,0,0,1,4,0,0,1,6,0,0,1,8,0,0,1,12,0,0,1,16,0,0,1,24,0,0,1,32,0,0,1,48,0,0,1,64,0,0,1,96,0,0,0,0,0,0,0,0,0,0,20,0,0,0,0,0,0,0,0,0,128,63,0,0,0,0,0,0,0,0,0,0,128,191,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,191,0,0,0,0,0,0,0,0,0,0,128,63,0,0,128,63,0,0,0,0,0,0,0,0,0,0,128,191,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104,78,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,196,15,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,207,85,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,196,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,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,114,97,121,108,105,98,32,91,109,111,100,101,108,115,93,32,101,120,97,109,112,108,101,32,45,32,99,117,98,101,115,109,97,112,32,108,111,97,100,105,110,103,32,97,110,100,32,100,114,97,119,105,110,103,0,114,101,115,111,117,114,99,101,115,47,99,117,98,105,99,109,97,112,46,112,110,103,0,114,101,115,111,117,114,99,101,115,47,99,117,98,105,99,109,97,112,95,97,116,108,97,115,46,112,110,103,0,99,117,98,105,99,109,97,112,32,105,109,97,103,101,32,117,115,101,100,32,116,111,0,103,101,110,101,114,97,116,101,32,109,97,112,32,51,100,32,109,111,100,101,108,0,73,110,105,116,105,97,108,105,122,105,110,103,32,114,97,121,108,105,98,32,40,118,49,46,55,46,48,41,0,35,99,97,110,118,97,115,0,84,97,114,103,101,116,32,116,105,109,101,32,112,101,114,32,102,114,97,109,101,58,32,37,48,50,46,48,51,102,32,109,105,108,108,105,115,101,99,111,110,100,115,0,69,115,99,97,112,101,0,67,97,110,118,97,115,32,115,99,97,108,101,100,32,116,111,32,102,117,108,108,115,99,114,101,101,110,46,32,69,108,101,109,101,110,116,83,105,122,101,58,32,40,37,105,120,37,105,41,44,32,83,99,114,101,101,110,83,105,122,101,40,37,105,120,37,105,41,0,67,97,110,118,97,115,32,115,99,97,108,101,100,32,116,111,32,119,105,110,100,111,119,101,100,46,32,69,108,101,109,101,110,116,83,105,122,101,58,32,40,37,105,120,37,105,41,44,32,83,99,114,101,101,110,83,105,122,101,40,37,105,120,37,105,41,0,91,84,69,88,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,102,111,110,116,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,68,88,84,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,69,84,67,49,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,69,84,67,50,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,80,86,82,84,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,65,83,84,67,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,84,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,91,84,69,88,32,73,68,32,37,105,93,32,84,101,120,116,117,114,101,32,99,114,101,97,116,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,37,105,120,37,105,41,0,73,109,97,103,101,32,100,97,116,97,32,102,111,114,109,97,116,32,105,115,32,99,111,109,112,114,101,115,115,101,100,44,32,99,97,110,32,110,111,116,32,98,101,32,99,111,110,118,101,114,116,101,100,0,70,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,102,111,114,32,112,105,120,101,108,32,100,97,116,97,32,114,101,116,114,105,101,118,97,108,0,70,97,105,108,101,100,32,116,111,32,105,110,105,116,105,97,108,105,122,101,32,71,76,70,87,0,84,114,121,105,110,103,32,116,111,32,101,110,97,98,108,101,32,77,83,65,65,32,120,52,0,67,108,111,115,101,115,116,32,102,117,108,108,115,99,114,101,101,110,32,118,105,100,101,111,109,111,100,101,58,32,37,105,32,120,32,37,105,0,71,76,70,87,32,70,97,105,108,101,100,32,116,111,32,105,110,105,116,105,97,108,105,122,101,32,87,105,110,100,111,119,0,68,105,115,112,108,97,121,32,100,101,118,105,99,101,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,82,101,110,100,101,114,32,115,105,122,101,58,32,37,105,32,120,32,37,105,0,83,99,114,101,101,110,32,115,105,122,101,58,32,37,105,32,120,32,37,105,0,86,105,101,119,112,111,114,116,32,111,102,102,115,101,116,115,58,32,37,105,44,32,37,105,0,84,114,121,105,110,103,32,116,111,32,101,110,97,98,108,101,32,86,83,89,78,67,0,71,80,85,58,32,86,101,110,100,111,114,58,32,32,32,37,115,0,71,80,85,58,32,82,101,110,100,101,114,101,114,58,32,37,115,0,71,80,85,58,32,86,101,114,115,105,111,110,58,32,32,37,115,0,71,80,85,58,32,71,76,83,76,58,32,32,32,32,32,37,115,0,32,0,78,117,109,98,101,114,32,111,102,32,115,117,112,112,111,114,116,101,100,32,101,120,116,101,110,115,105,111,110,115,58,32,37,105,0,71,76,95,79,69,83,95,118,101,114,116,101,120,95,97,114,114,97,121,95,111,98,106,101,99,116,0,103,108,71,101,110,86,101,114,116,101,120,65,114,114,97,121,115,79,69,83,0,103,108,66,105,110,100,86,101,114,116,101,120,65,114,114,97,121,79,69,83,0,103,108,68,101,108,101,116,101,86,101,114,116,101,120,65,114,114,97,121,115,79,69,83,0,71,76,95,79,69,83,95,116,101,120,116,117,114,101,95,110,112,111,116,0,71,76,95,69,88,84,95,116,101,120,116,117,114,101,95,99,111,109,112,114,101,115,115,105,111,110,95,115,51,116,99,0,71,76,95,87,69,66,71,76,95,99,111,109,112,114,101,115,115,101,100,95,116,101,120,116,117,114,101,95,115,51,116,99,0,71,76,95,87,69,66,75,73,84,95,87,69,66,71,76,95,99,111,109,112,114,101,115,115,101,100,95,116,101,120,116,117,114,101,95,115,51,116,99,0,71,76,95,79,69,83,95,99,111,109,112,114,101,115,115,101,100,95,69,84,67,49,95,82,71,66,56,95,116,101,120,116,117,114,101,0,71,76,95,87,69,66,71,76,95,99,111,109,112,114,101,115,115,101,100,95,116,101,120,116,117,114,101,95,101,116,99,49,0,71,76,95,65,82,66,95,69,83,51,95,99,111,109,112,97,116,105,98,105,108,105,116,121,0,71,76,95,73,77,71,95,116,101,120,116,117,114,101,95,99,111,109,112,114,101,115,115,105,111,110,95,112,118,114,116,99,0,71,76,95,75,72,82,95,116,101,120,116,117,114,101,95,99,111,109,112,114,101,115,115,105,111,110,95,97,115,116,99,95,104,100,114,0,71,76,95,69,88,84,95,116,101,120,116,117,114,101,95,102,105,108,116,101,114,95,97,110,105,115,111,116,114,111,112,105,99,0,71,76,95,69,88,84,95,116,101,120,116,117,114,101,95,109,105,114,114,111,114,95,99,108,97,109,112,0,91,69,88,84,69,78,83,73,79,78,93,32,86,65,79,32,101,120,116,101,110,115,105,111,110,32,100,101,116,101,99,116,101,100,44,32,86,65,79,32,102,117,110,99,116,105,111,110,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,69,88,84,69,78,83,73,79,78,93,32,86,65,79,32,101,120,116,101,110,115,105,111,110,32,110,111,116,32,102,111,117,110,100,44,32,86,65,79,32,117,115,97,103,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,78,80,79,84,32,116,101,120,116,117,114,101,115,32,101,120,116,101,110,115,105,111,110,32,100,101,116,101,99,116,101,100,44,32,102,117,108,108,32,78,80,79,84,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,78,80,79,84,32,116,101,120,116,117,114,101,115,32,101,120,116,101,110,115,105,111,110,32,110,111,116,32,102,111,117,110,100,44,32,108,105,109,105,116,101,100,32,78,80,79,84,32,115,117,112,112,111,114,116,32,40,110,111,45,109,105,112,109,97,112,115,44,32,110,111,45,114,101,112,101,97,116,41,0,91,69,88,84,69,78,83,73,79,78,93,32,68,88,84,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,69,84,67,49,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,69,84,67,50,47,69,65,67,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,80,86,82,84,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,65,83,84,67,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,65,110,105,115,111,116,114,111,112,105,99,32,116,101,120,116,117,114,101,115,32,102,105,108,116,101,114,105,110,103,32,115,117,112,112,111,114,116,101,100,32,40,109,97,120,58,32,37,46,48,102,88,41,0,91,69,88,84,69,78,83,73,79,78,93,32,67,108,97,109,112,32,109,105,114,114,111,114,32,119,114,97,112,32,116,101,120,116,117,114,101,32,109,111,100,101,32,115,117,112,112,111,114,116,101,100,0,91,84,69,88,32,73,68,32,37,105,93,32,66,97,115,101,32,119,104,105,116,101,32,116,101,120,116,117,114,101,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,66,97,115,101,32,119,104,105,116,101,32,116,101,120,116,117,114,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,108,111,97,100,101,100,0,79,112,101,110,71,76,32,100,101,102,97,117,108,116,32,115,116,97,116,101,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,67,80,85,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,108,105,110,101,115,44,32,116,114,105,97,110,103,108,101,115,44,32,113,117,97,100,115,41,0,91,86,65,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,65,79,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,108,105,110,101,115,41,0,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,66,79,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,108,105,110,101,115,41,0,91,86,65,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,65,79,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,116,114,105,97,110,103,108,101,115,41,0,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,66,79,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,116,114,105,97,110,103,108,101,115,41,0,91,86,65,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,65,79,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,113,117,97,100,115,41,0,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,66,79,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,113,117,97,100,115,41,0,35,118,101,114,115,105,111,110,32,49,48,48,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,97,116,116,114,105,98,117,116,101,32,118,101,99,51,32,118,101,114,116,101,120,80,111,115,105,116,105,111,110,59,32,32,32,32,32,10,97,116,116,114,105,98,117,116,101,32,118,101,99,50,32,118,101,114,116,101,120,84,101,120,67,111,111,114,100,59,32,32,32,32,32,10,97,116,116,114,105,98,117,116,101,32,118,101,99,52,32,118,101,114,116,101,120,67,111,108,111,114,59,32,32,32,32,32,32,32,32,10,118,97,114,121,105,110,103,32,118,101,99,50,32,102,114,97,103,84,101,120,67,111,111,114,100,59,32,32,32,32,32,32,32,32,32,10,118,97,114,121,105,110,103,32,118,101,99,52,32,102,114,97,103,67,111,108,111,114,59,32,32,32,32,32,32,32,32,32,32,32,32,10,117,110,105,102,111,114,109,32,109,97,116,52,32,109,118,112,77,97,116,114,105,120,59,32,32,32,32,32,32,32,32,32,32,32,32,10,118,111,105,100,32,109,97,105,110,40,41,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,123,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,32,32,32,32,102,114,97,103,84,101,120,67,111,111,114,100,32,61,32,118,101,114,116,101,120,84,101,120,67,111,111,114,100,59,32,10,32,32,32,32,102,114,97,103,67,111,108,111,114,32,61,32,118,101,114,116,101,120,67,111,108,111,114,59,32,32,32,32,32,32,32,10,32,32,32,32,103,108,95,80,111,115,105,116,105,111,110,32,61,32,109,118,112,77,97,116,114,105,120,42,118,101,99,52,40,118,101,114,116,101,120,80,111,115,105,116,105,111,110,44,32,49,46,48,41,59,32,10,125,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,0,35,118,101,114,115,105,111,110,32,49,48,48,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,112,114,101,99,105,115,105,111,110,32,109,101,100,105,117,109,112,32,102,108,111,97,116,59,32,32,32,32,32,32,32,32,32,32,32,10,118,97,114,121,105,110,103,32,118,101,99,50,32,102,114,97,103,84,101,120,67,111,111,114,100,59,32,32,32,32,32,32,32,32,32,10,118,97,114,121,105,110,103,32,118,101,99,52,32,102,114,97,103,67,111,108,111,114,59,32,32,32,32,32,32,32,32,32,32,32,32,10,117,110,105,102,111,114,109,32,115,97,109,112,108,101,114,50,68,32,116,101,120,116,117,114,101,48,59,32,32,32,32,32,32,32,32,10,117,110,105,102,111,114,109,32,118,101,99,52,32,99,111,108,68,105,102,102,117,115,101,59,32,32,32,32,32,32,32,32,32,32,32,10,118,111,105,100,32,109,97,105,110,40,41,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,123,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,32,32,32,32,118,101,99,52,32,116,101,120,101,108,67,111,108,111,114,32,61,32,116,101,120,116,117,114,101,50,68,40,116,101,120,116,117,114,101,48,44,32,102,114,97,103,84,101,120,67,111,111,114,100,41,59,32,10,32,32,32,32,103,108,95,70,114,97,103,67,111,108,111,114,32,61,32,116,101,120,101,108,67,111,108,111,114,42,99,111,108,68,105,102,102,117,115,101,42,102,114,97,103,67,111,108,111,114,59,32,32,32,32,32,32,10,125,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,0,91,83,72,68,82,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,115,104,97,100,101,114,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,83,72,68,82,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,115,104,97,100,101,114,32,99,111,117,108,100,32,110,111,116,32,98,101,32,108,111,97,100,101,100,0,118,101,114,116,101,120,80,111,115,105,116,105,111,110,0,118,101,114,116,101,120,84,101,120,67,111,111,114,100,0,118,101,114,116,101,120,84,101,120,67,111,111,114,100,50,0,118,101,114,116,101,120,78,111,114,109,97,108,0,118,101,114,116,101,120,84,97,110,103,101,110,116,0,118,101,114,116,101,120,67,111,108,111,114,0,109,118,112,77,97,116,114,105,120,0,99,111,108,68,105,102,102,117,115,101,0,99,111,108,65,109,98,105,101,110,116,0,99,111,108,83,112,101,99,117,108,97,114,0,116,101,120,116,117,114,101,48,0,116,101,120,116,117,114,101,49,0,116,101,120,116,117,114,101,50,0,91,86,83,72,68,82,32,73,68,32,37,105,93,32,70,97,105,108,101,100,32,116,111,32,99,111,109,112,105,108,101,32,118,101,114,116,101,120,32,115,104,97,100,101,114,46,46,46,0,37,115,0,91,86,83,72,68,82,32,73,68,32,37,105,93,32,86,101,114,116,101,120,32,115,104,97,100,101,114,32,99,111,109,112,105,108,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,70,83,72,68,82,32,73,68,32,37,105,93,32,70,97,105,108,101,100,32,116,111,32,99,111,109,112,105,108,101,32,102,114,97,103,109,101,110,116,32,115,104,97,100,101,114,46,46,46,0,91,70,83,72,68,82,32,73,68,32,37,105,93,32,70,114,97,103,109,101,110,116,32,115,104,97,100,101,114,32,99,111,109,112,105,108,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,83,72,68,82,32,73,68,32,37,105,93,32,70,97,105,108,101,100,32,116,111,32,108,105,110,107,32,115,104,97,100,101,114,32,112,114,111,103,114,97,109,46,46,46,0,91,83,72,68,82,32,73,68,32,37,105,93,32,83,104,97,100,101,114,32,112,114,111,103,114,97,109,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,68,79,87,78,83,67,65,76,73,78,71,58,32,82,101,113,117,105,114,101,100,32,115,99,114,101,101,110,32,115,105,122,101,32,40,37,105,120,37,105,41,32,105,115,32,98,105,103,103,101,114,32,116,104,97,110,32,100,105,115,112,108,97,121,32,115,105,122,101,32,40,37,105,120,37,105,41,0,68,111,119,110,115,99,97,108,101,32,109,97,116,114,105,120,32,103,101,110,101,114,97,116,101,100,44,32,99,111,110,116,101,110,116,32,119,105,108,108,32,98,101,32,114,101,110,100,101,114,101,100,32,97,116,58,32,37,105,32,120,32,37,105,0,85,80,83,67,65,76,73,78,71,58,32,82,101,113,117,105,114,101,100,32,115,99,114,101,101,110,32,115,105,122,101,58,32,37,105,32,120,32,37,105,32,45,62,32,68,105,115,112,108,97,121,32,115,105,122,101,58,32,37,105,32,120,32,37,105,0,91,71,76,70,87,51,32,69,114,114,111,114,93,32,67,111,100,101,58,32,37,105,32,68,101,99,114,105,112,116,105,111,110,58,32,37,115,0,73,78,70,79,58,32,0,87,65,82,78,73,78,71,58,32,0,87,105,110,100,111,119,32,99,108,111,115,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,84,69,88,32,73,68,32,37,105,93,32,85,110,108,111,97,100,101,100,32,116,101,120,116,117,114,101,32,100,97,116,97,32,40,98,97,115,101,32,119,104,105,116,101,32,116,101,120,116,117,114,101,41,32,102,114,111,109,32,86,82,65,77,0,91,84,69,88,32,73,68,32,37,105,93,32,85,110,108,111,97,100,101,100,32,116,101,120,116,117,114,101,32,100,97,116,97,32,102,114,111,109,32,86,82,65,77,32,40,71,80,85,41,0,83,116,97,99,107,32,66,117,102,102,101,114,32,79,118,101,114,102,108,111,119,32,40,77,65,88,32,37,105,32,77,97,116,114,105,120,41,0,77,65,88,95,76,73,78,69,83,95,66,65,84,67,72,32,111,118,101,114,102,108,111,119,0,77,65,88,95,84,82,73,65,78,71,76,69,83,95,66,65,84,67,72,32,111,118,101,114,102,108,111,119,0,77,65,88,95,81,85,65,68,83,95,66,65,84,67,72,32,111,118,101,114,102,108,111,119,0,91,86,65,79,32,73,68,32,37,105,93,32,85,110,108,111,97,100,101,100,32,109,111,100,101,108,32,100,97,116,97,32,102,114,111,109,32,86,82,65,77,32,40,71,80,85,41,0,91,86,66,79,32,73,68,32,37,105,93,32,85,110,108,111,97,100,101,100,32,109,111,100,101,108,32,118,101,114,116,101,120,32,100,97,116,97,32,102,114,111,109,32,86,82,65,77,32,40,71,80,85,41,0,91,86,65,79,32,73,68,32,37,105,93,32,77,101,115,104,32,117,112,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,116,111,32,86,82,65,77,32,40,71,80,85,41,0,77,101,115,104,32,99,111,117,108,100,32,110,111,116,32,98,101,32,117,112,108,111,97,100,101,100,32,116,111,32,86,82,65,77,32,40,71,80,85,41,0,91,86,66,79,115,93,32,77,101,115,104,32,117,112,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,116,111,32,86,82,65,77,32,40,71,80,85,41,0,109,111,100,101,108,77,97,116,114,105,120,0,118,105,101,119,68,105,114,0,103,108,111,115,115,105,110,101,115,115,0,117,115,101,78,111,114,109,97,108,0,117,115,101,83,112,101,99,117,108,97,114,0,114,105,46,98,105,116,115,95,112,101,114,95,99,104,97,110,110,101,108,32,61,61,32,49,54,0,46,47,101,120,116,101,114,110,97,108,47,115,116,98,95,105,109,97,103,101,46,104,0,115,116,98,105,95,95,108,111,97,100,95,97,110,100,95,112,111,115,116,112,114,111,99,101,115,115,95,56,98,105,116,0,111,117,116,111,102,109,101,109,0,117,110,107,110,111,119,110,32,105,109,97,103,101,32,116,121,112,101,0,98,97,100,32,114,101,113,95,99,111,109,112,0,114,101,113,95,99,111,109,112,32,62,61,32,49,32,38,38,32,114,101,113,95,99,111,109,112,32,60,61,32,52,0,115,116,98,105,95,95,99,111,110,118,101,114,116,95,102,111,114,109,97,116,49,54,0,48,0,115,116,98,105,95,95,99,111,110,118,101,114,116,95,102,111,114,109,97,116,0,109,117,108,116,105,112,108,101,32,73,72,68,82,0,98,97,100,32,73,72,68,82,32,108,101,110,0,116,111,111,32,108,97,114,103,101,0,49,47,50,47,52,47,56,47,49,54,45,98,105,116,32,111,110,108,121,0,98,97,100,32,99,116,121,112,101,0,98,97,100,32,99,111,109,112,32,109,101,116,104,111,100,0,98,97,100,32,102,105,108,116,101,114,32,109,101,116,104,111,100,0,98,97,100,32,105,110,116,101,114,108,97,99,101,32,109,101,116,104,111,100,0,48,45,112,105,120,101,108,32,105,109,97,103,101,0,102,105,114,115,116,32,110,111,116,32,73,72,68,82,0,105,110,118,97,108,105,100,32,80,76,84,69,0,116,82,78,83,32,97,102,116,101,114,32,73,68,65,84,0,116,82,78,83,32,98,101,102,111,114,101,32,80,76,84,69,0,98,97,100,32,116,82,78,83,32,108,101,110,0,116,82,78,83,32,119,105,116,104,32,97,108,112,104,97,0,0,255,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], "i8", ALLOC_NONE, Runtime.GLOBAL_BASE);
  1563. /* memory initializer */ allocate([120,0,0,1,0,5,6,105,109,103,95,110,43,49,32,61,61,32,111,117,116,95,110,0,105,110,118,97,108,105,100,32,102,105,108,116,101,114,0,105,109,103,95,110,32,61,61,32,51,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,98,97,100,32,104,117,102,102,109,97,110,32,99,111,100,101,0,98,97,100,32,100,105,115,116,0,111,117,116,112,117,116,32,98,117,102,102,101,114,32,108,105,109,105,116,0,122,45,62,115,105,122,101,91,98,93,32,61,61,32,115,0,115,116,98,105,95,95,122,104,117,102,102,109,97,110,95,100,101,99,111,100,101,95,115,108,111,119,112,97,116,104,0,98,105,116,115,32,60,61,32,49,54,0,115,116,98,105,95,95,98,105,116,95,114,101,118,101,114,115,101,0,122,45,62,99,111,100,101,95,98,117,102,102,101,114,32,60,32,40,49,85,32,60,60,32,122,45,62,110,117,109,95,98,105,116,115,41,0,115,116,98,105,95,95,102,105,108,108,95,98,105,116,115,0,98,97,100,32,99,111,100,101,108,101,110,103,116,104,115,0,99,32,61,61,32,49,56,0,115,116,98,105,95,95,99,111,109,112,117,116,101,95,104,117,102,102,109,97,110,95,99,111,100,101,115,0,98,97,100,32,115,105,122,101,115,0,97,45,62,110,117,109,95,98,105,116,115,32,61,61,32,48,0,115,116,98,105,95,95,112,97,114,115,101,95,117,110,99,111,109,112,114,101,115,115,101,100,95,98,108,111,99,107,0,122,108,105,98,32,99,111,114,114,117,112,116,0,114,101,97,100,32,112,97,115,116,32,98,117,102,102,101,114,0,98,97,100,32,122,108,105,98,32,104,101,97,100,101,114,0,110,111,32,112,114,101,115,101,116,32,100,105,99,116,0,98,97,100,32,99,111,109,112,114,101,115,115,105,111,110,0,98,97,100,32,112,110,103,32,115,105,103,0,46,114,114,101,115,0,91,37,115,93,32,82,101,115,111,117,114,99,101,32,102,105,108,101,32,100,111,101,115,32,110,111,116,32,99,111,110,116,97,105,110,32,105,109,97,103,101,32,100,97,116,97,0,46,112,110,103,0,91,37,115,93,32,73,109,97,103,101,32,102,105,108,101,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,91,37,115,93,32,73,109,97,103,101,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,37,105,120,37,105,41,0,91,37,115,93,32,73,109,97,103,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,108,111,97,100,101,100,0,73,109,97,103,101,32,102,111,114,109,97,116,32,110,111,116,32,114,101,99,111,103,110,105,122,101,100,0,114,98,0,91,37,115,93,32,114,82,69,83,32,114,97,121,108,105,98,32,114,101,115,111,117,114,99,101,32,102,105,108,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,111,112,101,110,101,100,0,91,37,115,93,32,84,104,105,115,32,105,115,32,110,111,116,32,97,32,118,97,108,105,100,32,114,97,121,108,105,98,32,114,101,115,111,117,114,99,101,32,102,105,108,101,0,91,37,115,93,91,73,68,32,37,105,93,32,82,101,115,111,117,114,99,101,32,100,97,116,97,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,37,115,93,91,73,68,32,37,105,93,32,82,101,113,117,101,115,116,101,100,32,114,101,115,111,117,114,99,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,102,111,117,110,100,0,79,117,116,32,111,102,32,109,101,109,111,114,121,32,119,104,105,108,101,32,100,101,99,111,109,112,114,101,115,115,105,110,103,32,100,97,116,97,0,68,97,116,97,32,100,101,99,111,109,112,114,101,115,115,105,111,110,32,102,97,105,108,101,100,0,69,120,112,101,99,116,101,100,32,117,110,99,111,109,112,114,101,115,115,101,100,32,115,105,122,101,32,100,111,32,110,111,116,32,109,97,116,99,104,44,32,100,97,116,97,32,109,97,121,32,98,101,32,99,111,114,114,117,112,116,101,100,0,32,45,45,32,69,120,112,101,99,116,101,100,32,117,110,99,111,109,112,114,101,115,115,101,100,32,115,105,122,101,58,32,37,105,0,32,45,45,32,82,101,116,117,114,110,101,100,32,117,110,99,111,109,112,114,101,115,115,101,100,32,115,105,122,101,58,32,37,105,0,68,97,116,97,32,100,101,99,111,109,112,114,101,115,115,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,102,114,111,109,32,37,117,32,98,121,116,101,115,32,116,111,32,37,117,32,98,121,116,101,115,0,5,5,4,0,16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15,2,3,7,0,3,3,11,0,84,101,120,116,117,114,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,99,114,101,97,116,101,100,0,37,50,105,32,70,80,83,0,85,110,108,111,97,100,101,100,32,109,111,100,101,108,32,100,97,116,97,32,40,109,101,115,104,32,97,110,100,32,109,97,116,101,114,105,97,108,41,32,102,114,111,109,32,82,65,77,32,97,110,100,32,86,82,65,77,0,69,88,84,0,65,82,66,0,79,69,83,0,65,78,71,76,69,0,103,108,67,114,101,97,116,101,80,114,111,103,114,97,109,79,98,106,101,99,116,0,103,108,67,114,101,97,116,101,80,114,111,103,114,97,109,0,103,108,85,115,101,80,114,111,103,114,97,109,79,98,106,101,99,116,0,103,108,85,115,101,80,114,111,103,114,97,109,0,103,108,67,114,101,97,116,101,83,104,97,100,101,114,79,98,106,101,99,116,0,103,108,67,114,101,97,116,101,83,104,97,100,101,114,0,103,108,65,116,116,97,99,104,79,98,106,101,99,116,0,103,108,65,116,116,97,99,104,83,104,97,100,101,114,0,103,108,68,101,116,97,99,104,79,98,106,101,99,116,0,103,108,68,101,116,97,99,104,83,104,97,100,101,114,0,103,108,80,105,120,101,108,83,116,111,114,101,105,0,103,108,71,101,116,83,116,114,105,110,103,0,103,108,71,101,116,73,110,116,101,103,101,114,118,0,103,108,71,101,116,70,108,111,97,116,118,0,103,108,71,101,116,66,111,111,108,101,97,110,118,0,103,108,71,101,110,84,101,120,116,117,114,101,115,0,103,108,68,101,108,101,116,101,84,101,120,116,117,114,101,115,0,103,108,67,111,109,112,114,101,115,115,101,100,84,101,120,73,109,97,103,101,50,68,0,103,108,67,111,109,112,114,101,115,115,101,100,84,101,120,83,117,98,73,109,97,103,101,50,68,0,103,108,84,101,120,73,109,97,103,101,50,68,0,103,108,84,101,120,83,117,98,73,109,97,103,101,50,68,0,103,108,82,101,97,100,80,105,120,101,108,115,0,103,108,66,105,110,100,84,101,120,116,117,114,101,0,103,108,71,101,116,84,101,120,80,97,114,97,109,101,116,101,114,102,118,0,103,108,71,101,116,84,101,120,80,97,114,97,109,101,116,101,114,105,118,0,103,108,84,101,120,80,97,114,97,109,101,116,101,114,102,118,0,103,108,84,101,120,80,97,114,97,109,101,116,101,114,105,118,0,103,108,73,115,84,101,120,116,117,114,101,0,103,108,71,101,110,66,117,102,102,101,114,115,0,103,108,68,101,108,101,116,101,66,117,102,102,101,114,115,0,103,108,71,101,116,66,117,102,102,101,114,80,97,114,97,109,101,116,101,114,105,118,0,103,108,66,117,102,102,101,114,68,97,116,97,0,103,108,66,117,102,102,101,114,83,117,98,68,97,116,97,0,103,108,73,115,66,117,102,102,101,114,0,103,108,71,101,110,82,101,110,100,101,114,98,117,102,102,101,114,115,0,103,108,68,101,108,101,116,101,82,101,110,100,101,114,98,117,102,102,101,114,115,0,103,108,66,105,110,100,82,101,110,100,101,114,98,117,102,102,101,114,0,103,108,71,101,116,82,101,110,100,101,114,98,117,102,102,101,114,80,97,114,97,109,101,116,101,114,105,118,0,103,108,73,115,82,101,110,100,101,114,98,117,102,102,101,114,0,103,108,71,101,116,85,110,105,102,111,114,109,102,118,0,103,108,71,101,116,85,110,105,102,111,114,109,105,118,0,103,108,71,101,116,85,110,105,102,111,114,109,76,111,99,97,116,105,111,110,0,103,108,71,101,116,86,101,114,116,101,120,65,116,116,114,105,98,102,118,0,103,108,71,101,116,86,101,114,116,101,120,65,116,116,114,105,98,105,118,0,103,108,71,101,116,86,101,114,116,101,120,65,116,116,114,105,98,80,111,105,110,116,101,114,118,0,103,108,71,101,116,65,99,116,105,118,101,85,110,105,102,111,114,109,0,103,108,85,110,105,102,111,114,109,49,102,0,103,108,85,110,105,102,111,114,109,50,102,0,103,108,85,110,105,102,111,114,109,51,102,0,103,108,85,110,105,102,111,114,109,52,102,0,103,108,85,110,105,102,111,114,109,49,105,0,103,108,85,110,105,102,111,114,109,50,105,0,103,108,85,110,105,102,111,114,109,51,105,0,103,108,85,110,105,102,111,114,109,52,105,0,103,108,85,110,105,102,111,114,109,49,105,118,0,103,108,85,110,105,102,111,114,109,50,105,118,0,103,108,85,110,105,102,111,114,109,51,105,118,0,103,108,85,110,105,102,111,114,109,52,105,118,0,103,108,85,110,105,102,111,114,109,49,102,118,0,103,108,85,110,105,102,111,114,109,50,102,118,0,103,108,85,110,105,102,111,114,109,51,102,118,0,103,108,85,110,105,102,111,114,109,52,102,118,0,103,108,85,110,105,102,111,114,109,77,97,116,114,105,120,50,102,118,0,103,108,85,110,105,102,111,114,109,77,97,116,114,105,120,51,102,118,0,103,108,85,110,105,102,111,114,109,77,97,116,114,105,120,52,102,118,0,103,108,66,105,110,100,66,117,102,102,101,114,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,49,102,118,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,50,102,118,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,51,102,118,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,52,102,118,0,103,108,71,101,116,65,116,116,114,105,98,76,111,99,97,116,105,111,110,0,103,108,71,101,116,65,99,116,105,118,101,65,116,116,114,105,98,0,103,108,68,101,108,101,116,101,83,104,97,100,101,114,0,103,108,71,101,116,65,116,116,97,99,104,101,100,83,104,97,100,101,114,115,0,103,108,83,104,97,100,101,114,83,111,117,114,99,101,0,103,108,71,101,116,83,104,97,100,101,114,83,111,117,114,99,101,0,103,108,67,111,109,112,105,108,101,83,104,97,100,101,114,0,103,108,71,101,116,83,104,97,100,101,114,73,110,102,111,76,111,103,0,103,108,71,101,116,83,104,97,100,101,114,105,118,0,103,108,71,101,116,80,114,111,103,114,97,109,105,118,0,103,108,73,115,83,104,97,100,101,114,0,103,108,68,101,108,101,116,101,80,114,111,103,114,97,109,0,103,108,71,101,116,83,104,97,100,101,114,80,114,101,99,105,115,105,111,110,70,111,114,109,97,116,0,103,108,76,105,110,107,80,114,111,103,114,97,109,0,103,108,71,101,116,80,114,111,103,114,97,109,73,110,102,111,76,111,103,0,103,108,86,97,108,105,100,97,116,101,80,114,111,103,114,97,109,0,103,108,73,115,80,114,111,103,114,97,109,0,103,108,66,105,110,100,65,116,116,114,105,98,76,111,99,97,116,105,111,110,0,103,108,66,105,110,100,70,114,97,109,101,98,117,102,102,101,114,0,103,108,71,101,110,70,114,97,109,101,98,117,102,102,101,114,115,0,103,108,68,101,108,101,116,101,70,114,97,109,101,98,117,102,102,101,114,115,0,103,108,70,114,97,109,101,98,117,102,102,101,114,82,101,110,100,101,114,98,117,102,102,101,114,0,103,108,70,114,97,109,101,98,117,102,102,101,114,84,101,120,116,117,114,101,50,68,0,103,108,71,101,116,70,114,97,109,101,98,117,102,102,101,114,65,116,116,97,99,104,109,101,110,116,80,97,114,97,109,101,116,101,114,105,118,0,103,108,73,115,70,114,97,109,101,98,117,102,102,101,114,0,103,108,68,101,108,101,116,101,79,98,106,101,99,116,0,103,108,71,101,116,79,98,106,101,99,116,80,97,114,97,109,101,116,101,114,105,118,0,103,108,71,101,116,73,110,102,111,76,111,103,0,103,108,66,105,110,100,80,114,111,103,114,97,109,0,103,108,71,101,116,80,111,105,110,116,101,114,118,0,103,108,68,114,97,119,82,97,110,103,101,69,108,101,109,101,110,116,115,0,103,108,69,110,97,98,108,101,67,108,105,101,110,116,83,116,97,116,101,0,103,108,86,101,114,116,101,120,80,111,105,110,116,101,114,0,103,108,84,101,120,67,111,111,114,100,80,111,105,110,116,101,114,0,103,108,78,111,114,109,97,108,80,111,105,110,116,101,114,0,103,108,67,111,108,111,114,80,111,105,110,116,101,114,0,103,108,67,108,105,101,110,116,65,99,116,105,118,101,84,101,120,116,117,114,101,0,103,108,71,101,110,86,101,114,116,101,120,65,114,114,97,121,115,0,103,108,68,101,108,101,116,101,86,101,114,116,101,120,65,114,114,97,121,115,0,103,108,66,105,110,100,86,101,114,116,101,120,65,114,114,97,121,0,103,108,77,97,116,114,105,120,77,111,100,101,0,103,108,76,111,97,100,73,100,101,110,116,105,116,121,0,103,108,76,111,97,100,77,97,116,114,105,120,102,0,103,108,70,114,117,115,116,117,109,0,103,108,82,111,116,97,116,101,102,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,80,111,105,110,116,101,114,0,103,108,69,110,97,98,108,101,86,101,114,116,101,120,65,116,116,114,105,98,65,114,114,97,121,0,103,108,68,105,115,97,98,108,101,86,101,114,116,101,120,65,116,116,114,105,98,65,114,114,97,121,0,103,108,68,114,97,119,65,114,114,97,121,115,0,103,108,68,114,97,119,69,108,101,109,101,110,116,115,0,103,108,83,104,97,100,101,114,66,105,110,97,114,121,0,103,108,82,101,108,101,97,115,101,83,104,97,100,101,114,67,111,109,112,105,108,101,114,0,103,108,71,101,116,69,114,114,111,114,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,68,105,118,105,115,111,114,0,103,108,68,114,97,119,65,114,114,97,121,115,73,110,115,116,97,110,99,101,100,0,103,108,68,114,97,119,69,108,101,109,101,110,116,115,73,110,115,116,97,110,99,101,100,0,103,108,70,105,110,105,115,104,0,103,108,70,108,117,115,104,0,103,108,67,108,101,97,114,68,101,112,116,104,0,103,108,67,108,101,97,114,68,101,112,116,104,102,0,103,108,68,101,112,116,104,70,117,110,99,0,103,108,69,110,97,98,108,101,0,103,108,68,105,115,97,98,108,101,0,103,108,70,114,111,110,116,70,97,99,101,0,103,108,67,117,108,108,70,97,99,101,0,103,108,67,108,101,97,114,0,103,108,76,105,110,101,87,105,100,116,104,0,103,108,67,108,101,97,114,83,116,101,110,99,105,108,0,103,108,68,101,112,116,104,77,97,115,107,0,103,108,83,116,101,110,99,105,108,77,97,115,107,0,103,108,67,104,101,99,107,70,114,97,109,101,98,117,102,102,101,114,83,116,97,116,117,115,0,103,108,71,101,110,101,114,97,116,101,77,105,112,109,97,112,0,103,108,65,99,116,105,118,101,84,101,120,116,117,114,101,0,103,108,66,108,101,110,100,69,113,117,97,116,105,111,110,0,103,108,73,115,69,110,97,98,108,101,100,0,103,108,66,108,101,110,100,70,117,110,99,0,103,108,66,108,101,110,100,69,113,117,97,116,105,111,110,83,101,112,97,114,97,116,101,0,103,108,68,101,112,116,104,82,97,110,103,101,0,103,108,68,101,112,116,104,82,97,110,103,101,102,0,103,108,83,116,101,110,99,105,108,77,97,115,107,83,101,112,97,114,97,116,101,0,103,108,72,105,110,116,0,103,108,80,111,108,121,103,111,110,79,102,102,115,101,116,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,49,102,0,103,108,83,97,109,112,108,101,67,111,118,101,114,97,103,101,0,103,108,84,101,120,80,97,114,97,109,101,116,101,114,105,0,103,108,84,101,120,80,97,114,97,109,101,116,101,114,102,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,50,102,0,103,108,83,116,101,110,99,105,108,70,117,110,99,0,103,108,83,116,101,110,99,105,108,79,112,0,103,108,86,105,101,119,112,111,114,116,0,103,108,67,108,101,97,114,67,111,108,111,114,0,103,108,83,99,105,115,115,111,114,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,51,102,0,103,108,67,111,108,111,114,77,97,115,107,0,103,108,82,101,110,100,101,114,98,117,102,102,101,114,83,116,111,114,97,103,101,0,103,108,66,108,101,110,100,70,117,110,99,83,101,112,97,114,97,116,101,0,103,108,66,108,101,110,100,67,111,108,111,114,0,103,108,83,116,101,110,99,105,108,70,117,110,99,83,101,112,97,114,97,116,101,0,103,108,83,116,101,110,99,105,108,79,112,83,101,112,97,114,97,116,101,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,52,102,0,103,108,67,111,112,121,84,101,120,73,109,97,103,101,50,68,0,103,108,67,111,112,121,84,101,120,83,117,98,73,109,97,103,101,50,68,0,103,108,68,114,97,119,66,117,102,102,101,114,115,0,123,32,77,111,100,117,108,101,46,112,114,105,110,116,69,114,114,40,39,98,97,100,32,110,97,109,101,32,105,110,32,103,101,116,80,114,111,99,65,100,100,114,101,115,115,58,32,39,32,43,32,91,80,111,105,110,116,101,114,95,115,116,114,105,110,103,105,102,121,40,36,48,41,44,32,80,111,105,110,116,101,114,95,115,116,114,105,110,103,105,102,121,40,36,49,41,93,41,59,32,125,0,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,110,97,110,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,114,119,97,0], "i8", ALLOC_NONE, Runtime.GLOBAL_BASE+10240);
  1564. /* no memory initializer */
  1565. var tempDoublePtr = STATICTOP; STATICTOP += 16;
  1566. assert(tempDoublePtr % 8 == 0);
  1567. function copyTempFloat(ptr) { // functions, because inlining this code increases code size too much
  1568. HEAP8[tempDoublePtr] = HEAP8[ptr];
  1569. HEAP8[tempDoublePtr+1] = HEAP8[ptr+1];
  1570. HEAP8[tempDoublePtr+2] = HEAP8[ptr+2];
  1571. HEAP8[tempDoublePtr+3] = HEAP8[ptr+3];
  1572. }
  1573. function copyTempDouble(ptr) {
  1574. HEAP8[tempDoublePtr] = HEAP8[ptr];
  1575. HEAP8[tempDoublePtr+1] = HEAP8[ptr+1];
  1576. HEAP8[tempDoublePtr+2] = HEAP8[ptr+2];
  1577. HEAP8[tempDoublePtr+3] = HEAP8[ptr+3];
  1578. HEAP8[tempDoublePtr+4] = HEAP8[ptr+4];
  1579. HEAP8[tempDoublePtr+5] = HEAP8[ptr+5];
  1580. HEAP8[tempDoublePtr+6] = HEAP8[ptr+6];
  1581. HEAP8[tempDoublePtr+7] = HEAP8[ptr+7];
  1582. }
  1583. // {{PRE_LIBRARY}}
  1584. var GL={counter:1,lastError:0,buffers:[],mappedBuffers:{},programs:[],framebuffers:[],renderbuffers:[],textures:[],uniforms:[],shaders:[],vaos:[],contexts:[],currentContext:null,offscreenCanvases:{},timerQueriesEXT:[],byteSizeByTypeRoot:5120,byteSizeByType:[1,1,2,2,4,4,4,2,3,4,8],programInfos:{},stringCache:{},tempFixedLengthArray:[],packAlignment:4,unpackAlignment:4,init:function () {
  1585. GL.miniTempBuffer = new Float32Array(GL.MINI_TEMP_BUFFER_SIZE);
  1586. for (var i = 0; i < GL.MINI_TEMP_BUFFER_SIZE; i++) {
  1587. GL.miniTempBufferViews[i] = GL.miniTempBuffer.subarray(0, i+1);
  1588. }
  1589. // For functions such as glDrawBuffers, glInvalidateFramebuffer and glInvalidateSubFramebuffer that need to pass a short array to the WebGL API,
  1590. // create a set of short fixed-length arrays to avoid having to generate any garbage when calling those functions.
  1591. for (var i = 0; i < 32; i++) {
  1592. GL.tempFixedLengthArray.push(new Array(i));
  1593. }
  1594. },recordError:function recordError(errorCode) {
  1595. if (!GL.lastError) {
  1596. GL.lastError = errorCode;
  1597. }
  1598. },getNewId:function (table) {
  1599. var ret = GL.counter++;
  1600. for (var i = table.length; i < ret; i++) {
  1601. table[i] = null;
  1602. }
  1603. return ret;
  1604. },MINI_TEMP_BUFFER_SIZE:256,miniTempBuffer:null,miniTempBufferViews:[0],getSource:function (shader, count, string, length) {
  1605. var source = '';
  1606. for (var i = 0; i < count; ++i) {
  1607. var frag;
  1608. if (length) {
  1609. var len = HEAP32[(((length)+(i*4))>>2)];
  1610. if (len < 0) {
  1611. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)]);
  1612. } else {
  1613. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)], len);
  1614. }
  1615. } else {
  1616. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)]);
  1617. }
  1618. source += frag;
  1619. }
  1620. return source;
  1621. },createContext:function (canvas, webGLContextAttributes) {
  1622. if (typeof webGLContextAttributes['majorVersion'] === 'undefined' && typeof webGLContextAttributes['minorVersion'] === 'undefined') {
  1623. webGLContextAttributes['majorVersion'] = 1;
  1624. webGLContextAttributes['minorVersion'] = 0;
  1625. }
  1626. var ctx;
  1627. var errorInfo = '?';
  1628. function onContextCreationError(event) {
  1629. errorInfo = event.statusMessage || errorInfo;
  1630. }
  1631. try {
  1632. canvas.addEventListener('webglcontextcreationerror', onContextCreationError, false);
  1633. try {
  1634. if (webGLContextAttributes['majorVersion'] == 1 && webGLContextAttributes['minorVersion'] == 0) {
  1635. ctx = canvas.getContext("webgl", webGLContextAttributes) || canvas.getContext("experimental-webgl", webGLContextAttributes);
  1636. } else if (webGLContextAttributes['majorVersion'] == 2 && webGLContextAttributes['minorVersion'] == 0) {
  1637. ctx = canvas.getContext("webgl2", webGLContextAttributes) || canvas.getContext("experimental-webgl2", webGLContextAttributes);
  1638. } else {
  1639. throw 'Unsupported WebGL context version ' + majorVersion + '.' + minorVersion + '!'
  1640. }
  1641. } finally {
  1642. canvas.removeEventListener('webglcontextcreationerror', onContextCreationError, false);
  1643. }
  1644. if (!ctx) throw ':(';
  1645. } catch (e) {
  1646. Module.print('Could not create canvas: ' + [errorInfo, e, JSON.stringify(webGLContextAttributes)]);
  1647. return 0;
  1648. }
  1649. // possible GL_DEBUG entry point: ctx = wrapDebugGL(ctx);
  1650. if (!ctx) return 0;
  1651. return GL.registerContext(ctx, webGLContextAttributes);
  1652. },registerContext:function (ctx, webGLContextAttributes) {
  1653. var handle = GL.getNewId(GL.contexts);
  1654. var context = {
  1655. handle: handle,
  1656. attributes: webGLContextAttributes,
  1657. version: webGLContextAttributes['majorVersion'],
  1658. GLctx: ctx
  1659. };
  1660. // Store the created context object so that we can access the context given a canvas without having to pass the parameters again.
  1661. if (ctx.canvas) ctx.canvas.GLctxObject = context;
  1662. GL.contexts[handle] = context;
  1663. if (typeof webGLContextAttributes['enableExtensionsByDefault'] === 'undefined' || webGLContextAttributes['enableExtensionsByDefault']) {
  1664. GL.initExtensions(context);
  1665. }
  1666. return handle;
  1667. },makeContextCurrent:function (contextHandle) {
  1668. var context = GL.contexts[contextHandle];
  1669. if (!context) return false;
  1670. GLctx = Module.ctx = context.GLctx; // Active WebGL context object.
  1671. GL.currentContext = context; // Active Emscripten GL layer context object.
  1672. return true;
  1673. },getContext:function (contextHandle) {
  1674. return GL.contexts[contextHandle];
  1675. },deleteContext:function (contextHandle) {
  1676. if (GL.currentContext === GL.contexts[contextHandle]) GL.currentContext = null;
  1677. if (typeof JSEvents === 'object') JSEvents.removeAllHandlersOnTarget(GL.contexts[contextHandle].GLctx.canvas); // Release all JS event handlers on the DOM element that the GL context is associated with since the context is now deleted.
  1678. if (GL.contexts[contextHandle] && GL.contexts[contextHandle].GLctx.canvas) GL.contexts[contextHandle].GLctx.canvas.GLctxObject = undefined; // Make sure the canvas object no longer refers to the context object so there are no GC surprises.
  1679. GL.contexts[contextHandle] = null;
  1680. },initExtensions:function (context) {
  1681. // If this function is called without a specific context object, init the extensions of the currently active context.
  1682. if (!context) context = GL.currentContext;
  1683. if (context.initExtensionsDone) return;
  1684. context.initExtensionsDone = true;
  1685. var GLctx = context.GLctx;
  1686. context.maxVertexAttribs = GLctx.getParameter(GLctx.MAX_VERTEX_ATTRIBS);
  1687. // Detect the presence of a few extensions manually, this GL interop layer itself will need to know if they exist.
  1688. if (context.version < 2) {
  1689. // Extension available from Firefox 26 and Google Chrome 30
  1690. var instancedArraysExt = GLctx.getExtension('ANGLE_instanced_arrays');
  1691. if (instancedArraysExt) {
  1692. GLctx['vertexAttribDivisor'] = function(index, divisor) { instancedArraysExt['vertexAttribDivisorANGLE'](index, divisor); };
  1693. GLctx['drawArraysInstanced'] = function(mode, first, count, primcount) { instancedArraysExt['drawArraysInstancedANGLE'](mode, first, count, primcount); };
  1694. GLctx['drawElementsInstanced'] = function(mode, count, type, indices, primcount) { instancedArraysExt['drawElementsInstancedANGLE'](mode, count, type, indices, primcount); };
  1695. }
  1696. // Extension available from Firefox 25 and WebKit
  1697. var vaoExt = GLctx.getExtension('OES_vertex_array_object');
  1698. if (vaoExt) {
  1699. GLctx['createVertexArray'] = function() { return vaoExt['createVertexArrayOES'](); };
  1700. GLctx['deleteVertexArray'] = function(vao) { vaoExt['deleteVertexArrayOES'](vao); };
  1701. GLctx['bindVertexArray'] = function(vao) { vaoExt['bindVertexArrayOES'](vao); };
  1702. GLctx['isVertexArray'] = function(vao) { return vaoExt['isVertexArrayOES'](vao); };
  1703. }
  1704. var drawBuffersExt = GLctx.getExtension('WEBGL_draw_buffers');
  1705. if (drawBuffersExt) {
  1706. GLctx['drawBuffers'] = function(n, bufs) { drawBuffersExt['drawBuffersWEBGL'](n, bufs); };
  1707. }
  1708. }
  1709. GLctx.disjointTimerQueryExt = GLctx.getExtension("EXT_disjoint_timer_query");
  1710. // These are the 'safe' feature-enabling extensions that don't add any performance impact related to e.g. debugging, and
  1711. // should be enabled by default so that client GLES2/GL code will not need to go through extra hoops to get its stuff working.
  1712. // As new extensions are ratified at http://www.khronos.org/registry/webgl/extensions/ , feel free to add your new extensions
  1713. // here, as long as they don't produce a performance impact for users that might not be using those extensions.
  1714. // E.g. debugging-related extensions should probably be off by default.
  1715. var automaticallyEnabledExtensions = [ "OES_texture_float", "OES_texture_half_float", "OES_standard_derivatives",
  1716. "OES_vertex_array_object", "WEBGL_compressed_texture_s3tc", "WEBGL_depth_texture",
  1717. "OES_element_index_uint", "EXT_texture_filter_anisotropic", "ANGLE_instanced_arrays",
  1718. "OES_texture_float_linear", "OES_texture_half_float_linear", "WEBGL_compressed_texture_atc",
  1719. "WEBGL_compressed_texture_pvrtc", "EXT_color_buffer_half_float", "WEBGL_color_buffer_float",
  1720. "EXT_frag_depth", "EXT_sRGB", "WEBGL_draw_buffers", "WEBGL_shared_resources",
  1721. "EXT_shader_texture_lod", "EXT_color_buffer_float"];
  1722. function shouldEnableAutomatically(extension) {
  1723. var ret = false;
  1724. automaticallyEnabledExtensions.forEach(function(include) {
  1725. if (ext.indexOf(include) != -1) {
  1726. ret = true;
  1727. }
  1728. });
  1729. return ret;
  1730. }
  1731. var exts = GLctx.getSupportedExtensions();
  1732. if (exts && exts.length > 0) {
  1733. GLctx.getSupportedExtensions().forEach(function(ext) {
  1734. if (automaticallyEnabledExtensions.indexOf(ext) != -1) {
  1735. GLctx.getExtension(ext); // Calling .getExtension enables that extension permanently, no need to store the return value to be enabled.
  1736. }
  1737. });
  1738. }
  1739. },populateUniformTable:function (program) {
  1740. var p = GL.programs[program];
  1741. GL.programInfos[program] = {
  1742. uniforms: {},
  1743. maxUniformLength: 0, // This is eagerly computed below, since we already enumerate all uniforms anyway.
  1744. maxAttributeLength: -1, // This is lazily computed and cached, computed when/if first asked, "-1" meaning not computed yet.
  1745. maxUniformBlockNameLength: -1 // Lazily computed as well
  1746. };
  1747. var ptable = GL.programInfos[program];
  1748. var utable = ptable.uniforms;
  1749. // A program's uniform table maps the string name of an uniform to an integer location of that uniform.
  1750. // The global GL.uniforms map maps integer locations to WebGLUniformLocations.
  1751. var numUniforms = GLctx.getProgramParameter(p, GLctx.ACTIVE_UNIFORMS);
  1752. for (var i = 0; i < numUniforms; ++i) {
  1753. var u = GLctx.getActiveUniform(p, i);
  1754. var name = u.name;
  1755. ptable.maxUniformLength = Math.max(ptable.maxUniformLength, name.length+1);
  1756. // Strip off any trailing array specifier we might have got, e.g. "[0]".
  1757. if (name.indexOf(']', name.length-1) !== -1) {
  1758. var ls = name.lastIndexOf('[');
  1759. name = name.slice(0, ls);
  1760. }
  1761. // Optimize memory usage slightly: If we have an array of uniforms, e.g. 'vec3 colors[3];', then
  1762. // only store the string 'colors' in utable, and 'colors[0]', 'colors[1]' and 'colors[2]' will be parsed as 'colors'+i.
  1763. // Note that for the GL.uniforms table, we still need to fetch the all WebGLUniformLocations for all the indices.
  1764. var loc = GLctx.getUniformLocation(p, name);
  1765. if (loc != null)
  1766. {
  1767. var id = GL.getNewId(GL.uniforms);
  1768. utable[name] = [u.size, id];
  1769. GL.uniforms[id] = loc;
  1770. for (var j = 1; j < u.size; ++j) {
  1771. var n = name + '['+j+']';
  1772. loc = GLctx.getUniformLocation(p, n);
  1773. id = GL.getNewId(GL.uniforms);
  1774. GL.uniforms[id] = loc;
  1775. }
  1776. }
  1777. }
  1778. }};function _emscripten_glIsRenderbuffer(renderbuffer) {
  1779. var rb = GL.renderbuffers[renderbuffer];
  1780. if (!rb) return 0;
  1781. return GLctx.isRenderbuffer(rb);
  1782. }
  1783. function _emscripten_glStencilMaskSeparate(x0, x1) { GLctx['stencilMaskSeparate'](x0, x1) }
  1784. function _emscripten_get_now() { abort() }
  1785. function _emscripten_set_main_loop_timing(mode, value) {
  1786. Browser.mainLoop.timingMode = mode;
  1787. Browser.mainLoop.timingValue = value;
  1788. if (!Browser.mainLoop.func) {
  1789. console.error('emscripten_set_main_loop_timing: Cannot set timing mode for main loop since a main loop does not exist! Call emscripten_set_main_loop first to set one up.');
  1790. return 1; // Return non-zero on failure, can't set timing mode when there is no main loop.
  1791. }
  1792. if (mode == 0 /*EM_TIMING_SETTIMEOUT*/) {
  1793. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_setTimeout() {
  1794. var timeUntilNextTick = Math.max(0, Browser.mainLoop.tickStartTime + value - _emscripten_get_now())|0;
  1795. setTimeout(Browser.mainLoop.runner, timeUntilNextTick); // doing this each time means that on exception, we stop
  1796. };
  1797. Browser.mainLoop.method = 'timeout';
  1798. } else if (mode == 1 /*EM_TIMING_RAF*/) {
  1799. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_rAF() {
  1800. Browser.requestAnimationFrame(Browser.mainLoop.runner);
  1801. };
  1802. Browser.mainLoop.method = 'rAF';
  1803. } else if (mode == 2 /*EM_TIMING_SETIMMEDIATE*/) {
  1804. if (!window['setImmediate']) {
  1805. // Emulate setImmediate. (note: not a complete polyfill, we don't emulate clearImmediate() to keep code size to minimum, since not needed)
  1806. var setImmediates = [];
  1807. var emscriptenMainLoopMessageId = 'setimmediate';
  1808. function Browser_setImmediate_messageHandler(event) {
  1809. if (event.source === window && event.data === emscriptenMainLoopMessageId) {
  1810. event.stopPropagation();
  1811. setImmediates.shift()();
  1812. }
  1813. }
  1814. window.addEventListener("message", Browser_setImmediate_messageHandler, true);
  1815. window['setImmediate'] = function Browser_emulated_setImmediate(func) {
  1816. setImmediates.push(func);
  1817. if (ENVIRONMENT_IS_WORKER) {
  1818. if (Module['setImmediates'] === undefined) Module['setImmediates'] = [];
  1819. Module['setImmediates'].push(func);
  1820. window.postMessage({target: emscriptenMainLoopMessageId}); // In --proxy-to-worker, route the message via proxyClient.js
  1821. } else window.postMessage(emscriptenMainLoopMessageId, "*"); // On the main thread, can just send the message to itself.
  1822. }
  1823. }
  1824. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_setImmediate() {
  1825. window['setImmediate'](Browser.mainLoop.runner);
  1826. };
  1827. Browser.mainLoop.method = 'immediate';
  1828. }
  1829. return 0;
  1830. }function _emscripten_set_main_loop(func, fps, simulateInfiniteLoop, arg, noSetTiming) {
  1831. Module['noExitRuntime'] = true;
  1832. assert(!Browser.mainLoop.func, 'emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters.');
  1833. Browser.mainLoop.func = func;
  1834. Browser.mainLoop.arg = arg;
  1835. var browserIterationFunc;
  1836. if (typeof arg !== 'undefined') {
  1837. browserIterationFunc = function() {
  1838. Module['dynCall_vi'](func, arg);
  1839. };
  1840. } else {
  1841. browserIterationFunc = function() {
  1842. Module['dynCall_v'](func);
  1843. };
  1844. }
  1845. var thisMainLoopId = Browser.mainLoop.currentlyRunningMainloop;
  1846. Browser.mainLoop.runner = function Browser_mainLoop_runner() {
  1847. if (ABORT) return;
  1848. if (Browser.mainLoop.queue.length > 0) {
  1849. var start = Date.now();
  1850. var blocker = Browser.mainLoop.queue.shift();
  1851. blocker.func(blocker.arg);
  1852. if (Browser.mainLoop.remainingBlockers) {
  1853. var remaining = Browser.mainLoop.remainingBlockers;
  1854. var next = remaining%1 == 0 ? remaining-1 : Math.floor(remaining);
  1855. if (blocker.counted) {
  1856. Browser.mainLoop.remainingBlockers = next;
  1857. } else {
  1858. // not counted, but move the progress along a tiny bit
  1859. next = next + 0.5; // do not steal all the next one's progress
  1860. Browser.mainLoop.remainingBlockers = (8*remaining + next)/9;
  1861. }
  1862. }
  1863. console.log('main loop blocker "' + blocker.name + '" took ' + (Date.now() - start) + ' ms'); //, left: ' + Browser.mainLoop.remainingBlockers);
  1864. Browser.mainLoop.updateStatus();
  1865. // catches pause/resume main loop from blocker execution
  1866. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1867. setTimeout(Browser.mainLoop.runner, 0);
  1868. return;
  1869. }
  1870. // catch pauses from non-main loop sources
  1871. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1872. // Implement very basic swap interval control
  1873. Browser.mainLoop.currentFrameNumber = Browser.mainLoop.currentFrameNumber + 1 | 0;
  1874. if (Browser.mainLoop.timingMode == 1/*EM_TIMING_RAF*/ && Browser.mainLoop.timingValue > 1 && Browser.mainLoop.currentFrameNumber % Browser.mainLoop.timingValue != 0) {
  1875. // Not the scheduled time to render this frame - skip.
  1876. Browser.mainLoop.scheduler();
  1877. return;
  1878. } else if (Browser.mainLoop.timingMode == 0/*EM_TIMING_SETTIMEOUT*/) {
  1879. Browser.mainLoop.tickStartTime = _emscripten_get_now();
  1880. }
  1881. // Signal GL rendering layer that processing of a new frame is about to start. This helps it optimize
  1882. // VBO double-buffering and reduce GPU stalls.
  1883. if (Browser.mainLoop.method === 'timeout' && Module.ctx) {
  1884. Module.printErr('Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!');
  1885. Browser.mainLoop.method = ''; // just warn once per call to set main loop
  1886. }
  1887. Browser.mainLoop.runIter(browserIterationFunc);
  1888. checkStackCookie();
  1889. // catch pauses from the main loop itself
  1890. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1891. // Queue new audio data. This is important to be right after the main loop invocation, so that we will immediately be able
  1892. // to queue the newest produced audio samples.
  1893. // TODO: Consider adding pre- and post- rAF callbacks so that GL.newRenderingFrameStarted() and SDL.audio.queueNewAudioData()
  1894. // do not need to be hardcoded into this function, but can be more generic.
  1895. if (typeof SDL === 'object' && SDL.audio && SDL.audio.queueNewAudioData) SDL.audio.queueNewAudioData();
  1896. Browser.mainLoop.scheduler();
  1897. }
  1898. if (!noSetTiming) {
  1899. if (fps && fps > 0) _emscripten_set_main_loop_timing(0/*EM_TIMING_SETTIMEOUT*/, 1000.0 / fps);
  1900. else _emscripten_set_main_loop_timing(1/*EM_TIMING_RAF*/, 1); // Do rAF by rendering each frame (no decimating)
  1901. Browser.mainLoop.scheduler();
  1902. }
  1903. if (simulateInfiniteLoop) {
  1904. throw 'SimulateInfiniteLoop';
  1905. }
  1906. }var Browser={mainLoop:{scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:function () {
  1907. Browser.mainLoop.scheduler = null;
  1908. Browser.mainLoop.currentlyRunningMainloop++; // Incrementing this signals the previous main loop that it's now become old, and it must return.
  1909. },resume:function () {
  1910. Browser.mainLoop.currentlyRunningMainloop++;
  1911. var timingMode = Browser.mainLoop.timingMode;
  1912. var timingValue = Browser.mainLoop.timingValue;
  1913. var func = Browser.mainLoop.func;
  1914. Browser.mainLoop.func = null;
  1915. _emscripten_set_main_loop(func, 0, false, Browser.mainLoop.arg, true /* do not set timing and call scheduler, we will do it on the next lines */);
  1916. _emscripten_set_main_loop_timing(timingMode, timingValue);
  1917. Browser.mainLoop.scheduler();
  1918. },updateStatus:function () {
  1919. if (Module['setStatus']) {
  1920. var message = Module['statusMessage'] || 'Please wait...';
  1921. var remaining = Browser.mainLoop.remainingBlockers;
  1922. var expected = Browser.mainLoop.expectedBlockers;
  1923. if (remaining) {
  1924. if (remaining < expected) {
  1925. Module['setStatus'](message + ' (' + (expected - remaining) + '/' + expected + ')');
  1926. } else {
  1927. Module['setStatus'](message);
  1928. }
  1929. } else {
  1930. Module['setStatus']('');
  1931. }
  1932. }
  1933. },runIter:function (func) {
  1934. if (ABORT) return;
  1935. if (Module['preMainLoop']) {
  1936. var preRet = Module['preMainLoop']();
  1937. if (preRet === false) {
  1938. return; // |return false| skips a frame
  1939. }
  1940. }
  1941. try {
  1942. func();
  1943. } catch (e) {
  1944. if (e instanceof ExitStatus) {
  1945. return;
  1946. } else {
  1947. if (e && typeof e === 'object' && e.stack) Module.printErr('exception thrown: ' + [e, e.stack]);
  1948. throw e;
  1949. }
  1950. }
  1951. if (Module['postMainLoop']) Module['postMainLoop']();
  1952. }},isFullscreen:false,pointerLock:false,moduleContextCreatedCallbacks:[],workers:[],init:function () {
  1953. if (!Module["preloadPlugins"]) Module["preloadPlugins"] = []; // needs to exist even in workers
  1954. if (Browser.initted) return;
  1955. Browser.initted = true;
  1956. try {
  1957. new Blob();
  1958. Browser.hasBlobConstructor = true;
  1959. } catch(e) {
  1960. Browser.hasBlobConstructor = false;
  1961. console.log("warning: no blob constructor, cannot create blobs with mimetypes");
  1962. }
  1963. Browser.BlobBuilder = typeof MozBlobBuilder != "undefined" ? MozBlobBuilder : (typeof WebKitBlobBuilder != "undefined" ? WebKitBlobBuilder : (!Browser.hasBlobConstructor ? console.log("warning: no BlobBuilder") : null));
  1964. Browser.URLObject = typeof window != "undefined" ? (window.URL ? window.URL : window.webkitURL) : undefined;
  1965. if (!Module.noImageDecoding && typeof Browser.URLObject === 'undefined') {
  1966. console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available.");
  1967. Module.noImageDecoding = true;
  1968. }
  1969. // Support for plugins that can process preloaded files. You can add more of these to
  1970. // your app by creating and appending to Module.preloadPlugins.
  1971. //
  1972. // Each plugin is asked if it can handle a file based on the file's name. If it can,
  1973. // it is given the file's raw data. When it is done, it calls a callback with the file's
  1974. // (possibly modified) data. For example, a plugin might decompress a file, or it
  1975. // might create some side data structure for use later (like an Image element, etc.).
  1976. var imagePlugin = {};
  1977. imagePlugin['canHandle'] = function imagePlugin_canHandle(name) {
  1978. return !Module.noImageDecoding && /\.(jpg|jpeg|png|bmp)$/i.test(name);
  1979. };
  1980. imagePlugin['handle'] = function imagePlugin_handle(byteArray, name, onload, onerror) {
  1981. var b = null;
  1982. if (Browser.hasBlobConstructor) {
  1983. try {
  1984. b = new Blob([byteArray], { type: Browser.getMimetype(name) });
  1985. if (b.size !== byteArray.length) { // Safari bug #118630
  1986. // Safari's Blob can only take an ArrayBuffer
  1987. b = new Blob([(new Uint8Array(byteArray)).buffer], { type: Browser.getMimetype(name) });
  1988. }
  1989. } catch(e) {
  1990. Runtime.warnOnce('Blob constructor present but fails: ' + e + '; falling back to blob builder');
  1991. }
  1992. }
  1993. if (!b) {
  1994. var bb = new Browser.BlobBuilder();
  1995. bb.append((new Uint8Array(byteArray)).buffer); // we need to pass a buffer, and must copy the array to get the right data range
  1996. b = bb.getBlob();
  1997. }
  1998. var url = Browser.URLObject.createObjectURL(b);
  1999. assert(typeof url == 'string', 'createObjectURL must return a url as a string');
  2000. var img = new Image();
  2001. img.onload = function img_onload() {
  2002. assert(img.complete, 'Image ' + name + ' could not be decoded');
  2003. var canvas = document.createElement('canvas');
  2004. canvas.width = img.width;
  2005. canvas.height = img.height;
  2006. var ctx = canvas.getContext('2d');
  2007. ctx.drawImage(img, 0, 0);
  2008. Module["preloadedImages"][name] = canvas;
  2009. Browser.URLObject.revokeObjectURL(url);
  2010. if (onload) onload(byteArray);
  2011. };
  2012. img.onerror = function img_onerror(event) {
  2013. console.log('Image ' + url + ' could not be decoded');
  2014. if (onerror) onerror();
  2015. };
  2016. img.src = url;
  2017. };
  2018. Module['preloadPlugins'].push(imagePlugin);
  2019. var audioPlugin = {};
  2020. audioPlugin['canHandle'] = function audioPlugin_canHandle(name) {
  2021. return !Module.noAudioDecoding && name.substr(-4) in { '.ogg': 1, '.wav': 1, '.mp3': 1 };
  2022. };
  2023. audioPlugin['handle'] = function audioPlugin_handle(byteArray, name, onload, onerror) {
  2024. var done = false;
  2025. function finish(audio) {
  2026. if (done) return;
  2027. done = true;
  2028. Module["preloadedAudios"][name] = audio;
  2029. if (onload) onload(byteArray);
  2030. }
  2031. function fail() {
  2032. if (done) return;
  2033. done = true;
  2034. Module["preloadedAudios"][name] = new Audio(); // empty shim
  2035. if (onerror) onerror();
  2036. }
  2037. if (Browser.hasBlobConstructor) {
  2038. try {
  2039. var b = new Blob([byteArray], { type: Browser.getMimetype(name) });
  2040. } catch(e) {
  2041. return fail();
  2042. }
  2043. var url = Browser.URLObject.createObjectURL(b); // XXX we never revoke this!
  2044. assert(typeof url == 'string', 'createObjectURL must return a url as a string');
  2045. var audio = new Audio();
  2046. audio.addEventListener('canplaythrough', function() { finish(audio) }, false); // use addEventListener due to chromium bug 124926
  2047. audio.onerror = function audio_onerror(event) {
  2048. if (done) return;
  2049. console.log('warning: browser could not fully decode audio ' + name + ', trying slower base64 approach');
  2050. function encode64(data) {
  2051. var BASE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
  2052. var PAD = '=';
  2053. var ret = '';
  2054. var leftchar = 0;
  2055. var leftbits = 0;
  2056. for (var i = 0; i < data.length; i++) {
  2057. leftchar = (leftchar << 8) | data[i];
  2058. leftbits += 8;
  2059. while (leftbits >= 6) {
  2060. var curr = (leftchar >> (leftbits-6)) & 0x3f;
  2061. leftbits -= 6;
  2062. ret += BASE[curr];
  2063. }
  2064. }
  2065. if (leftbits == 2) {
  2066. ret += BASE[(leftchar&3) << 4];
  2067. ret += PAD + PAD;
  2068. } else if (leftbits == 4) {
  2069. ret += BASE[(leftchar&0xf) << 2];
  2070. ret += PAD;
  2071. }
  2072. return ret;
  2073. }
  2074. audio.src = 'data:audio/x-' + name.substr(-3) + ';base64,' + encode64(byteArray);
  2075. finish(audio); // we don't wait for confirmation this worked - but it's worth trying
  2076. };
  2077. audio.src = url;
  2078. // workaround for chrome bug 124926 - we do not always get oncanplaythrough or onerror
  2079. Browser.safeSetTimeout(function() {
  2080. finish(audio); // try to use it even though it is not necessarily ready to play
  2081. }, 10000);
  2082. } else {
  2083. return fail();
  2084. }
  2085. };
  2086. Module['preloadPlugins'].push(audioPlugin);
  2087. // Canvas event setup
  2088. function pointerLockChange() {
  2089. Browser.pointerLock = document['pointerLockElement'] === Module['canvas'] ||
  2090. document['mozPointerLockElement'] === Module['canvas'] ||
  2091. document['webkitPointerLockElement'] === Module['canvas'] ||
  2092. document['msPointerLockElement'] === Module['canvas'];
  2093. }
  2094. var canvas = Module['canvas'];
  2095. if (canvas) {
  2096. // forced aspect ratio can be enabled by defining 'forcedAspectRatio' on Module
  2097. // Module['forcedAspectRatio'] = 4 / 3;
  2098. canvas.requestPointerLock = canvas['requestPointerLock'] ||
  2099. canvas['mozRequestPointerLock'] ||
  2100. canvas['webkitRequestPointerLock'] ||
  2101. canvas['msRequestPointerLock'] ||
  2102. function(){};
  2103. canvas.exitPointerLock = document['exitPointerLock'] ||
  2104. document['mozExitPointerLock'] ||
  2105. document['webkitExitPointerLock'] ||
  2106. document['msExitPointerLock'] ||
  2107. function(){}; // no-op if function does not exist
  2108. canvas.exitPointerLock = canvas.exitPointerLock.bind(document);
  2109. document.addEventListener('pointerlockchange', pointerLockChange, false);
  2110. document.addEventListener('mozpointerlockchange', pointerLockChange, false);
  2111. document.addEventListener('webkitpointerlockchange', pointerLockChange, false);
  2112. document.addEventListener('mspointerlockchange', pointerLockChange, false);
  2113. if (Module['elementPointerLock']) {
  2114. canvas.addEventListener("click", function(ev) {
  2115. if (!Browser.pointerLock && Module['canvas'].requestPointerLock) {
  2116. Module['canvas'].requestPointerLock();
  2117. ev.preventDefault();
  2118. }
  2119. }, false);
  2120. }
  2121. }
  2122. },createContext:function (canvas, useWebGL, setInModule, webGLContextAttributes) {
  2123. if (useWebGL && Module.ctx && canvas == Module.canvas) return Module.ctx; // no need to recreate GL context if it's already been created for this canvas.
  2124. var ctx;
  2125. var contextHandle;
  2126. if (useWebGL) {
  2127. // For GLES2/desktop GL compatibility, adjust a few defaults to be different to WebGL defaults, so that they align better with the desktop defaults.
  2128. var contextAttributes = {
  2129. antialias: false,
  2130. alpha: false
  2131. };
  2132. if (webGLContextAttributes) {
  2133. for (var attribute in webGLContextAttributes) {
  2134. contextAttributes[attribute] = webGLContextAttributes[attribute];
  2135. }
  2136. }
  2137. contextHandle = GL.createContext(canvas, contextAttributes);
  2138. if (contextHandle) {
  2139. ctx = GL.getContext(contextHandle).GLctx;
  2140. }
  2141. } else {
  2142. ctx = canvas.getContext('2d');
  2143. }
  2144. if (!ctx) return null;
  2145. if (setInModule) {
  2146. if (!useWebGL) assert(typeof GLctx === 'undefined', 'cannot set in module if GLctx is used, but we are a non-GL context that would replace it');
  2147. Module.ctx = ctx;
  2148. if (useWebGL) GL.makeContextCurrent(contextHandle);
  2149. Module.useWebGL = useWebGL;
  2150. Browser.moduleContextCreatedCallbacks.forEach(function(callback) { callback() });
  2151. Browser.init();
  2152. }
  2153. return ctx;
  2154. },destroyContext:function (canvas, useWebGL, setInModule) {},fullscreenHandlersInstalled:false,lockPointer:undefined,resizeCanvas:undefined,requestFullscreen:function (lockPointer, resizeCanvas, vrDevice) {
  2155. Browser.lockPointer = lockPointer;
  2156. Browser.resizeCanvas = resizeCanvas;
  2157. Browser.vrDevice = vrDevice;
  2158. if (typeof Browser.lockPointer === 'undefined') Browser.lockPointer = true;
  2159. if (typeof Browser.resizeCanvas === 'undefined') Browser.resizeCanvas = false;
  2160. if (typeof Browser.vrDevice === 'undefined') Browser.vrDevice = null;
  2161. var canvas = Module['canvas'];
  2162. function fullscreenChange() {
  2163. Browser.isFullscreen = false;
  2164. var canvasContainer = canvas.parentNode;
  2165. if ((document['fullscreenElement'] || document['mozFullScreenElement'] ||
  2166. document['msFullscreenElement'] || document['webkitFullscreenElement'] ||
  2167. document['webkitCurrentFullScreenElement']) === canvasContainer) {
  2168. canvas.exitFullscreen = document['exitFullscreen'] ||
  2169. document['cancelFullScreen'] ||
  2170. document['mozCancelFullScreen'] ||
  2171. document['msExitFullscreen'] ||
  2172. document['webkitCancelFullScreen'] ||
  2173. function() {};
  2174. canvas.exitFullscreen = canvas.exitFullscreen.bind(document);
  2175. if (Browser.lockPointer) canvas.requestPointerLock();
  2176. Browser.isFullscreen = true;
  2177. if (Browser.resizeCanvas) Browser.setFullscreenCanvasSize();
  2178. } else {
  2179. // remove the full screen specific parent of the canvas again to restore the HTML structure from before going full screen
  2180. canvasContainer.parentNode.insertBefore(canvas, canvasContainer);
  2181. canvasContainer.parentNode.removeChild(canvasContainer);
  2182. if (Browser.resizeCanvas) Browser.setWindowedCanvasSize();
  2183. }
  2184. if (Module['onFullScreen']) Module['onFullScreen'](Browser.isFullscreen);
  2185. if (Module['onFullscreen']) Module['onFullscreen'](Browser.isFullscreen);
  2186. Browser.updateCanvasDimensions(canvas);
  2187. }
  2188. if (!Browser.fullscreenHandlersInstalled) {
  2189. Browser.fullscreenHandlersInstalled = true;
  2190. document.addEventListener('fullscreenchange', fullscreenChange, false);
  2191. document.addEventListener('mozfullscreenchange', fullscreenChange, false);
  2192. document.addEventListener('webkitfullscreenchange', fullscreenChange, false);
  2193. document.addEventListener('MSFullscreenChange', fullscreenChange, false);
  2194. }
  2195. // create a new parent to ensure the canvas has no siblings. this allows browsers to optimize full screen performance when its parent is the full screen root
  2196. var canvasContainer = document.createElement("div");
  2197. canvas.parentNode.insertBefore(canvasContainer, canvas);
  2198. canvasContainer.appendChild(canvas);
  2199. // use parent of canvas as full screen root to allow aspect ratio correction (Firefox stretches the root to screen size)
  2200. canvasContainer.requestFullscreen = canvasContainer['requestFullscreen'] ||
  2201. canvasContainer['mozRequestFullScreen'] ||
  2202. canvasContainer['msRequestFullscreen'] ||
  2203. (canvasContainer['webkitRequestFullscreen'] ? function() { canvasContainer['webkitRequestFullscreen'](Element['ALLOW_KEYBOARD_INPUT']) } : null) ||
  2204. (canvasContainer['webkitRequestFullScreen'] ? function() { canvasContainer['webkitRequestFullScreen'](Element['ALLOW_KEYBOARD_INPUT']) } : null);
  2205. if (vrDevice) {
  2206. canvasContainer.requestFullscreen({ vrDisplay: vrDevice });
  2207. } else {
  2208. canvasContainer.requestFullscreen();
  2209. }
  2210. },requestFullScreen:function (lockPointer, resizeCanvas, vrDevice) {
  2211. Module.printErr('Browser.requestFullScreen() is deprecated. Please call Browser.requestFullscreen instead.');
  2212. Browser.requestFullScreen = function(lockPointer, resizeCanvas, vrDevice) {
  2213. return Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice);
  2214. }
  2215. return Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice);
  2216. },nextRAF:0,fakeRequestAnimationFrame:function (func) {
  2217. // try to keep 60fps between calls to here
  2218. var now = Date.now();
  2219. if (Browser.nextRAF === 0) {
  2220. Browser.nextRAF = now + 1000/60;
  2221. } else {
  2222. while (now + 2 >= Browser.nextRAF) { // fudge a little, to avoid timer jitter causing us to do lots of delay:0
  2223. Browser.nextRAF += 1000/60;
  2224. }
  2225. }
  2226. var delay = Math.max(Browser.nextRAF - now, 0);
  2227. setTimeout(func, delay);
  2228. },requestAnimationFrame:function requestAnimationFrame(func) {
  2229. if (typeof window === 'undefined') { // Provide fallback to setTimeout if window is undefined (e.g. in Node.js)
  2230. Browser.fakeRequestAnimationFrame(func);
  2231. } else {
  2232. if (!window.requestAnimationFrame) {
  2233. window.requestAnimationFrame = window['requestAnimationFrame'] ||
  2234. window['mozRequestAnimationFrame'] ||
  2235. window['webkitRequestAnimationFrame'] ||
  2236. window['msRequestAnimationFrame'] ||
  2237. window['oRequestAnimationFrame'] ||
  2238. Browser.fakeRequestAnimationFrame;
  2239. }
  2240. window.requestAnimationFrame(func);
  2241. }
  2242. },safeCallback:function (func) {
  2243. return function() {
  2244. if (!ABORT) return func.apply(null, arguments);
  2245. };
  2246. },allowAsyncCallbacks:true,queuedAsyncCallbacks:[],pauseAsyncCallbacks:function () {
  2247. Browser.allowAsyncCallbacks = false;
  2248. },resumeAsyncCallbacks:function () { // marks future callbacks as ok to execute, and synchronously runs any remaining ones right now
  2249. Browser.allowAsyncCallbacks = true;
  2250. if (Browser.queuedAsyncCallbacks.length > 0) {
  2251. var callbacks = Browser.queuedAsyncCallbacks;
  2252. Browser.queuedAsyncCallbacks = [];
  2253. callbacks.forEach(function(func) {
  2254. func();
  2255. });
  2256. }
  2257. },safeRequestAnimationFrame:function (func) {
  2258. return Browser.requestAnimationFrame(function() {
  2259. if (ABORT) return;
  2260. if (Browser.allowAsyncCallbacks) {
  2261. func();
  2262. } else {
  2263. Browser.queuedAsyncCallbacks.push(func);
  2264. }
  2265. });
  2266. },safeSetTimeout:function (func, timeout) {
  2267. Module['noExitRuntime'] = true;
  2268. return setTimeout(function() {
  2269. if (ABORT) return;
  2270. if (Browser.allowAsyncCallbacks) {
  2271. func();
  2272. } else {
  2273. Browser.queuedAsyncCallbacks.push(func);
  2274. }
  2275. }, timeout);
  2276. },safeSetInterval:function (func, timeout) {
  2277. Module['noExitRuntime'] = true;
  2278. return setInterval(function() {
  2279. if (ABORT) return;
  2280. if (Browser.allowAsyncCallbacks) {
  2281. func();
  2282. } // drop it on the floor otherwise, next interval will kick in
  2283. }, timeout);
  2284. },getMimetype:function (name) {
  2285. return {
  2286. 'jpg': 'image/jpeg',
  2287. 'jpeg': 'image/jpeg',
  2288. 'png': 'image/png',
  2289. 'bmp': 'image/bmp',
  2290. 'ogg': 'audio/ogg',
  2291. 'wav': 'audio/wav',
  2292. 'mp3': 'audio/mpeg'
  2293. }[name.substr(name.lastIndexOf('.')+1)];
  2294. },getUserMedia:function (func) {
  2295. if(!window.getUserMedia) {
  2296. window.getUserMedia = navigator['getUserMedia'] ||
  2297. navigator['mozGetUserMedia'];
  2298. }
  2299. window.getUserMedia(func);
  2300. },getMovementX:function (event) {
  2301. return event['movementX'] ||
  2302. event['mozMovementX'] ||
  2303. event['webkitMovementX'] ||
  2304. 0;
  2305. },getMovementY:function (event) {
  2306. return event['movementY'] ||
  2307. event['mozMovementY'] ||
  2308. event['webkitMovementY'] ||
  2309. 0;
  2310. },getMouseWheelDelta:function (event) {
  2311. var delta = 0;
  2312. switch (event.type) {
  2313. case 'DOMMouseScroll':
  2314. delta = event.detail;
  2315. break;
  2316. case 'mousewheel':
  2317. delta = event.wheelDelta;
  2318. break;
  2319. case 'wheel':
  2320. delta = event['deltaY'];
  2321. break;
  2322. default:
  2323. throw 'unrecognized mouse wheel event: ' + event.type;
  2324. }
  2325. return delta;
  2326. },mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseEvent:function (event) { // event should be mousemove, mousedown or mouseup
  2327. if (Browser.pointerLock) {
  2328. // When the pointer is locked, calculate the coordinates
  2329. // based on the movement of the mouse.
  2330. // Workaround for Firefox bug 764498
  2331. if (event.type != 'mousemove' &&
  2332. ('mozMovementX' in event)) {
  2333. Browser.mouseMovementX = Browser.mouseMovementY = 0;
  2334. } else {
  2335. Browser.mouseMovementX = Browser.getMovementX(event);
  2336. Browser.mouseMovementY = Browser.getMovementY(event);
  2337. }
  2338. // check if SDL is available
  2339. if (typeof SDL != "undefined") {
  2340. Browser.mouseX = SDL.mouseX + Browser.mouseMovementX;
  2341. Browser.mouseY = SDL.mouseY + Browser.mouseMovementY;
  2342. } else {
  2343. // just add the mouse delta to the current absolut mouse position
  2344. // FIXME: ideally this should be clamped against the canvas size and zero
  2345. Browser.mouseX += Browser.mouseMovementX;
  2346. Browser.mouseY += Browser.mouseMovementY;
  2347. }
  2348. } else {
  2349. // Otherwise, calculate the movement based on the changes
  2350. // in the coordinates.
  2351. var rect = Module["canvas"].getBoundingClientRect();
  2352. var cw = Module["canvas"].width;
  2353. var ch = Module["canvas"].height;
  2354. // Neither .scrollX or .pageXOffset are defined in a spec, but
  2355. // we prefer .scrollX because it is currently in a spec draft.
  2356. // (see: http://www.w3.org/TR/2013/WD-cssom-view-20131217/)
  2357. var scrollX = ((typeof window.scrollX !== 'undefined') ? window.scrollX : window.pageXOffset);
  2358. var scrollY = ((typeof window.scrollY !== 'undefined') ? window.scrollY : window.pageYOffset);
  2359. // If this assert lands, it's likely because the browser doesn't support scrollX or pageXOffset
  2360. // and we have no viable fallback.
  2361. assert((typeof scrollX !== 'undefined') && (typeof scrollY !== 'undefined'), 'Unable to retrieve scroll position, mouse positions likely broken.');
  2362. if (event.type === 'touchstart' || event.type === 'touchend' || event.type === 'touchmove') {
  2363. var touch = event.touch;
  2364. if (touch === undefined) {
  2365. return; // the "touch" property is only defined in SDL
  2366. }
  2367. var adjustedX = touch.pageX - (scrollX + rect.left);
  2368. var adjustedY = touch.pageY - (scrollY + rect.top);
  2369. adjustedX = adjustedX * (cw / rect.width);
  2370. adjustedY = adjustedY * (ch / rect.height);
  2371. var coords = { x: adjustedX, y: adjustedY };
  2372. if (event.type === 'touchstart') {
  2373. Browser.lastTouches[touch.identifier] = coords;
  2374. Browser.touches[touch.identifier] = coords;
  2375. } else if (event.type === 'touchend' || event.type === 'touchmove') {
  2376. var last = Browser.touches[touch.identifier];
  2377. if (!last) last = coords;
  2378. Browser.lastTouches[touch.identifier] = last;
  2379. Browser.touches[touch.identifier] = coords;
  2380. }
  2381. return;
  2382. }
  2383. var x = event.pageX - (scrollX + rect.left);
  2384. var y = event.pageY - (scrollY + rect.top);
  2385. // the canvas might be CSS-scaled compared to its backbuffer;
  2386. // SDL-using content will want mouse coordinates in terms
  2387. // of backbuffer units.
  2388. x = x * (cw / rect.width);
  2389. y = y * (ch / rect.height);
  2390. Browser.mouseMovementX = x - Browser.mouseX;
  2391. Browser.mouseMovementY = y - Browser.mouseY;
  2392. Browser.mouseX = x;
  2393. Browser.mouseY = y;
  2394. }
  2395. },asyncLoad:function (url, onload, onerror, noRunDep) {
  2396. var dep = !noRunDep ? getUniqueRunDependency('al ' + url) : '';
  2397. Module['readAsync'](url, function(arrayBuffer) {
  2398. assert(arrayBuffer, 'Loading data file "' + url + '" failed (no arrayBuffer).');
  2399. onload(new Uint8Array(arrayBuffer));
  2400. if (dep) removeRunDependency(dep);
  2401. }, function(event) {
  2402. if (onerror) {
  2403. onerror();
  2404. } else {
  2405. throw 'Loading data file "' + url + '" failed.';
  2406. }
  2407. });
  2408. if (dep) addRunDependency(dep);
  2409. },resizeListeners:[],updateResizeListeners:function () {
  2410. var canvas = Module['canvas'];
  2411. Browser.resizeListeners.forEach(function(listener) {
  2412. listener(canvas.width, canvas.height);
  2413. });
  2414. },setCanvasSize:function (width, height, noUpdates) {
  2415. var canvas = Module['canvas'];
  2416. Browser.updateCanvasDimensions(canvas, width, height);
  2417. if (!noUpdates) Browser.updateResizeListeners();
  2418. },windowedWidth:0,windowedHeight:0,setFullscreenCanvasSize:function () {
  2419. // check if SDL is available
  2420. if (typeof SDL != "undefined") {
  2421. var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)];
  2422. flags = flags | 0x00800000; // set SDL_FULLSCREEN flag
  2423. HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags
  2424. }
  2425. Browser.updateResizeListeners();
  2426. },setWindowedCanvasSize:function () {
  2427. // check if SDL is available
  2428. if (typeof SDL != "undefined") {
  2429. var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)];
  2430. flags = flags & ~0x00800000; // clear SDL_FULLSCREEN flag
  2431. HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags
  2432. }
  2433. Browser.updateResizeListeners();
  2434. },updateCanvasDimensions:function (canvas, wNative, hNative) {
  2435. if (wNative && hNative) {
  2436. canvas.widthNative = wNative;
  2437. canvas.heightNative = hNative;
  2438. } else {
  2439. wNative = canvas.widthNative;
  2440. hNative = canvas.heightNative;
  2441. }
  2442. var w = wNative;
  2443. var h = hNative;
  2444. if (Module['forcedAspectRatio'] && Module['forcedAspectRatio'] > 0) {
  2445. if (w/h < Module['forcedAspectRatio']) {
  2446. w = Math.round(h * Module['forcedAspectRatio']);
  2447. } else {
  2448. h = Math.round(w / Module['forcedAspectRatio']);
  2449. }
  2450. }
  2451. if (((document['fullscreenElement'] || document['mozFullScreenElement'] ||
  2452. document['msFullscreenElement'] || document['webkitFullscreenElement'] ||
  2453. document['webkitCurrentFullScreenElement']) === canvas.parentNode) && (typeof screen != 'undefined')) {
  2454. var factor = Math.min(screen.width / w, screen.height / h);
  2455. w = Math.round(w * factor);
  2456. h = Math.round(h * factor);
  2457. }
  2458. if (Browser.resizeCanvas) {
  2459. if (canvas.width != w) canvas.width = w;
  2460. if (canvas.height != h) canvas.height = h;
  2461. if (typeof canvas.style != 'undefined') {
  2462. canvas.style.removeProperty( "width");
  2463. canvas.style.removeProperty("height");
  2464. }
  2465. } else {
  2466. if (canvas.width != wNative) canvas.width = wNative;
  2467. if (canvas.height != hNative) canvas.height = hNative;
  2468. if (typeof canvas.style != 'undefined') {
  2469. if (w != wNative || h != hNative) {
  2470. canvas.style.setProperty( "width", w + "px", "important");
  2471. canvas.style.setProperty("height", h + "px", "important");
  2472. } else {
  2473. canvas.style.removeProperty( "width");
  2474. canvas.style.removeProperty("height");
  2475. }
  2476. }
  2477. }
  2478. },wgetRequests:{},nextWgetRequestHandle:0,getNextWgetRequestHandle:function () {
  2479. var handle = Browser.nextWgetRequestHandle;
  2480. Browser.nextWgetRequestHandle++;
  2481. return handle;
  2482. }};var GLFW={Window:function (id, width, height, title, monitor, share) {
  2483. this.id = id;
  2484. this.x = 0;
  2485. this.y = 0;
  2486. this.fullscreen = false; // Used to determine if app in fullscreen mode
  2487. this.storedX = 0; // Used to store X before fullscreen
  2488. this.storedY = 0; // Used to store Y before fullscreen
  2489. this.width = width;
  2490. this.height = height;
  2491. this.storedWidth = width; // Used to store width before fullscreen
  2492. this.storedHeight = height; // Used to store height before fullscreen
  2493. this.title = title;
  2494. this.monitor = monitor;
  2495. this.share = share;
  2496. this.attributes = GLFW.hints;
  2497. this.inputModes = {
  2498. 0x00033001:0x00034001, // GLFW_CURSOR (GLFW_CURSOR_NORMAL)
  2499. 0x00033002:0, // GLFW_STICKY_KEYS
  2500. 0x00033003:0, // GLFW_STICKY_MOUSE_BUTTONS
  2501. };
  2502. this.buttons = 0;
  2503. this.keys = new Array();
  2504. this.shouldClose = 0;
  2505. this.title = null;
  2506. this.windowPosFunc = null; // GLFWwindowposfun
  2507. this.windowSizeFunc = null; // GLFWwindowsizefun
  2508. this.windowCloseFunc = null; // GLFWwindowclosefun
  2509. this.windowRefreshFunc = null; // GLFWwindowrefreshfun
  2510. this.windowFocusFunc = null; // GLFWwindowfocusfun
  2511. this.windowIconifyFunc = null; // GLFWwindowiconifyfun
  2512. this.framebufferSizeFunc = null; // GLFWframebuffersizefun
  2513. this.mouseButtonFunc = null; // GLFWmousebuttonfun
  2514. this.cursorPosFunc = null; // GLFWcursorposfun
  2515. this.cursorEnterFunc = null; // GLFWcursorenterfun
  2516. this.scrollFunc = null; // GLFWscrollfun
  2517. this.keyFunc = null; // GLFWkeyfun
  2518. this.charFunc = null; // GLFWcharfun
  2519. this.userptr = null;
  2520. },WindowFromId:function (id) {
  2521. if (id <= 0 || !GLFW.windows) return null;
  2522. return GLFW.windows[id - 1];
  2523. },errorFunc:null,monitorFunc:null,active:null,windows:null,monitors:null,monitorString:null,versionString:null,initialTime:null,extensions:null,hints:null,defaultHints:{131073:0,131074:0,131075:1,131076:1,131077:1,135169:8,135170:8,135171:8,135172:8,135173:24,135174:8,135175:0,135176:0,135177:0,135178:0,135179:0,135180:0,135181:0,135182:0,135183:0,139265:196609,139266:1,139267:0,139268:0,139269:0,139270:0,139271:0,139272:0},DOMToGLFWKeyCode:function (keycode) {
  2524. switch (keycode) {
  2525. // these keycodes are only defined for GLFW3, assume they are the same for GLFW2
  2526. case 0x20:return 32; // DOM_VK_SPACE -> GLFW_KEY_SPACE
  2527. case 0xDE:return 39; // DOM_VK_QUOTE -> GLFW_KEY_APOSTROPHE
  2528. case 0xBC:return 44; // DOM_VK_COMMA -> GLFW_KEY_COMMA
  2529. case 0xAD:return 45; // DOM_VK_HYPHEN_MINUS -> GLFW_KEY_MINUS
  2530. case 0xBD:return 45; // DOM_VK_MINUS -> GLFW_KEY_MINUS
  2531. case 0xBE:return 46; // DOM_VK_PERIOD -> GLFW_KEY_PERIOD
  2532. case 0xBF:return 47; // DOM_VK_SLASH -> GLFW_KEY_SLASH
  2533. case 0x30:return 48; // DOM_VK_0 -> GLFW_KEY_0
  2534. case 0x31:return 49; // DOM_VK_1 -> GLFW_KEY_1
  2535. case 0x32:return 50; // DOM_VK_2 -> GLFW_KEY_2
  2536. case 0x33:return 51; // DOM_VK_3 -> GLFW_KEY_3
  2537. case 0x34:return 52; // DOM_VK_4 -> GLFW_KEY_4
  2538. case 0x35:return 53; // DOM_VK_5 -> GLFW_KEY_5
  2539. case 0x36:return 54; // DOM_VK_6 -> GLFW_KEY_6
  2540. case 0x37:return 55; // DOM_VK_7 -> GLFW_KEY_7
  2541. case 0x38:return 56; // DOM_VK_8 -> GLFW_KEY_8
  2542. case 0x39:return 57; // DOM_VK_9 -> GLFW_KEY_9
  2543. case 0x3B:return 59; // DOM_VK_SEMICOLON -> GLFW_KEY_SEMICOLON
  2544. case 0x3D:return 61; // DOM_VK_EQUALS -> GLFW_KEY_EQUAL
  2545. case 0xBB:return 61; // DOM_VK_EQUALS -> GLFW_KEY_EQUAL
  2546. case 0x41:return 65; // DOM_VK_A -> GLFW_KEY_A
  2547. case 0x42:return 66; // DOM_VK_B -> GLFW_KEY_B
  2548. case 0x43:return 67; // DOM_VK_C -> GLFW_KEY_C
  2549. case 0x44:return 68; // DOM_VK_D -> GLFW_KEY_D
  2550. case 0x45:return 69; // DOM_VK_E -> GLFW_KEY_E
  2551. case 0x46:return 70; // DOM_VK_F -> GLFW_KEY_F
  2552. case 0x47:return 71; // DOM_VK_G -> GLFW_KEY_G
  2553. case 0x48:return 72; // DOM_VK_H -> GLFW_KEY_H
  2554. case 0x49:return 73; // DOM_VK_I -> GLFW_KEY_I
  2555. case 0x4A:return 74; // DOM_VK_J -> GLFW_KEY_J
  2556. case 0x4B:return 75; // DOM_VK_K -> GLFW_KEY_K
  2557. case 0x4C:return 76; // DOM_VK_L -> GLFW_KEY_L
  2558. case 0x4D:return 77; // DOM_VK_M -> GLFW_KEY_M
  2559. case 0x4E:return 78; // DOM_VK_N -> GLFW_KEY_N
  2560. case 0x4F:return 79; // DOM_VK_O -> GLFW_KEY_O
  2561. case 0x50:return 80; // DOM_VK_P -> GLFW_KEY_P
  2562. case 0x51:return 81; // DOM_VK_Q -> GLFW_KEY_Q
  2563. case 0x52:return 82; // DOM_VK_R -> GLFW_KEY_R
  2564. case 0x53:return 83; // DOM_VK_S -> GLFW_KEY_S
  2565. case 0x54:return 84; // DOM_VK_T -> GLFW_KEY_T
  2566. case 0x55:return 85; // DOM_VK_U -> GLFW_KEY_U
  2567. case 0x56:return 86; // DOM_VK_V -> GLFW_KEY_V
  2568. case 0x57:return 87; // DOM_VK_W -> GLFW_KEY_W
  2569. case 0x58:return 88; // DOM_VK_X -> GLFW_KEY_X
  2570. case 0x59:return 89; // DOM_VK_Y -> GLFW_KEY_Y
  2571. case 0x5a:return 90; // DOM_VK_Z -> GLFW_KEY_Z
  2572. case 0xDB:return 91; // DOM_VK_OPEN_BRACKET -> GLFW_KEY_LEFT_BRACKET
  2573. case 0xDC:return 92; // DOM_VK_BACKSLASH -> GLFW_KEY_BACKSLASH
  2574. case 0xDD:return 93; // DOM_VK_CLOSE_BRACKET -> GLFW_KEY_RIGHT_BRACKET
  2575. case 0xC0:return 94; // DOM_VK_BACK_QUOTE -> GLFW_KEY_GRAVE_ACCENT
  2576. case 0x1B:return 256; // DOM_VK_ESCAPE -> GLFW_KEY_ESCAPE
  2577. case 0x0D:return 257; // DOM_VK_RETURN -> GLFW_KEY_ENTER
  2578. case 0x09:return 258; // DOM_VK_TAB -> GLFW_KEY_TAB
  2579. case 0x08:return 259; // DOM_VK_BACK -> GLFW_KEY_BACKSPACE
  2580. case 0x2D:return 260; // DOM_VK_INSERT -> GLFW_KEY_INSERT
  2581. case 0x2E:return 261; // DOM_VK_DELETE -> GLFW_KEY_DELETE
  2582. case 0x27:return 262; // DOM_VK_RIGHT -> GLFW_KEY_RIGHT
  2583. case 0x25:return 263; // DOM_VK_LEFT -> GLFW_KEY_LEFT
  2584. case 0x28:return 264; // DOM_VK_DOWN -> GLFW_KEY_DOWN
  2585. case 0x26:return 265; // DOM_VK_UP -> GLFW_KEY_UP
  2586. case 0x21:return 266; // DOM_VK_PAGE_UP -> GLFW_KEY_PAGE_UP
  2587. case 0x22:return 267; // DOM_VK_PAGE_DOWN -> GLFW_KEY_PAGE_DOWN
  2588. case 0x24:return 268; // DOM_VK_HOME -> GLFW_KEY_HOME
  2589. case 0x23:return 269; // DOM_VK_END -> GLFW_KEY_END
  2590. case 0x14:return 280; // DOM_VK_CAPS_LOCK -> GLFW_KEY_CAPS_LOCK
  2591. case 0x91:return 281; // DOM_VK_SCROLL_LOCK -> GLFW_KEY_SCROLL_LOCK
  2592. case 0x90:return 282; // DOM_VK_NUM_LOCK -> GLFW_KEY_NUM_LOCK
  2593. case 0x2C:return 283; // DOM_VK_SNAPSHOT -> GLFW_KEY_PRINT_SCREEN
  2594. case 0x13:return 284; // DOM_VK_PAUSE -> GLFW_KEY_PAUSE
  2595. case 0x70:return 290; // DOM_VK_F1 -> GLFW_KEY_F1
  2596. case 0x71:return 291; // DOM_VK_F2 -> GLFW_KEY_F2
  2597. case 0x72:return 292; // DOM_VK_F3 -> GLFW_KEY_F3
  2598. case 0x73:return 293; // DOM_VK_F4 -> GLFW_KEY_F4
  2599. case 0x74:return 294; // DOM_VK_F5 -> GLFW_KEY_F5
  2600. case 0x75:return 295; // DOM_VK_F6 -> GLFW_KEY_F6
  2601. case 0x76:return 296; // DOM_VK_F7 -> GLFW_KEY_F7
  2602. case 0x77:return 297; // DOM_VK_F8 -> GLFW_KEY_F8
  2603. case 0x78:return 298; // DOM_VK_F9 -> GLFW_KEY_F9
  2604. case 0x79:return 299; // DOM_VK_F10 -> GLFW_KEY_F10
  2605. case 0x7A:return 300; // DOM_VK_F11 -> GLFW_KEY_F11
  2606. case 0x7B:return 301; // DOM_VK_F12 -> GLFW_KEY_F12
  2607. case 0x7C:return 302; // DOM_VK_F13 -> GLFW_KEY_F13
  2608. case 0x7D:return 303; // DOM_VK_F14 -> GLFW_KEY_F14
  2609. case 0x7E:return 304; // DOM_VK_F15 -> GLFW_KEY_F15
  2610. case 0x7F:return 305; // DOM_VK_F16 -> GLFW_KEY_F16
  2611. case 0x80:return 306; // DOM_VK_F17 -> GLFW_KEY_F17
  2612. case 0x81:return 307; // DOM_VK_F18 -> GLFW_KEY_F18
  2613. case 0x82:return 308; // DOM_VK_F19 -> GLFW_KEY_F19
  2614. case 0x83:return 309; // DOM_VK_F20 -> GLFW_KEY_F20
  2615. case 0x84:return 310; // DOM_VK_F21 -> GLFW_KEY_F21
  2616. case 0x85:return 311; // DOM_VK_F22 -> GLFW_KEY_F22
  2617. case 0x86:return 312; // DOM_VK_F23 -> GLFW_KEY_F23
  2618. case 0x87:return 313; // DOM_VK_F24 -> GLFW_KEY_F24
  2619. case 0x88:return 314; // 0x88 (not used?) -> GLFW_KEY_F25
  2620. case 0x60:return 320; // DOM_VK_NUMPAD0 -> GLFW_KEY_KP_0
  2621. case 0x61:return 321; // DOM_VK_NUMPAD1 -> GLFW_KEY_KP_1
  2622. case 0x62:return 322; // DOM_VK_NUMPAD2 -> GLFW_KEY_KP_2
  2623. case 0x63:return 323; // DOM_VK_NUMPAD3 -> GLFW_KEY_KP_3
  2624. case 0x64:return 324; // DOM_VK_NUMPAD4 -> GLFW_KEY_KP_4
  2625. case 0x65:return 325; // DOM_VK_NUMPAD5 -> GLFW_KEY_KP_5
  2626. case 0x66:return 326; // DOM_VK_NUMPAD6 -> GLFW_KEY_KP_6
  2627. case 0x67:return 327; // DOM_VK_NUMPAD7 -> GLFW_KEY_KP_7
  2628. case 0x68:return 328; // DOM_VK_NUMPAD8 -> GLFW_KEY_KP_8
  2629. case 0x69:return 329; // DOM_VK_NUMPAD9 -> GLFW_KEY_KP_9
  2630. case 0x6E:return 330; // DOM_VK_DECIMAL -> GLFW_KEY_KP_DECIMAL
  2631. case 0x6F:return 331; // DOM_VK_DIVIDE -> GLFW_KEY_KP_DIVIDE
  2632. case 0x6A:return 332; // DOM_VK_MULTIPLY -> GLFW_KEY_KP_MULTIPLY
  2633. case 0x6D:return 333; // DOM_VK_SUBTRACT -> GLFW_KEY_KP_SUBTRACT
  2634. case 0x6B:return 334; // DOM_VK_ADD -> GLFW_KEY_KP_ADD
  2635. // case 0x0D:return 335; // DOM_VK_RETURN -> GLFW_KEY_KP_ENTER (DOM_KEY_LOCATION_RIGHT)
  2636. // case 0x61:return 336; // DOM_VK_EQUALS -> GLFW_KEY_KP_EQUAL (DOM_KEY_LOCATION_RIGHT)
  2637. case 0x10:return 340; // DOM_VK_SHIFT -> GLFW_KEY_LEFT_SHIFT
  2638. case 0x11:return 341; // DOM_VK_CONTROL -> GLFW_KEY_LEFT_CONTROL
  2639. case 0x12:return 342; // DOM_VK_ALT -> GLFW_KEY_LEFT_ALT
  2640. case 0x5B:return 343; // DOM_VK_WIN -> GLFW_KEY_LEFT_SUPER
  2641. // case 0x10:return 344; // DOM_VK_SHIFT -> GLFW_KEY_RIGHT_SHIFT (DOM_KEY_LOCATION_RIGHT)
  2642. // case 0x11:return 345; // DOM_VK_CONTROL -> GLFW_KEY_RIGHT_CONTROL (DOM_KEY_LOCATION_RIGHT)
  2643. // case 0x12:return 346; // DOM_VK_ALT -> GLFW_KEY_RIGHT_ALT (DOM_KEY_LOCATION_RIGHT)
  2644. // case 0x5B:return 347; // DOM_VK_WIN -> GLFW_KEY_RIGHT_SUPER (DOM_KEY_LOCATION_RIGHT)
  2645. case 0x5D:return 348; // DOM_VK_CONTEXT_MENU -> GLFW_KEY_MENU
  2646. // XXX: GLFW_KEY_WORLD_1, GLFW_KEY_WORLD_2 what are these?
  2647. default:return -1; // GLFW_KEY_UNKNOWN
  2648. };
  2649. },getModBits:function (win) {
  2650. var mod = 0;
  2651. if (win.keys[340]) mod |= 0x0001; // GLFW_MOD_SHIFT
  2652. if (win.keys[341]) mod |= 0x0002; // GLFW_MOD_CONTROL
  2653. if (win.keys[342]) mod |= 0x0004; // GLFW_MOD_ALT
  2654. if (win.keys[343]) mod |= 0x0008; // GLFW_MOD_SUPER
  2655. return mod;
  2656. },onKeyPress:function (event) {
  2657. if (!GLFW.active || !GLFW.active.charFunc) return;
  2658. // correct unicode charCode is only available with onKeyPress event
  2659. var charCode = event.charCode;
  2660. if (charCode == 0 || (charCode >= 0x00 && charCode <= 0x1F)) return;
  2661. Module['dynCall_vii'](GLFW.active.charFunc, GLFW.active.id, charCode);
  2662. },onKeyChanged:function (event, status) {
  2663. if (!GLFW.active) return;
  2664. var key = GLFW.DOMToGLFWKeyCode(event.keyCode);
  2665. if (key == -1) return;
  2666. var repeat = status && GLFW.active.keys[key];
  2667. GLFW.active.keys[key] = status;
  2668. if (!GLFW.active.keyFunc) return;
  2669. if (repeat) status = 2; // GLFW_REPEAT
  2670. Module['dynCall_viiiii'](GLFW.active.keyFunc, GLFW.active.id, key, event.keyCode, status, GLFW.getModBits(GLFW.active));
  2671. },onKeydown:function (event) {
  2672. GLFW.onKeyChanged(event, 1); // GLFW_PRESS or GLFW_REPEAT
  2673. // This logic comes directly from the sdl implementation. We cannot
  2674. // call preventDefault on all keydown events otherwise onKeyPress will
  2675. // not get called
  2676. if (event.keyCode === 8 /* backspace */ || event.keyCode === 9 /* tab */) {
  2677. event.preventDefault();
  2678. }
  2679. },onKeyup:function (event) {
  2680. GLFW.onKeyChanged(event, 0); // GLFW_RELEASE
  2681. },onMousemove:function (event) {
  2682. if (!GLFW.active) return;
  2683. Browser.calculateMouseEvent(event);
  2684. if (event.target != Module["canvas"] || !GLFW.active.cursorPosFunc) return;
  2685. Module['dynCall_vidd'](GLFW.active.cursorPosFunc, GLFW.active.id, Browser.mouseX, Browser.mouseY);
  2686. },DOMToGLFWMouseButton:function (event) {
  2687. // DOM and glfw have different button codes.
  2688. // See http://www.w3schools.com/jsref/event_button.asp.
  2689. var eventButton = event['button'];
  2690. if (eventButton > 0) {
  2691. if (eventButton == 1) {
  2692. eventButton = 2;
  2693. } else {
  2694. eventButton = 1;
  2695. }
  2696. }
  2697. return eventButton;
  2698. },onMouseenter:function (event) {
  2699. if (!GLFW.active) return;
  2700. if (event.target != Module["canvas"] || !GLFW.active.cursorEnterFunc) return;
  2701. Module['dynCall_vii'](GLFW.active.cursorEnterFunc, GLFW.active.id, 1);
  2702. },onMouseleave:function (event) {
  2703. if (!GLFW.active) return;
  2704. if (event.target != Module["canvas"] || !GLFW.active.cursorEnterFunc) return;
  2705. Module['dynCall_vii'](GLFW.active.cursorEnterFunc, GLFW.active.id, 0);
  2706. },onMouseButtonChanged:function (event, status) {
  2707. if (!GLFW.active) return;
  2708. Browser.calculateMouseEvent(event);
  2709. if (event.target != Module["canvas"]) return;
  2710. eventButton = GLFW.DOMToGLFWMouseButton(event);
  2711. if (status == 1) { // GLFW_PRESS
  2712. GLFW.active.buttons |= (1 << eventButton);
  2713. try {
  2714. event.target.setCapture();
  2715. } catch (e) {}
  2716. } else { // GLFW_RELEASE
  2717. GLFW.active.buttons &= ~(1 << eventButton);
  2718. }
  2719. if (!GLFW.active.mouseButtonFunc) return;
  2720. Module['dynCall_viiii'](GLFW.active.mouseButtonFunc, GLFW.active.id, eventButton, status, GLFW.getModBits(GLFW.active));
  2721. },onMouseButtonDown:function (event) {
  2722. if (!GLFW.active) return;
  2723. GLFW.onMouseButtonChanged(event, 1); // GLFW_PRESS
  2724. },onMouseButtonUp:function (event) {
  2725. if (!GLFW.active) return;
  2726. GLFW.onMouseButtonChanged(event, 0); // GLFW_RELEASE
  2727. },onMouseWheel:function (event) {
  2728. // Note the minus sign that flips browser wheel direction (positive direction scrolls page down) to native wheel direction (positive direction is mouse wheel up)
  2729. var delta = -Browser.getMouseWheelDelta(event);
  2730. delta = (delta == 0) ? 0 : (delta > 0 ? Math.max(delta, 1) : Math.min(delta, -1)); // Quantize to integer so that minimum scroll is at least +/- 1.
  2731. GLFW.wheelPos += delta;
  2732. if (!GLFW.active || !GLFW.active.scrollFunc || event.target != Module['canvas']) return;
  2733. var sx = 0;
  2734. var sy = 0;
  2735. if (event.type == 'mousewheel') {
  2736. sx = event.wheelDeltaX;
  2737. sy = event.wheelDeltaY;
  2738. } else {
  2739. sx = event.deltaX;
  2740. sy = event.deltaY;
  2741. }
  2742. Module['dynCall_vidd'](GLFW.active.scrollFunc, GLFW.active.id, sx, sy);
  2743. event.preventDefault();
  2744. },onCanvasResize:function (width, height) {
  2745. if (!GLFW.active) return;
  2746. var resizeNeeded = true;
  2747. // If the client is requestiong fullscreen mode
  2748. if (document["fullscreen"] || document["fullScreen"] || document["mozFullScreen"] || document["webkitIsFullScreen"]) {
  2749. GLFW.active.storedX = GLFW.active.x;
  2750. GLFW.active.storedY = GLFW.active.y;
  2751. GLFW.active.storedWidth = GLFW.active.width;
  2752. GLFW.active.storedHeight = GLFW.active.height;
  2753. GLFW.active.x = GLFW.active.y = 0;
  2754. GLFW.active.width = screen.width;
  2755. GLFW.active.height = screen.height;
  2756. GLFW.active.fullscreen = true;
  2757. // If the client is reverting from fullscreen mode
  2758. } else if (GLFW.active.fullscreen == true) {
  2759. GLFW.active.x = GLFW.active.storedX;
  2760. GLFW.active.y = GLFW.active.storedY;
  2761. GLFW.active.width = GLFW.active.storedWidth;
  2762. GLFW.active.height = GLFW.active.storedHeight;
  2763. GLFW.active.fullscreen = false;
  2764. // If the width/height values do not match current active window sizes
  2765. } else if (GLFW.active.width != width || GLFW.active.height != height) {
  2766. GLFW.active.width = width;
  2767. GLFW.active.height = height;
  2768. } else {
  2769. resizeNeeded = false;
  2770. }
  2771. // If any of the above conditions were true, we need to resize the canvas
  2772. if (resizeNeeded) {
  2773. // resets the canvas size to counter the aspect preservation of Browser.updateCanvasDimensions
  2774. Browser.setCanvasSize(GLFW.active.width, GLFW.active.height, true);
  2775. // TODO: Client dimensions (clientWidth/clientHeight) vs pixel dimensions (width/height) of
  2776. // the canvas should drive window and framebuffer size respectfully.
  2777. GLFW.onWindowSizeChanged();
  2778. GLFW.onFramebufferSizeChanged();
  2779. }
  2780. },onWindowSizeChanged:function () {
  2781. if (!GLFW.active) return;
  2782. if (!GLFW.active.windowSizeFunc) return;
  2783. Module['dynCall_viii'](GLFW.active.windowSizeFunc, GLFW.active.id, GLFW.active.width, GLFW.active.height);
  2784. },onFramebufferSizeChanged:function () {
  2785. if (!GLFW.active) return;
  2786. if (!GLFW.active.framebufferSizeFunc) return;
  2787. Module['dynCall_viii'](GLFW.active.framebufferSizeFunc, GLFW.active.id, GLFW.active.width, GLFW.active.height);
  2788. },requestFullscreen:function () {
  2789. var RFS = Module["canvas"]['requestFullscreen'] ||
  2790. Module["canvas"]['mozRequestFullScreen'] ||
  2791. Module["canvas"]['webkitRequestFullScreen'] ||
  2792. (function() {});
  2793. RFS.apply(Module["canvas"], []);
  2794. },requestFullScreen:function () {
  2795. Module.printErr('GLFW.requestFullScreen() is deprecated. Please call GLFW.requestFullscreen instead.');
  2796. GLFW.requestFullScreen = function() {
  2797. return GLFW.requestFullscreen();
  2798. }
  2799. return GLFW.requestFullscreen();
  2800. },exitFullscreen:function () {
  2801. var CFS = document['exitFullscreen'] ||
  2802. document['cancelFullScreen'] ||
  2803. document['mozCancelFullScreen'] ||
  2804. document['webkitCancelFullScreen'] ||
  2805. (function() {});
  2806. CFS.apply(document, []);
  2807. },cancelFullScreen:function () {
  2808. Module.printErr('GLFW.cancelFullScreen() is deprecated. Please call GLFW.exitFullscreen instead.');
  2809. GLFW.cancelFullScreen = function() {
  2810. return GLFW.exitFullscreen();
  2811. }
  2812. return GLFW.exitFullscreen();
  2813. },getTime:function () {
  2814. return _emscripten_get_now() / 1000;
  2815. },setWindowTitle:function (winid, title) {
  2816. var win = GLFW.WindowFromId(winid);
  2817. if (!win) return;
  2818. win.title = Pointer_stringify(title);
  2819. if (GLFW.active.id == win.id) {
  2820. document.title = win.title;
  2821. }
  2822. },setKeyCallback:function (winid, cbfun) {
  2823. var win = GLFW.WindowFromId(winid);
  2824. if (!win) return;
  2825. win.keyFunc = cbfun;
  2826. },setCharCallback:function (winid, cbfun) {
  2827. var win = GLFW.WindowFromId(winid);
  2828. if (!win) return;
  2829. win.charFunc = cbfun;
  2830. },setMouseButtonCallback:function (winid, cbfun) {
  2831. var win = GLFW.WindowFromId(winid);
  2832. if (!win) return;
  2833. win.mouseButtonFunc = cbfun;
  2834. },setCursorPosCallback:function (winid, cbfun) {
  2835. var win = GLFW.WindowFromId(winid);
  2836. if (!win) return;
  2837. win.cursorPosFunc = cbfun;
  2838. },setScrollCallback:function (winid, cbfun) {
  2839. var win = GLFW.WindowFromId(winid);
  2840. if (!win) return;
  2841. win.scrollFunc = cbfun;
  2842. },setWindowSizeCallback:function (winid, cbfun) {
  2843. var win = GLFW.WindowFromId(winid);
  2844. if (!win) return;
  2845. win.windowSizeFunc = cbfun;
  2846. },setWindowCloseCallback:function (winid, cbfun) {
  2847. var win = GLFW.WindowFromId(winid);
  2848. if (!win) return;
  2849. win.windowCloseFunc = cbfun;
  2850. },setWindowRefreshCallback:function (winid, cbfun) {
  2851. var win = GLFW.WindowFromId(winid);
  2852. if (!win) return;
  2853. win.windowRefreshFunc = cbfun;
  2854. },onClickRequestPointerLock:function (e) {
  2855. if (!Browser.pointerLock && Module['canvas'].requestPointerLock) {
  2856. Module['canvas'].requestPointerLock();
  2857. e.preventDefault();
  2858. }
  2859. },setInputMode:function (winid, mode, value) {
  2860. var win = GLFW.WindowFromId(winid);
  2861. if (!win) return;
  2862. switch(mode) {
  2863. case 0x00033001: { // GLFW_CURSOR
  2864. switch(value) {
  2865. case 0x00034001: { // GLFW_CURSOR_NORMAL
  2866. win.inputModes[mode] = value;
  2867. Module['canvas'].removeEventListener('click', GLFW.onClickRequestPointerLock, true);
  2868. Module['canvas'].exitPointerLock();
  2869. break;
  2870. }
  2871. case 0x00034002: { // GLFW_CURSOR_HIDDEN
  2872. console.log("glfwSetInputMode called with GLFW_CURSOR_HIDDEN value not implemented.");
  2873. break;
  2874. }
  2875. case 0x00034003: { // GLFW_CURSOR_DISABLED
  2876. win.inputModes[mode] = value;
  2877. Module['canvas'].addEventListener('click', GLFW.onClickRequestPointerLock, true);
  2878. Module['canvas'].requestPointerLock();
  2879. break;
  2880. }
  2881. default: {
  2882. console.log("glfwSetInputMode called with unknown value parameter value: " + value + ".");
  2883. break;
  2884. }
  2885. }
  2886. break;
  2887. }
  2888. case 0x00033002: { // GLFW_STICKY_KEYS
  2889. console.log("glfwSetInputMode called with GLFW_STICKY_KEYS mode not implemented.");
  2890. break;
  2891. }
  2892. case 0x00033003: { // GLFW_STICKY_MOUSE_BUTTONS
  2893. console.log("glfwSetInputMode called with GLFW_STICKY_MOUSE_BUTTONS mode not implemented.");
  2894. break;
  2895. }
  2896. default: {
  2897. console.log("glfwSetInputMode called with unknown mode parameter value: " + mode + ".");
  2898. break;
  2899. }
  2900. }
  2901. },getKey:function (winid, key) {
  2902. var win = GLFW.WindowFromId(winid);
  2903. if (!win) return 0;
  2904. return win.keys[key];
  2905. },getMouseButton:function (winid, button) {
  2906. var win = GLFW.WindowFromId(winid);
  2907. if (!win) return 0;
  2908. return (win.buttons & (1 << button)) > 0;
  2909. },getCursorPos:function (winid, x, y) {
  2910. setValue(x, Browser.mouseX, 'double');
  2911. setValue(y, Browser.mouseY, 'double');
  2912. },getMousePos:function (winid, x, y) {
  2913. setValue(x, Browser.mouseX, 'i32');
  2914. setValue(y, Browser.mouseY, 'i32');
  2915. },setCursorPos:function (winid, x, y) {
  2916. },getWindowPos:function (winid, x, y) {
  2917. var wx = 0;
  2918. var wy = 0;
  2919. var win = GLFW.WindowFromId(winid);
  2920. if (win) {
  2921. wx = win.x;
  2922. wy = win.y;
  2923. }
  2924. setValue(x, wx, 'i32');
  2925. setValue(y, wy, 'i32');
  2926. },setWindowPos:function (winid, x, y) {
  2927. var win = GLFW.WindowFromId(winid);
  2928. if (!win) return;
  2929. win.x = x;
  2930. win.y = y;
  2931. },getWindowSize:function (winid, width, height) {
  2932. var ww = 0;
  2933. var wh = 0;
  2934. var win = GLFW.WindowFromId(winid);
  2935. if (win) {
  2936. ww = win.width;
  2937. wh = win.height;
  2938. }
  2939. setValue(width, ww, 'i32');
  2940. setValue(height, wh, 'i32');
  2941. },setWindowSize:function (winid, width, height) {
  2942. var win = GLFW.WindowFromId(winid);
  2943. if (!win) return;
  2944. if (GLFW.active.id == win.id) {
  2945. if (width == screen.width && height == screen.height) {
  2946. GLFW.requestFullscreen();
  2947. } else {
  2948. GLFW.exitFullscreen();
  2949. Browser.setCanvasSize(width, height);
  2950. win.width = width;
  2951. win.height = height;
  2952. }
  2953. }
  2954. if (!win.windowSizeFunc) return;
  2955. Module['dynCall_viii'](win.windowSizeFunc, win.id, width, height);
  2956. },createWindow:function (width, height, title, monitor, share) {
  2957. var i, id;
  2958. for (i = 0; i < GLFW.windows.length && GLFW.windows[i] !== null; i++);
  2959. if (i > 0) throw "glfwCreateWindow only supports one window at time currently";
  2960. // id for window
  2961. id = i + 1;
  2962. // not valid
  2963. if (width <= 0 || height <= 0) return 0;
  2964. if (monitor) {
  2965. GLFW.requestFullscreen();
  2966. } else {
  2967. Browser.setCanvasSize(width, height);
  2968. }
  2969. // Create context when there are no existing alive windows
  2970. for (i = 0; i < GLFW.windows.length && GLFW.windows[i] == null; i++);
  2971. if (i == GLFW.windows.length) {
  2972. var contextAttributes = {
  2973. antialias: (GLFW.hints[0x0002100D] > 1), // GLFW_SAMPLES
  2974. depth: (GLFW.hints[0x00021005] > 0), // GLFW_DEPTH_BITS
  2975. stencil: (GLFW.hints[0x00021006] > 0), // GLFW_STENCIL_BITS
  2976. alpha: (GLFW.hints[0x00021004] > 0) // GLFW_ALPHA_BITS
  2977. }
  2978. Module.ctx = Browser.createContext(Module['canvas'], true, true, contextAttributes);
  2979. }
  2980. // If context creation failed, do not return a valid window
  2981. if (!Module.ctx) return 0;
  2982. // Get non alive id
  2983. var win = new GLFW.Window(id, width, height, title, monitor, share);
  2984. // Set window to array
  2985. if (id - 1 == GLFW.windows.length) {
  2986. GLFW.windows.push(win);
  2987. } else {
  2988. GLFW.windows[id - 1] = win;
  2989. }
  2990. GLFW.active = win;
  2991. return win.id;
  2992. },destroyWindow:function (winid) {
  2993. var win = GLFW.WindowFromId(winid);
  2994. if (!win) return;
  2995. if (win.windowCloseFunc)
  2996. Module['dynCall_vi'](win.windowCloseFunc, win.id);
  2997. GLFW.windows[win.id - 1] = null;
  2998. if (GLFW.active.id == win.id)
  2999. GLFW.active = null;
  3000. // Destroy context when no alive windows
  3001. for (var i = 0; i < GLFW.windows.length; i++)
  3002. if (GLFW.windows[i] !== null) return;
  3003. Module.ctx = Browser.destroyContext(Module['canvas'], true, true);
  3004. },swapBuffers:function (winid) {
  3005. },GLFW2ParamToGLFW3Param:function (param) {
  3006. table = {
  3007. 0x00030001:0, // GLFW_MOUSE_CURSOR
  3008. 0x00030002:0, // GLFW_STICKY_KEYS
  3009. 0x00030003:0, // GLFW_STICKY_MOUSE_BUTTONS
  3010. 0x00030004:0, // GLFW_SYSTEM_KEYS
  3011. 0x00030005:0, // GLFW_KEY_REPEAT
  3012. 0x00030006:0, // GLFW_AUTO_POLL_EVENTS
  3013. 0x00020001:0, // GLFW_OPENED
  3014. 0x00020002:0, // GLFW_ACTIVE
  3015. 0x00020003:0, // GLFW_ICONIFIED
  3016. 0x00020004:0, // GLFW_ACCELERATED
  3017. 0x00020005:0x00021001, // GLFW_RED_BITS
  3018. 0x00020006:0x00021002, // GLFW_GREEN_BITS
  3019. 0x00020007:0x00021003, // GLFW_BLUE_BITS
  3020. 0x00020008:0x00021004, // GLFW_ALPHA_BITS
  3021. 0x00020009:0x00021005, // GLFW_DEPTH_BITS
  3022. 0x0002000A:0x00021006, // GLFW_STENCIL_BITS
  3023. 0x0002000B:0x0002100F, // GLFW_REFRESH_RATE
  3024. 0x0002000C:0x00021007, // GLFW_ACCUM_RED_BITS
  3025. 0x0002000D:0x00021008, // GLFW_ACCUM_GREEN_BITS
  3026. 0x0002000E:0x00021009, // GLFW_ACCUM_BLUE_BITS
  3027. 0x0002000F:0x0002100A, // GLFW_ACCUM_ALPHA_BITS
  3028. 0x00020010:0x0002100B, // GLFW_AUX_BUFFERS
  3029. 0x00020011:0x0002100C, // GLFW_STEREO
  3030. 0x00020012:0, // GLFW_WINDOW_NO_RESIZE
  3031. 0x00020013:0x0002100D, // GLFW_FSAA_SAMPLES
  3032. 0x00020014:0x00022002, // GLFW_OPENGL_VERSION_MAJOR
  3033. 0x00020015:0x00022003, // GLFW_OPENGL_VERSION_MINOR
  3034. 0x00020016:0x00022006, // GLFW_OPENGL_FORWARD_COMPAT
  3035. 0x00020017:0x00022007, // GLFW_OPENGL_DEBUG_CONTEXT
  3036. 0x00020018:0x00022008, // GLFW_OPENGL_PROFILE
  3037. };
  3038. return table[param];
  3039. }};function _glfwGetVideoModes(monitor, count) {
  3040. setValue(count, 0, 'i32');
  3041. return 0;
  3042. }
  3043. function _glLinkProgram(program) {
  3044. GLctx.linkProgram(GL.programs[program]);
  3045. GL.programInfos[program] = null; // uniforms no longer keep the same names after linking
  3046. GL.populateUniformTable(program);
  3047. }
  3048. function _glBindTexture(target, texture) {
  3049. GLctx.bindTexture(target, texture ? GL.textures[texture] : null);
  3050. }
  3051. function _emscripten_glStencilFunc(x0, x1, x2) { GLctx['stencilFunc'](x0, x1, x2) }
  3052. function _glGetString(name_) {
  3053. if (GL.stringCache[name_]) return GL.stringCache[name_];
  3054. var ret;
  3055. switch(name_) {
  3056. case 0x1F00 /* GL_VENDOR */:
  3057. case 0x1F01 /* GL_RENDERER */:
  3058. case 0x9245 /* UNMASKED_VENDOR_WEBGL */:
  3059. case 0x9246 /* UNMASKED_RENDERER_WEBGL */:
  3060. ret = allocate(intArrayFromString(GLctx.getParameter(name_)), 'i8', ALLOC_NORMAL);
  3061. break;
  3062. case 0x1F02 /* GL_VERSION */:
  3063. var glVersion = GLctx.getParameter(GLctx.VERSION);
  3064. // return GLES version string corresponding to the version of the WebGL context
  3065. {
  3066. glVersion = 'OpenGL ES 2.0 (' + glVersion + ')';
  3067. }
  3068. ret = allocate(intArrayFromString(glVersion), 'i8', ALLOC_NORMAL);
  3069. break;
  3070. case 0x1F03 /* GL_EXTENSIONS */:
  3071. var exts = GLctx.getSupportedExtensions();
  3072. var gl_exts = [];
  3073. for (var i = 0; i < exts.length; ++i) {
  3074. gl_exts.push(exts[i]);
  3075. gl_exts.push("GL_" + exts[i]);
  3076. }
  3077. ret = allocate(intArrayFromString(gl_exts.join(' ')), 'i8', ALLOC_NORMAL);
  3078. break;
  3079. case 0x8B8C /* GL_SHADING_LANGUAGE_VERSION */:
  3080. var glslVersion = GLctx.getParameter(GLctx.SHADING_LANGUAGE_VERSION);
  3081. // extract the version number 'N.M' from the string 'WebGL GLSL ES N.M ...'
  3082. var ver_re = /^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/;
  3083. var ver_num = glslVersion.match(ver_re);
  3084. if (ver_num !== null) {
  3085. if (ver_num[1].length == 3) ver_num[1] = ver_num[1] + '0'; // ensure minor version has 2 digits
  3086. glslVersion = 'OpenGL ES GLSL ES ' + ver_num[1] + ' (' + glslVersion + ')';
  3087. }
  3088. ret = allocate(intArrayFromString(glslVersion), 'i8', ALLOC_NORMAL);
  3089. break;
  3090. default:
  3091. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  3092. return 0;
  3093. }
  3094. GL.stringCache[name_] = ret;
  3095. return ret;
  3096. }
  3097. function _emscripten_glUniform3iv(location, count, value) {
  3098. GLctx.uniform3iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*12)>>2));
  3099. }
  3100. function _emscripten_glShaderSource(shader, count, string, length) {
  3101. var source = GL.getSource(shader, count, string, length);
  3102. GLctx.shaderSource(GL.shaders[shader], source);
  3103. }
  3104. function _emscripten_glReleaseShaderCompiler() {
  3105. // NOP (as allowed by GLES 2.0 spec)
  3106. }
  3107. function _glfwSetScrollCallback(winid, cbfun) {
  3108. GLFW.setScrollCallback(winid, cbfun);
  3109. }
  3110. function _emscripten_glTexParameterf(x0, x1, x2) { GLctx['texParameterf'](x0, x1, x2) }
  3111. function _emscripten_glTexParameteri(x0, x1, x2) { GLctx['texParameteri'](x0, x1, x2) }
  3112. function _glCompileShader(shader) {
  3113. GLctx.compileShader(GL.shaders[shader]);
  3114. }
  3115. var ERRNO_CODES={EPERM:1,ENOENT:2,ESRCH:3,EINTR:4,EIO:5,ENXIO:6,E2BIG:7,ENOEXEC:8,EBADF:9,ECHILD:10,EAGAIN:11,EWOULDBLOCK:11,ENOMEM:12,EACCES:13,EFAULT:14,ENOTBLK:15,EBUSY:16,EEXIST:17,EXDEV:18,ENODEV:19,ENOTDIR:20,EISDIR:21,EINVAL:22,ENFILE:23,EMFILE:24,ENOTTY:25,ETXTBSY:26,EFBIG:27,ENOSPC:28,ESPIPE:29,EROFS:30,EMLINK:31,EPIPE:32,EDOM:33,ERANGE:34,ENOMSG:42,EIDRM:43,ECHRNG:44,EL2NSYNC:45,EL3HLT:46,EL3RST:47,ELNRNG:48,EUNATCH:49,ENOCSI:50,EL2HLT:51,EDEADLK:35,ENOLCK:37,EBADE:52,EBADR:53,EXFULL:54,ENOANO:55,EBADRQC:56,EBADSLT:57,EDEADLOCK:35,EBFONT:59,ENOSTR:60,ENODATA:61,ETIME:62,ENOSR:63,ENONET:64,ENOPKG:65,EREMOTE:66,ENOLINK:67,EADV:68,ESRMNT:69,ECOMM:70,EPROTO:71,EMULTIHOP:72,EDOTDOT:73,EBADMSG:74,ENOTUNIQ:76,EBADFD:77,EREMCHG:78,ELIBACC:79,ELIBBAD:80,ELIBSCN:81,ELIBMAX:82,ELIBEXEC:83,ENOSYS:38,ENOTEMPTY:39,ENAMETOOLONG:36,ELOOP:40,EOPNOTSUPP:95,EPFNOSUPPORT:96,ECONNRESET:104,ENOBUFS:105,EAFNOSUPPORT:97,EPROTOTYPE:91,ENOTSOCK:88,ENOPROTOOPT:92,ESHUTDOWN:108,ECONNREFUSED:111,EADDRINUSE:98,ECONNABORTED:103,ENETUNREACH:101,ENETDOWN:100,ETIMEDOUT:110,EHOSTDOWN:112,EHOSTUNREACH:113,EINPROGRESS:115,EALREADY:114,EDESTADDRREQ:89,EMSGSIZE:90,EPROTONOSUPPORT:93,ESOCKTNOSUPPORT:94,EADDRNOTAVAIL:99,ENETRESET:102,EISCONN:106,ENOTCONN:107,ETOOMANYREFS:109,EUSERS:87,EDQUOT:122,ESTALE:116,ENOTSUP:95,ENOMEDIUM:123,EILSEQ:84,EOVERFLOW:75,ECANCELED:125,ENOTRECOVERABLE:131,EOWNERDEAD:130,ESTRPIPE:86};
  3116. var ERRNO_MESSAGES={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"};
  3117. function ___setErrNo(value) {
  3118. if (Module['___errno_location']) HEAP32[((Module['___errno_location']())>>2)]=value;
  3119. else Module.printErr('failed to set errno from JS');
  3120. return value;
  3121. }
  3122. var PATH={splitPath:function (filename) {
  3123. var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
  3124. return splitPathRe.exec(filename).slice(1);
  3125. },normalizeArray:function (parts, allowAboveRoot) {
  3126. // if the path tries to go above the root, `up` ends up > 0
  3127. var up = 0;
  3128. for (var i = parts.length - 1; i >= 0; i--) {
  3129. var last = parts[i];
  3130. if (last === '.') {
  3131. parts.splice(i, 1);
  3132. } else if (last === '..') {
  3133. parts.splice(i, 1);
  3134. up++;
  3135. } else if (up) {
  3136. parts.splice(i, 1);
  3137. up--;
  3138. }
  3139. }
  3140. // if the path is allowed to go above the root, restore leading ..s
  3141. if (allowAboveRoot) {
  3142. for (; up--; up) {
  3143. parts.unshift('..');
  3144. }
  3145. }
  3146. return parts;
  3147. },normalize:function (path) {
  3148. var isAbsolute = path.charAt(0) === '/',
  3149. trailingSlash = path.substr(-1) === '/';
  3150. // Normalize the path
  3151. path = PATH.normalizeArray(path.split('/').filter(function(p) {
  3152. return !!p;
  3153. }), !isAbsolute).join('/');
  3154. if (!path && !isAbsolute) {
  3155. path = '.';
  3156. }
  3157. if (path && trailingSlash) {
  3158. path += '/';
  3159. }
  3160. return (isAbsolute ? '/' : '') + path;
  3161. },dirname:function (path) {
  3162. var result = PATH.splitPath(path),
  3163. root = result[0],
  3164. dir = result[1];
  3165. if (!root && !dir) {
  3166. // No dirname whatsoever
  3167. return '.';
  3168. }
  3169. if (dir) {
  3170. // It has a dirname, strip trailing slash
  3171. dir = dir.substr(0, dir.length - 1);
  3172. }
  3173. return root + dir;
  3174. },basename:function (path) {
  3175. // EMSCRIPTEN return '/'' for '/', not an empty string
  3176. if (path === '/') return '/';
  3177. var lastSlash = path.lastIndexOf('/');
  3178. if (lastSlash === -1) return path;
  3179. return path.substr(lastSlash+1);
  3180. },extname:function (path) {
  3181. return PATH.splitPath(path)[3];
  3182. },join:function () {
  3183. var paths = Array.prototype.slice.call(arguments, 0);
  3184. return PATH.normalize(paths.join('/'));
  3185. },join2:function (l, r) {
  3186. return PATH.normalize(l + '/' + r);
  3187. },resolve:function () {
  3188. var resolvedPath = '',
  3189. resolvedAbsolute = false;
  3190. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  3191. var path = (i >= 0) ? arguments[i] : FS.cwd();
  3192. // Skip empty and invalid entries
  3193. if (typeof path !== 'string') {
  3194. throw new TypeError('Arguments to path.resolve must be strings');
  3195. } else if (!path) {
  3196. return ''; // an invalid portion invalidates the whole thing
  3197. }
  3198. resolvedPath = path + '/' + resolvedPath;
  3199. resolvedAbsolute = path.charAt(0) === '/';
  3200. }
  3201. // At this point the path should be resolved to a full absolute path, but
  3202. // handle relative paths to be safe (might happen when process.cwd() fails)
  3203. resolvedPath = PATH.normalizeArray(resolvedPath.split('/').filter(function(p) {
  3204. return !!p;
  3205. }), !resolvedAbsolute).join('/');
  3206. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  3207. },relative:function (from, to) {
  3208. from = PATH.resolve(from).substr(1);
  3209. to = PATH.resolve(to).substr(1);
  3210. function trim(arr) {
  3211. var start = 0;
  3212. for (; start < arr.length; start++) {
  3213. if (arr[start] !== '') break;
  3214. }
  3215. var end = arr.length - 1;
  3216. for (; end >= 0; end--) {
  3217. if (arr[end] !== '') break;
  3218. }
  3219. if (start > end) return [];
  3220. return arr.slice(start, end - start + 1);
  3221. }
  3222. var fromParts = trim(from.split('/'));
  3223. var toParts = trim(to.split('/'));
  3224. var length = Math.min(fromParts.length, toParts.length);
  3225. var samePartsLength = length;
  3226. for (var i = 0; i < length; i++) {
  3227. if (fromParts[i] !== toParts[i]) {
  3228. samePartsLength = i;
  3229. break;
  3230. }
  3231. }
  3232. var outputParts = [];
  3233. for (var i = samePartsLength; i < fromParts.length; i++) {
  3234. outputParts.push('..');
  3235. }
  3236. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  3237. return outputParts.join('/');
  3238. }};
  3239. var TTY={ttys:[],init:function () {
  3240. // https://github.com/kripken/emscripten/pull/1555
  3241. // if (ENVIRONMENT_IS_NODE) {
  3242. // // currently, FS.init does not distinguish if process.stdin is a file or TTY
  3243. // // device, it always assumes it's a TTY device. because of this, we're forcing
  3244. // // process.stdin to UTF8 encoding to at least make stdin reading compatible
  3245. // // with text files until FS.init can be refactored.
  3246. // process['stdin']['setEncoding']('utf8');
  3247. // }
  3248. },shutdown:function () {
  3249. // https://github.com/kripken/emscripten/pull/1555
  3250. // if (ENVIRONMENT_IS_NODE) {
  3251. // // inolen: any idea as to why node -e 'process.stdin.read()' wouldn't exit immediately (with process.stdin being a tty)?
  3252. // // isaacs: because now it's reading from the stream, you've expressed interest in it, so that read() kicks off a _read() which creates a ReadReq operation
  3253. // // inolen: I thought read() in that case was a synchronous operation that just grabbed some amount of buffered data if it exists?
  3254. // // isaacs: it is. but it also triggers a _read() call, which calls readStart() on the handle
  3255. // // isaacs: do process.stdin.pause() and i'd think it'd probably close the pending call
  3256. // process['stdin']['pause']();
  3257. // }
  3258. },register:function (dev, ops) {
  3259. TTY.ttys[dev] = { input: [], output: [], ops: ops };
  3260. FS.registerDevice(dev, TTY.stream_ops);
  3261. },stream_ops:{open:function (stream) {
  3262. var tty = TTY.ttys[stream.node.rdev];
  3263. if (!tty) {
  3264. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3265. }
  3266. stream.tty = tty;
  3267. stream.seekable = false;
  3268. },close:function (stream) {
  3269. // flush any pending line data
  3270. stream.tty.ops.flush(stream.tty);
  3271. },flush:function (stream) {
  3272. stream.tty.ops.flush(stream.tty);
  3273. },read:function (stream, buffer, offset, length, pos /* ignored */) {
  3274. if (!stream.tty || !stream.tty.ops.get_char) {
  3275. throw new FS.ErrnoError(ERRNO_CODES.ENXIO);
  3276. }
  3277. var bytesRead = 0;
  3278. for (var i = 0; i < length; i++) {
  3279. var result;
  3280. try {
  3281. result = stream.tty.ops.get_char(stream.tty);
  3282. } catch (e) {
  3283. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  3284. }
  3285. if (result === undefined && bytesRead === 0) {
  3286. throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
  3287. }
  3288. if (result === null || result === undefined) break;
  3289. bytesRead++;
  3290. buffer[offset+i] = result;
  3291. }
  3292. if (bytesRead) {
  3293. stream.node.timestamp = Date.now();
  3294. }
  3295. return bytesRead;
  3296. },write:function (stream, buffer, offset, length, pos) {
  3297. if (!stream.tty || !stream.tty.ops.put_char) {
  3298. throw new FS.ErrnoError(ERRNO_CODES.ENXIO);
  3299. }
  3300. for (var i = 0; i < length; i++) {
  3301. try {
  3302. stream.tty.ops.put_char(stream.tty, buffer[offset+i]);
  3303. } catch (e) {
  3304. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  3305. }
  3306. }
  3307. if (length) {
  3308. stream.node.timestamp = Date.now();
  3309. }
  3310. return i;
  3311. }},default_tty_ops:{get_char:function (tty) {
  3312. if (!tty.input.length) {
  3313. var result = null;
  3314. if (ENVIRONMENT_IS_NODE) {
  3315. // we will read data by chunks of BUFSIZE
  3316. var BUFSIZE = 256;
  3317. var buf = new Buffer(BUFSIZE);
  3318. var bytesRead = 0;
  3319. var isPosixPlatform = (process.platform != 'win32'); // Node doesn't offer a direct check, so test by exclusion
  3320. var fd = process.stdin.fd;
  3321. if (isPosixPlatform) {
  3322. // Linux and Mac cannot use process.stdin.fd (which isn't set up as sync)
  3323. var usingDevice = false;
  3324. try {
  3325. fd = fs.openSync('/dev/stdin', 'r');
  3326. usingDevice = true;
  3327. } catch (e) {}
  3328. }
  3329. try {
  3330. bytesRead = fs.readSync(fd, buf, 0, BUFSIZE, null);
  3331. } catch(e) {
  3332. // Cross-platform differences: on Windows, reading EOF throws an exception, but on other OSes,
  3333. // reading EOF returns 0. Uniformize behavior by treating the EOF exception to return 0.
  3334. if (e.toString().indexOf('EOF') != -1) bytesRead = 0;
  3335. else throw e;
  3336. }
  3337. if (usingDevice) { fs.closeSync(fd); }
  3338. if (bytesRead > 0) {
  3339. result = buf.slice(0, bytesRead).toString('utf-8');
  3340. } else {
  3341. result = null;
  3342. }
  3343. } else if (typeof window != 'undefined' &&
  3344. typeof window.prompt == 'function') {
  3345. // Browser.
  3346. result = window.prompt('Input: '); // returns null on cancel
  3347. if (result !== null) {
  3348. result += '\n';
  3349. }
  3350. } else if (typeof readline == 'function') {
  3351. // Command line.
  3352. result = readline();
  3353. if (result !== null) {
  3354. result += '\n';
  3355. }
  3356. }
  3357. if (!result) {
  3358. return null;
  3359. }
  3360. tty.input = intArrayFromString(result, true);
  3361. }
  3362. return tty.input.shift();
  3363. },put_char:function (tty, val) {
  3364. if (val === null || val === 10) {
  3365. Module['print'](UTF8ArrayToString(tty.output, 0));
  3366. tty.output = [];
  3367. } else {
  3368. if (val != 0) tty.output.push(val); // val == 0 would cut text output off in the middle.
  3369. }
  3370. },flush:function (tty) {
  3371. if (tty.output && tty.output.length > 0) {
  3372. Module['print'](UTF8ArrayToString(tty.output, 0));
  3373. tty.output = [];
  3374. }
  3375. }},default_tty1_ops:{put_char:function (tty, val) {
  3376. if (val === null || val === 10) {
  3377. Module['printErr'](UTF8ArrayToString(tty.output, 0));
  3378. tty.output = [];
  3379. } else {
  3380. if (val != 0) tty.output.push(val);
  3381. }
  3382. },flush:function (tty) {
  3383. if (tty.output && tty.output.length > 0) {
  3384. Module['printErr'](UTF8ArrayToString(tty.output, 0));
  3385. tty.output = [];
  3386. }
  3387. }}};
  3388. var MEMFS={ops_table:null,mount:function (mount) {
  3389. return MEMFS.createNode(null, '/', 16384 | 511 /* 0777 */, 0);
  3390. },createNode:function (parent, name, mode, dev) {
  3391. if (FS.isBlkdev(mode) || FS.isFIFO(mode)) {
  3392. // no supported
  3393. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  3394. }
  3395. if (!MEMFS.ops_table) {
  3396. MEMFS.ops_table = {
  3397. dir: {
  3398. node: {
  3399. getattr: MEMFS.node_ops.getattr,
  3400. setattr: MEMFS.node_ops.setattr,
  3401. lookup: MEMFS.node_ops.lookup,
  3402. mknod: MEMFS.node_ops.mknod,
  3403. rename: MEMFS.node_ops.rename,
  3404. unlink: MEMFS.node_ops.unlink,
  3405. rmdir: MEMFS.node_ops.rmdir,
  3406. readdir: MEMFS.node_ops.readdir,
  3407. symlink: MEMFS.node_ops.symlink
  3408. },
  3409. stream: {
  3410. llseek: MEMFS.stream_ops.llseek
  3411. }
  3412. },
  3413. file: {
  3414. node: {
  3415. getattr: MEMFS.node_ops.getattr,
  3416. setattr: MEMFS.node_ops.setattr
  3417. },
  3418. stream: {
  3419. llseek: MEMFS.stream_ops.llseek,
  3420. read: MEMFS.stream_ops.read,
  3421. write: MEMFS.stream_ops.write,
  3422. allocate: MEMFS.stream_ops.allocate,
  3423. mmap: MEMFS.stream_ops.mmap,
  3424. msync: MEMFS.stream_ops.msync
  3425. }
  3426. },
  3427. link: {
  3428. node: {
  3429. getattr: MEMFS.node_ops.getattr,
  3430. setattr: MEMFS.node_ops.setattr,
  3431. readlink: MEMFS.node_ops.readlink
  3432. },
  3433. stream: {}
  3434. },
  3435. chrdev: {
  3436. node: {
  3437. getattr: MEMFS.node_ops.getattr,
  3438. setattr: MEMFS.node_ops.setattr
  3439. },
  3440. stream: FS.chrdev_stream_ops
  3441. }
  3442. };
  3443. }
  3444. var node = FS.createNode(parent, name, mode, dev);
  3445. if (FS.isDir(node.mode)) {
  3446. node.node_ops = MEMFS.ops_table.dir.node;
  3447. node.stream_ops = MEMFS.ops_table.dir.stream;
  3448. node.contents = {};
  3449. } else if (FS.isFile(node.mode)) {
  3450. node.node_ops = MEMFS.ops_table.file.node;
  3451. node.stream_ops = MEMFS.ops_table.file.stream;
  3452. node.usedBytes = 0; // The actual number of bytes used in the typed array, as opposed to contents.length which gives the whole capacity.
  3453. // When the byte data of the file is populated, this will point to either a typed array, or a normal JS array. Typed arrays are preferred
  3454. // for performance, and used by default. However, typed arrays are not resizable like normal JS arrays are, so there is a small disk size
  3455. // penalty involved for appending file writes that continuously grow a file similar to std::vector capacity vs used -scheme.
  3456. node.contents = null;
  3457. } else if (FS.isLink(node.mode)) {
  3458. node.node_ops = MEMFS.ops_table.link.node;
  3459. node.stream_ops = MEMFS.ops_table.link.stream;
  3460. } else if (FS.isChrdev(node.mode)) {
  3461. node.node_ops = MEMFS.ops_table.chrdev.node;
  3462. node.stream_ops = MEMFS.ops_table.chrdev.stream;
  3463. }
  3464. node.timestamp = Date.now();
  3465. // add the new node to the parent
  3466. if (parent) {
  3467. parent.contents[name] = node;
  3468. }
  3469. return node;
  3470. },getFileDataAsRegularArray:function (node) {
  3471. if (node.contents && node.contents.subarray) {
  3472. var arr = [];
  3473. for (var i = 0; i < node.usedBytes; ++i) arr.push(node.contents[i]);
  3474. return arr; // Returns a copy of the original data.
  3475. }
  3476. return node.contents; // No-op, the file contents are already in a JS array. Return as-is.
  3477. },getFileDataAsTypedArray:function (node) {
  3478. if (!node.contents) return new Uint8Array;
  3479. if (node.contents.subarray) return node.contents.subarray(0, node.usedBytes); // Make sure to not return excess unused bytes.
  3480. return new Uint8Array(node.contents);
  3481. },expandFileStorage:function (node, newCapacity) {
  3482. // If we are asked to expand the size of a file that already exists, revert to using a standard JS array to store the file
  3483. // instead of a typed array. This makes resizing the array more flexible because we can just .push() elements at the back to
  3484. // increase the size.
  3485. if (node.contents && node.contents.subarray && newCapacity > node.contents.length) {
  3486. node.contents = MEMFS.getFileDataAsRegularArray(node);
  3487. node.usedBytes = node.contents.length; // We might be writing to a lazy-loaded file which had overridden this property, so force-reset it.
  3488. }
  3489. if (!node.contents || node.contents.subarray) { // Keep using a typed array if creating a new storage, or if old one was a typed array as well.
  3490. var prevCapacity = node.contents ? node.contents.length : 0;
  3491. if (prevCapacity >= newCapacity) return; // No need to expand, the storage was already large enough.
  3492. // Don't expand strictly to the given requested limit if it's only a very small increase, but instead geometrically grow capacity.
  3493. // For small filesizes (<1MB), perform size*2 geometric increase, but for large sizes, do a much more conservative size*1.125 increase to
  3494. // avoid overshooting the allocation cap by a very large margin.
  3495. var CAPACITY_DOUBLING_MAX = 1024 * 1024;
  3496. newCapacity = Math.max(newCapacity, (prevCapacity * (prevCapacity < CAPACITY_DOUBLING_MAX ? 2.0 : 1.125)) | 0);
  3497. if (prevCapacity != 0) newCapacity = Math.max(newCapacity, 256); // At minimum allocate 256b for each file when expanding.
  3498. var oldContents = node.contents;
  3499. node.contents = new Uint8Array(newCapacity); // Allocate new storage.
  3500. if (node.usedBytes > 0) node.contents.set(oldContents.subarray(0, node.usedBytes), 0); // Copy old data over to the new storage.
  3501. return;
  3502. }
  3503. // Not using a typed array to back the file storage. Use a standard JS array instead.
  3504. if (!node.contents && newCapacity > 0) node.contents = [];
  3505. while (node.contents.length < newCapacity) node.contents.push(0);
  3506. },resizeFileStorage:function (node, newSize) {
  3507. if (node.usedBytes == newSize) return;
  3508. if (newSize == 0) {
  3509. node.contents = null; // Fully decommit when requesting a resize to zero.
  3510. node.usedBytes = 0;
  3511. return;
  3512. }
  3513. if (!node.contents || node.contents.subarray) { // Resize a typed array if that is being used as the backing store.
  3514. var oldContents = node.contents;
  3515. node.contents = new Uint8Array(new ArrayBuffer(newSize)); // Allocate new storage.
  3516. if (oldContents) {
  3517. node.contents.set(oldContents.subarray(0, Math.min(newSize, node.usedBytes))); // Copy old data over to the new storage.
  3518. }
  3519. node.usedBytes = newSize;
  3520. return;
  3521. }
  3522. // Backing with a JS array.
  3523. if (!node.contents) node.contents = [];
  3524. if (node.contents.length > newSize) node.contents.length = newSize;
  3525. else while (node.contents.length < newSize) node.contents.push(0);
  3526. node.usedBytes = newSize;
  3527. },node_ops:{getattr:function (node) {
  3528. var attr = {};
  3529. // device numbers reuse inode numbers.
  3530. attr.dev = FS.isChrdev(node.mode) ? node.id : 1;
  3531. attr.ino = node.id;
  3532. attr.mode = node.mode;
  3533. attr.nlink = 1;
  3534. attr.uid = 0;
  3535. attr.gid = 0;
  3536. attr.rdev = node.rdev;
  3537. if (FS.isDir(node.mode)) {
  3538. attr.size = 4096;
  3539. } else if (FS.isFile(node.mode)) {
  3540. attr.size = node.usedBytes;
  3541. } else if (FS.isLink(node.mode)) {
  3542. attr.size = node.link.length;
  3543. } else {
  3544. attr.size = 0;
  3545. }
  3546. attr.atime = new Date(node.timestamp);
  3547. attr.mtime = new Date(node.timestamp);
  3548. attr.ctime = new Date(node.timestamp);
  3549. // NOTE: In our implementation, st_blocks = Math.ceil(st_size/st_blksize),
  3550. // but this is not required by the standard.
  3551. attr.blksize = 4096;
  3552. attr.blocks = Math.ceil(attr.size / attr.blksize);
  3553. return attr;
  3554. },setattr:function (node, attr) {
  3555. if (attr.mode !== undefined) {
  3556. node.mode = attr.mode;
  3557. }
  3558. if (attr.timestamp !== undefined) {
  3559. node.timestamp = attr.timestamp;
  3560. }
  3561. if (attr.size !== undefined) {
  3562. MEMFS.resizeFileStorage(node, attr.size);
  3563. }
  3564. },lookup:function (parent, name) {
  3565. throw FS.genericErrors[ERRNO_CODES.ENOENT];
  3566. },mknod:function (parent, name, mode, dev) {
  3567. return MEMFS.createNode(parent, name, mode, dev);
  3568. },rename:function (old_node, new_dir, new_name) {
  3569. // if we're overwriting a directory at new_name, make sure it's empty.
  3570. if (FS.isDir(old_node.mode)) {
  3571. var new_node;
  3572. try {
  3573. new_node = FS.lookupNode(new_dir, new_name);
  3574. } catch (e) {
  3575. }
  3576. if (new_node) {
  3577. for (var i in new_node.contents) {
  3578. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  3579. }
  3580. }
  3581. }
  3582. // do the internal rewiring
  3583. delete old_node.parent.contents[old_node.name];
  3584. old_node.name = new_name;
  3585. new_dir.contents[new_name] = old_node;
  3586. old_node.parent = new_dir;
  3587. },unlink:function (parent, name) {
  3588. delete parent.contents[name];
  3589. },rmdir:function (parent, name) {
  3590. var node = FS.lookupNode(parent, name);
  3591. for (var i in node.contents) {
  3592. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  3593. }
  3594. delete parent.contents[name];
  3595. },readdir:function (node) {
  3596. var entries = ['.', '..']
  3597. for (var key in node.contents) {
  3598. if (!node.contents.hasOwnProperty(key)) {
  3599. continue;
  3600. }
  3601. entries.push(key);
  3602. }
  3603. return entries;
  3604. },symlink:function (parent, newname, oldpath) {
  3605. var node = MEMFS.createNode(parent, newname, 511 /* 0777 */ | 40960, 0);
  3606. node.link = oldpath;
  3607. return node;
  3608. },readlink:function (node) {
  3609. if (!FS.isLink(node.mode)) {
  3610. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3611. }
  3612. return node.link;
  3613. }},stream_ops:{read:function (stream, buffer, offset, length, position) {
  3614. var contents = stream.node.contents;
  3615. if (position >= stream.node.usedBytes) return 0;
  3616. var size = Math.min(stream.node.usedBytes - position, length);
  3617. assert(size >= 0);
  3618. if (size > 8 && contents.subarray) { // non-trivial, and typed array
  3619. buffer.set(contents.subarray(position, position + size), offset);
  3620. } else {
  3621. for (var i = 0; i < size; i++) buffer[offset + i] = contents[position + i];
  3622. }
  3623. return size;
  3624. },write:function (stream, buffer, offset, length, position, canOwn) {
  3625. if (!length) return 0;
  3626. var node = stream.node;
  3627. node.timestamp = Date.now();
  3628. if (buffer.subarray && (!node.contents || node.contents.subarray)) { // This write is from a typed array to a typed array?
  3629. if (canOwn) {
  3630. assert(position === 0, 'canOwn must imply no weird position inside the file');
  3631. node.contents = buffer.subarray(offset, offset + length);
  3632. node.usedBytes = length;
  3633. return length;
  3634. } else if (node.usedBytes === 0 && position === 0) { // If this is a simple first write to an empty file, do a fast set since we don't need to care about old data.
  3635. node.contents = new Uint8Array(buffer.subarray(offset, offset + length));
  3636. node.usedBytes = length;
  3637. return length;
  3638. } else if (position + length <= node.usedBytes) { // Writing to an already allocated and used subrange of the file?
  3639. node.contents.set(buffer.subarray(offset, offset + length), position);
  3640. return length;
  3641. }
  3642. }
  3643. // Appending to an existing file and we need to reallocate, or source data did not come as a typed array.
  3644. MEMFS.expandFileStorage(node, position+length);
  3645. if (node.contents.subarray && buffer.subarray) node.contents.set(buffer.subarray(offset, offset + length), position); // Use typed array write if available.
  3646. else {
  3647. for (var i = 0; i < length; i++) {
  3648. node.contents[position + i] = buffer[offset + i]; // Or fall back to manual write if not.
  3649. }
  3650. }
  3651. node.usedBytes = Math.max(node.usedBytes, position+length);
  3652. return length;
  3653. },llseek:function (stream, offset, whence) {
  3654. var position = offset;
  3655. if (whence === 1) { // SEEK_CUR.
  3656. position += stream.position;
  3657. } else if (whence === 2) { // SEEK_END.
  3658. if (FS.isFile(stream.node.mode)) {
  3659. position += stream.node.usedBytes;
  3660. }
  3661. }
  3662. if (position < 0) {
  3663. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3664. }
  3665. return position;
  3666. },allocate:function (stream, offset, length) {
  3667. MEMFS.expandFileStorage(stream.node, offset + length);
  3668. stream.node.usedBytes = Math.max(stream.node.usedBytes, offset + length);
  3669. },mmap:function (stream, buffer, offset, length, position, prot, flags) {
  3670. if (!FS.isFile(stream.node.mode)) {
  3671. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3672. }
  3673. var ptr;
  3674. var allocated;
  3675. var contents = stream.node.contents;
  3676. // Only make a new copy when MAP_PRIVATE is specified.
  3677. if ( !(flags & 2) &&
  3678. (contents.buffer === buffer || contents.buffer === buffer.buffer) ) {
  3679. // We can't emulate MAP_SHARED when the file is not backed by the buffer
  3680. // we're mapping to (e.g. the HEAP buffer).
  3681. allocated = false;
  3682. ptr = contents.byteOffset;
  3683. } else {
  3684. // Try to avoid unnecessary slices.
  3685. if (position > 0 || position + length < stream.node.usedBytes) {
  3686. if (contents.subarray) {
  3687. contents = contents.subarray(position, position + length);
  3688. } else {
  3689. contents = Array.prototype.slice.call(contents, position, position + length);
  3690. }
  3691. }
  3692. allocated = true;
  3693. ptr = _malloc(length);
  3694. if (!ptr) {
  3695. throw new FS.ErrnoError(ERRNO_CODES.ENOMEM);
  3696. }
  3697. buffer.set(contents, ptr);
  3698. }
  3699. return { ptr: ptr, allocated: allocated };
  3700. },msync:function (stream, buffer, offset, length, mmapFlags) {
  3701. if (!FS.isFile(stream.node.mode)) {
  3702. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3703. }
  3704. if (mmapFlags & 2) {
  3705. // MAP_PRIVATE calls need not to be synced back to underlying fs
  3706. return 0;
  3707. }
  3708. var bytesWritten = MEMFS.stream_ops.write(stream, buffer, 0, length, offset, false);
  3709. // should we check if bytesWritten and length are the same?
  3710. return 0;
  3711. }}};
  3712. var IDBFS={dbs:{},indexedDB:function () {
  3713. if (typeof indexedDB !== 'undefined') return indexedDB;
  3714. var ret = null;
  3715. if (typeof window === 'object') ret = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
  3716. assert(ret, 'IDBFS used, but indexedDB not supported');
  3717. return ret;
  3718. },DB_VERSION:21,DB_STORE_NAME:"FILE_DATA",mount:function (mount) {
  3719. // reuse all of the core MEMFS functionality
  3720. return MEMFS.mount.apply(null, arguments);
  3721. },syncfs:function (mount, populate, callback) {
  3722. IDBFS.getLocalSet(mount, function(err, local) {
  3723. if (err) return callback(err);
  3724. IDBFS.getRemoteSet(mount, function(err, remote) {
  3725. if (err) return callback(err);
  3726. var src = populate ? remote : local;
  3727. var dst = populate ? local : remote;
  3728. IDBFS.reconcile(src, dst, callback);
  3729. });
  3730. });
  3731. },getDB:function (name, callback) {
  3732. // check the cache first
  3733. var db = IDBFS.dbs[name];
  3734. if (db) {
  3735. return callback(null, db);
  3736. }
  3737. var req;
  3738. try {
  3739. req = IDBFS.indexedDB().open(name, IDBFS.DB_VERSION);
  3740. } catch (e) {
  3741. return callback(e);
  3742. }
  3743. if (!req) {
  3744. return callback("Unable to connect to IndexedDB");
  3745. }
  3746. req.onupgradeneeded = function(e) {
  3747. var db = e.target.result;
  3748. var transaction = e.target.transaction;
  3749. var fileStore;
  3750. if (db.objectStoreNames.contains(IDBFS.DB_STORE_NAME)) {
  3751. fileStore = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3752. } else {
  3753. fileStore = db.createObjectStore(IDBFS.DB_STORE_NAME);
  3754. }
  3755. if (!fileStore.indexNames.contains('timestamp')) {
  3756. fileStore.createIndex('timestamp', 'timestamp', { unique: false });
  3757. }
  3758. };
  3759. req.onsuccess = function() {
  3760. db = req.result;
  3761. // add to the cache
  3762. IDBFS.dbs[name] = db;
  3763. callback(null, db);
  3764. };
  3765. req.onerror = function(e) {
  3766. callback(this.error);
  3767. e.preventDefault();
  3768. };
  3769. },getLocalSet:function (mount, callback) {
  3770. var entries = {};
  3771. function isRealDir(p) {
  3772. return p !== '.' && p !== '..';
  3773. };
  3774. function toAbsolute(root) {
  3775. return function(p) {
  3776. return PATH.join2(root, p);
  3777. }
  3778. };
  3779. var check = FS.readdir(mount.mountpoint).filter(isRealDir).map(toAbsolute(mount.mountpoint));
  3780. while (check.length) {
  3781. var path = check.pop();
  3782. var stat;
  3783. try {
  3784. stat = FS.stat(path);
  3785. } catch (e) {
  3786. return callback(e);
  3787. }
  3788. if (FS.isDir(stat.mode)) {
  3789. check.push.apply(check, FS.readdir(path).filter(isRealDir).map(toAbsolute(path)));
  3790. }
  3791. entries[path] = { timestamp: stat.mtime };
  3792. }
  3793. return callback(null, { type: 'local', entries: entries });
  3794. },getRemoteSet:function (mount, callback) {
  3795. var entries = {};
  3796. IDBFS.getDB(mount.mountpoint, function(err, db) {
  3797. if (err) return callback(err);
  3798. var transaction = db.transaction([IDBFS.DB_STORE_NAME], 'readonly');
  3799. transaction.onerror = function(e) {
  3800. callback(this.error);
  3801. e.preventDefault();
  3802. };
  3803. var store = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3804. var index = store.index('timestamp');
  3805. index.openKeyCursor().onsuccess = function(event) {
  3806. var cursor = event.target.result;
  3807. if (!cursor) {
  3808. return callback(null, { type: 'remote', db: db, entries: entries });
  3809. }
  3810. entries[cursor.primaryKey] = { timestamp: cursor.key };
  3811. cursor.continue();
  3812. };
  3813. });
  3814. },loadLocalEntry:function (path, callback) {
  3815. var stat, node;
  3816. try {
  3817. var lookup = FS.lookupPath(path);
  3818. node = lookup.node;
  3819. stat = FS.stat(path);
  3820. } catch (e) {
  3821. return callback(e);
  3822. }
  3823. if (FS.isDir(stat.mode)) {
  3824. return callback(null, { timestamp: stat.mtime, mode: stat.mode });
  3825. } else if (FS.isFile(stat.mode)) {
  3826. // Performance consideration: storing a normal JavaScript array to a IndexedDB is much slower than storing a typed array.
  3827. // Therefore always convert the file contents to a typed array first before writing the data to IndexedDB.
  3828. node.contents = MEMFS.getFileDataAsTypedArray(node);
  3829. return callback(null, { timestamp: stat.mtime, mode: stat.mode, contents: node.contents });
  3830. } else {
  3831. return callback(new Error('node type not supported'));
  3832. }
  3833. },storeLocalEntry:function (path, entry, callback) {
  3834. try {
  3835. if (FS.isDir(entry.mode)) {
  3836. FS.mkdir(path, entry.mode);
  3837. } else if (FS.isFile(entry.mode)) {
  3838. FS.writeFile(path, entry.contents, { encoding: 'binary', canOwn: true });
  3839. } else {
  3840. return callback(new Error('node type not supported'));
  3841. }
  3842. FS.chmod(path, entry.mode);
  3843. FS.utime(path, entry.timestamp, entry.timestamp);
  3844. } catch (e) {
  3845. return callback(e);
  3846. }
  3847. callback(null);
  3848. },removeLocalEntry:function (path, callback) {
  3849. try {
  3850. var lookup = FS.lookupPath(path);
  3851. var stat = FS.stat(path);
  3852. if (FS.isDir(stat.mode)) {
  3853. FS.rmdir(path);
  3854. } else if (FS.isFile(stat.mode)) {
  3855. FS.unlink(path);
  3856. }
  3857. } catch (e) {
  3858. return callback(e);
  3859. }
  3860. callback(null);
  3861. },loadRemoteEntry:function (store, path, callback) {
  3862. var req = store.get(path);
  3863. req.onsuccess = function(event) { callback(null, event.target.result); };
  3864. req.onerror = function(e) {
  3865. callback(this.error);
  3866. e.preventDefault();
  3867. };
  3868. },storeRemoteEntry:function (store, path, entry, callback) {
  3869. var req = store.put(entry, path);
  3870. req.onsuccess = function() { callback(null); };
  3871. req.onerror = function(e) {
  3872. callback(this.error);
  3873. e.preventDefault();
  3874. };
  3875. },removeRemoteEntry:function (store, path, callback) {
  3876. var req = store.delete(path);
  3877. req.onsuccess = function() { callback(null); };
  3878. req.onerror = function(e) {
  3879. callback(this.error);
  3880. e.preventDefault();
  3881. };
  3882. },reconcile:function (src, dst, callback) {
  3883. var total = 0;
  3884. var create = [];
  3885. Object.keys(src.entries).forEach(function (key) {
  3886. var e = src.entries[key];
  3887. var e2 = dst.entries[key];
  3888. if (!e2 || e.timestamp > e2.timestamp) {
  3889. create.push(key);
  3890. total++;
  3891. }
  3892. });
  3893. var remove = [];
  3894. Object.keys(dst.entries).forEach(function (key) {
  3895. var e = dst.entries[key];
  3896. var e2 = src.entries[key];
  3897. if (!e2) {
  3898. remove.push(key);
  3899. total++;
  3900. }
  3901. });
  3902. if (!total) {
  3903. return callback(null);
  3904. }
  3905. var errored = false;
  3906. var completed = 0;
  3907. var db = src.type === 'remote' ? src.db : dst.db;
  3908. var transaction = db.transaction([IDBFS.DB_STORE_NAME], 'readwrite');
  3909. var store = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3910. function done(err) {
  3911. if (err) {
  3912. if (!done.errored) {
  3913. done.errored = true;
  3914. return callback(err);
  3915. }
  3916. return;
  3917. }
  3918. if (++completed >= total) {
  3919. return callback(null);
  3920. }
  3921. };
  3922. transaction.onerror = function(e) {
  3923. done(this.error);
  3924. e.preventDefault();
  3925. };
  3926. // sort paths in ascending order so directory entries are created
  3927. // before the files inside them
  3928. create.sort().forEach(function (path) {
  3929. if (dst.type === 'local') {
  3930. IDBFS.loadRemoteEntry(store, path, function (err, entry) {
  3931. if (err) return done(err);
  3932. IDBFS.storeLocalEntry(path, entry, done);
  3933. });
  3934. } else {
  3935. IDBFS.loadLocalEntry(path, function (err, entry) {
  3936. if (err) return done(err);
  3937. IDBFS.storeRemoteEntry(store, path, entry, done);
  3938. });
  3939. }
  3940. });
  3941. // sort paths in descending order so files are deleted before their
  3942. // parent directories
  3943. remove.sort().reverse().forEach(function(path) {
  3944. if (dst.type === 'local') {
  3945. IDBFS.removeLocalEntry(path, done);
  3946. } else {
  3947. IDBFS.removeRemoteEntry(store, path, done);
  3948. }
  3949. });
  3950. }};
  3951. var NODEFS={isWindows:false,staticInit:function () {
  3952. NODEFS.isWindows = !!process.platform.match(/^win/);
  3953. },mount:function (mount) {
  3954. assert(ENVIRONMENT_IS_NODE);
  3955. return NODEFS.createNode(null, '/', NODEFS.getMode(mount.opts.root), 0);
  3956. },createNode:function (parent, name, mode, dev) {
  3957. if (!FS.isDir(mode) && !FS.isFile(mode) && !FS.isLink(mode)) {
  3958. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3959. }
  3960. var node = FS.createNode(parent, name, mode);
  3961. node.node_ops = NODEFS.node_ops;
  3962. node.stream_ops = NODEFS.stream_ops;
  3963. return node;
  3964. },getMode:function (path) {
  3965. var stat;
  3966. try {
  3967. stat = fs.lstatSync(path);
  3968. if (NODEFS.isWindows) {
  3969. // On Windows, directories return permission bits 'rw-rw-rw-', even though they have 'rwxrwxrwx', so
  3970. // propagate write bits to execute bits.
  3971. stat.mode = stat.mode | ((stat.mode & 146) >> 1);
  3972. }
  3973. } catch (e) {
  3974. if (!e.code) throw e;
  3975. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  3976. }
  3977. return stat.mode;
  3978. },realPath:function (node) {
  3979. var parts = [];
  3980. while (node.parent !== node) {
  3981. parts.push(node.name);
  3982. node = node.parent;
  3983. }
  3984. parts.push(node.mount.opts.root);
  3985. parts.reverse();
  3986. return PATH.join.apply(null, parts);
  3987. },flagsToPermissionStringMap:{0:"r",1:"r+",2:"r+",64:"r",65:"r+",66:"r+",129:"rx+",193:"rx+",514:"w+",577:"w",578:"w+",705:"wx",706:"wx+",1024:"a",1025:"a",1026:"a+",1089:"a",1090:"a+",1153:"ax",1154:"ax+",1217:"ax",1218:"ax+",4096:"rs",4098:"rs+"},flagsToPermissionString:function (flags) {
  3988. flags &= ~0x200000 /*O_PATH*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  3989. flags &= ~0x800 /*O_NONBLOCK*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  3990. flags &= ~0x8000 /*O_LARGEFILE*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  3991. flags &= ~0x80000 /*O_CLOEXEC*/; // Some applications may pass it; it makes no sense for a single process.
  3992. if (flags in NODEFS.flagsToPermissionStringMap) {
  3993. return NODEFS.flagsToPermissionStringMap[flags];
  3994. } else {
  3995. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3996. }
  3997. },node_ops:{getattr:function (node) {
  3998. var path = NODEFS.realPath(node);
  3999. var stat;
  4000. try {
  4001. stat = fs.lstatSync(path);
  4002. } catch (e) {
  4003. if (!e.code) throw e;
  4004. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4005. }
  4006. // node.js v0.10.20 doesn't report blksize and blocks on Windows. Fake them with default blksize of 4096.
  4007. // See http://support.microsoft.com/kb/140365
  4008. if (NODEFS.isWindows && !stat.blksize) {
  4009. stat.blksize = 4096;
  4010. }
  4011. if (NODEFS.isWindows && !stat.blocks) {
  4012. stat.blocks = (stat.size+stat.blksize-1)/stat.blksize|0;
  4013. }
  4014. return {
  4015. dev: stat.dev,
  4016. ino: stat.ino,
  4017. mode: stat.mode,
  4018. nlink: stat.nlink,
  4019. uid: stat.uid,
  4020. gid: stat.gid,
  4021. rdev: stat.rdev,
  4022. size: stat.size,
  4023. atime: stat.atime,
  4024. mtime: stat.mtime,
  4025. ctime: stat.ctime,
  4026. blksize: stat.blksize,
  4027. blocks: stat.blocks
  4028. };
  4029. },setattr:function (node, attr) {
  4030. var path = NODEFS.realPath(node);
  4031. try {
  4032. if (attr.mode !== undefined) {
  4033. fs.chmodSync(path, attr.mode);
  4034. // update the common node structure mode as well
  4035. node.mode = attr.mode;
  4036. }
  4037. if (attr.timestamp !== undefined) {
  4038. var date = new Date(attr.timestamp);
  4039. fs.utimesSync(path, date, date);
  4040. }
  4041. if (attr.size !== undefined) {
  4042. fs.truncateSync(path, attr.size);
  4043. }
  4044. } catch (e) {
  4045. if (!e.code) throw e;
  4046. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4047. }
  4048. },lookup:function (parent, name) {
  4049. var path = PATH.join2(NODEFS.realPath(parent), name);
  4050. var mode = NODEFS.getMode(path);
  4051. return NODEFS.createNode(parent, name, mode);
  4052. },mknod:function (parent, name, mode, dev) {
  4053. var node = NODEFS.createNode(parent, name, mode, dev);
  4054. // create the backing node for this in the fs root as well
  4055. var path = NODEFS.realPath(node);
  4056. try {
  4057. if (FS.isDir(node.mode)) {
  4058. fs.mkdirSync(path, node.mode);
  4059. } else {
  4060. fs.writeFileSync(path, '', { mode: node.mode });
  4061. }
  4062. } catch (e) {
  4063. if (!e.code) throw e;
  4064. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4065. }
  4066. return node;
  4067. },rename:function (oldNode, newDir, newName) {
  4068. var oldPath = NODEFS.realPath(oldNode);
  4069. var newPath = PATH.join2(NODEFS.realPath(newDir), newName);
  4070. try {
  4071. fs.renameSync(oldPath, newPath);
  4072. } catch (e) {
  4073. if (!e.code) throw e;
  4074. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4075. }
  4076. },unlink:function (parent, name) {
  4077. var path = PATH.join2(NODEFS.realPath(parent), name);
  4078. try {
  4079. fs.unlinkSync(path);
  4080. } catch (e) {
  4081. if (!e.code) throw e;
  4082. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4083. }
  4084. },rmdir:function (parent, name) {
  4085. var path = PATH.join2(NODEFS.realPath(parent), name);
  4086. try {
  4087. fs.rmdirSync(path);
  4088. } catch (e) {
  4089. if (!e.code) throw e;
  4090. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4091. }
  4092. },readdir:function (node) {
  4093. var path = NODEFS.realPath(node);
  4094. try {
  4095. return fs.readdirSync(path);
  4096. } catch (e) {
  4097. if (!e.code) throw e;
  4098. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4099. }
  4100. },symlink:function (parent, newName, oldPath) {
  4101. var newPath = PATH.join2(NODEFS.realPath(parent), newName);
  4102. try {
  4103. fs.symlinkSync(oldPath, newPath);
  4104. } catch (e) {
  4105. if (!e.code) throw e;
  4106. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4107. }
  4108. },readlink:function (node) {
  4109. var path = NODEFS.realPath(node);
  4110. try {
  4111. path = fs.readlinkSync(path);
  4112. path = NODEJS_PATH.relative(NODEJS_PATH.resolve(node.mount.opts.root), path);
  4113. return path;
  4114. } catch (e) {
  4115. if (!e.code) throw e;
  4116. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4117. }
  4118. }},stream_ops:{open:function (stream) {
  4119. var path = NODEFS.realPath(stream.node);
  4120. try {
  4121. if (FS.isFile(stream.node.mode)) {
  4122. stream.nfd = fs.openSync(path, NODEFS.flagsToPermissionString(stream.flags));
  4123. }
  4124. } catch (e) {
  4125. if (!e.code) throw e;
  4126. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4127. }
  4128. },close:function (stream) {
  4129. try {
  4130. if (FS.isFile(stream.node.mode) && stream.nfd) {
  4131. fs.closeSync(stream.nfd);
  4132. }
  4133. } catch (e) {
  4134. if (!e.code) throw e;
  4135. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4136. }
  4137. },read:function (stream, buffer, offset, length, position) {
  4138. if (length === 0) return 0; // node errors on 0 length reads
  4139. // FIXME this is terrible.
  4140. var nbuffer = new Buffer(length);
  4141. var res;
  4142. try {
  4143. res = fs.readSync(stream.nfd, nbuffer, 0, length, position);
  4144. } catch (e) {
  4145. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4146. }
  4147. if (res > 0) {
  4148. for (var i = 0; i < res; i++) {
  4149. buffer[offset + i] = nbuffer[i];
  4150. }
  4151. }
  4152. return res;
  4153. },write:function (stream, buffer, offset, length, position) {
  4154. // FIXME this is terrible.
  4155. var nbuffer = new Buffer(buffer.subarray(offset, offset + length));
  4156. var res;
  4157. try {
  4158. res = fs.writeSync(stream.nfd, nbuffer, 0, length, position);
  4159. } catch (e) {
  4160. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4161. }
  4162. return res;
  4163. },llseek:function (stream, offset, whence) {
  4164. var position = offset;
  4165. if (whence === 1) { // SEEK_CUR.
  4166. position += stream.position;
  4167. } else if (whence === 2) { // SEEK_END.
  4168. if (FS.isFile(stream.node.mode)) {
  4169. try {
  4170. var stat = fs.fstatSync(stream.nfd);
  4171. position += stat.size;
  4172. } catch (e) {
  4173. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4174. }
  4175. }
  4176. }
  4177. if (position < 0) {
  4178. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4179. }
  4180. return position;
  4181. }}};
  4182. var WORKERFS={DIR_MODE:16895,FILE_MODE:33279,reader:null,mount:function (mount) {
  4183. assert(ENVIRONMENT_IS_WORKER);
  4184. if (!WORKERFS.reader) WORKERFS.reader = new FileReaderSync();
  4185. var root = WORKERFS.createNode(null, '/', WORKERFS.DIR_MODE, 0);
  4186. var createdParents = {};
  4187. function ensureParent(path) {
  4188. // return the parent node, creating subdirs as necessary
  4189. var parts = path.split('/');
  4190. var parent = root;
  4191. for (var i = 0; i < parts.length-1; i++) {
  4192. var curr = parts.slice(0, i+1).join('/');
  4193. // Issue 4254: Using curr as a node name will prevent the node
  4194. // from being found in FS.nameTable when FS.open is called on
  4195. // a path which holds a child of this node,
  4196. // given that all FS functions assume node names
  4197. // are just their corresponding parts within their given path,
  4198. // rather than incremental aggregates which include their parent's
  4199. // directories.
  4200. if (!createdParents[curr]) {
  4201. createdParents[curr] = WORKERFS.createNode(parent, parts[i], WORKERFS.DIR_MODE, 0);
  4202. }
  4203. parent = createdParents[curr];
  4204. }
  4205. return parent;
  4206. }
  4207. function base(path) {
  4208. var parts = path.split('/');
  4209. return parts[parts.length-1];
  4210. }
  4211. // We also accept FileList here, by using Array.prototype
  4212. Array.prototype.forEach.call(mount.opts["files"] || [], function(file) {
  4213. WORKERFS.createNode(ensureParent(file.name), base(file.name), WORKERFS.FILE_MODE, 0, file, file.lastModifiedDate);
  4214. });
  4215. (mount.opts["blobs"] || []).forEach(function(obj) {
  4216. WORKERFS.createNode(ensureParent(obj["name"]), base(obj["name"]), WORKERFS.FILE_MODE, 0, obj["data"]);
  4217. });
  4218. (mount.opts["packages"] || []).forEach(function(pack) {
  4219. pack['metadata'].files.forEach(function(file) {
  4220. var name = file.filename.substr(1); // remove initial slash
  4221. WORKERFS.createNode(ensureParent(name), base(name), WORKERFS.FILE_MODE, 0, pack['blob'].slice(file.start, file.end));
  4222. });
  4223. });
  4224. return root;
  4225. },createNode:function (parent, name, mode, dev, contents, mtime) {
  4226. var node = FS.createNode(parent, name, mode);
  4227. node.mode = mode;
  4228. node.node_ops = WORKERFS.node_ops;
  4229. node.stream_ops = WORKERFS.stream_ops;
  4230. node.timestamp = (mtime || new Date).getTime();
  4231. assert(WORKERFS.FILE_MODE !== WORKERFS.DIR_MODE);
  4232. if (mode === WORKERFS.FILE_MODE) {
  4233. node.size = contents.size;
  4234. node.contents = contents;
  4235. } else {
  4236. node.size = 4096;
  4237. node.contents = {};
  4238. }
  4239. if (parent) {
  4240. parent.contents[name] = node;
  4241. }
  4242. return node;
  4243. },node_ops:{getattr:function (node) {
  4244. return {
  4245. dev: 1,
  4246. ino: undefined,
  4247. mode: node.mode,
  4248. nlink: 1,
  4249. uid: 0,
  4250. gid: 0,
  4251. rdev: undefined,
  4252. size: node.size,
  4253. atime: new Date(node.timestamp),
  4254. mtime: new Date(node.timestamp),
  4255. ctime: new Date(node.timestamp),
  4256. blksize: 4096,
  4257. blocks: Math.ceil(node.size / 4096),
  4258. };
  4259. },setattr:function (node, attr) {
  4260. if (attr.mode !== undefined) {
  4261. node.mode = attr.mode;
  4262. }
  4263. if (attr.timestamp !== undefined) {
  4264. node.timestamp = attr.timestamp;
  4265. }
  4266. },lookup:function (parent, name) {
  4267. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4268. },mknod:function (parent, name, mode, dev) {
  4269. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4270. },rename:function (oldNode, newDir, newName) {
  4271. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4272. },unlink:function (parent, name) {
  4273. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4274. },rmdir:function (parent, name) {
  4275. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4276. },readdir:function (node) {
  4277. var entries = ['.', '..'];
  4278. for (var key in node.contents) {
  4279. if (!node.contents.hasOwnProperty(key)) {
  4280. continue;
  4281. }
  4282. entries.push(key);
  4283. }
  4284. return entries;
  4285. },symlink:function (parent, newName, oldPath) {
  4286. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4287. },readlink:function (node) {
  4288. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4289. }},stream_ops:{read:function (stream, buffer, offset, length, position) {
  4290. if (position >= stream.node.size) return 0;
  4291. var chunk = stream.node.contents.slice(position, position + length);
  4292. var ab = WORKERFS.reader.readAsArrayBuffer(chunk);
  4293. buffer.set(new Uint8Array(ab), offset);
  4294. return chunk.size;
  4295. },write:function (stream, buffer, offset, length, position) {
  4296. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  4297. },llseek:function (stream, offset, whence) {
  4298. var position = offset;
  4299. if (whence === 1) { // SEEK_CUR.
  4300. position += stream.position;
  4301. } else if (whence === 2) { // SEEK_END.
  4302. if (FS.isFile(stream.node.mode)) {
  4303. position += stream.node.size;
  4304. }
  4305. }
  4306. if (position < 0) {
  4307. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4308. }
  4309. return position;
  4310. }}};
  4311. var _stdin=STATICTOP; STATICTOP += 16;;
  4312. var _stdout=STATICTOP; STATICTOP += 16;;
  4313. var _stderr=STATICTOP; STATICTOP += 16;;var FS={root:null,mounts:[],devices:[null],streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:false,ignorePermissions:true,trackingDelegate:{},tracking:{openFlags:{READ:1,WRITE:2}},ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,handleFSError:function (e) {
  4314. if (!(e instanceof FS.ErrnoError)) throw e + ' : ' + stackTrace();
  4315. return ___setErrNo(e.errno);
  4316. },lookupPath:function (path, opts) {
  4317. path = PATH.resolve(FS.cwd(), path);
  4318. opts = opts || {};
  4319. if (!path) return { path: '', node: null };
  4320. var defaults = {
  4321. follow_mount: true,
  4322. recurse_count: 0
  4323. };
  4324. for (var key in defaults) {
  4325. if (opts[key] === undefined) {
  4326. opts[key] = defaults[key];
  4327. }
  4328. }
  4329. if (opts.recurse_count > 8) { // max recursive lookup of 8
  4330. throw new FS.ErrnoError(ERRNO_CODES.ELOOP);
  4331. }
  4332. // split the path
  4333. var parts = PATH.normalizeArray(path.split('/').filter(function(p) {
  4334. return !!p;
  4335. }), false);
  4336. // start at the root
  4337. var current = FS.root;
  4338. var current_path = '/';
  4339. for (var i = 0; i < parts.length; i++) {
  4340. var islast = (i === parts.length-1);
  4341. if (islast && opts.parent) {
  4342. // stop resolving
  4343. break;
  4344. }
  4345. current = FS.lookupNode(current, parts[i]);
  4346. current_path = PATH.join2(current_path, parts[i]);
  4347. // jump to the mount's root node if this is a mountpoint
  4348. if (FS.isMountpoint(current)) {
  4349. if (!islast || (islast && opts.follow_mount)) {
  4350. current = current.mounted.root;
  4351. }
  4352. }
  4353. // by default, lookupPath will not follow a symlink if it is the final path component.
  4354. // setting opts.follow = true will override this behavior.
  4355. if (!islast || opts.follow) {
  4356. var count = 0;
  4357. while (FS.isLink(current.mode)) {
  4358. var link = FS.readlink(current_path);
  4359. current_path = PATH.resolve(PATH.dirname(current_path), link);
  4360. var lookup = FS.lookupPath(current_path, { recurse_count: opts.recurse_count });
  4361. current = lookup.node;
  4362. if (count++ > 40) { // limit max consecutive symlinks to 40 (SYMLOOP_MAX).
  4363. throw new FS.ErrnoError(ERRNO_CODES.ELOOP);
  4364. }
  4365. }
  4366. }
  4367. }
  4368. return { path: current_path, node: current };
  4369. },getPath:function (node) {
  4370. var path;
  4371. while (true) {
  4372. if (FS.isRoot(node)) {
  4373. var mount = node.mount.mountpoint;
  4374. if (!path) return mount;
  4375. return mount[mount.length-1] !== '/' ? mount + '/' + path : mount + path;
  4376. }
  4377. path = path ? node.name + '/' + path : node.name;
  4378. node = node.parent;
  4379. }
  4380. },hashName:function (parentid, name) {
  4381. var hash = 0;
  4382. for (var i = 0; i < name.length; i++) {
  4383. hash = ((hash << 5) - hash + name.charCodeAt(i)) | 0;
  4384. }
  4385. return ((parentid + hash) >>> 0) % FS.nameTable.length;
  4386. },hashAddNode:function (node) {
  4387. var hash = FS.hashName(node.parent.id, node.name);
  4388. node.name_next = FS.nameTable[hash];
  4389. FS.nameTable[hash] = node;
  4390. },hashRemoveNode:function (node) {
  4391. var hash = FS.hashName(node.parent.id, node.name);
  4392. if (FS.nameTable[hash] === node) {
  4393. FS.nameTable[hash] = node.name_next;
  4394. } else {
  4395. var current = FS.nameTable[hash];
  4396. while (current) {
  4397. if (current.name_next === node) {
  4398. current.name_next = node.name_next;
  4399. break;
  4400. }
  4401. current = current.name_next;
  4402. }
  4403. }
  4404. },lookupNode:function (parent, name) {
  4405. var err = FS.mayLookup(parent);
  4406. if (err) {
  4407. throw new FS.ErrnoError(err, parent);
  4408. }
  4409. var hash = FS.hashName(parent.id, name);
  4410. for (var node = FS.nameTable[hash]; node; node = node.name_next) {
  4411. var nodeName = node.name;
  4412. if (node.parent.id === parent.id && nodeName === name) {
  4413. return node;
  4414. }
  4415. }
  4416. // if we failed to find it in the cache, call into the VFS
  4417. return FS.lookup(parent, name);
  4418. },createNode:function (parent, name, mode, rdev) {
  4419. if (!FS.FSNode) {
  4420. FS.FSNode = function(parent, name, mode, rdev) {
  4421. if (!parent) {
  4422. parent = this; // root node sets parent to itself
  4423. }
  4424. this.parent = parent;
  4425. this.mount = parent.mount;
  4426. this.mounted = null;
  4427. this.id = FS.nextInode++;
  4428. this.name = name;
  4429. this.mode = mode;
  4430. this.node_ops = {};
  4431. this.stream_ops = {};
  4432. this.rdev = rdev;
  4433. };
  4434. FS.FSNode.prototype = {};
  4435. // compatibility
  4436. var readMode = 292 | 73;
  4437. var writeMode = 146;
  4438. // NOTE we must use Object.defineProperties instead of individual calls to
  4439. // Object.defineProperty in order to make closure compiler happy
  4440. Object.defineProperties(FS.FSNode.prototype, {
  4441. read: {
  4442. get: function() { return (this.mode & readMode) === readMode; },
  4443. set: function(val) { val ? this.mode |= readMode : this.mode &= ~readMode; }
  4444. },
  4445. write: {
  4446. get: function() { return (this.mode & writeMode) === writeMode; },
  4447. set: function(val) { val ? this.mode |= writeMode : this.mode &= ~writeMode; }
  4448. },
  4449. isFolder: {
  4450. get: function() { return FS.isDir(this.mode); }
  4451. },
  4452. isDevice: {
  4453. get: function() { return FS.isChrdev(this.mode); }
  4454. }
  4455. });
  4456. }
  4457. var node = new FS.FSNode(parent, name, mode, rdev);
  4458. FS.hashAddNode(node);
  4459. return node;
  4460. },destroyNode:function (node) {
  4461. FS.hashRemoveNode(node);
  4462. },isRoot:function (node) {
  4463. return node === node.parent;
  4464. },isMountpoint:function (node) {
  4465. return !!node.mounted;
  4466. },isFile:function (mode) {
  4467. return (mode & 61440) === 32768;
  4468. },isDir:function (mode) {
  4469. return (mode & 61440) === 16384;
  4470. },isLink:function (mode) {
  4471. return (mode & 61440) === 40960;
  4472. },isChrdev:function (mode) {
  4473. return (mode & 61440) === 8192;
  4474. },isBlkdev:function (mode) {
  4475. return (mode & 61440) === 24576;
  4476. },isFIFO:function (mode) {
  4477. return (mode & 61440) === 4096;
  4478. },isSocket:function (mode) {
  4479. return (mode & 49152) === 49152;
  4480. },flagModes:{"r":0,"rs":1052672,"r+":2,"w":577,"wx":705,"xw":705,"w+":578,"wx+":706,"xw+":706,"a":1089,"ax":1217,"xa":1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function (str) {
  4481. var flags = FS.flagModes[str];
  4482. if (typeof flags === 'undefined') {
  4483. throw new Error('Unknown file open mode: ' + str);
  4484. }
  4485. return flags;
  4486. },flagsToPermissionString:function (flag) {
  4487. var perms = ['r', 'w', 'rw'][flag & 3];
  4488. if ((flag & 512)) {
  4489. perms += 'w';
  4490. }
  4491. return perms;
  4492. },nodePermissions:function (node, perms) {
  4493. if (FS.ignorePermissions) {
  4494. return 0;
  4495. }
  4496. // return 0 if any user, group or owner bits are set.
  4497. if (perms.indexOf('r') !== -1 && !(node.mode & 292)) {
  4498. return ERRNO_CODES.EACCES;
  4499. } else if (perms.indexOf('w') !== -1 && !(node.mode & 146)) {
  4500. return ERRNO_CODES.EACCES;
  4501. } else if (perms.indexOf('x') !== -1 && !(node.mode & 73)) {
  4502. return ERRNO_CODES.EACCES;
  4503. }
  4504. return 0;
  4505. },mayLookup:function (dir) {
  4506. var err = FS.nodePermissions(dir, 'x');
  4507. if (err) return err;
  4508. if (!dir.node_ops.lookup) return ERRNO_CODES.EACCES;
  4509. return 0;
  4510. },mayCreate:function (dir, name) {
  4511. try {
  4512. var node = FS.lookupNode(dir, name);
  4513. return ERRNO_CODES.EEXIST;
  4514. } catch (e) {
  4515. }
  4516. return FS.nodePermissions(dir, 'wx');
  4517. },mayDelete:function (dir, name, isdir) {
  4518. var node;
  4519. try {
  4520. node = FS.lookupNode(dir, name);
  4521. } catch (e) {
  4522. return e.errno;
  4523. }
  4524. var err = FS.nodePermissions(dir, 'wx');
  4525. if (err) {
  4526. return err;
  4527. }
  4528. if (isdir) {
  4529. if (!FS.isDir(node.mode)) {
  4530. return ERRNO_CODES.ENOTDIR;
  4531. }
  4532. if (FS.isRoot(node) || FS.getPath(node) === FS.cwd()) {
  4533. return ERRNO_CODES.EBUSY;
  4534. }
  4535. } else {
  4536. if (FS.isDir(node.mode)) {
  4537. return ERRNO_CODES.EISDIR;
  4538. }
  4539. }
  4540. return 0;
  4541. },mayOpen:function (node, flags) {
  4542. if (!node) {
  4543. return ERRNO_CODES.ENOENT;
  4544. }
  4545. if (FS.isLink(node.mode)) {
  4546. return ERRNO_CODES.ELOOP;
  4547. } else if (FS.isDir(node.mode)) {
  4548. if (FS.flagsToPermissionString(flags) !== 'r' || // opening for write
  4549. (flags & 512)) { // TODO: check for O_SEARCH? (== search for dir only)
  4550. return ERRNO_CODES.EISDIR;
  4551. }
  4552. }
  4553. return FS.nodePermissions(node, FS.flagsToPermissionString(flags));
  4554. },MAX_OPEN_FDS:4096,nextfd:function (fd_start, fd_end) {
  4555. fd_start = fd_start || 0;
  4556. fd_end = fd_end || FS.MAX_OPEN_FDS;
  4557. for (var fd = fd_start; fd <= fd_end; fd++) {
  4558. if (!FS.streams[fd]) {
  4559. return fd;
  4560. }
  4561. }
  4562. throw new FS.ErrnoError(ERRNO_CODES.EMFILE);
  4563. },getStream:function (fd) {
  4564. return FS.streams[fd];
  4565. },createStream:function (stream, fd_start, fd_end) {
  4566. if (!FS.FSStream) {
  4567. FS.FSStream = function(){};
  4568. FS.FSStream.prototype = {};
  4569. // compatibility
  4570. Object.defineProperties(FS.FSStream.prototype, {
  4571. object: {
  4572. get: function() { return this.node; },
  4573. set: function(val) { this.node = val; }
  4574. },
  4575. isRead: {
  4576. get: function() { return (this.flags & 2097155) !== 1; }
  4577. },
  4578. isWrite: {
  4579. get: function() { return (this.flags & 2097155) !== 0; }
  4580. },
  4581. isAppend: {
  4582. get: function() { return (this.flags & 1024); }
  4583. }
  4584. });
  4585. }
  4586. // clone it, so we can return an instance of FSStream
  4587. var newStream = new FS.FSStream();
  4588. for (var p in stream) {
  4589. newStream[p] = stream[p];
  4590. }
  4591. stream = newStream;
  4592. var fd = FS.nextfd(fd_start, fd_end);
  4593. stream.fd = fd;
  4594. FS.streams[fd] = stream;
  4595. return stream;
  4596. },closeStream:function (fd) {
  4597. FS.streams[fd] = null;
  4598. },chrdev_stream_ops:{open:function (stream) {
  4599. var device = FS.getDevice(stream.node.rdev);
  4600. // override node's stream ops with the device's
  4601. stream.stream_ops = device.stream_ops;
  4602. // forward the open call
  4603. if (stream.stream_ops.open) {
  4604. stream.stream_ops.open(stream);
  4605. }
  4606. },llseek:function () {
  4607. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  4608. }},major:function (dev) {
  4609. return ((dev) >> 8);
  4610. },minor:function (dev) {
  4611. return ((dev) & 0xff);
  4612. },makedev:function (ma, mi) {
  4613. return ((ma) << 8 | (mi));
  4614. },registerDevice:function (dev, ops) {
  4615. FS.devices[dev] = { stream_ops: ops };
  4616. },getDevice:function (dev) {
  4617. return FS.devices[dev];
  4618. },getMounts:function (mount) {
  4619. var mounts = [];
  4620. var check = [mount];
  4621. while (check.length) {
  4622. var m = check.pop();
  4623. mounts.push(m);
  4624. check.push.apply(check, m.mounts);
  4625. }
  4626. return mounts;
  4627. },syncfs:function (populate, callback) {
  4628. if (typeof(populate) === 'function') {
  4629. callback = populate;
  4630. populate = false;
  4631. }
  4632. FS.syncFSRequests++;
  4633. if (FS.syncFSRequests > 1) {
  4634. console.log('warning: ' + FS.syncFSRequests + ' FS.syncfs operations in flight at once, probably just doing extra work');
  4635. }
  4636. var mounts = FS.getMounts(FS.root.mount);
  4637. var completed = 0;
  4638. function doCallback(err) {
  4639. assert(FS.syncFSRequests > 0);
  4640. FS.syncFSRequests--;
  4641. return callback(err);
  4642. }
  4643. function done(err) {
  4644. if (err) {
  4645. if (!done.errored) {
  4646. done.errored = true;
  4647. return doCallback(err);
  4648. }
  4649. return;
  4650. }
  4651. if (++completed >= mounts.length) {
  4652. doCallback(null);
  4653. }
  4654. };
  4655. // sync all mounts
  4656. mounts.forEach(function (mount) {
  4657. if (!mount.type.syncfs) {
  4658. return done(null);
  4659. }
  4660. mount.type.syncfs(mount, populate, done);
  4661. });
  4662. },mount:function (type, opts, mountpoint) {
  4663. var root = mountpoint === '/';
  4664. var pseudo = !mountpoint;
  4665. var node;
  4666. if (root && FS.root) {
  4667. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4668. } else if (!root && !pseudo) {
  4669. var lookup = FS.lookupPath(mountpoint, { follow_mount: false });
  4670. mountpoint = lookup.path; // use the absolute path
  4671. node = lookup.node;
  4672. if (FS.isMountpoint(node)) {
  4673. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4674. }
  4675. if (!FS.isDir(node.mode)) {
  4676. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  4677. }
  4678. }
  4679. var mount = {
  4680. type: type,
  4681. opts: opts,
  4682. mountpoint: mountpoint,
  4683. mounts: []
  4684. };
  4685. // create a root node for the fs
  4686. var mountRoot = type.mount(mount);
  4687. mountRoot.mount = mount;
  4688. mount.root = mountRoot;
  4689. if (root) {
  4690. FS.root = mountRoot;
  4691. } else if (node) {
  4692. // set as a mountpoint
  4693. node.mounted = mount;
  4694. // add the new mount to the current mount's children
  4695. if (node.mount) {
  4696. node.mount.mounts.push(mount);
  4697. }
  4698. }
  4699. return mountRoot;
  4700. },unmount:function (mountpoint) {
  4701. var lookup = FS.lookupPath(mountpoint, { follow_mount: false });
  4702. if (!FS.isMountpoint(lookup.node)) {
  4703. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4704. }
  4705. // destroy the nodes for this mount, and all its child mounts
  4706. var node = lookup.node;
  4707. var mount = node.mounted;
  4708. var mounts = FS.getMounts(mount);
  4709. Object.keys(FS.nameTable).forEach(function (hash) {
  4710. var current = FS.nameTable[hash];
  4711. while (current) {
  4712. var next = current.name_next;
  4713. if (mounts.indexOf(current.mount) !== -1) {
  4714. FS.destroyNode(current);
  4715. }
  4716. current = next;
  4717. }
  4718. });
  4719. // no longer a mountpoint
  4720. node.mounted = null;
  4721. // remove this mount from the child mounts
  4722. var idx = node.mount.mounts.indexOf(mount);
  4723. assert(idx !== -1);
  4724. node.mount.mounts.splice(idx, 1);
  4725. },lookup:function (parent, name) {
  4726. return parent.node_ops.lookup(parent, name);
  4727. },mknod:function (path, mode, dev) {
  4728. var lookup = FS.lookupPath(path, { parent: true });
  4729. var parent = lookup.node;
  4730. var name = PATH.basename(path);
  4731. if (!name || name === '.' || name === '..') {
  4732. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4733. }
  4734. var err = FS.mayCreate(parent, name);
  4735. if (err) {
  4736. throw new FS.ErrnoError(err);
  4737. }
  4738. if (!parent.node_ops.mknod) {
  4739. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4740. }
  4741. return parent.node_ops.mknod(parent, name, mode, dev);
  4742. },create:function (path, mode) {
  4743. mode = mode !== undefined ? mode : 438 /* 0666 */;
  4744. mode &= 4095;
  4745. mode |= 32768;
  4746. return FS.mknod(path, mode, 0);
  4747. },mkdir:function (path, mode) {
  4748. mode = mode !== undefined ? mode : 511 /* 0777 */;
  4749. mode &= 511 | 512;
  4750. mode |= 16384;
  4751. return FS.mknod(path, mode, 0);
  4752. },mkdirTree:function (path, mode) {
  4753. var dirs = path.split('/');
  4754. var d = '';
  4755. for (var i = 0; i < dirs.length; ++i) {
  4756. if (!dirs[i]) continue;
  4757. d += '/' + dirs[i];
  4758. try {
  4759. FS.mkdir(d, mode);
  4760. } catch(e) {
  4761. if (e.errno != ERRNO_CODES.EEXIST) throw e;
  4762. }
  4763. }
  4764. },mkdev:function (path, mode, dev) {
  4765. if (typeof(dev) === 'undefined') {
  4766. dev = mode;
  4767. mode = 438 /* 0666 */;
  4768. }
  4769. mode |= 8192;
  4770. return FS.mknod(path, mode, dev);
  4771. },symlink:function (oldpath, newpath) {
  4772. if (!PATH.resolve(oldpath)) {
  4773. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4774. }
  4775. var lookup = FS.lookupPath(newpath, { parent: true });
  4776. var parent = lookup.node;
  4777. if (!parent) {
  4778. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4779. }
  4780. var newname = PATH.basename(newpath);
  4781. var err = FS.mayCreate(parent, newname);
  4782. if (err) {
  4783. throw new FS.ErrnoError(err);
  4784. }
  4785. if (!parent.node_ops.symlink) {
  4786. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4787. }
  4788. return parent.node_ops.symlink(parent, newname, oldpath);
  4789. },rename:function (old_path, new_path) {
  4790. var old_dirname = PATH.dirname(old_path);
  4791. var new_dirname = PATH.dirname(new_path);
  4792. var old_name = PATH.basename(old_path);
  4793. var new_name = PATH.basename(new_path);
  4794. // parents must exist
  4795. var lookup, old_dir, new_dir;
  4796. try {
  4797. lookup = FS.lookupPath(old_path, { parent: true });
  4798. old_dir = lookup.node;
  4799. lookup = FS.lookupPath(new_path, { parent: true });
  4800. new_dir = lookup.node;
  4801. } catch (e) {
  4802. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4803. }
  4804. if (!old_dir || !new_dir) throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4805. // need to be part of the same mount
  4806. if (old_dir.mount !== new_dir.mount) {
  4807. throw new FS.ErrnoError(ERRNO_CODES.EXDEV);
  4808. }
  4809. // source must exist
  4810. var old_node = FS.lookupNode(old_dir, old_name);
  4811. // old path should not be an ancestor of the new path
  4812. var relative = PATH.relative(old_path, new_dirname);
  4813. if (relative.charAt(0) !== '.') {
  4814. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4815. }
  4816. // new path should not be an ancestor of the old path
  4817. relative = PATH.relative(new_path, old_dirname);
  4818. if (relative.charAt(0) !== '.') {
  4819. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  4820. }
  4821. // see if the new path already exists
  4822. var new_node;
  4823. try {
  4824. new_node = FS.lookupNode(new_dir, new_name);
  4825. } catch (e) {
  4826. // not fatal
  4827. }
  4828. // early out if nothing needs to change
  4829. if (old_node === new_node) {
  4830. return;
  4831. }
  4832. // we'll need to delete the old entry
  4833. var isdir = FS.isDir(old_node.mode);
  4834. var err = FS.mayDelete(old_dir, old_name, isdir);
  4835. if (err) {
  4836. throw new FS.ErrnoError(err);
  4837. }
  4838. // need delete permissions if we'll be overwriting.
  4839. // need create permissions if new doesn't already exist.
  4840. err = new_node ?
  4841. FS.mayDelete(new_dir, new_name, isdir) :
  4842. FS.mayCreate(new_dir, new_name);
  4843. if (err) {
  4844. throw new FS.ErrnoError(err);
  4845. }
  4846. if (!old_dir.node_ops.rename) {
  4847. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4848. }
  4849. if (FS.isMountpoint(old_node) || (new_node && FS.isMountpoint(new_node))) {
  4850. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4851. }
  4852. // if we are going to change the parent, check write permissions
  4853. if (new_dir !== old_dir) {
  4854. err = FS.nodePermissions(old_dir, 'w');
  4855. if (err) {
  4856. throw new FS.ErrnoError(err);
  4857. }
  4858. }
  4859. try {
  4860. if (FS.trackingDelegate['willMovePath']) {
  4861. FS.trackingDelegate['willMovePath'](old_path, new_path);
  4862. }
  4863. } catch(e) {
  4864. console.log("FS.trackingDelegate['willMovePath']('"+old_path+"', '"+new_path+"') threw an exception: " + e.message);
  4865. }
  4866. // remove the node from the lookup hash
  4867. FS.hashRemoveNode(old_node);
  4868. // do the underlying fs rename
  4869. try {
  4870. old_dir.node_ops.rename(old_node, new_dir, new_name);
  4871. } catch (e) {
  4872. throw e;
  4873. } finally {
  4874. // add the node back to the hash (in case node_ops.rename
  4875. // changed its name)
  4876. FS.hashAddNode(old_node);
  4877. }
  4878. try {
  4879. if (FS.trackingDelegate['onMovePath']) FS.trackingDelegate['onMovePath'](old_path, new_path);
  4880. } catch(e) {
  4881. console.log("FS.trackingDelegate['onMovePath']('"+old_path+"', '"+new_path+"') threw an exception: " + e.message);
  4882. }
  4883. },rmdir:function (path) {
  4884. var lookup = FS.lookupPath(path, { parent: true });
  4885. var parent = lookup.node;
  4886. var name = PATH.basename(path);
  4887. var node = FS.lookupNode(parent, name);
  4888. var err = FS.mayDelete(parent, name, true);
  4889. if (err) {
  4890. throw new FS.ErrnoError(err);
  4891. }
  4892. if (!parent.node_ops.rmdir) {
  4893. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4894. }
  4895. if (FS.isMountpoint(node)) {
  4896. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4897. }
  4898. try {
  4899. if (FS.trackingDelegate['willDeletePath']) {
  4900. FS.trackingDelegate['willDeletePath'](path);
  4901. }
  4902. } catch(e) {
  4903. console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: " + e.message);
  4904. }
  4905. parent.node_ops.rmdir(parent, name);
  4906. FS.destroyNode(node);
  4907. try {
  4908. if (FS.trackingDelegate['onDeletePath']) FS.trackingDelegate['onDeletePath'](path);
  4909. } catch(e) {
  4910. console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: " + e.message);
  4911. }
  4912. },readdir:function (path) {
  4913. var lookup = FS.lookupPath(path, { follow: true });
  4914. var node = lookup.node;
  4915. if (!node.node_ops.readdir) {
  4916. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  4917. }
  4918. return node.node_ops.readdir(node);
  4919. },unlink:function (path) {
  4920. var lookup = FS.lookupPath(path, { parent: true });
  4921. var parent = lookup.node;
  4922. var name = PATH.basename(path);
  4923. var node = FS.lookupNode(parent, name);
  4924. var err = FS.mayDelete(parent, name, false);
  4925. if (err) {
  4926. // According to POSIX, we should map EISDIR to EPERM, but
  4927. // we instead do what Linux does (and we must, as we use
  4928. // the musl linux libc).
  4929. throw new FS.ErrnoError(err);
  4930. }
  4931. if (!parent.node_ops.unlink) {
  4932. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4933. }
  4934. if (FS.isMountpoint(node)) {
  4935. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4936. }
  4937. try {
  4938. if (FS.trackingDelegate['willDeletePath']) {
  4939. FS.trackingDelegate['willDeletePath'](path);
  4940. }
  4941. } catch(e) {
  4942. console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: " + e.message);
  4943. }
  4944. parent.node_ops.unlink(parent, name);
  4945. FS.destroyNode(node);
  4946. try {
  4947. if (FS.trackingDelegate['onDeletePath']) FS.trackingDelegate['onDeletePath'](path);
  4948. } catch(e) {
  4949. console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: " + e.message);
  4950. }
  4951. },readlink:function (path) {
  4952. var lookup = FS.lookupPath(path);
  4953. var link = lookup.node;
  4954. if (!link) {
  4955. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4956. }
  4957. if (!link.node_ops.readlink) {
  4958. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4959. }
  4960. return PATH.resolve(FS.getPath(link.parent), link.node_ops.readlink(link));
  4961. },stat:function (path, dontFollow) {
  4962. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  4963. var node = lookup.node;
  4964. if (!node) {
  4965. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4966. }
  4967. if (!node.node_ops.getattr) {
  4968. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4969. }
  4970. return node.node_ops.getattr(node);
  4971. },lstat:function (path) {
  4972. return FS.stat(path, true);
  4973. },chmod:function (path, mode, dontFollow) {
  4974. var node;
  4975. if (typeof path === 'string') {
  4976. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  4977. node = lookup.node;
  4978. } else {
  4979. node = path;
  4980. }
  4981. if (!node.node_ops.setattr) {
  4982. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4983. }
  4984. node.node_ops.setattr(node, {
  4985. mode: (mode & 4095) | (node.mode & ~4095),
  4986. timestamp: Date.now()
  4987. });
  4988. },lchmod:function (path, mode) {
  4989. FS.chmod(path, mode, true);
  4990. },fchmod:function (fd, mode) {
  4991. var stream = FS.getStream(fd);
  4992. if (!stream) {
  4993. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  4994. }
  4995. FS.chmod(stream.node, mode);
  4996. },chown:function (path, uid, gid, dontFollow) {
  4997. var node;
  4998. if (typeof path === 'string') {
  4999. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  5000. node = lookup.node;
  5001. } else {
  5002. node = path;
  5003. }
  5004. if (!node.node_ops.setattr) {
  5005. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  5006. }
  5007. node.node_ops.setattr(node, {
  5008. timestamp: Date.now()
  5009. // we ignore the uid / gid for now
  5010. });
  5011. },lchown:function (path, uid, gid) {
  5012. FS.chown(path, uid, gid, true);
  5013. },fchown:function (fd, uid, gid) {
  5014. var stream = FS.getStream(fd);
  5015. if (!stream) {
  5016. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5017. }
  5018. FS.chown(stream.node, uid, gid);
  5019. },truncate:function (path, len) {
  5020. if (len < 0) {
  5021. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5022. }
  5023. var node;
  5024. if (typeof path === 'string') {
  5025. var lookup = FS.lookupPath(path, { follow: true });
  5026. node = lookup.node;
  5027. } else {
  5028. node = path;
  5029. }
  5030. if (!node.node_ops.setattr) {
  5031. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  5032. }
  5033. if (FS.isDir(node.mode)) {
  5034. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5035. }
  5036. if (!FS.isFile(node.mode)) {
  5037. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5038. }
  5039. var err = FS.nodePermissions(node, 'w');
  5040. if (err) {
  5041. throw new FS.ErrnoError(err);
  5042. }
  5043. node.node_ops.setattr(node, {
  5044. size: len,
  5045. timestamp: Date.now()
  5046. });
  5047. },ftruncate:function (fd, len) {
  5048. var stream = FS.getStream(fd);
  5049. if (!stream) {
  5050. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5051. }
  5052. if ((stream.flags & 2097155) === 0) {
  5053. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5054. }
  5055. FS.truncate(stream.node, len);
  5056. },utime:function (path, atime, mtime) {
  5057. var lookup = FS.lookupPath(path, { follow: true });
  5058. var node = lookup.node;
  5059. node.node_ops.setattr(node, {
  5060. timestamp: Math.max(atime, mtime)
  5061. });
  5062. },open:function (path, flags, mode, fd_start, fd_end) {
  5063. if (path === "") {
  5064. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5065. }
  5066. flags = typeof flags === 'string' ? FS.modeStringToFlags(flags) : flags;
  5067. mode = typeof mode === 'undefined' ? 438 /* 0666 */ : mode;
  5068. if ((flags & 64)) {
  5069. mode = (mode & 4095) | 32768;
  5070. } else {
  5071. mode = 0;
  5072. }
  5073. var node;
  5074. if (typeof path === 'object') {
  5075. node = path;
  5076. } else {
  5077. path = PATH.normalize(path);
  5078. try {
  5079. var lookup = FS.lookupPath(path, {
  5080. follow: !(flags & 131072)
  5081. });
  5082. node = lookup.node;
  5083. } catch (e) {
  5084. // ignore
  5085. }
  5086. }
  5087. // perhaps we need to create the node
  5088. var created = false;
  5089. if ((flags & 64)) {
  5090. if (node) {
  5091. // if O_CREAT and O_EXCL are set, error out if the node already exists
  5092. if ((flags & 128)) {
  5093. throw new FS.ErrnoError(ERRNO_CODES.EEXIST);
  5094. }
  5095. } else {
  5096. // node doesn't exist, try to create it
  5097. node = FS.mknod(path, mode, 0);
  5098. created = true;
  5099. }
  5100. }
  5101. if (!node) {
  5102. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5103. }
  5104. // can't truncate a device
  5105. if (FS.isChrdev(node.mode)) {
  5106. flags &= ~512;
  5107. }
  5108. // if asked only for a directory, then this must be one
  5109. if ((flags & 65536) && !FS.isDir(node.mode)) {
  5110. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  5111. }
  5112. // check permissions, if this is not a file we just created now (it is ok to
  5113. // create and write to a file with read-only permissions; it is read-only
  5114. // for later use)
  5115. if (!created) {
  5116. var err = FS.mayOpen(node, flags);
  5117. if (err) {
  5118. throw new FS.ErrnoError(err);
  5119. }
  5120. }
  5121. // do truncation if necessary
  5122. if ((flags & 512)) {
  5123. FS.truncate(node, 0);
  5124. }
  5125. // we've already handled these, don't pass down to the underlying vfs
  5126. flags &= ~(128 | 512);
  5127. // register the stream with the filesystem
  5128. var stream = FS.createStream({
  5129. node: node,
  5130. path: FS.getPath(node), // we want the absolute path to the node
  5131. flags: flags,
  5132. seekable: true,
  5133. position: 0,
  5134. stream_ops: node.stream_ops,
  5135. // used by the file family libc calls (fopen, fwrite, ferror, etc.)
  5136. ungotten: [],
  5137. error: false
  5138. }, fd_start, fd_end);
  5139. // call the new stream's open function
  5140. if (stream.stream_ops.open) {
  5141. stream.stream_ops.open(stream);
  5142. }
  5143. if (Module['logReadFiles'] && !(flags & 1)) {
  5144. if (!FS.readFiles) FS.readFiles = {};
  5145. if (!(path in FS.readFiles)) {
  5146. FS.readFiles[path] = 1;
  5147. Module['printErr']('read file: ' + path);
  5148. }
  5149. }
  5150. try {
  5151. if (FS.trackingDelegate['onOpenFile']) {
  5152. var trackingFlags = 0;
  5153. if ((flags & 2097155) !== 1) {
  5154. trackingFlags |= FS.tracking.openFlags.READ;
  5155. }
  5156. if ((flags & 2097155) !== 0) {
  5157. trackingFlags |= FS.tracking.openFlags.WRITE;
  5158. }
  5159. FS.trackingDelegate['onOpenFile'](path, trackingFlags);
  5160. }
  5161. } catch(e) {
  5162. console.log("FS.trackingDelegate['onOpenFile']('"+path+"', flags) threw an exception: " + e.message);
  5163. }
  5164. return stream;
  5165. },close:function (stream) {
  5166. if (stream.getdents) stream.getdents = null; // free readdir state
  5167. try {
  5168. if (stream.stream_ops.close) {
  5169. stream.stream_ops.close(stream);
  5170. }
  5171. } catch (e) {
  5172. throw e;
  5173. } finally {
  5174. FS.closeStream(stream.fd);
  5175. }
  5176. },llseek:function (stream, offset, whence) {
  5177. if (!stream.seekable || !stream.stream_ops.llseek) {
  5178. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5179. }
  5180. stream.position = stream.stream_ops.llseek(stream, offset, whence);
  5181. stream.ungotten = [];
  5182. return stream.position;
  5183. },read:function (stream, buffer, offset, length, position) {
  5184. if (length < 0 || position < 0) {
  5185. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5186. }
  5187. if ((stream.flags & 2097155) === 1) {
  5188. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5189. }
  5190. if (FS.isDir(stream.node.mode)) {
  5191. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5192. }
  5193. if (!stream.stream_ops.read) {
  5194. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5195. }
  5196. var seeking = true;
  5197. if (typeof position === 'undefined') {
  5198. position = stream.position;
  5199. seeking = false;
  5200. } else if (!stream.seekable) {
  5201. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5202. }
  5203. var bytesRead = stream.stream_ops.read(stream, buffer, offset, length, position);
  5204. if (!seeking) stream.position += bytesRead;
  5205. return bytesRead;
  5206. },write:function (stream, buffer, offset, length, position, canOwn) {
  5207. if (length < 0 || position < 0) {
  5208. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5209. }
  5210. if ((stream.flags & 2097155) === 0) {
  5211. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5212. }
  5213. if (FS.isDir(stream.node.mode)) {
  5214. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5215. }
  5216. if (!stream.stream_ops.write) {
  5217. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5218. }
  5219. if (stream.flags & 1024) {
  5220. // seek to the end before writing in append mode
  5221. FS.llseek(stream, 0, 2);
  5222. }
  5223. var seeking = true;
  5224. if (typeof position === 'undefined') {
  5225. position = stream.position;
  5226. seeking = false;
  5227. } else if (!stream.seekable) {
  5228. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5229. }
  5230. var bytesWritten = stream.stream_ops.write(stream, buffer, offset, length, position, canOwn);
  5231. if (!seeking) stream.position += bytesWritten;
  5232. try {
  5233. if (stream.path && FS.trackingDelegate['onWriteToFile']) FS.trackingDelegate['onWriteToFile'](stream.path);
  5234. } catch(e) {
  5235. console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: " + e.message);
  5236. }
  5237. return bytesWritten;
  5238. },allocate:function (stream, offset, length) {
  5239. if (offset < 0 || length <= 0) {
  5240. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5241. }
  5242. if ((stream.flags & 2097155) === 0) {
  5243. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5244. }
  5245. if (!FS.isFile(stream.node.mode) && !FS.isDir(node.mode)) {
  5246. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  5247. }
  5248. if (!stream.stream_ops.allocate) {
  5249. throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP);
  5250. }
  5251. stream.stream_ops.allocate(stream, offset, length);
  5252. },mmap:function (stream, buffer, offset, length, position, prot, flags) {
  5253. // TODO if PROT is PROT_WRITE, make sure we have write access
  5254. if ((stream.flags & 2097155) === 1) {
  5255. throw new FS.ErrnoError(ERRNO_CODES.EACCES);
  5256. }
  5257. if (!stream.stream_ops.mmap) {
  5258. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  5259. }
  5260. return stream.stream_ops.mmap(stream, buffer, offset, length, position, prot, flags);
  5261. },msync:function (stream, buffer, offset, length, mmapFlags) {
  5262. if (!stream || !stream.stream_ops.msync) {
  5263. return 0;
  5264. }
  5265. return stream.stream_ops.msync(stream, buffer, offset, length, mmapFlags);
  5266. },munmap:function (stream) {
  5267. return 0;
  5268. },ioctl:function (stream, cmd, arg) {
  5269. if (!stream.stream_ops.ioctl) {
  5270. throw new FS.ErrnoError(ERRNO_CODES.ENOTTY);
  5271. }
  5272. return stream.stream_ops.ioctl(stream, cmd, arg);
  5273. },readFile:function (path, opts) {
  5274. opts = opts || {};
  5275. opts.flags = opts.flags || 'r';
  5276. opts.encoding = opts.encoding || 'binary';
  5277. if (opts.encoding !== 'utf8' && opts.encoding !== 'binary') {
  5278. throw new Error('Invalid encoding type "' + opts.encoding + '"');
  5279. }
  5280. var ret;
  5281. var stream = FS.open(path, opts.flags);
  5282. var stat = FS.stat(path);
  5283. var length = stat.size;
  5284. var buf = new Uint8Array(length);
  5285. FS.read(stream, buf, 0, length, 0);
  5286. if (opts.encoding === 'utf8') {
  5287. ret = UTF8ArrayToString(buf, 0);
  5288. } else if (opts.encoding === 'binary') {
  5289. ret = buf;
  5290. }
  5291. FS.close(stream);
  5292. return ret;
  5293. },writeFile:function (path, data, opts) {
  5294. opts = opts || {};
  5295. opts.flags = opts.flags || 'w';
  5296. opts.encoding = opts.encoding || 'utf8';
  5297. if (opts.encoding !== 'utf8' && opts.encoding !== 'binary') {
  5298. throw new Error('Invalid encoding type "' + opts.encoding + '"');
  5299. }
  5300. var stream = FS.open(path, opts.flags, opts.mode);
  5301. if (opts.encoding === 'utf8') {
  5302. var buf = new Uint8Array(lengthBytesUTF8(data)+1);
  5303. var actualNumBytes = stringToUTF8Array(data, buf, 0, buf.length);
  5304. FS.write(stream, buf, 0, actualNumBytes, 0, opts.canOwn);
  5305. } else if (opts.encoding === 'binary') {
  5306. FS.write(stream, data, 0, data.length, 0, opts.canOwn);
  5307. }
  5308. FS.close(stream);
  5309. },cwd:function () {
  5310. return FS.currentPath;
  5311. },chdir:function (path) {
  5312. var lookup = FS.lookupPath(path, { follow: true });
  5313. if (lookup.node === null) {
  5314. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5315. }
  5316. if (!FS.isDir(lookup.node.mode)) {
  5317. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  5318. }
  5319. var err = FS.nodePermissions(lookup.node, 'x');
  5320. if (err) {
  5321. throw new FS.ErrnoError(err);
  5322. }
  5323. FS.currentPath = lookup.path;
  5324. },createDefaultDirectories:function () {
  5325. FS.mkdir('/tmp');
  5326. FS.mkdir('/home');
  5327. FS.mkdir('/home/web_user');
  5328. },createDefaultDevices:function () {
  5329. // create /dev
  5330. FS.mkdir('/dev');
  5331. // setup /dev/null
  5332. FS.registerDevice(FS.makedev(1, 3), {
  5333. read: function() { return 0; },
  5334. write: function(stream, buffer, offset, length, pos) { return length; }
  5335. });
  5336. FS.mkdev('/dev/null', FS.makedev(1, 3));
  5337. // setup /dev/tty and /dev/tty1
  5338. // stderr needs to print output using Module['printErr']
  5339. // so we register a second tty just for it.
  5340. TTY.register(FS.makedev(5, 0), TTY.default_tty_ops);
  5341. TTY.register(FS.makedev(6, 0), TTY.default_tty1_ops);
  5342. FS.mkdev('/dev/tty', FS.makedev(5, 0));
  5343. FS.mkdev('/dev/tty1', FS.makedev(6, 0));
  5344. // setup /dev/[u]random
  5345. var random_device;
  5346. if (typeof crypto !== 'undefined') {
  5347. // for modern web browsers
  5348. var randomBuffer = new Uint8Array(1);
  5349. random_device = function() { crypto.getRandomValues(randomBuffer); return randomBuffer[0]; };
  5350. } else if (ENVIRONMENT_IS_NODE) {
  5351. // for nodejs
  5352. random_device = function() { return require('crypto').randomBytes(1)[0]; };
  5353. } else {
  5354. // default for ES5 platforms
  5355. random_device = function() { return (Math.random()*256)|0; };
  5356. }
  5357. FS.createDevice('/dev', 'random', random_device);
  5358. FS.createDevice('/dev', 'urandom', random_device);
  5359. // we're not going to emulate the actual shm device,
  5360. // just create the tmp dirs that reside in it commonly
  5361. FS.mkdir('/dev/shm');
  5362. FS.mkdir('/dev/shm/tmp');
  5363. },createSpecialDirectories:function () {
  5364. // create /proc/self/fd which allows /proc/self/fd/6 => readlink gives the name of the stream for fd 6 (see test_unistd_ttyname)
  5365. FS.mkdir('/proc');
  5366. FS.mkdir('/proc/self');
  5367. FS.mkdir('/proc/self/fd');
  5368. FS.mount({
  5369. mount: function() {
  5370. var node = FS.createNode('/proc/self', 'fd', 16384 | 511 /* 0777 */, 73);
  5371. node.node_ops = {
  5372. lookup: function(parent, name) {
  5373. var fd = +name;
  5374. var stream = FS.getStream(fd);
  5375. if (!stream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5376. var ret = {
  5377. parent: null,
  5378. mount: { mountpoint: 'fake' },
  5379. node_ops: { readlink: function() { return stream.path } }
  5380. };
  5381. ret.parent = ret; // make it look like a simple root node
  5382. return ret;
  5383. }
  5384. };
  5385. return node;
  5386. }
  5387. }, {}, '/proc/self/fd');
  5388. },createStandardStreams:function () {
  5389. // TODO deprecate the old functionality of a single
  5390. // input / output callback and that utilizes FS.createDevice
  5391. // and instead require a unique set of stream ops
  5392. // by default, we symlink the standard streams to the
  5393. // default tty devices. however, if the standard streams
  5394. // have been overwritten we create a unique device for
  5395. // them instead.
  5396. if (Module['stdin']) {
  5397. FS.createDevice('/dev', 'stdin', Module['stdin']);
  5398. } else {
  5399. FS.symlink('/dev/tty', '/dev/stdin');
  5400. }
  5401. if (Module['stdout']) {
  5402. FS.createDevice('/dev', 'stdout', null, Module['stdout']);
  5403. } else {
  5404. FS.symlink('/dev/tty', '/dev/stdout');
  5405. }
  5406. if (Module['stderr']) {
  5407. FS.createDevice('/dev', 'stderr', null, Module['stderr']);
  5408. } else {
  5409. FS.symlink('/dev/tty1', '/dev/stderr');
  5410. }
  5411. // open default streams for the stdin, stdout and stderr devices
  5412. var stdin = FS.open('/dev/stdin', 'r');
  5413. assert(stdin.fd === 0, 'invalid handle for stdin (' + stdin.fd + ')');
  5414. var stdout = FS.open('/dev/stdout', 'w');
  5415. assert(stdout.fd === 1, 'invalid handle for stdout (' + stdout.fd + ')');
  5416. var stderr = FS.open('/dev/stderr', 'w');
  5417. assert(stderr.fd === 2, 'invalid handle for stderr (' + stderr.fd + ')');
  5418. },ensureErrnoError:function () {
  5419. if (FS.ErrnoError) return;
  5420. FS.ErrnoError = function ErrnoError(errno, node) {
  5421. //Module.printErr(stackTrace()); // useful for debugging
  5422. this.node = node;
  5423. this.setErrno = function(errno) {
  5424. this.errno = errno;
  5425. for (var key in ERRNO_CODES) {
  5426. if (ERRNO_CODES[key] === errno) {
  5427. this.code = key;
  5428. break;
  5429. }
  5430. }
  5431. };
  5432. this.setErrno(errno);
  5433. this.message = ERRNO_MESSAGES[errno];
  5434. if (this.stack) this.stack = demangleAll(this.stack);
  5435. };
  5436. FS.ErrnoError.prototype = new Error();
  5437. FS.ErrnoError.prototype.constructor = FS.ErrnoError;
  5438. // Some errors may happen quite a bit, to avoid overhead we reuse them (and suffer a lack of stack info)
  5439. [ERRNO_CODES.ENOENT].forEach(function(code) {
  5440. FS.genericErrors[code] = new FS.ErrnoError(code);
  5441. FS.genericErrors[code].stack = '<generic error, no stack>';
  5442. });
  5443. },staticInit:function () {
  5444. FS.ensureErrnoError();
  5445. FS.nameTable = new Array(4096);
  5446. FS.mount(MEMFS, {}, '/');
  5447. FS.createDefaultDirectories();
  5448. FS.createDefaultDevices();
  5449. FS.createSpecialDirectories();
  5450. FS.filesystems = {
  5451. 'MEMFS': MEMFS,
  5452. 'IDBFS': IDBFS,
  5453. 'NODEFS': NODEFS,
  5454. 'WORKERFS': WORKERFS,
  5455. };
  5456. },init:function (input, output, error) {
  5457. assert(!FS.init.initialized, 'FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)');
  5458. FS.init.initialized = true;
  5459. FS.ensureErrnoError();
  5460. // Allow Module.stdin etc. to provide defaults, if none explicitly passed to us here
  5461. Module['stdin'] = input || Module['stdin'];
  5462. Module['stdout'] = output || Module['stdout'];
  5463. Module['stderr'] = error || Module['stderr'];
  5464. FS.createStandardStreams();
  5465. },quit:function () {
  5466. FS.init.initialized = false;
  5467. // force-flush all streams, so we get musl std streams printed out
  5468. var fflush = Module['_fflush'];
  5469. if (fflush) fflush(0);
  5470. // close all of our streams
  5471. for (var i = 0; i < FS.streams.length; i++) {
  5472. var stream = FS.streams[i];
  5473. if (!stream) {
  5474. continue;
  5475. }
  5476. FS.close(stream);
  5477. }
  5478. },getMode:function (canRead, canWrite) {
  5479. var mode = 0;
  5480. if (canRead) mode |= 292 | 73;
  5481. if (canWrite) mode |= 146;
  5482. return mode;
  5483. },joinPath:function (parts, forceRelative) {
  5484. var path = PATH.join.apply(null, parts);
  5485. if (forceRelative && path[0] == '/') path = path.substr(1);
  5486. return path;
  5487. },absolutePath:function (relative, base) {
  5488. return PATH.resolve(base, relative);
  5489. },standardizePath:function (path) {
  5490. return PATH.normalize(path);
  5491. },findObject:function (path, dontResolveLastLink) {
  5492. var ret = FS.analyzePath(path, dontResolveLastLink);
  5493. if (ret.exists) {
  5494. return ret.object;
  5495. } else {
  5496. ___setErrNo(ret.error);
  5497. return null;
  5498. }
  5499. },analyzePath:function (path, dontResolveLastLink) {
  5500. // operate from within the context of the symlink's target
  5501. try {
  5502. var lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
  5503. path = lookup.path;
  5504. } catch (e) {
  5505. }
  5506. var ret = {
  5507. isRoot: false, exists: false, error: 0, name: null, path: null, object: null,
  5508. parentExists: false, parentPath: null, parentObject: null
  5509. };
  5510. try {
  5511. var lookup = FS.lookupPath(path, { parent: true });
  5512. ret.parentExists = true;
  5513. ret.parentPath = lookup.path;
  5514. ret.parentObject = lookup.node;
  5515. ret.name = PATH.basename(path);
  5516. lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
  5517. ret.exists = true;
  5518. ret.path = lookup.path;
  5519. ret.object = lookup.node;
  5520. ret.name = lookup.node.name;
  5521. ret.isRoot = lookup.path === '/';
  5522. } catch (e) {
  5523. ret.error = e.errno;
  5524. };
  5525. return ret;
  5526. },createFolder:function (parent, name, canRead, canWrite) {
  5527. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5528. var mode = FS.getMode(canRead, canWrite);
  5529. return FS.mkdir(path, mode);
  5530. },createPath:function (parent, path, canRead, canWrite) {
  5531. parent = typeof parent === 'string' ? parent : FS.getPath(parent);
  5532. var parts = path.split('/').reverse();
  5533. while (parts.length) {
  5534. var part = parts.pop();
  5535. if (!part) continue;
  5536. var current = PATH.join2(parent, part);
  5537. try {
  5538. FS.mkdir(current);
  5539. } catch (e) {
  5540. // ignore EEXIST
  5541. }
  5542. parent = current;
  5543. }
  5544. return current;
  5545. },createFile:function (parent, name, properties, canRead, canWrite) {
  5546. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5547. var mode = FS.getMode(canRead, canWrite);
  5548. return FS.create(path, mode);
  5549. },createDataFile:function (parent, name, data, canRead, canWrite, canOwn) {
  5550. var path = name ? PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name) : parent;
  5551. var mode = FS.getMode(canRead, canWrite);
  5552. var node = FS.create(path, mode);
  5553. if (data) {
  5554. if (typeof data === 'string') {
  5555. var arr = new Array(data.length);
  5556. for (var i = 0, len = data.length; i < len; ++i) arr[i] = data.charCodeAt(i);
  5557. data = arr;
  5558. }
  5559. // make sure we can write to the file
  5560. FS.chmod(node, mode | 146);
  5561. var stream = FS.open(node, 'w');
  5562. FS.write(stream, data, 0, data.length, 0, canOwn);
  5563. FS.close(stream);
  5564. FS.chmod(node, mode);
  5565. }
  5566. return node;
  5567. },createDevice:function (parent, name, input, output) {
  5568. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5569. var mode = FS.getMode(!!input, !!output);
  5570. if (!FS.createDevice.major) FS.createDevice.major = 64;
  5571. var dev = FS.makedev(FS.createDevice.major++, 0);
  5572. // Create a fake device that a set of stream ops to emulate
  5573. // the old behavior.
  5574. FS.registerDevice(dev, {
  5575. open: function(stream) {
  5576. stream.seekable = false;
  5577. },
  5578. close: function(stream) {
  5579. // flush any pending line data
  5580. if (output && output.buffer && output.buffer.length) {
  5581. output(10);
  5582. }
  5583. },
  5584. read: function(stream, buffer, offset, length, pos /* ignored */) {
  5585. var bytesRead = 0;
  5586. for (var i = 0; i < length; i++) {
  5587. var result;
  5588. try {
  5589. result = input();
  5590. } catch (e) {
  5591. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5592. }
  5593. if (result === undefined && bytesRead === 0) {
  5594. throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
  5595. }
  5596. if (result === null || result === undefined) break;
  5597. bytesRead++;
  5598. buffer[offset+i] = result;
  5599. }
  5600. if (bytesRead) {
  5601. stream.node.timestamp = Date.now();
  5602. }
  5603. return bytesRead;
  5604. },
  5605. write: function(stream, buffer, offset, length, pos) {
  5606. for (var i = 0; i < length; i++) {
  5607. try {
  5608. output(buffer[offset+i]);
  5609. } catch (e) {
  5610. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5611. }
  5612. }
  5613. if (length) {
  5614. stream.node.timestamp = Date.now();
  5615. }
  5616. return i;
  5617. }
  5618. });
  5619. return FS.mkdev(path, mode, dev);
  5620. },createLink:function (parent, name, target, canRead, canWrite) {
  5621. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5622. return FS.symlink(target, path);
  5623. },forceLoadFile:function (obj) {
  5624. if (obj.isDevice || obj.isFolder || obj.link || obj.contents) return true;
  5625. var success = true;
  5626. if (typeof XMLHttpRequest !== 'undefined') {
  5627. throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");
  5628. } else if (Module['read']) {
  5629. // Command-line.
  5630. try {
  5631. // WARNING: Can't read binary files in V8's d8 or tracemonkey's js, as
  5632. // read() will try to parse UTF8.
  5633. obj.contents = intArrayFromString(Module['read'](obj.url), true);
  5634. obj.usedBytes = obj.contents.length;
  5635. } catch (e) {
  5636. success = false;
  5637. }
  5638. } else {
  5639. throw new Error('Cannot load without read() or XMLHttpRequest.');
  5640. }
  5641. if (!success) ___setErrNo(ERRNO_CODES.EIO);
  5642. return success;
  5643. },createLazyFile:function (parent, name, url, canRead, canWrite) {
  5644. // Lazy chunked Uint8Array (implements get and length from Uint8Array). Actual getting is abstracted away for eventual reuse.
  5645. function LazyUint8Array() {
  5646. this.lengthKnown = false;
  5647. this.chunks = []; // Loaded chunks. Index is the chunk number
  5648. }
  5649. LazyUint8Array.prototype.get = function LazyUint8Array_get(idx) {
  5650. if (idx > this.length-1 || idx < 0) {
  5651. return undefined;
  5652. }
  5653. var chunkOffset = idx % this.chunkSize;
  5654. var chunkNum = (idx / this.chunkSize)|0;
  5655. return this.getter(chunkNum)[chunkOffset];
  5656. }
  5657. LazyUint8Array.prototype.setDataGetter = function LazyUint8Array_setDataGetter(getter) {
  5658. this.getter = getter;
  5659. }
  5660. LazyUint8Array.prototype.cacheLength = function LazyUint8Array_cacheLength() {
  5661. // Find length
  5662. var xhr = new XMLHttpRequest();
  5663. xhr.open('HEAD', url, false);
  5664. xhr.send(null);
  5665. if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
  5666. var datalength = Number(xhr.getResponseHeader("Content-length"));
  5667. var header;
  5668. var hasByteServing = (header = xhr.getResponseHeader("Accept-Ranges")) && header === "bytes";
  5669. var usesGzip = (header = xhr.getResponseHeader("Content-Encoding")) && header === "gzip";
  5670. var chunkSize = 1024*1024; // Chunk size in bytes
  5671. if (!hasByteServing) chunkSize = datalength;
  5672. // Function to get a range from the remote URL.
  5673. var doXHR = (function(from, to) {
  5674. if (from > to) throw new Error("invalid range (" + from + ", " + to + ") or no bytes requested!");
  5675. if (to > datalength-1) throw new Error("only " + datalength + " bytes available! programmer error!");
  5676. // TODO: Use mozResponseArrayBuffer, responseStream, etc. if available.
  5677. var xhr = new XMLHttpRequest();
  5678. xhr.open('GET', url, false);
  5679. if (datalength !== chunkSize) xhr.setRequestHeader("Range", "bytes=" + from + "-" + to);
  5680. // Some hints to the browser that we want binary data.
  5681. if (typeof Uint8Array != 'undefined') xhr.responseType = 'arraybuffer';
  5682. if (xhr.overrideMimeType) {
  5683. xhr.overrideMimeType('text/plain; charset=x-user-defined');
  5684. }
  5685. xhr.send(null);
  5686. if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
  5687. if (xhr.response !== undefined) {
  5688. return new Uint8Array(xhr.response || []);
  5689. } else {
  5690. return intArrayFromString(xhr.responseText || '', true);
  5691. }
  5692. });
  5693. var lazyArray = this;
  5694. lazyArray.setDataGetter(function(chunkNum) {
  5695. var start = chunkNum * chunkSize;
  5696. var end = (chunkNum+1) * chunkSize - 1; // including this byte
  5697. end = Math.min(end, datalength-1); // if datalength-1 is selected, this is the last block
  5698. if (typeof(lazyArray.chunks[chunkNum]) === "undefined") {
  5699. lazyArray.chunks[chunkNum] = doXHR(start, end);
  5700. }
  5701. if (typeof(lazyArray.chunks[chunkNum]) === "undefined") throw new Error("doXHR failed!");
  5702. return lazyArray.chunks[chunkNum];
  5703. });
  5704. if (usesGzip || !datalength) {
  5705. // if the server uses gzip or doesn't supply the length, we have to download the whole file to get the (uncompressed) length
  5706. chunkSize = datalength = 1; // this will force getter(0)/doXHR do download the whole file
  5707. datalength = this.getter(0).length;
  5708. chunkSize = datalength;
  5709. console.log("LazyFiles on gzip forces download of the whole file when length is accessed");
  5710. }
  5711. this._length = datalength;
  5712. this._chunkSize = chunkSize;
  5713. this.lengthKnown = true;
  5714. }
  5715. if (typeof XMLHttpRequest !== 'undefined') {
  5716. if (!ENVIRONMENT_IS_WORKER) throw 'Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc';
  5717. var lazyArray = new LazyUint8Array();
  5718. Object.defineProperties(lazyArray, {
  5719. length: {
  5720. get: function() {
  5721. if(!this.lengthKnown) {
  5722. this.cacheLength();
  5723. }
  5724. return this._length;
  5725. }
  5726. },
  5727. chunkSize: {
  5728. get: function() {
  5729. if(!this.lengthKnown) {
  5730. this.cacheLength();
  5731. }
  5732. return this._chunkSize;
  5733. }
  5734. }
  5735. });
  5736. var properties = { isDevice: false, contents: lazyArray };
  5737. } else {
  5738. var properties = { isDevice: false, url: url };
  5739. }
  5740. var node = FS.createFile(parent, name, properties, canRead, canWrite);
  5741. // This is a total hack, but I want to get this lazy file code out of the
  5742. // core of MEMFS. If we want to keep this lazy file concept I feel it should
  5743. // be its own thin LAZYFS proxying calls to MEMFS.
  5744. if (properties.contents) {
  5745. node.contents = properties.contents;
  5746. } else if (properties.url) {
  5747. node.contents = null;
  5748. node.url = properties.url;
  5749. }
  5750. // Add a function that defers querying the file size until it is asked the first time.
  5751. Object.defineProperties(node, {
  5752. usedBytes: {
  5753. get: function() { return this.contents.length; }
  5754. }
  5755. });
  5756. // override each stream op with one that tries to force load the lazy file first
  5757. var stream_ops = {};
  5758. var keys = Object.keys(node.stream_ops);
  5759. keys.forEach(function(key) {
  5760. var fn = node.stream_ops[key];
  5761. stream_ops[key] = function forceLoadLazyFile() {
  5762. if (!FS.forceLoadFile(node)) {
  5763. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5764. }
  5765. return fn.apply(null, arguments);
  5766. };
  5767. });
  5768. // use a custom read function
  5769. stream_ops.read = function stream_ops_read(stream, buffer, offset, length, position) {
  5770. if (!FS.forceLoadFile(node)) {
  5771. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5772. }
  5773. var contents = stream.node.contents;
  5774. if (position >= contents.length)
  5775. return 0;
  5776. var size = Math.min(contents.length - position, length);
  5777. assert(size >= 0);
  5778. if (contents.slice) { // normal array
  5779. for (var i = 0; i < size; i++) {
  5780. buffer[offset + i] = contents[position + i];
  5781. }
  5782. } else {
  5783. for (var i = 0; i < size; i++) { // LazyUint8Array from sync binary XHR
  5784. buffer[offset + i] = contents.get(position + i);
  5785. }
  5786. }
  5787. return size;
  5788. };
  5789. node.stream_ops = stream_ops;
  5790. return node;
  5791. },createPreloadedFile:function (parent, name, url, canRead, canWrite, onload, onerror, dontCreateFile, canOwn, preFinish) {
  5792. Browser.init(); // XXX perhaps this method should move onto Browser?
  5793. // TODO we should allow people to just pass in a complete filename instead
  5794. // of parent and name being that we just join them anyways
  5795. var fullname = name ? PATH.resolve(PATH.join2(parent, name)) : parent;
  5796. var dep = getUniqueRunDependency('cp ' + fullname); // might have several active requests for the same fullname
  5797. function processData(byteArray) {
  5798. function finish(byteArray) {
  5799. if (preFinish) preFinish();
  5800. if (!dontCreateFile) {
  5801. FS.createDataFile(parent, name, byteArray, canRead, canWrite, canOwn);
  5802. }
  5803. if (onload) onload();
  5804. removeRunDependency(dep);
  5805. }
  5806. var handled = false;
  5807. Module['preloadPlugins'].forEach(function(plugin) {
  5808. if (handled) return;
  5809. if (plugin['canHandle'](fullname)) {
  5810. plugin['handle'](byteArray, fullname, finish, function() {
  5811. if (onerror) onerror();
  5812. removeRunDependency(dep);
  5813. });
  5814. handled = true;
  5815. }
  5816. });
  5817. if (!handled) finish(byteArray);
  5818. }
  5819. addRunDependency(dep);
  5820. if (typeof url == 'string') {
  5821. Browser.asyncLoad(url, function(byteArray) {
  5822. processData(byteArray);
  5823. }, onerror);
  5824. } else {
  5825. processData(url);
  5826. }
  5827. },indexedDB:function () {
  5828. return window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
  5829. },DB_NAME:function () {
  5830. return 'EM_FS_' + window.location.pathname;
  5831. },DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:function (paths, onload, onerror) {
  5832. onload = onload || function(){};
  5833. onerror = onerror || function(){};
  5834. var indexedDB = FS.indexedDB();
  5835. try {
  5836. var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
  5837. } catch (e) {
  5838. return onerror(e);
  5839. }
  5840. openRequest.onupgradeneeded = function openRequest_onupgradeneeded() {
  5841. console.log('creating db');
  5842. var db = openRequest.result;
  5843. db.createObjectStore(FS.DB_STORE_NAME);
  5844. };
  5845. openRequest.onsuccess = function openRequest_onsuccess() {
  5846. var db = openRequest.result;
  5847. var transaction = db.transaction([FS.DB_STORE_NAME], 'readwrite');
  5848. var files = transaction.objectStore(FS.DB_STORE_NAME);
  5849. var ok = 0, fail = 0, total = paths.length;
  5850. function finish() {
  5851. if (fail == 0) onload(); else onerror();
  5852. }
  5853. paths.forEach(function(path) {
  5854. var putRequest = files.put(FS.analyzePath(path).object.contents, path);
  5855. putRequest.onsuccess = function putRequest_onsuccess() { ok++; if (ok + fail == total) finish() };
  5856. putRequest.onerror = function putRequest_onerror() { fail++; if (ok + fail == total) finish() };
  5857. });
  5858. transaction.onerror = onerror;
  5859. };
  5860. openRequest.onerror = onerror;
  5861. },loadFilesFromDB:function (paths, onload, onerror) {
  5862. onload = onload || function(){};
  5863. onerror = onerror || function(){};
  5864. var indexedDB = FS.indexedDB();
  5865. try {
  5866. var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
  5867. } catch (e) {
  5868. return onerror(e);
  5869. }
  5870. openRequest.onupgradeneeded = onerror; // no database to load from
  5871. openRequest.onsuccess = function openRequest_onsuccess() {
  5872. var db = openRequest.result;
  5873. try {
  5874. var transaction = db.transaction([FS.DB_STORE_NAME], 'readonly');
  5875. } catch(e) {
  5876. onerror(e);
  5877. return;
  5878. }
  5879. var files = transaction.objectStore(FS.DB_STORE_NAME);
  5880. var ok = 0, fail = 0, total = paths.length;
  5881. function finish() {
  5882. if (fail == 0) onload(); else onerror();
  5883. }
  5884. paths.forEach(function(path) {
  5885. var getRequest = files.get(path);
  5886. getRequest.onsuccess = function getRequest_onsuccess() {
  5887. if (FS.analyzePath(path).exists) {
  5888. FS.unlink(path);
  5889. }
  5890. FS.createDataFile(PATH.dirname(path), PATH.basename(path), getRequest.result, true, true, true);
  5891. ok++;
  5892. if (ok + fail == total) finish();
  5893. };
  5894. getRequest.onerror = function getRequest_onerror() { fail++; if (ok + fail == total) finish() };
  5895. });
  5896. transaction.onerror = onerror;
  5897. };
  5898. openRequest.onerror = onerror;
  5899. }};var SYSCALLS={DEFAULT_POLLMASK:5,mappings:{},umask:511,calculateAt:function (dirfd, path) {
  5900. if (path[0] !== '/') {
  5901. // relative path
  5902. var dir;
  5903. if (dirfd === -100) {
  5904. dir = FS.cwd();
  5905. } else {
  5906. var dirstream = FS.getStream(dirfd);
  5907. if (!dirstream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5908. dir = dirstream.path;
  5909. }
  5910. path = PATH.join2(dir, path);
  5911. }
  5912. return path;
  5913. },doStat:function (func, path, buf) {
  5914. try {
  5915. var stat = func(path);
  5916. } catch (e) {
  5917. if (e && e.node && PATH.normalize(path) !== PATH.normalize(FS.getPath(e.node))) {
  5918. // an error occurred while trying to look up the path; we should just report ENOTDIR
  5919. return -ERRNO_CODES.ENOTDIR;
  5920. }
  5921. throw e;
  5922. }
  5923. HEAP32[((buf)>>2)]=stat.dev;
  5924. HEAP32[(((buf)+(4))>>2)]=0;
  5925. HEAP32[(((buf)+(8))>>2)]=stat.ino;
  5926. HEAP32[(((buf)+(12))>>2)]=stat.mode;
  5927. HEAP32[(((buf)+(16))>>2)]=stat.nlink;
  5928. HEAP32[(((buf)+(20))>>2)]=stat.uid;
  5929. HEAP32[(((buf)+(24))>>2)]=stat.gid;
  5930. HEAP32[(((buf)+(28))>>2)]=stat.rdev;
  5931. HEAP32[(((buf)+(32))>>2)]=0;
  5932. HEAP32[(((buf)+(36))>>2)]=stat.size;
  5933. HEAP32[(((buf)+(40))>>2)]=4096;
  5934. HEAP32[(((buf)+(44))>>2)]=stat.blocks;
  5935. HEAP32[(((buf)+(48))>>2)]=(stat.atime.getTime() / 1000)|0;
  5936. HEAP32[(((buf)+(52))>>2)]=0;
  5937. HEAP32[(((buf)+(56))>>2)]=(stat.mtime.getTime() / 1000)|0;
  5938. HEAP32[(((buf)+(60))>>2)]=0;
  5939. HEAP32[(((buf)+(64))>>2)]=(stat.ctime.getTime() / 1000)|0;
  5940. HEAP32[(((buf)+(68))>>2)]=0;
  5941. HEAP32[(((buf)+(72))>>2)]=stat.ino;
  5942. return 0;
  5943. },doMsync:function (addr, stream, len, flags) {
  5944. var buffer = new Uint8Array(HEAPU8.subarray(addr, addr + len));
  5945. FS.msync(stream, buffer, 0, len, flags);
  5946. },doMkdir:function (path, mode) {
  5947. // remove a trailing slash, if one - /a/b/ has basename of '', but
  5948. // we want to create b in the context of this function
  5949. path = PATH.normalize(path);
  5950. if (path[path.length-1] === '/') path = path.substr(0, path.length-1);
  5951. FS.mkdir(path, mode, 0);
  5952. return 0;
  5953. },doMknod:function (path, mode, dev) {
  5954. // we don't want this in the JS API as it uses mknod to create all nodes.
  5955. switch (mode & 61440) {
  5956. case 32768:
  5957. case 8192:
  5958. case 24576:
  5959. case 4096:
  5960. case 49152:
  5961. break;
  5962. default: return -ERRNO_CODES.EINVAL;
  5963. }
  5964. FS.mknod(path, mode, dev);
  5965. return 0;
  5966. },doReadlink:function (path, buf, bufsize) {
  5967. if (bufsize <= 0) return -ERRNO_CODES.EINVAL;
  5968. var ret = FS.readlink(path);
  5969. var len = Math.min(bufsize, lengthBytesUTF8(ret));
  5970. var endChar = HEAP8[buf+len];
  5971. stringToUTF8(ret, buf, bufsize+1);
  5972. // readlink is one of the rare functions that write out a C string, but does never append a null to the output buffer(!)
  5973. // stringToUTF8() always appends a null byte, so restore the character under the null byte after the write.
  5974. HEAP8[buf+len] = endChar;
  5975. return len;
  5976. },doAccess:function (path, amode) {
  5977. if (amode & ~7) {
  5978. // need a valid mode
  5979. return -ERRNO_CODES.EINVAL;
  5980. }
  5981. var node;
  5982. var lookup = FS.lookupPath(path, { follow: true });
  5983. node = lookup.node;
  5984. var perms = '';
  5985. if (amode & 4) perms += 'r';
  5986. if (amode & 2) perms += 'w';
  5987. if (amode & 1) perms += 'x';
  5988. if (perms /* otherwise, they've just passed F_OK */ && FS.nodePermissions(node, perms)) {
  5989. return -ERRNO_CODES.EACCES;
  5990. }
  5991. return 0;
  5992. },doDup:function (path, flags, suggestFD) {
  5993. var suggest = FS.getStream(suggestFD);
  5994. if (suggest) FS.close(suggest);
  5995. return FS.open(path, flags, 0, suggestFD, suggestFD).fd;
  5996. },doReadv:function (stream, iov, iovcnt, offset) {
  5997. var ret = 0;
  5998. for (var i = 0; i < iovcnt; i++) {
  5999. var ptr = HEAP32[(((iov)+(i*8))>>2)];
  6000. var len = HEAP32[(((iov)+(i*8 + 4))>>2)];
  6001. var curr = FS.read(stream, HEAP8,ptr, len, offset);
  6002. if (curr < 0) return -1;
  6003. ret += curr;
  6004. if (curr < len) break; // nothing more to read
  6005. }
  6006. return ret;
  6007. },doWritev:function (stream, iov, iovcnt, offset) {
  6008. var ret = 0;
  6009. for (var i = 0; i < iovcnt; i++) {
  6010. var ptr = HEAP32[(((iov)+(i*8))>>2)];
  6011. var len = HEAP32[(((iov)+(i*8 + 4))>>2)];
  6012. var curr = FS.write(stream, HEAP8,ptr, len, offset);
  6013. if (curr < 0) return -1;
  6014. ret += curr;
  6015. }
  6016. return ret;
  6017. },varargs:0,get:function (varargs) {
  6018. SYSCALLS.varargs += 4;
  6019. var ret = HEAP32[(((SYSCALLS.varargs)-(4))>>2)];
  6020. return ret;
  6021. },getStr:function () {
  6022. var ret = Pointer_stringify(SYSCALLS.get());
  6023. return ret;
  6024. },getStreamFromFD:function () {
  6025. var stream = FS.getStream(SYSCALLS.get());
  6026. if (!stream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  6027. return stream;
  6028. },getSocketFromFD:function () {
  6029. var socket = SOCKFS.getSocket(SYSCALLS.get());
  6030. if (!socket) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  6031. return socket;
  6032. },getSocketAddress:function (allowNull) {
  6033. var addrp = SYSCALLS.get(), addrlen = SYSCALLS.get();
  6034. if (allowNull && addrp === 0) return null;
  6035. var info = __read_sockaddr(addrp, addrlen);
  6036. if (info.errno) throw new FS.ErrnoError(info.errno);
  6037. info.addr = DNS.lookup_addr(info.addr) || info.addr;
  6038. return info;
  6039. },get64:function () {
  6040. var low = SYSCALLS.get(), high = SYSCALLS.get();
  6041. if (low >= 0) assert(high === 0);
  6042. else assert(high === -1);
  6043. return low;
  6044. },getZero:function () {
  6045. assert(SYSCALLS.get() === 0);
  6046. }};function ___syscall54(which, varargs) {SYSCALLS.varargs = varargs;
  6047. try {
  6048. // ioctl
  6049. var stream = SYSCALLS.getStreamFromFD(), op = SYSCALLS.get();
  6050. switch (op) {
  6051. case 21505: {
  6052. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6053. return 0;
  6054. }
  6055. case 21506: {
  6056. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6057. return 0; // no-op, not actually adjusting terminal settings
  6058. }
  6059. case 21519: {
  6060. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6061. var argp = SYSCALLS.get();
  6062. HEAP32[((argp)>>2)]=0;
  6063. return 0;
  6064. }
  6065. case 21520: {
  6066. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6067. return -ERRNO_CODES.EINVAL; // not supported
  6068. }
  6069. case 21531: {
  6070. var argp = SYSCALLS.get();
  6071. return FS.ioctl(stream, op, argp);
  6072. }
  6073. case 21523: {
  6074. // TODO: in theory we should write to the winsize struct that gets
  6075. // passed in, but for now musl doesn't read anything on it
  6076. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6077. return 0;
  6078. }
  6079. default: abort('bad ioctl syscall ' + op);
  6080. }
  6081. } catch (e) {
  6082. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  6083. return -e.errno;
  6084. }
  6085. }
  6086. function _emscripten_glSampleCoverage(value, invert) {
  6087. GLctx.sampleCoverage(value, !!invert);
  6088. }
  6089. function _glDeleteTextures(n, textures) {
  6090. for (var i = 0; i < n; i++) {
  6091. var id = HEAP32[(((textures)+(i*4))>>2)];
  6092. var texture = GL.textures[id];
  6093. if (!texture) continue; // GL spec: "glDeleteTextures silently ignores 0s and names that do not correspond to existing textures".
  6094. GLctx.deleteTexture(texture);
  6095. texture.name = 0;
  6096. GL.textures[id] = null;
  6097. }
  6098. }
  6099. function _emscripten_glFrustum() {
  6100. Module['printErr']('missing function: emscripten_glFrustum'); abort(-1);
  6101. }
  6102. function _glVertexAttrib4f(x0, x1, x2, x3, x4) { GLctx['vertexAttrib4f'](x0, x1, x2, x3, x4) }
  6103. function _glfwSetWindowSizeCallback(winid, cbfun) {
  6104. GLFW.setWindowSizeCallback(winid, cbfun);
  6105. }
  6106. function _emscripten_glGetTexParameterfv(target, pname, params) {
  6107. if (!params) {
  6108. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  6109. // if p == null, issue a GL error to notify user about it.
  6110. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  6111. return;
  6112. }
  6113. HEAPF32[((params)>>2)]=GLctx.getTexParameter(target, pname);
  6114. }
  6115. function _emscripten_glUniform4i(location, v0, v1, v2, v3) {
  6116. GLctx.uniform4i(GL.uniforms[location], v0, v1, v2, v3);
  6117. }
  6118. function _emscripten_glBindRenderbuffer(target, renderbuffer) {
  6119. GLctx.bindRenderbuffer(target, renderbuffer ? GL.renderbuffers[renderbuffer] : null);
  6120. }
  6121. function _emscripten_glViewport(x0, x1, x2, x3) { GLctx['viewport'](x0, x1, x2, x3) }
  6122. var JSEvents={keyEvent:0,mouseEvent:0,wheelEvent:0,uiEvent:0,focusEvent:0,deviceOrientationEvent:0,deviceMotionEvent:0,fullscreenChangeEvent:0,pointerlockChangeEvent:0,visibilityChangeEvent:0,touchEvent:0,lastGamepadState:null,lastGamepadStateFrame:null,numGamepadsConnected:0,previousFullscreenElement:null,previousScreenX:null,previousScreenY:null,removeEventListenersRegistered:false,staticInit:function () {
  6123. if (typeof window !== 'undefined') {
  6124. window.addEventListener("gamepadconnected", function() { ++JSEvents.numGamepadsConnected; });
  6125. window.addEventListener("gamepaddisconnected", function() { --JSEvents.numGamepadsConnected; });
  6126. }
  6127. },registerRemoveEventListeners:function () {
  6128. if (!JSEvents.removeEventListenersRegistered) {
  6129. __ATEXIT__.push(function() {
  6130. for(var i = JSEvents.eventHandlers.length-1; i >= 0; --i) {
  6131. JSEvents._removeHandler(i);
  6132. }
  6133. });
  6134. JSEvents.removeEventListenersRegistered = true;
  6135. }
  6136. },findEventTarget:function (target) {
  6137. if (target) {
  6138. if (typeof target == "number") {
  6139. target = Pointer_stringify(target);
  6140. }
  6141. if (target == '#window') return window;
  6142. else if (target == '#document') return document;
  6143. else if (target == '#screen') return window.screen;
  6144. else if (target == '#canvas') return Module['canvas'];
  6145. if (typeof target == 'string') return document.getElementById(target);
  6146. else return target;
  6147. } else {
  6148. // The sensible target varies between events, but use window as the default
  6149. // since DOM events mostly can default to that. Specific callback registrations
  6150. // override their own defaults.
  6151. return window;
  6152. }
  6153. },deferredCalls:[],deferCall:function (targetFunction, precedence, argsList) {
  6154. function arraysHaveEqualContent(arrA, arrB) {
  6155. if (arrA.length != arrB.length) return false;
  6156. for(var i in arrA) {
  6157. if (arrA[i] != arrB[i]) return false;
  6158. }
  6159. return true;
  6160. }
  6161. // Test if the given call was already queued, and if so, don't add it again.
  6162. for(var i in JSEvents.deferredCalls) {
  6163. var call = JSEvents.deferredCalls[i];
  6164. if (call.targetFunction == targetFunction && arraysHaveEqualContent(call.argsList, argsList)) {
  6165. return;
  6166. }
  6167. }
  6168. JSEvents.deferredCalls.push({
  6169. targetFunction: targetFunction,
  6170. precedence: precedence,
  6171. argsList: argsList
  6172. });
  6173. JSEvents.deferredCalls.sort(function(x,y) { return x.precedence < y.precedence; });
  6174. },removeDeferredCalls:function (targetFunction) {
  6175. for(var i = 0; i < JSEvents.deferredCalls.length; ++i) {
  6176. if (JSEvents.deferredCalls[i].targetFunction == targetFunction) {
  6177. JSEvents.deferredCalls.splice(i, 1);
  6178. --i;
  6179. }
  6180. }
  6181. },canPerformEventHandlerRequests:function () {
  6182. return JSEvents.inEventHandler && JSEvents.currentEventHandler.allowsDeferredCalls;
  6183. },runDeferredCalls:function () {
  6184. if (!JSEvents.canPerformEventHandlerRequests()) {
  6185. return;
  6186. }
  6187. for(var i = 0; i < JSEvents.deferredCalls.length; ++i) {
  6188. var call = JSEvents.deferredCalls[i];
  6189. JSEvents.deferredCalls.splice(i, 1);
  6190. --i;
  6191. call.targetFunction.apply(this, call.argsList);
  6192. }
  6193. },inEventHandler:0,currentEventHandler:null,eventHandlers:[],isInternetExplorer:function () { return navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0; },removeAllHandlersOnTarget:function (target, eventTypeString) {
  6194. for(var i = 0; i < JSEvents.eventHandlers.length; ++i) {
  6195. if (JSEvents.eventHandlers[i].target == target &&
  6196. (!eventTypeString || eventTypeString == JSEvents.eventHandlers[i].eventTypeString)) {
  6197. JSEvents._removeHandler(i--);
  6198. }
  6199. }
  6200. },_removeHandler:function (i) {
  6201. var h = JSEvents.eventHandlers[i];
  6202. h.target.removeEventListener(h.eventTypeString, h.eventListenerFunc, h.useCapture);
  6203. JSEvents.eventHandlers.splice(i, 1);
  6204. },registerOrRemoveHandler:function (eventHandler) {
  6205. var jsEventHandler = function jsEventHandler(event) {
  6206. // Increment nesting count for the event handler.
  6207. ++JSEvents.inEventHandler;
  6208. JSEvents.currentEventHandler = eventHandler;
  6209. // Process any old deferred calls the user has placed.
  6210. JSEvents.runDeferredCalls();
  6211. // Process the actual event, calls back to user C code handler.
  6212. eventHandler.handlerFunc(event);
  6213. // Process any new deferred calls that were placed right now from this event handler.
  6214. JSEvents.runDeferredCalls();
  6215. // Out of event handler - restore nesting count.
  6216. --JSEvents.inEventHandler;
  6217. }
  6218. if (eventHandler.callbackfunc) {
  6219. eventHandler.eventListenerFunc = jsEventHandler;
  6220. eventHandler.target.addEventListener(eventHandler.eventTypeString, jsEventHandler, eventHandler.useCapture);
  6221. JSEvents.eventHandlers.push(eventHandler);
  6222. JSEvents.registerRemoveEventListeners();
  6223. } else {
  6224. for(var i = 0; i < JSEvents.eventHandlers.length; ++i) {
  6225. if (JSEvents.eventHandlers[i].target == eventHandler.target
  6226. && JSEvents.eventHandlers[i].eventTypeString == eventHandler.eventTypeString) {
  6227. JSEvents._removeHandler(i--);
  6228. }
  6229. }
  6230. }
  6231. },registerKeyEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6232. if (!JSEvents.keyEvent) {
  6233. JSEvents.keyEvent = _malloc( 164 );
  6234. }
  6235. var handlerFunc = function(event) {
  6236. var e = event || window.event;
  6237. stringToUTF8(e.key ? e.key : "", JSEvents.keyEvent + 0, 32);
  6238. stringToUTF8(e.code ? e.code : "", JSEvents.keyEvent + 32, 32);
  6239. HEAP32[(((JSEvents.keyEvent)+(64))>>2)]=e.location;
  6240. HEAP32[(((JSEvents.keyEvent)+(68))>>2)]=e.ctrlKey;
  6241. HEAP32[(((JSEvents.keyEvent)+(72))>>2)]=e.shiftKey;
  6242. HEAP32[(((JSEvents.keyEvent)+(76))>>2)]=e.altKey;
  6243. HEAP32[(((JSEvents.keyEvent)+(80))>>2)]=e.metaKey;
  6244. HEAP32[(((JSEvents.keyEvent)+(84))>>2)]=e.repeat;
  6245. stringToUTF8(e.locale ? e.locale : "", JSEvents.keyEvent + 88, 32);
  6246. stringToUTF8(e.char ? e.char : "", JSEvents.keyEvent + 120, 32);
  6247. HEAP32[(((JSEvents.keyEvent)+(152))>>2)]=e.charCode;
  6248. HEAP32[(((JSEvents.keyEvent)+(156))>>2)]=e.keyCode;
  6249. HEAP32[(((JSEvents.keyEvent)+(160))>>2)]=e.which;
  6250. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.keyEvent, userData);
  6251. if (shouldCancel) {
  6252. e.preventDefault();
  6253. }
  6254. };
  6255. var eventHandler = {
  6256. target: JSEvents.findEventTarget(target),
  6257. allowsDeferredCalls: JSEvents.isInternetExplorer() ? false : true, // MSIE doesn't allow fullscreen and pointerlock requests from key handlers, others do.
  6258. eventTypeString: eventTypeString,
  6259. callbackfunc: callbackfunc,
  6260. handlerFunc: handlerFunc,
  6261. useCapture: useCapture
  6262. };
  6263. JSEvents.registerOrRemoveHandler(eventHandler);
  6264. },getBoundingClientRectOrZeros:function (target) {
  6265. return target.getBoundingClientRect ? target.getBoundingClientRect() : { left: 0, top: 0 };
  6266. },fillMouseEventData:function (eventStruct, e, target) {
  6267. HEAPF64[((eventStruct)>>3)]=JSEvents.tick();
  6268. HEAP32[(((eventStruct)+(8))>>2)]=e.screenX;
  6269. HEAP32[(((eventStruct)+(12))>>2)]=e.screenY;
  6270. HEAP32[(((eventStruct)+(16))>>2)]=e.clientX;
  6271. HEAP32[(((eventStruct)+(20))>>2)]=e.clientY;
  6272. HEAP32[(((eventStruct)+(24))>>2)]=e.ctrlKey;
  6273. HEAP32[(((eventStruct)+(28))>>2)]=e.shiftKey;
  6274. HEAP32[(((eventStruct)+(32))>>2)]=e.altKey;
  6275. HEAP32[(((eventStruct)+(36))>>2)]=e.metaKey;
  6276. HEAP16[(((eventStruct)+(40))>>1)]=e.button;
  6277. HEAP16[(((eventStruct)+(42))>>1)]=e.buttons;
  6278. HEAP32[(((eventStruct)+(44))>>2)]=e["movementX"] || e["mozMovementX"] || e["webkitMovementX"] || (e.screenX-JSEvents.previousScreenX);
  6279. HEAP32[(((eventStruct)+(48))>>2)]=e["movementY"] || e["mozMovementY"] || e["webkitMovementY"] || (e.screenY-JSEvents.previousScreenY);
  6280. if (Module['canvas']) {
  6281. var rect = Module['canvas'].getBoundingClientRect();
  6282. HEAP32[(((eventStruct)+(60))>>2)]=e.clientX - rect.left;
  6283. HEAP32[(((eventStruct)+(64))>>2)]=e.clientY - rect.top;
  6284. } else { // Canvas is not initialized, return 0.
  6285. HEAP32[(((eventStruct)+(60))>>2)]=0;
  6286. HEAP32[(((eventStruct)+(64))>>2)]=0;
  6287. }
  6288. if (target) {
  6289. var rect = JSEvents.getBoundingClientRectOrZeros(target);
  6290. HEAP32[(((eventStruct)+(52))>>2)]=e.clientX - rect.left;
  6291. HEAP32[(((eventStruct)+(56))>>2)]=e.clientY - rect.top;
  6292. } else { // No specific target passed, return 0.
  6293. HEAP32[(((eventStruct)+(52))>>2)]=0;
  6294. HEAP32[(((eventStruct)+(56))>>2)]=0;
  6295. }
  6296. // wheel and mousewheel events contain wrong screenX/screenY on chrome/opera
  6297. // https://github.com/kripken/emscripten/pull/4997
  6298. // https://bugs.chromium.org/p/chromium/issues/detail?id=699956
  6299. if (e.type !== 'wheel' && e.type !== 'mousewheel') {
  6300. JSEvents.previousScreenX = e.screenX;
  6301. JSEvents.previousScreenY = e.screenY;
  6302. }
  6303. },registerMouseEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6304. if (!JSEvents.mouseEvent) {
  6305. JSEvents.mouseEvent = _malloc( 72 );
  6306. }
  6307. target = JSEvents.findEventTarget(target);
  6308. var handlerFunc = function(event) {
  6309. var e = event || window.event;
  6310. JSEvents.fillMouseEventData(JSEvents.mouseEvent, e, target);
  6311. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.mouseEvent, userData);
  6312. if (shouldCancel) {
  6313. e.preventDefault();
  6314. }
  6315. };
  6316. var eventHandler = {
  6317. target: target,
  6318. allowsDeferredCalls: eventTypeString != 'mousemove' && eventTypeString != 'mouseenter' && eventTypeString != 'mouseleave', // Mouse move events do not allow fullscreen/pointer lock requests to be handled in them!
  6319. eventTypeString: eventTypeString,
  6320. callbackfunc: callbackfunc,
  6321. handlerFunc: handlerFunc,
  6322. useCapture: useCapture
  6323. };
  6324. // In IE, mousedown events don't either allow deferred calls to be run!
  6325. if (JSEvents.isInternetExplorer() && eventTypeString == 'mousedown') eventHandler.allowsDeferredCalls = false;
  6326. JSEvents.registerOrRemoveHandler(eventHandler);
  6327. },registerWheelEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6328. if (!JSEvents.wheelEvent) {
  6329. JSEvents.wheelEvent = _malloc( 104 );
  6330. }
  6331. target = JSEvents.findEventTarget(target);
  6332. // The DOM Level 3 events spec event 'wheel'
  6333. var wheelHandlerFunc = function(event) {
  6334. var e = event || window.event;
  6335. JSEvents.fillMouseEventData(JSEvents.wheelEvent, e, target);
  6336. HEAPF64[(((JSEvents.wheelEvent)+(72))>>3)]=e["deltaX"];
  6337. HEAPF64[(((JSEvents.wheelEvent)+(80))>>3)]=e["deltaY"];
  6338. HEAPF64[(((JSEvents.wheelEvent)+(88))>>3)]=e["deltaZ"];
  6339. HEAP32[(((JSEvents.wheelEvent)+(96))>>2)]=e["deltaMode"];
  6340. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.wheelEvent, userData);
  6341. if (shouldCancel) {
  6342. e.preventDefault();
  6343. }
  6344. };
  6345. // The 'mousewheel' event as implemented in Safari 6.0.5
  6346. var mouseWheelHandlerFunc = function(event) {
  6347. var e = event || window.event;
  6348. JSEvents.fillMouseEventData(JSEvents.wheelEvent, e, target);
  6349. HEAPF64[(((JSEvents.wheelEvent)+(72))>>3)]=e["wheelDeltaX"] || 0;
  6350. HEAPF64[(((JSEvents.wheelEvent)+(80))>>3)]=-(e["wheelDeltaY"] ? e["wheelDeltaY"] : e["wheelDelta"]) /* 1. Invert to unify direction with the DOM Level 3 wheel event. 2. MSIE does not provide wheelDeltaY, so wheelDelta is used as a fallback. */;
  6351. HEAPF64[(((JSEvents.wheelEvent)+(88))>>3)]=0 /* Not available */;
  6352. HEAP32[(((JSEvents.wheelEvent)+(96))>>2)]=0 /* DOM_DELTA_PIXEL */;
  6353. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.wheelEvent, userData);
  6354. if (shouldCancel) {
  6355. e.preventDefault();
  6356. }
  6357. };
  6358. var eventHandler = {
  6359. target: target,
  6360. allowsDeferredCalls: true,
  6361. eventTypeString: eventTypeString,
  6362. callbackfunc: callbackfunc,
  6363. handlerFunc: (eventTypeString == 'wheel') ? wheelHandlerFunc : mouseWheelHandlerFunc,
  6364. useCapture: useCapture
  6365. };
  6366. JSEvents.registerOrRemoveHandler(eventHandler);
  6367. },pageScrollPos:function () {
  6368. if (window.pageXOffset > 0 || window.pageYOffset > 0) {
  6369. return [window.pageXOffset, window.pageYOffset];
  6370. }
  6371. if (typeof document.documentElement.scrollLeft !== 'undefined' || typeof document.documentElement.scrollTop !== 'undefined') {
  6372. return [document.documentElement.scrollLeft, document.documentElement.scrollTop];
  6373. }
  6374. return [document.body.scrollLeft|0, document.body.scrollTop|0];
  6375. },registerUiEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6376. if (!JSEvents.uiEvent) {
  6377. JSEvents.uiEvent = _malloc( 36 );
  6378. }
  6379. if (eventTypeString == "scroll" && !target) {
  6380. target = document; // By default read scroll events on document rather than window.
  6381. } else {
  6382. target = JSEvents.findEventTarget(target);
  6383. }
  6384. var handlerFunc = function(event) {
  6385. var e = event || window.event;
  6386. if (e.target != target) {
  6387. // Never take ui events such as scroll via a 'bubbled' route, but always from the direct element that
  6388. // was targeted. Otherwise e.g. if app logs a message in response to a page scroll, the Emscripten log
  6389. // message box could cause to scroll, generating a new (bubbled) scroll message, causing a new log print,
  6390. // causing a new scroll, etc..
  6391. return;
  6392. }
  6393. var scrollPos = JSEvents.pageScrollPos();
  6394. HEAP32[((JSEvents.uiEvent)>>2)]=e.detail;
  6395. HEAP32[(((JSEvents.uiEvent)+(4))>>2)]=document.body.clientWidth;
  6396. HEAP32[(((JSEvents.uiEvent)+(8))>>2)]=document.body.clientHeight;
  6397. HEAP32[(((JSEvents.uiEvent)+(12))>>2)]=window.innerWidth;
  6398. HEAP32[(((JSEvents.uiEvent)+(16))>>2)]=window.innerHeight;
  6399. HEAP32[(((JSEvents.uiEvent)+(20))>>2)]=window.outerWidth;
  6400. HEAP32[(((JSEvents.uiEvent)+(24))>>2)]=window.outerHeight;
  6401. HEAP32[(((JSEvents.uiEvent)+(28))>>2)]=scrollPos[0];
  6402. HEAP32[(((JSEvents.uiEvent)+(32))>>2)]=scrollPos[1];
  6403. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.uiEvent, userData);
  6404. if (shouldCancel) {
  6405. e.preventDefault();
  6406. }
  6407. };
  6408. var eventHandler = {
  6409. target: target,
  6410. allowsDeferredCalls: false, // Neither scroll or resize events allow running requests inside them.
  6411. eventTypeString: eventTypeString,
  6412. callbackfunc: callbackfunc,
  6413. handlerFunc: handlerFunc,
  6414. useCapture: useCapture
  6415. };
  6416. JSEvents.registerOrRemoveHandler(eventHandler);
  6417. },getNodeNameForTarget:function (target) {
  6418. if (!target) return '';
  6419. if (target == window) return '#window';
  6420. if (target == window.screen) return '#screen';
  6421. return (target && target.nodeName) ? target.nodeName : '';
  6422. },registerFocusEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6423. if (!JSEvents.focusEvent) {
  6424. JSEvents.focusEvent = _malloc( 256 );
  6425. }
  6426. var handlerFunc = function(event) {
  6427. var e = event || window.event;
  6428. var nodeName = JSEvents.getNodeNameForTarget(e.target);
  6429. var id = e.target.id ? e.target.id : '';
  6430. stringToUTF8(nodeName, JSEvents.focusEvent + 0, 128);
  6431. stringToUTF8(id, JSEvents.focusEvent + 128, 128);
  6432. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.focusEvent, userData);
  6433. if (shouldCancel) {
  6434. e.preventDefault();
  6435. }
  6436. };
  6437. var eventHandler = {
  6438. target: JSEvents.findEventTarget(target),
  6439. allowsDeferredCalls: false,
  6440. eventTypeString: eventTypeString,
  6441. callbackfunc: callbackfunc,
  6442. handlerFunc: handlerFunc,
  6443. useCapture: useCapture
  6444. };
  6445. JSEvents.registerOrRemoveHandler(eventHandler);
  6446. },tick:function () {
  6447. if (window['performance'] && window['performance']['now']) return window['performance']['now']();
  6448. else return Date.now();
  6449. },registerDeviceOrientationEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6450. if (!JSEvents.deviceOrientationEvent) {
  6451. JSEvents.deviceOrientationEvent = _malloc( 40 );
  6452. }
  6453. var handlerFunc = function(event) {
  6454. var e = event || window.event;
  6455. HEAPF64[((JSEvents.deviceOrientationEvent)>>3)]=JSEvents.tick();
  6456. HEAPF64[(((JSEvents.deviceOrientationEvent)+(8))>>3)]=e.alpha;
  6457. HEAPF64[(((JSEvents.deviceOrientationEvent)+(16))>>3)]=e.beta;
  6458. HEAPF64[(((JSEvents.deviceOrientationEvent)+(24))>>3)]=e.gamma;
  6459. HEAP32[(((JSEvents.deviceOrientationEvent)+(32))>>2)]=e.absolute;
  6460. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.deviceOrientationEvent, userData);
  6461. if (shouldCancel) {
  6462. e.preventDefault();
  6463. }
  6464. };
  6465. var eventHandler = {
  6466. target: JSEvents.findEventTarget(target),
  6467. allowsDeferredCalls: false,
  6468. eventTypeString: eventTypeString,
  6469. callbackfunc: callbackfunc,
  6470. handlerFunc: handlerFunc,
  6471. useCapture: useCapture
  6472. };
  6473. JSEvents.registerOrRemoveHandler(eventHandler);
  6474. },registerDeviceMotionEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6475. if (!JSEvents.deviceMotionEvent) {
  6476. JSEvents.deviceMotionEvent = _malloc( 80 );
  6477. }
  6478. var handlerFunc = function(event) {
  6479. var e = event || window.event;
  6480. HEAPF64[((JSEvents.deviceOrientationEvent)>>3)]=JSEvents.tick();
  6481. HEAPF64[(((JSEvents.deviceMotionEvent)+(8))>>3)]=e.acceleration.x;
  6482. HEAPF64[(((JSEvents.deviceMotionEvent)+(16))>>3)]=e.acceleration.y;
  6483. HEAPF64[(((JSEvents.deviceMotionEvent)+(24))>>3)]=e.acceleration.z;
  6484. HEAPF64[(((JSEvents.deviceMotionEvent)+(32))>>3)]=e.accelerationIncludingGravity.x;
  6485. HEAPF64[(((JSEvents.deviceMotionEvent)+(40))>>3)]=e.accelerationIncludingGravity.y;
  6486. HEAPF64[(((JSEvents.deviceMotionEvent)+(48))>>3)]=e.accelerationIncludingGravity.z;
  6487. HEAPF64[(((JSEvents.deviceMotionEvent)+(56))>>3)]=e.rotationRate.alpha;
  6488. HEAPF64[(((JSEvents.deviceMotionEvent)+(64))>>3)]=e.rotationRate.beta;
  6489. HEAPF64[(((JSEvents.deviceMotionEvent)+(72))>>3)]=e.rotationRate.gamma;
  6490. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.deviceMotionEvent, userData);
  6491. if (shouldCancel) {
  6492. e.preventDefault();
  6493. }
  6494. };
  6495. var eventHandler = {
  6496. target: JSEvents.findEventTarget(target),
  6497. allowsDeferredCalls: false,
  6498. eventTypeString: eventTypeString,
  6499. callbackfunc: callbackfunc,
  6500. handlerFunc: handlerFunc,
  6501. useCapture: useCapture
  6502. };
  6503. JSEvents.registerOrRemoveHandler(eventHandler);
  6504. },screenOrientation:function () {
  6505. if (!window.screen) return undefined;
  6506. return window.screen.orientation || window.screen.mozOrientation || window.screen.webkitOrientation || window.screen.msOrientation;
  6507. },fillOrientationChangeEventData:function (eventStruct, e) {
  6508. var orientations = ["portrait-primary", "portrait-secondary", "landscape-primary", "landscape-secondary"];
  6509. var orientations2 = ["portrait", "portrait", "landscape", "landscape"];
  6510. var orientationString = JSEvents.screenOrientation();
  6511. var orientation = orientations.indexOf(orientationString);
  6512. if (orientation == -1) {
  6513. orientation = orientations2.indexOf(orientationString);
  6514. }
  6515. HEAP32[((eventStruct)>>2)]=1 << orientation;
  6516. HEAP32[(((eventStruct)+(4))>>2)]=window.orientation;
  6517. },registerOrientationChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6518. if (!JSEvents.orientationChangeEvent) {
  6519. JSEvents.orientationChangeEvent = _malloc( 8 );
  6520. }
  6521. if (!target) {
  6522. target = window.screen; // Orientation events need to be captured from 'window.screen' instead of 'window'
  6523. } else {
  6524. target = JSEvents.findEventTarget(target);
  6525. }
  6526. var handlerFunc = function(event) {
  6527. var e = event || window.event;
  6528. JSEvents.fillOrientationChangeEventData(JSEvents.orientationChangeEvent, e);
  6529. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.orientationChangeEvent, userData);
  6530. if (shouldCancel) {
  6531. e.preventDefault();
  6532. }
  6533. };
  6534. if (eventTypeString == "orientationchange" && window.screen.mozOrientation !== undefined) {
  6535. eventTypeString = "mozorientationchange";
  6536. }
  6537. var eventHandler = {
  6538. target: target,
  6539. allowsDeferredCalls: false,
  6540. eventTypeString: eventTypeString,
  6541. callbackfunc: callbackfunc,
  6542. handlerFunc: handlerFunc,
  6543. useCapture: useCapture
  6544. };
  6545. JSEvents.registerOrRemoveHandler(eventHandler);
  6546. },fullscreenEnabled:function () {
  6547. return document.fullscreenEnabled || document.mozFullScreenEnabled || document.webkitFullscreenEnabled || document.msFullscreenEnabled;
  6548. },fillFullscreenChangeEventData:function (eventStruct, e) {
  6549. var fullscreenElement = document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement;
  6550. var isFullscreen = !!fullscreenElement;
  6551. HEAP32[((eventStruct)>>2)]=isFullscreen;
  6552. HEAP32[(((eventStruct)+(4))>>2)]=JSEvents.fullscreenEnabled();
  6553. // If transitioning to fullscreen, report info about the element that is now fullscreen.
  6554. // If transitioning to windowed mode, report info about the element that just was fullscreen.
  6555. var reportedElement = isFullscreen ? fullscreenElement : JSEvents.previousFullscreenElement;
  6556. var nodeName = JSEvents.getNodeNameForTarget(reportedElement);
  6557. var id = (reportedElement && reportedElement.id) ? reportedElement.id : '';
  6558. stringToUTF8(nodeName, eventStruct + 8, 128);
  6559. stringToUTF8(id, eventStruct + 136, 128);
  6560. HEAP32[(((eventStruct)+(264))>>2)]=reportedElement ? reportedElement.clientWidth : 0;
  6561. HEAP32[(((eventStruct)+(268))>>2)]=reportedElement ? reportedElement.clientHeight : 0;
  6562. HEAP32[(((eventStruct)+(272))>>2)]=screen.width;
  6563. HEAP32[(((eventStruct)+(276))>>2)]=screen.height;
  6564. if (isFullscreen) {
  6565. JSEvents.previousFullscreenElement = fullscreenElement;
  6566. }
  6567. },registerFullscreenChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6568. if (!JSEvents.fullscreenChangeEvent) {
  6569. JSEvents.fullscreenChangeEvent = _malloc( 280 );
  6570. }
  6571. if (!target) {
  6572. target = document; // Fullscreen change events need to be captured from 'document' by default instead of 'window'
  6573. } else {
  6574. target = JSEvents.findEventTarget(target);
  6575. }
  6576. var handlerFunc = function(event) {
  6577. var e = event || window.event;
  6578. JSEvents.fillFullscreenChangeEventData(JSEvents.fullscreenChangeEvent, e);
  6579. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.fullscreenChangeEvent, userData);
  6580. if (shouldCancel) {
  6581. e.preventDefault();
  6582. }
  6583. };
  6584. var eventHandler = {
  6585. target: target,
  6586. allowsDeferredCalls: false,
  6587. eventTypeString: eventTypeString,
  6588. callbackfunc: callbackfunc,
  6589. handlerFunc: handlerFunc,
  6590. useCapture: useCapture
  6591. };
  6592. JSEvents.registerOrRemoveHandler(eventHandler);
  6593. },resizeCanvasForFullscreen:function (target, strategy) {
  6594. var restoreOldStyle = __registerRestoreOldStyle(target);
  6595. var cssWidth = strategy.softFullscreen ? window.innerWidth : screen.width;
  6596. var cssHeight = strategy.softFullscreen ? window.innerHeight : screen.height;
  6597. var rect = target.getBoundingClientRect();
  6598. var windowedCssWidth = rect.right - rect.left;
  6599. var windowedCssHeight = rect.bottom - rect.top;
  6600. var windowedRttWidth = target.width;
  6601. var windowedRttHeight = target.height;
  6602. if (strategy.scaleMode == 3) {
  6603. __setLetterbox(target, (cssHeight - windowedCssHeight) / 2, (cssWidth - windowedCssWidth) / 2);
  6604. cssWidth = windowedCssWidth;
  6605. cssHeight = windowedCssHeight;
  6606. } else if (strategy.scaleMode == 2) {
  6607. if (cssWidth*windowedRttHeight < windowedRttWidth*cssHeight) {
  6608. var desiredCssHeight = windowedRttHeight * cssWidth / windowedRttWidth;
  6609. __setLetterbox(target, (cssHeight - desiredCssHeight) / 2, 0);
  6610. cssHeight = desiredCssHeight;
  6611. } else {
  6612. var desiredCssWidth = windowedRttWidth * cssHeight / windowedRttHeight;
  6613. __setLetterbox(target, 0, (cssWidth - desiredCssWidth) / 2);
  6614. cssWidth = desiredCssWidth;
  6615. }
  6616. }
  6617. // If we are adding padding, must choose a background color or otherwise Chrome will give the
  6618. // padding a default white color. Do it only if user has not customized their own background color.
  6619. if (!target.style.backgroundColor) target.style.backgroundColor = 'black';
  6620. // IE11 does the same, but requires the color to be set in the document body.
  6621. if (!document.body.style.backgroundColor) document.body.style.backgroundColor = 'black'; // IE11
  6622. // Firefox always shows black letterboxes independent of style color.
  6623. target.style.width = cssWidth + 'px';
  6624. target.style.height = cssHeight + 'px';
  6625. if (strategy.filteringMode == 1) {
  6626. target.style.imageRendering = 'optimizeSpeed';
  6627. target.style.imageRendering = '-moz-crisp-edges';
  6628. target.style.imageRendering = '-o-crisp-edges';
  6629. target.style.imageRendering = '-webkit-optimize-contrast';
  6630. target.style.imageRendering = 'optimize-contrast';
  6631. target.style.imageRendering = 'crisp-edges';
  6632. target.style.imageRendering = 'pixelated';
  6633. }
  6634. var dpiScale = (strategy.canvasResolutionScaleMode == 2) ? window.devicePixelRatio : 1;
  6635. if (strategy.canvasResolutionScaleMode != 0) {
  6636. target.width = cssWidth * dpiScale;
  6637. target.height = cssHeight * dpiScale;
  6638. if (target.GLctxObject) target.GLctxObject.GLctx.viewport(0, 0, target.width, target.height);
  6639. }
  6640. return restoreOldStyle;
  6641. },requestFullscreen:function (target, strategy) {
  6642. // EMSCRIPTEN_FULLSCREEN_SCALE_DEFAULT + EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_NONE is a mode where no extra logic is performed to the DOM elements.
  6643. if (strategy.scaleMode != 0 || strategy.canvasResolutionScaleMode != 0) {
  6644. JSEvents.resizeCanvasForFullscreen(target, strategy);
  6645. }
  6646. if (target.requestFullscreen) {
  6647. target.requestFullscreen();
  6648. } else if (target.msRequestFullscreen) {
  6649. target.msRequestFullscreen();
  6650. } else if (target.mozRequestFullScreen) {
  6651. target.mozRequestFullScreen();
  6652. } else if (target.mozRequestFullscreen) {
  6653. target.mozRequestFullscreen();
  6654. } else if (target.webkitRequestFullscreen) {
  6655. target.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
  6656. } else {
  6657. if (typeof JSEvents.fullscreenEnabled() === 'undefined') {
  6658. return -1;
  6659. } else {
  6660. return -3;
  6661. }
  6662. }
  6663. if (strategy.canvasResizedCallback) {
  6664. Module['dynCall_iiii'](strategy.canvasResizedCallback, 37, 0, strategy.canvasResizedCallbackUserData);
  6665. }
  6666. return 0;
  6667. },fillPointerlockChangeEventData:function (eventStruct, e) {
  6668. var pointerLockElement = document.pointerLockElement || document.mozPointerLockElement || document.webkitPointerLockElement || document.msPointerLockElement;
  6669. var isPointerlocked = !!pointerLockElement;
  6670. HEAP32[((eventStruct)>>2)]=isPointerlocked;
  6671. var nodeName = JSEvents.getNodeNameForTarget(pointerLockElement);
  6672. var id = (pointerLockElement && pointerLockElement.id) ? pointerLockElement.id : '';
  6673. stringToUTF8(nodeName, eventStruct + 4, 128);
  6674. stringToUTF8(id, eventStruct + 132, 128);
  6675. },registerPointerlockChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6676. if (!JSEvents.pointerlockChangeEvent) {
  6677. JSEvents.pointerlockChangeEvent = _malloc( 260 );
  6678. }
  6679. if (!target) {
  6680. target = document; // Pointer lock change events need to be captured from 'document' by default instead of 'window'
  6681. } else {
  6682. target = JSEvents.findEventTarget(target);
  6683. }
  6684. var handlerFunc = function(event) {
  6685. var e = event || window.event;
  6686. JSEvents.fillPointerlockChangeEventData(JSEvents.pointerlockChangeEvent, e);
  6687. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.pointerlockChangeEvent, userData);
  6688. if (shouldCancel) {
  6689. e.preventDefault();
  6690. }
  6691. };
  6692. var eventHandler = {
  6693. target: target,
  6694. allowsDeferredCalls: false,
  6695. eventTypeString: eventTypeString,
  6696. callbackfunc: callbackfunc,
  6697. handlerFunc: handlerFunc,
  6698. useCapture: useCapture
  6699. };
  6700. JSEvents.registerOrRemoveHandler(eventHandler);
  6701. },registerPointerlockErrorEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6702. if (!target) {
  6703. target = document; // Pointer lock events need to be captured from 'document' by default instead of 'window'
  6704. } else {
  6705. target = JSEvents.findEventTarget(target);
  6706. }
  6707. var handlerFunc = function(event) {
  6708. var e = event || window.event;
  6709. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  6710. if (shouldCancel) {
  6711. e.preventDefault();
  6712. }
  6713. };
  6714. var eventHandler = {
  6715. target: target,
  6716. allowsDeferredCalls: false,
  6717. eventTypeString: eventTypeString,
  6718. callbackfunc: callbackfunc,
  6719. handlerFunc: handlerFunc,
  6720. useCapture: useCapture
  6721. };
  6722. JSEvents.registerOrRemoveHandler(eventHandler);
  6723. },requestPointerLock:function (target) {
  6724. if (target.requestPointerLock) {
  6725. target.requestPointerLock();
  6726. } else if (target.mozRequestPointerLock) {
  6727. target.mozRequestPointerLock();
  6728. } else if (target.webkitRequestPointerLock) {
  6729. target.webkitRequestPointerLock();
  6730. } else if (target.msRequestPointerLock) {
  6731. target.msRequestPointerLock();
  6732. } else {
  6733. // document.body is known to accept pointer lock, so use that to differentiate if the user passed a bad element,
  6734. // or if the whole browser just doesn't support the feature.
  6735. if (document.body.requestPointerLock || document.body.mozRequestPointerLock || document.body.webkitRequestPointerLock || document.body.msRequestPointerLock) {
  6736. return -3;
  6737. } else {
  6738. return -1;
  6739. }
  6740. }
  6741. return 0;
  6742. },fillVisibilityChangeEventData:function (eventStruct, e) {
  6743. var visibilityStates = [ "hidden", "visible", "prerender", "unloaded" ];
  6744. var visibilityState = visibilityStates.indexOf(document.visibilityState);
  6745. HEAP32[((eventStruct)>>2)]=document.hidden;
  6746. HEAP32[(((eventStruct)+(4))>>2)]=visibilityState;
  6747. },registerVisibilityChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6748. if (!JSEvents.visibilityChangeEvent) {
  6749. JSEvents.visibilityChangeEvent = _malloc( 8 );
  6750. }
  6751. if (!target) {
  6752. target = document; // Visibility change events need to be captured from 'document' by default instead of 'window'
  6753. } else {
  6754. target = JSEvents.findEventTarget(target);
  6755. }
  6756. var handlerFunc = function(event) {
  6757. var e = event || window.event;
  6758. JSEvents.fillVisibilityChangeEventData(JSEvents.visibilityChangeEvent, e);
  6759. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.visibilityChangeEvent, userData);
  6760. if (shouldCancel) {
  6761. e.preventDefault();
  6762. }
  6763. };
  6764. var eventHandler = {
  6765. target: target,
  6766. allowsDeferredCalls: false,
  6767. eventTypeString: eventTypeString,
  6768. callbackfunc: callbackfunc,
  6769. handlerFunc: handlerFunc,
  6770. useCapture: useCapture
  6771. };
  6772. JSEvents.registerOrRemoveHandler(eventHandler);
  6773. },registerTouchEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6774. if (!JSEvents.touchEvent) {
  6775. JSEvents.touchEvent = _malloc( 1684 );
  6776. }
  6777. target = JSEvents.findEventTarget(target);
  6778. var handlerFunc = function(event) {
  6779. var e = event || window.event;
  6780. var touches = {};
  6781. for(var i = 0; i < e.touches.length; ++i) {
  6782. var touch = e.touches[i];
  6783. touches[touch.identifier] = touch;
  6784. }
  6785. for(var i = 0; i < e.changedTouches.length; ++i) {
  6786. var touch = e.changedTouches[i];
  6787. touches[touch.identifier] = touch;
  6788. touch.changed = true;
  6789. }
  6790. for(var i = 0; i < e.targetTouches.length; ++i) {
  6791. var touch = e.targetTouches[i];
  6792. touches[touch.identifier].onTarget = true;
  6793. }
  6794. var ptr = JSEvents.touchEvent;
  6795. HEAP32[(((ptr)+(4))>>2)]=e.ctrlKey;
  6796. HEAP32[(((ptr)+(8))>>2)]=e.shiftKey;
  6797. HEAP32[(((ptr)+(12))>>2)]=e.altKey;
  6798. HEAP32[(((ptr)+(16))>>2)]=e.metaKey;
  6799. ptr += 20; // Advance to the start of the touch array.
  6800. var canvasRect = Module['canvas'] ? Module['canvas'].getBoundingClientRect() : undefined;
  6801. var targetRect = JSEvents.getBoundingClientRectOrZeros(target);
  6802. var numTouches = 0;
  6803. for(var i in touches) {
  6804. var t = touches[i];
  6805. HEAP32[((ptr)>>2)]=t.identifier;
  6806. HEAP32[(((ptr)+(4))>>2)]=t.screenX;
  6807. HEAP32[(((ptr)+(8))>>2)]=t.screenY;
  6808. HEAP32[(((ptr)+(12))>>2)]=t.clientX;
  6809. HEAP32[(((ptr)+(16))>>2)]=t.clientY;
  6810. HEAP32[(((ptr)+(20))>>2)]=t.pageX;
  6811. HEAP32[(((ptr)+(24))>>2)]=t.pageY;
  6812. HEAP32[(((ptr)+(28))>>2)]=t.changed;
  6813. HEAP32[(((ptr)+(32))>>2)]=t.onTarget;
  6814. if (canvasRect) {
  6815. HEAP32[(((ptr)+(44))>>2)]=t.clientX - canvasRect.left;
  6816. HEAP32[(((ptr)+(48))>>2)]=t.clientY - canvasRect.top;
  6817. } else {
  6818. HEAP32[(((ptr)+(44))>>2)]=0;
  6819. HEAP32[(((ptr)+(48))>>2)]=0;
  6820. }
  6821. HEAP32[(((ptr)+(36))>>2)]=t.clientX - targetRect.left;
  6822. HEAP32[(((ptr)+(40))>>2)]=t.clientY - targetRect.top;
  6823. ptr += 52;
  6824. if (++numTouches >= 32) {
  6825. break;
  6826. }
  6827. }
  6828. HEAP32[((JSEvents.touchEvent)>>2)]=numTouches;
  6829. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.touchEvent, userData);
  6830. if (shouldCancel) {
  6831. e.preventDefault();
  6832. }
  6833. };
  6834. var eventHandler = {
  6835. target: target,
  6836. allowsDeferredCalls: false, // XXX Currently disabled, see bug https://bugzilla.mozilla.org/show_bug.cgi?id=966493
  6837. // Once the above bug is resolved, enable the following condition if possible:
  6838. // allowsDeferredCalls: eventTypeString == 'touchstart',
  6839. eventTypeString: eventTypeString,
  6840. callbackfunc: callbackfunc,
  6841. handlerFunc: handlerFunc,
  6842. useCapture: useCapture
  6843. };
  6844. JSEvents.registerOrRemoveHandler(eventHandler);
  6845. },fillGamepadEventData:function (eventStruct, e) {
  6846. HEAPF64[((eventStruct)>>3)]=e.timestamp;
  6847. for(var i = 0; i < e.axes.length; ++i) {
  6848. HEAPF64[(((eventStruct+i*8)+(16))>>3)]=e.axes[i];
  6849. }
  6850. for(var i = 0; i < e.buttons.length; ++i) {
  6851. if (typeof(e.buttons[i]) === 'object') {
  6852. HEAPF64[(((eventStruct+i*8)+(528))>>3)]=e.buttons[i].value;
  6853. } else {
  6854. HEAPF64[(((eventStruct+i*8)+(528))>>3)]=e.buttons[i];
  6855. }
  6856. }
  6857. for(var i = 0; i < e.buttons.length; ++i) {
  6858. if (typeof(e.buttons[i]) === 'object') {
  6859. HEAP32[(((eventStruct+i*4)+(1040))>>2)]=e.buttons[i].pressed;
  6860. } else {
  6861. HEAP32[(((eventStruct+i*4)+(1040))>>2)]=e.buttons[i] == 1.0;
  6862. }
  6863. }
  6864. HEAP32[(((eventStruct)+(1296))>>2)]=e.connected;
  6865. HEAP32[(((eventStruct)+(1300))>>2)]=e.index;
  6866. HEAP32[(((eventStruct)+(8))>>2)]=e.axes.length;
  6867. HEAP32[(((eventStruct)+(12))>>2)]=e.buttons.length;
  6868. stringToUTF8(e.id, eventStruct + 1304, 64);
  6869. stringToUTF8(e.mapping, eventStruct + 1368, 64);
  6870. },registerGamepadEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6871. if (!JSEvents.gamepadEvent) {
  6872. JSEvents.gamepadEvent = _malloc( 1432 );
  6873. }
  6874. var handlerFunc = function(event) {
  6875. var e = event || window.event;
  6876. JSEvents.fillGamepadEventData(JSEvents.gamepadEvent, e.gamepad);
  6877. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.gamepadEvent, userData);
  6878. if (shouldCancel) {
  6879. e.preventDefault();
  6880. }
  6881. };
  6882. var eventHandler = {
  6883. target: JSEvents.findEventTarget(target),
  6884. allowsDeferredCalls: true,
  6885. eventTypeString: eventTypeString,
  6886. callbackfunc: callbackfunc,
  6887. handlerFunc: handlerFunc,
  6888. useCapture: useCapture
  6889. };
  6890. JSEvents.registerOrRemoveHandler(eventHandler);
  6891. },registerBeforeUnloadEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6892. var handlerFunc = function(event) {
  6893. var e = event || window.event;
  6894. var confirmationMessage = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  6895. if (confirmationMessage) {
  6896. confirmationMessage = Pointer_stringify(confirmationMessage);
  6897. }
  6898. if (confirmationMessage) {
  6899. e.preventDefault();
  6900. e.returnValue = confirmationMessage;
  6901. return confirmationMessage;
  6902. }
  6903. };
  6904. var eventHandler = {
  6905. target: JSEvents.findEventTarget(target),
  6906. allowsDeferredCalls: false,
  6907. eventTypeString: eventTypeString,
  6908. callbackfunc: callbackfunc,
  6909. handlerFunc: handlerFunc,
  6910. useCapture: useCapture
  6911. };
  6912. JSEvents.registerOrRemoveHandler(eventHandler);
  6913. },battery:function () { return navigator.battery || navigator.mozBattery || navigator.webkitBattery; },fillBatteryEventData:function (eventStruct, e) {
  6914. HEAPF64[((eventStruct)>>3)]=e.chargingTime;
  6915. HEAPF64[(((eventStruct)+(8))>>3)]=e.dischargingTime;
  6916. HEAPF64[(((eventStruct)+(16))>>3)]=e.level;
  6917. HEAP32[(((eventStruct)+(24))>>2)]=e.charging;
  6918. },registerBatteryEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6919. if (!JSEvents.batteryEvent) {
  6920. JSEvents.batteryEvent = _malloc( 32 );
  6921. }
  6922. var handlerFunc = function(event) {
  6923. var e = event || window.event;
  6924. JSEvents.fillBatteryEventData(JSEvents.batteryEvent, JSEvents.battery());
  6925. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.batteryEvent, userData);
  6926. if (shouldCancel) {
  6927. e.preventDefault();
  6928. }
  6929. };
  6930. var eventHandler = {
  6931. target: JSEvents.findEventTarget(target),
  6932. allowsDeferredCalls: false,
  6933. eventTypeString: eventTypeString,
  6934. callbackfunc: callbackfunc,
  6935. handlerFunc: handlerFunc,
  6936. useCapture: useCapture
  6937. };
  6938. JSEvents.registerOrRemoveHandler(eventHandler);
  6939. },registerWebGlEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6940. if (!target) {
  6941. target = Module['canvas'];
  6942. }
  6943. var handlerFunc = function(event) {
  6944. var e = event || window.event;
  6945. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  6946. if (shouldCancel) {
  6947. e.preventDefault();
  6948. }
  6949. };
  6950. var eventHandler = {
  6951. target: JSEvents.findEventTarget(target),
  6952. allowsDeferredCalls: false,
  6953. eventTypeString: eventTypeString,
  6954. callbackfunc: callbackfunc,
  6955. handlerFunc: handlerFunc,
  6956. useCapture: useCapture
  6957. };
  6958. JSEvents.registerOrRemoveHandler(eventHandler);
  6959. }};function __emscripten_sample_gamepad_data() {
  6960. // Polling gamepads generates garbage, so don't do it when we know there are no gamepads connected.
  6961. if (!JSEvents.numGamepadsConnected) return;
  6962. // Produce a new Gamepad API sample if we are ticking a new game frame, or if not using emscripten_set_main_loop() at all to drive animation.
  6963. if (Browser.mainLoop.currentFrameNumber !== JSEvents.lastGamepadStateFrame || !Browser.mainLoop.currentFrameNumber) {
  6964. JSEvents.lastGamepadState = navigator.getGamepads ? navigator.getGamepads() : (navigator.webkitGetGamepads ? navigator.webkitGetGamepads : null);
  6965. JSEvents.lastGamepadStateFrame = Browser.mainLoop.currentFrameNumber;
  6966. }
  6967. }function _emscripten_get_gamepad_status(index, gamepadState) {
  6968. __emscripten_sample_gamepad_data();
  6969. if (!JSEvents.lastGamepadState) return -1;
  6970. // INVALID_PARAM is returned on a Gamepad index that never was there.
  6971. if (index < 0 || index >= JSEvents.lastGamepadState.length) return -5;
  6972. // NO_DATA is returned on a Gamepad index that was removed.
  6973. // For previously disconnected gamepads there should be an empty slot (null/undefined/false) at the index.
  6974. // This is because gamepads must keep their original position in the array.
  6975. // For example, removing the first of two gamepads produces [null/undefined/false, gamepad].
  6976. if (!JSEvents.lastGamepadState[index]) return -7;
  6977. JSEvents.fillGamepadEventData(gamepadState, JSEvents.lastGamepadState[index]);
  6978. return 0;
  6979. }
  6980. function _emscripten_glCopyTexImage2D(x0, x1, x2, x3, x4, x5, x6, x7) { GLctx['copyTexImage2D'](x0, x1, x2, x3, x4, x5, x6, x7) }
  6981. function _emscripten_glTexParameterfv(target, pname, params) {
  6982. var param = HEAPF32[((params)>>2)];
  6983. GLctx.texParameterf(target, pname, param);
  6984. }
  6985. function _emscripten_glLinkProgram(program) {
  6986. GLctx.linkProgram(GL.programs[program]);
  6987. GL.programInfos[program] = null; // uniforms no longer keep the same names after linking
  6988. GL.populateUniformTable(program);
  6989. }
  6990. function _glUniform1f(location, v0) {
  6991. GLctx.uniform1f(GL.uniforms[location], v0);
  6992. }
  6993. function _emscripten_glUniform3f(location, v0, v1, v2) {
  6994. GLctx.uniform3f(GL.uniforms[location], v0, v1, v2);
  6995. }
  6996. function _emscripten_glGetObjectParameterivARB() {
  6997. Module['printErr']('missing function: emscripten_glGetObjectParameterivARB'); abort(-1);
  6998. }
  6999. function _emscripten_glBlendFunc(x0, x1) { GLctx['blendFunc'](x0, x1) }
  7000. function _emscripten_glUniform3i(location, v0, v1, v2) {
  7001. GLctx.uniform3i(GL.uniforms[location], v0, v1, v2);
  7002. }
  7003. function _emscripten_glStencilOp(x0, x1, x2) { GLctx['stencilOp'](x0, x1, x2) }
  7004. function _glCreateShader(shaderType) {
  7005. var id = GL.getNewId(GL.shaders);
  7006. GL.shaders[id] = GLctx.createShader(shaderType);
  7007. return id;
  7008. }
  7009. function _glUniform1i(location, v0) {
  7010. GLctx.uniform1i(GL.uniforms[location], v0);
  7011. }
  7012. function _emscripten_glBindAttribLocation(program, index, name) {
  7013. name = Pointer_stringify(name);
  7014. GLctx.bindAttribLocation(GL.programs[program], index, name);
  7015. }
  7016. function _glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data) {
  7017. GLctx['compressedTexImage2D'](target, level, internalFormat, width, height, border, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  7018. }
  7019. function _glDisable(x0) { GLctx['disable'](x0) }
  7020. function _glfwGetMouseButton(winid, button) {
  7021. return GLFW.getMouseButton(winid, button);
  7022. }
  7023. function _emscripten_glEnableVertexAttribArray(index) {
  7024. GLctx.enableVertexAttribArray(index);
  7025. }
  7026. Module["_memset"] = _memset;
  7027. function _glfwMakeContextCurrent(winid) {}
  7028. function _emscripten_set_touchcancel_callback(target, userData, useCapture, callbackfunc) {
  7029. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 25, "touchcancel");
  7030. return 0;
  7031. }
  7032. function ___lock() {}
  7033. function _emscripten_glBlendFuncSeparate(x0, x1, x2, x3) { GLctx['blendFuncSeparate'](x0, x1, x2, x3) }
  7034. function _glCullFace(x0) { GLctx['cullFace'](x0) }
  7035. function _emscripten_glGetVertexAttribPointerv(index, pname, pointer) {
  7036. if (!pointer) {
  7037. // GLES2 specification does not specify how to behave if pointer is a null pointer. Since calling this function does not make sense
  7038. // if pointer == null, issue a GL error to notify user about it.
  7039. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7040. return;
  7041. }
  7042. HEAP32[((pointer)>>2)]=GLctx.getVertexAttribOffset(index, pname);
  7043. }
  7044. function _emscripten_glVertexAttrib3f(x0, x1, x2, x3) { GLctx['vertexAttrib3f'](x0, x1, x2, x3) }
  7045. function _emscripten_glEnable(x0) { GLctx['enable'](x0) }
  7046. function _emscripten_glNormalPointer() {
  7047. Module['printErr']('missing function: emscripten_glNormalPointer'); abort(-1);
  7048. }
  7049. var _emscripten_GetProcAddress=undefined;
  7050. Module["_emscripten_GetProcAddress"] = _emscripten_GetProcAddress;
  7051. var EGL={errorCode:12288,defaultDisplayInitialized:false,currentContext:0,currentReadSurface:0,currentDrawSurface:0,stringCache:{},setErrorCode:function (code) {
  7052. EGL.errorCode = code;
  7053. },chooseConfig:function (display, attribList, config, config_size, numConfigs) {
  7054. if (display != 62000 /* Magic ID for Emscripten 'default display' */) {
  7055. EGL.setErrorCode(0x3008 /* EGL_BAD_DISPLAY */);
  7056. return 0;
  7057. }
  7058. // TODO: read attribList.
  7059. if ((!config || !config_size) && !numConfigs) {
  7060. EGL.setErrorCode(0x300C /* EGL_BAD_PARAMETER */);
  7061. return 0;
  7062. }
  7063. if (numConfigs) {
  7064. HEAP32[((numConfigs)>>2)]=1; // Total number of supported configs: 1.
  7065. }
  7066. if (config && config_size > 0) {
  7067. HEAP32[((config)>>2)]=62002;
  7068. }
  7069. EGL.setErrorCode(0x3000 /* EGL_SUCCESS */);
  7070. return 1;
  7071. }};function _eglGetProcAddress(name_) {
  7072. return _emscripten_GetProcAddress(name_);
  7073. }
  7074. function _glDeleteProgram(id) {
  7075. if (!id) return;
  7076. var program = GL.programs[id];
  7077. if (!program) { // glDeleteProgram actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7078. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7079. return;
  7080. }
  7081. GLctx.deleteProgram(program);
  7082. program.name = 0;
  7083. GL.programs[id] = null;
  7084. GL.programInfos[id] = null;
  7085. }
  7086. function _emscripten_get_pointerlock_status(pointerlockStatus) {
  7087. if (pointerlockStatus) JSEvents.fillPointerlockChangeEventData(pointerlockStatus);
  7088. if (!document.body || (!document.body.requestPointerLock && !document.body.mozRequestPointerLock && !document.body.webkitRequestPointerLock && !document.body.msRequestPointerLock)) {
  7089. return -1;
  7090. }
  7091. return 0;
  7092. }
  7093. function _glAttachShader(program, shader) {
  7094. GLctx.attachShader(GL.programs[program],
  7095. GL.shaders[shader]);
  7096. }
  7097. function _glfwGetPrimaryMonitor() {
  7098. return 1;
  7099. }
  7100. function emscriptenWebGLGetVertexAttrib(index, pname, params, type) {
  7101. if (!params) {
  7102. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7103. // if params == null, issue a GL error to notify user about it.
  7104. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7105. return;
  7106. }
  7107. var data = GLctx.getVertexAttrib(index, pname);
  7108. if (pname == 0x889F/*VERTEX_ATTRIB_ARRAY_BUFFER_BINDING*/) {
  7109. HEAP32[((params)>>2)]=data["name"];
  7110. } else if (typeof data == 'number' || typeof data == 'boolean') {
  7111. switch (type) {
  7112. case 'Integer': HEAP32[((params)>>2)]=data; break;
  7113. case 'Float': HEAPF32[((params)>>2)]=data; break;
  7114. case 'FloatToInteger': HEAP32[((params)>>2)]=Math.fround(data); break;
  7115. default: throw 'internal emscriptenWebGLGetVertexAttrib() error, bad type: ' + type;
  7116. }
  7117. } else {
  7118. for (var i = 0; i < data.length; i++) {
  7119. switch (type) {
  7120. case 'Integer': HEAP32[(((params)+(i))>>2)]=data[i]; break;
  7121. case 'Float': HEAPF32[(((params)+(i))>>2)]=data[i]; break;
  7122. case 'FloatToInteger': HEAP32[(((params)+(i))>>2)]=Math.fround(data[i]); break;
  7123. default: throw 'internal emscriptenWebGLGetVertexAttrib() error, bad type: ' + type;
  7124. }
  7125. }
  7126. }
  7127. }function _emscripten_glGetVertexAttribfv(index, pname, params) {
  7128. // N.B. This function may only be called if the vertex attribute was specified using the function glVertexAttrib*f(),
  7129. // otherwise the results are undefined. (GLES3 spec 6.1.12)
  7130. emscriptenWebGLGetVertexAttrib(index, pname, params, 'Float');
  7131. }
  7132. function _emscripten_set_touchstart_callback(target, userData, useCapture, callbackfunc) {
  7133. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 22, "touchstart");
  7134. return 0;
  7135. }
  7136. function _glUniform3f(location, v0, v1, v2) {
  7137. GLctx.uniform3f(GL.uniforms[location], v0, v1, v2);
  7138. }
  7139. function _emscripten_glVertexPointer(){ throw 'Legacy GL function (glVertexPointer) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.'; }
  7140. function _emscripten_glDeleteBuffers(n, buffers) {
  7141. for (var i = 0; i < n; i++) {
  7142. var id = HEAP32[(((buffers)+(i*4))>>2)];
  7143. var buffer = GL.buffers[id];
  7144. // From spec: "glDeleteBuffers silently ignores 0's and names that do not
  7145. // correspond to existing buffer objects."
  7146. if (!buffer) continue;
  7147. GLctx.deleteBuffer(buffer);
  7148. buffer.name = 0;
  7149. GL.buffers[id] = null;
  7150. if (id == GL.currArrayBuffer) GL.currArrayBuffer = 0;
  7151. if (id == GL.currElementArrayBuffer) GL.currElementArrayBuffer = 0;
  7152. }
  7153. }
  7154. function _emscripten_glTexParameteriv(target, pname, params) {
  7155. var param = HEAP32[((params)>>2)];
  7156. GLctx.texParameteri(target, pname, param);
  7157. }
  7158. function _glDrawElements(mode, count, type, indices) {
  7159. GLctx.drawElements(mode, count, type, indices);
  7160. }
  7161. function _glfwTerminate() {
  7162. window.removeEventListener("keydown", GLFW.onKeydown, true);
  7163. window.removeEventListener("keypress", GLFW.onKeyPress, true);
  7164. window.removeEventListener("keyup", GLFW.onKeyup, true);
  7165. Module["canvas"].removeEventListener("mousemove", GLFW.onMousemove, true);
  7166. Module["canvas"].removeEventListener("mousedown", GLFW.onMouseButtonDown, true);
  7167. Module["canvas"].removeEventListener("mouseup", GLFW.onMouseButtonUp, true);
  7168. Module["canvas"].removeEventListener('wheel', GLFW.onMouseWheel, true);
  7169. Module["canvas"].removeEventListener('mousewheel', GLFW.onMouseWheel, true);
  7170. Module["canvas"].removeEventListener('mouseenter', GLFW.onMouseenter, true);
  7171. Module["canvas"].removeEventListener('mouseleave', GLFW.onMouseleave, true);
  7172. Module["canvas"].width = Module["canvas"].height = 1;
  7173. GLFW.windows = null;
  7174. GLFW.active = null;
  7175. }
  7176. function _emscripten_glUniformMatrix2fv(location, count, transpose, value) {
  7177. var view;
  7178. if (4*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7179. // avoid allocation when uploading few enough uniforms
  7180. view = GL.miniTempBufferViews[4*count-1];
  7181. for (var i = 0; i < 4*count; i += 4) {
  7182. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7183. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7184. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7185. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  7186. }
  7187. } else {
  7188. view = HEAPF32.subarray((value)>>2,(value+count*16)>>2);
  7189. }
  7190. GLctx.uniformMatrix2fv(GL.uniforms[location], !!transpose, view);
  7191. }
  7192. function _emscripten_glDeleteShader(id) {
  7193. if (!id) return;
  7194. var shader = GL.shaders[id];
  7195. if (!shader) { // glDeleteShader actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7196. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7197. return;
  7198. }
  7199. GLctx.deleteShader(shader);
  7200. GL.shaders[id] = null;
  7201. }
  7202. function ___syscall5(which, varargs) {SYSCALLS.varargs = varargs;
  7203. try {
  7204. // open
  7205. var pathname = SYSCALLS.getStr(), flags = SYSCALLS.get(), mode = SYSCALLS.get() // optional TODO
  7206. var stream = FS.open(pathname, flags, mode);
  7207. return stream.fd;
  7208. } catch (e) {
  7209. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7210. return -e.errno;
  7211. }
  7212. }
  7213. function ___syscall6(which, varargs) {SYSCALLS.varargs = varargs;
  7214. try {
  7215. // close
  7216. var stream = SYSCALLS.getStreamFromFD();
  7217. FS.close(stream);
  7218. return 0;
  7219. } catch (e) {
  7220. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7221. return -e.errno;
  7222. }
  7223. }
  7224. function _llvm_stacksave() {
  7225. var self = _llvm_stacksave;
  7226. if (!self.LLVM_SAVEDSTACKS) {
  7227. self.LLVM_SAVEDSTACKS = [];
  7228. }
  7229. self.LLVM_SAVEDSTACKS.push(Runtime.stackSave());
  7230. return self.LLVM_SAVEDSTACKS.length-1;
  7231. }
  7232. function _emscripten_glGetVertexAttribiv(index, pname, params) {
  7233. // N.B. This function may only be called if the vertex attribute was specified using the function glVertexAttrib*f(),
  7234. // otherwise the results are undefined. (GLES3 spec 6.1.12)
  7235. emscriptenWebGLGetVertexAttrib(index, pname, params, 'FloatToInteger');
  7236. }
  7237. function _emscripten_glUniformMatrix4fv(location, count, transpose, value) {
  7238. var view;
  7239. if (16*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7240. // avoid allocation when uploading few enough uniforms
  7241. view = GL.miniTempBufferViews[16*count-1];
  7242. for (var i = 0; i < 16*count; i += 16) {
  7243. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7244. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7245. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7246. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  7247. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  7248. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  7249. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  7250. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  7251. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  7252. view[i+9] = HEAPF32[(((value)+(4*i+36))>>2)];
  7253. view[i+10] = HEAPF32[(((value)+(4*i+40))>>2)];
  7254. view[i+11] = HEAPF32[(((value)+(4*i+44))>>2)];
  7255. view[i+12] = HEAPF32[(((value)+(4*i+48))>>2)];
  7256. view[i+13] = HEAPF32[(((value)+(4*i+52))>>2)];
  7257. view[i+14] = HEAPF32[(((value)+(4*i+56))>>2)];
  7258. view[i+15] = HEAPF32[(((value)+(4*i+60))>>2)];
  7259. }
  7260. } else {
  7261. view = HEAPF32.subarray((value)>>2,(value+count*64)>>2);
  7262. }
  7263. GLctx.uniformMatrix4fv(GL.uniforms[location], !!transpose, view);
  7264. }
  7265. function _glVertexAttrib3f(x0, x1, x2, x3) { GLctx['vertexAttrib3f'](x0, x1, x2, x3) }
  7266. function _emscripten_glDrawArraysInstanced(mode, first, count, primcount) {
  7267. GLctx['drawArraysInstanced'](mode, first, count, primcount);
  7268. }
  7269. function _emscripten_glEnableClientState() {
  7270. Module['printErr']('missing function: emscripten_glEnableClientState'); abort(-1);
  7271. }
  7272. function _emscripten_glGetPointerv() {
  7273. Module['printErr']('missing function: emscripten_glGetPointerv'); abort(-1);
  7274. }
  7275. function ___syscall140(which, varargs) {SYSCALLS.varargs = varargs;
  7276. try {
  7277. // llseek
  7278. var stream = SYSCALLS.getStreamFromFD(), offset_high = SYSCALLS.get(), offset_low = SYSCALLS.get(), result = SYSCALLS.get(), whence = SYSCALLS.get();
  7279. var offset = offset_low;
  7280. assert(offset_high === 0);
  7281. FS.llseek(stream, offset, whence);
  7282. HEAP32[((result)>>2)]=stream.position;
  7283. if (stream.getdents && offset === 0 && whence === 0) stream.getdents = null; // reset readdir state
  7284. return 0;
  7285. } catch (e) {
  7286. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7287. return -e.errno;
  7288. }
  7289. }
  7290. function ___syscall146(which, varargs) {SYSCALLS.varargs = varargs;
  7291. try {
  7292. // writev
  7293. var stream = SYSCALLS.getStreamFromFD(), iov = SYSCALLS.get(), iovcnt = SYSCALLS.get();
  7294. return SYSCALLS.doWritev(stream, iov, iovcnt);
  7295. } catch (e) {
  7296. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7297. return -e.errno;
  7298. }
  7299. }
  7300. function ___syscall145(which, varargs) {SYSCALLS.varargs = varargs;
  7301. try {
  7302. // readv
  7303. var stream = SYSCALLS.getStreamFromFD(), iov = SYSCALLS.get(), iovcnt = SYSCALLS.get();
  7304. return SYSCALLS.doReadv(stream, iov, iovcnt);
  7305. } catch (e) {
  7306. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7307. return -e.errno;
  7308. }
  7309. }
  7310. function _emscripten_glStencilMask(x0) { GLctx['stencilMask'](x0) }
  7311. function _emscripten_glStencilFuncSeparate(x0, x1, x2, x3) { GLctx['stencilFuncSeparate'](x0, x1, x2, x3) }
  7312. Module["_i64Subtract"] = _i64Subtract;
  7313. Module["_i64Add"] = _i64Add;
  7314. function _emscripten_set_touchend_callback(target, userData, useCapture, callbackfunc) {
  7315. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 23, "touchend");
  7316. return 0;
  7317. }
  7318. function _glUseProgram(program) {
  7319. GLctx.useProgram(program ? GL.programs[program] : null);
  7320. }
  7321. function _emscripten_glDisableVertexAttribArray(index) {
  7322. GLctx.disableVertexAttribArray(index);
  7323. }
  7324. function _emscripten_glVertexAttrib1f(x0, x1) { GLctx['vertexAttrib1f'](x0, x1) }
  7325. function _emscripten_glFinish() { GLctx['finish']() }
  7326. function _glDrawArrays(mode, first, count) {
  7327. GLctx.drawArrays(mode, first, count);
  7328. }
  7329. function _emscripten_glDepthFunc(x0) { GLctx['depthFunc'](x0) }
  7330. function _emscripten_get_num_gamepads() {
  7331. // Polling gamepads generates garbage, so don't do it when we know there are no gamepads connected.
  7332. if (!JSEvents.numGamepadsConnected) return 0;
  7333. __emscripten_sample_gamepad_data();
  7334. if (!JSEvents.lastGamepadState) return -1;
  7335. return JSEvents.lastGamepadState.length;
  7336. }
  7337. function _glGetProgramInfoLog(program, maxLength, length, infoLog) {
  7338. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  7339. if (log === null) log = '(unknown error)';
  7340. if (maxLength > 0 && infoLog) {
  7341. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  7342. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7343. } else {
  7344. if (length) HEAP32[((length)>>2)]=0;
  7345. }
  7346. }
  7347. function _emscripten_glUniform4iv(location, count, value) {
  7348. GLctx.uniform4iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*16)>>2));
  7349. }
  7350. function _glClear(x0) { GLctx['clear'](x0) }
  7351. function _emscripten_glLoadIdentity(){ throw 'Legacy GL function (glLoadIdentity) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.'; }
  7352. function _emscripten_glUniform3fv(location, count, value) {
  7353. var view;
  7354. if (3*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7355. // avoid allocation when uploading few enough uniforms
  7356. view = GL.miniTempBufferViews[3*count-1];
  7357. for (var i = 0; i < 3*count; i += 3) {
  7358. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7359. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7360. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7361. }
  7362. } else {
  7363. view = HEAPF32.subarray((value)>>2,(value+count*12)>>2);
  7364. }
  7365. GLctx.uniform3fv(GL.uniforms[location], view);
  7366. }
  7367. function _emscripten_glIsTexture(texture) {
  7368. var texture = GL.textures[texture];
  7369. if (!texture) return 0;
  7370. return GLctx.isTexture(texture);
  7371. }
  7372. function _glEnableVertexAttribArray(index) {
  7373. GLctx.enableVertexAttribArray(index);
  7374. }
  7375. function _emscripten_glAttachShader(program, shader) {
  7376. GLctx.attachShader(GL.programs[program],
  7377. GL.shaders[shader]);
  7378. }
  7379. function _glUniform4f(location, v0, v1, v2, v3) {
  7380. GLctx.uniform4f(GL.uniforms[location], v0, v1, v2, v3);
  7381. }
  7382. function _emscripten_request_pointerlock(target, deferUntilInEventHandler) {
  7383. if (!target) target = '#canvas';
  7384. target = JSEvents.findEventTarget(target);
  7385. if (!target) return -4;
  7386. if (!target.requestPointerLock && !target.mozRequestPointerLock && !target.webkitRequestPointerLock && !target.msRequestPointerLock) {
  7387. return -1;
  7388. }
  7389. var canPerformRequests = JSEvents.canPerformEventHandlerRequests();
  7390. // Queue this function call if we're not currently in an event handler and the user saw it appropriate to do so.
  7391. if (!canPerformRequests) {
  7392. if (deferUntilInEventHandler) {
  7393. JSEvents.deferCall(JSEvents.requestPointerLock, 2 /* priority below fullscreen */, [target]);
  7394. return 1;
  7395. } else {
  7396. return -2;
  7397. }
  7398. }
  7399. return JSEvents.requestPointerLock(target);
  7400. }
  7401. var cttz_i8 = allocate([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0], "i8", ALLOC_STATIC);
  7402. Module["_llvm_cttz_i32"] = _llvm_cttz_i32;
  7403. Module["___udivmoddi4"] = ___udivmoddi4;
  7404. Module["___udivdi3"] = ___udivdi3;
  7405. function _glfwCreateWindow(width, height, title, monitor, share) {
  7406. return GLFW.createWindow(width, height, title, monitor, share);
  7407. }
  7408. function _glfwDefaultWindowHints() {
  7409. GLFW.hints = GLFW.defaultHints;
  7410. }
  7411. function _emscripten_glClearStencil(x0) { GLctx['clearStencil'](x0) }
  7412. function _emscripten_glDetachShader(program, shader) {
  7413. GLctx.detachShader(GL.programs[program],
  7414. GL.shaders[shader]);
  7415. }
  7416. function _emscripten_glDeleteVertexArrays(n, vaos) {
  7417. for (var i = 0; i < n; i++) {
  7418. var id = HEAP32[(((vaos)+(i*4))>>2)];
  7419. GLctx['deleteVertexArray'](GL.vaos[id]);
  7420. GL.vaos[id] = null;
  7421. }
  7422. }
  7423. function _glfwInit() {
  7424. if (GLFW.windows) return 1; // GL_TRUE
  7425. GLFW.initialTime = GLFW.getTime();
  7426. GLFW.hints = GLFW.defaultHints;
  7427. GLFW.windows = new Array()
  7428. GLFW.active = null;
  7429. window.addEventListener("keydown", GLFW.onKeydown, true);
  7430. window.addEventListener("keypress", GLFW.onKeyPress, true);
  7431. window.addEventListener("keyup", GLFW.onKeyup, true);
  7432. Module["canvas"].addEventListener("mousemove", GLFW.onMousemove, true);
  7433. Module["canvas"].addEventListener("mousedown", GLFW.onMouseButtonDown, true);
  7434. Module["canvas"].addEventListener("mouseup", GLFW.onMouseButtonUp, true);
  7435. Module["canvas"].addEventListener('wheel', GLFW.onMouseWheel, true);
  7436. Module["canvas"].addEventListener('mousewheel', GLFW.onMouseWheel, true);
  7437. Module["canvas"].addEventListener('mouseenter', GLFW.onMouseenter, true);
  7438. Module["canvas"].addEventListener('mouseleave', GLFW.onMouseleave, true);
  7439. Browser.resizeListeners.push(function(width, height) {
  7440. GLFW.onCanvasResize(width, height);
  7441. });
  7442. return 1; // GL_TRUE
  7443. }
  7444. function _emscripten_glGetTexParameteriv(target, pname, params) {
  7445. if (!params) {
  7446. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7447. // if p == null, issue a GL error to notify user about it.
  7448. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7449. return;
  7450. }
  7451. HEAP32[((params)>>2)]=GLctx.getTexParameter(target, pname);
  7452. }
  7453. function _glfwSwapBuffers(winid) {
  7454. GLFW.swapBuffers(winid);
  7455. }
  7456. function _emscripten_glGenerateMipmap(x0) { GLctx['generateMipmap'](x0) }
  7457. function _emscripten_glCullFace(x0) { GLctx['cullFace'](x0) }
  7458. function _emscripten_glUniform4f(location, v0, v1, v2, v3) {
  7459. GLctx.uniform4f(GL.uniforms[location], v0, v1, v2, v3);
  7460. }
  7461. function _glDisableVertexAttribArray(index) {
  7462. GLctx.disableVertexAttribArray(index);
  7463. }
  7464. function _emscripten_glUseProgram(program) {
  7465. GLctx.useProgram(program ? GL.programs[program] : null);
  7466. }
  7467. function _emscripten_glHint(x0, x1) { GLctx['hint'](x0, x1) }
  7468. function _emscripten_glUniform2fv(location, count, value) {
  7469. var view;
  7470. if (2*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7471. // avoid allocation when uploading few enough uniforms
  7472. view = GL.miniTempBufferViews[2*count-1];
  7473. for (var i = 0; i < 2*count; i += 2) {
  7474. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7475. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7476. }
  7477. } else {
  7478. view = HEAPF32.subarray((value)>>2,(value+count*8)>>2);
  7479. }
  7480. GLctx.uniform2fv(GL.uniforms[location], view);
  7481. }
  7482. function _glfwSwapInterval(interval) {
  7483. interval = Math.abs(interval); // GLFW uses negative values to enable GLX_EXT_swap_control_tear, which we don't have, so just treat negative and positive the same.
  7484. if (interval == 0) _emscripten_set_main_loop_timing(0/*EM_TIMING_SETTIMEOUT*/, 0);
  7485. else _emscripten_set_main_loop_timing(1/*EM_TIMING_RAF*/, interval);
  7486. }
  7487. function _glGetShaderInfoLog(shader, maxLength, length, infoLog) {
  7488. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  7489. if (log === null) log = '(unknown error)';
  7490. if (maxLength > 0 && infoLog) {
  7491. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  7492. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7493. } else {
  7494. if (length) HEAP32[((length)>>2)]=0;
  7495. }
  7496. }
  7497. function _emscripten_glMatrixMode(){ throw 'Legacy GL function (glMatrixMode) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.'; }
  7498. function _abort() {
  7499. Module['abort']();
  7500. }
  7501. function _emscripten_glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer) {
  7502. GLctx.framebufferRenderbuffer(target, attachment, renderbuffertarget,
  7503. GL.renderbuffers[renderbuffer]);
  7504. }
  7505. function _emscripten_glDeleteFramebuffers(n, framebuffers) {
  7506. for (var i = 0; i < n; ++i) {
  7507. var id = HEAP32[(((framebuffers)+(i*4))>>2)];
  7508. var framebuffer = GL.framebuffers[id];
  7509. if (!framebuffer) continue; // GL spec: "glDeleteFramebuffers silently ignores 0s and names that do not correspond to existing framebuffer objects".
  7510. GLctx.deleteFramebuffer(framebuffer);
  7511. framebuffer.name = 0;
  7512. GL.framebuffers[id] = null;
  7513. }
  7514. }
  7515. function _emscripten_glIsBuffer(buffer) {
  7516. var b = GL.buffers[buffer];
  7517. if (!b) return 0;
  7518. return GLctx.isBuffer(b);
  7519. }
  7520. function _emscripten_glUniform2iv(location, count, value) {
  7521. GLctx.uniform2iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*8)>>2));
  7522. }
  7523. function _emscripten_glVertexAttrib1fv(index, v) {
  7524. GLctx.vertexAttrib1f(index, HEAPF32[v>>2]);
  7525. }
  7526. function _glEnable(x0) { GLctx['enable'](x0) }
  7527. function emscriptenWebGLComputeImageSize(width, height, sizePerPixel, alignment) {
  7528. function roundedToNextMultipleOf(x, y) {
  7529. return Math.floor((x + y - 1) / y) * y
  7530. }
  7531. var plainRowSize = width * sizePerPixel;
  7532. var alignedRowSize = roundedToNextMultipleOf(plainRowSize, alignment);
  7533. return (height <= 0) ? 0 :
  7534. ((height - 1) * alignedRowSize + plainRowSize);
  7535. }function emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat) {
  7536. var sizePerPixel;
  7537. var numChannels;
  7538. switch(format) {
  7539. case 0x1906 /* GL_ALPHA */:
  7540. case 0x1909 /* GL_LUMINANCE */:
  7541. case 0x1902 /* GL_DEPTH_COMPONENT */:
  7542. numChannels = 1;
  7543. break;
  7544. case 0x190A /* GL_LUMINANCE_ALPHA */:
  7545. numChannels = 2;
  7546. break;
  7547. case 0x1907 /* GL_RGB */:
  7548. case 0x8C40 /* GL_SRGB_EXT */:
  7549. numChannels = 3;
  7550. break;
  7551. case 0x1908 /* GL_RGBA */:
  7552. case 0x8C42 /* GL_SRGB_ALPHA_EXT */:
  7553. numChannels = 4;
  7554. break;
  7555. default:
  7556. GL.recordError(0x0500); // GL_INVALID_ENUM
  7557. return null;
  7558. }
  7559. switch (type) {
  7560. case 0x1401 /* GL_UNSIGNED_BYTE */:
  7561. sizePerPixel = numChannels*1;
  7562. break;
  7563. case 0x1403 /* GL_UNSIGNED_SHORT */:
  7564. case 0x8D61 /* GL_HALF_FLOAT_OES */:
  7565. sizePerPixel = numChannels*2;
  7566. break;
  7567. case 0x1405 /* GL_UNSIGNED_INT */:
  7568. case 0x1406 /* GL_FLOAT */:
  7569. sizePerPixel = numChannels*4;
  7570. break;
  7571. case 0x84FA /* GL_UNSIGNED_INT_24_8_WEBGL/GL_UNSIGNED_INT_24_8 */:
  7572. sizePerPixel = 4;
  7573. break;
  7574. case 0x8363 /* GL_UNSIGNED_SHORT_5_6_5 */:
  7575. case 0x8033 /* GL_UNSIGNED_SHORT_4_4_4_4 */:
  7576. case 0x8034 /* GL_UNSIGNED_SHORT_5_5_5_1 */:
  7577. sizePerPixel = 2;
  7578. break;
  7579. default:
  7580. GL.recordError(0x0500); // GL_INVALID_ENUM
  7581. return null;
  7582. }
  7583. var bytes = emscriptenWebGLComputeImageSize(width, height, sizePerPixel, GL.unpackAlignment);
  7584. switch(type) {
  7585. case 0x1401 /* GL_UNSIGNED_BYTE */:
  7586. return HEAPU8.subarray((pixels),(pixels+bytes));
  7587. case 0x1406 /* GL_FLOAT */:
  7588. return HEAPF32.subarray((pixels)>>2,(pixels+bytes)>>2);
  7589. case 0x1405 /* GL_UNSIGNED_INT */:
  7590. case 0x84FA /* GL_UNSIGNED_INT_24_8_WEBGL/GL_UNSIGNED_INT_24_8 */:
  7591. return HEAPU32.subarray((pixels)>>2,(pixels+bytes)>>2);
  7592. case 0x1403 /* GL_UNSIGNED_SHORT */:
  7593. case 0x8363 /* GL_UNSIGNED_SHORT_5_6_5 */:
  7594. case 0x8033 /* GL_UNSIGNED_SHORT_4_4_4_4 */:
  7595. case 0x8034 /* GL_UNSIGNED_SHORT_5_5_5_1 */:
  7596. case 0x8D61 /* GL_HALF_FLOAT_OES */:
  7597. return HEAPU16.subarray((pixels)>>1,(pixels+bytes)>>1);
  7598. default:
  7599. GL.recordError(0x0500); // GL_INVALID_ENUM
  7600. return null;
  7601. }
  7602. }function _emscripten_glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels) {
  7603. var pixelData = null;
  7604. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, 0);
  7605. GLctx.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixelData);
  7606. }
  7607. function _emscripten_glPolygonOffset(x0, x1) { GLctx['polygonOffset'](x0, x1) }
  7608. var _emscripten_asm_const_int=true;
  7609. function _emscripten_glUniform2f(location, v0, v1) {
  7610. GLctx.uniform2f(GL.uniforms[location], v0, v1);
  7611. }
  7612. function _glGetAttribLocation(program, name) {
  7613. program = GL.programs[program];
  7614. name = Pointer_stringify(name);
  7615. return GLctx.getAttribLocation(program, name);
  7616. }
  7617. function _glfwWindowHint(target, hint) {
  7618. GLFW.hints[target] = hint;
  7619. }
  7620. function _emscripten_glUniform2i(location, v0, v1) {
  7621. GLctx.uniform2i(GL.uniforms[location], v0, v1);
  7622. }
  7623. function _glBlendFunc(x0, x1) { GLctx['blendFunc'](x0, x1) }
  7624. function _glCreateProgram() {
  7625. var id = GL.getNewId(GL.programs);
  7626. var program = GLctx.createProgram();
  7627. program.name = id;
  7628. GL.programs[id] = program;
  7629. return id;
  7630. }
  7631. function _emscripten_glDeleteRenderbuffers(n, renderbuffers) {
  7632. for (var i = 0; i < n; i++) {
  7633. var id = HEAP32[(((renderbuffers)+(i*4))>>2)];
  7634. var renderbuffer = GL.renderbuffers[id];
  7635. if (!renderbuffer) continue; // GL spec: "glDeleteRenderbuffers silently ignores 0s and names that do not correspond to existing renderbuffer objects".
  7636. GLctx.deleteRenderbuffer(renderbuffer);
  7637. renderbuffer.name = 0;
  7638. GL.renderbuffers[id] = null;
  7639. }
  7640. }
  7641. function _emscripten_glGetBufferParameteriv(target, value, data) {
  7642. if (!data) {
  7643. // GLES2 specification does not specify how to behave if data is a null pointer. Since calling this function does not make sense
  7644. // if data == null, issue a GL error to notify user about it.
  7645. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7646. return;
  7647. }
  7648. HEAP32[((data)>>2)]=GLctx.getBufferParameter(target, value);
  7649. }
  7650. function emscriptenWebGLGetUniform(program, location, params, type) {
  7651. if (!params) {
  7652. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7653. // if params == null, issue a GL error to notify user about it.
  7654. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7655. return;
  7656. }
  7657. var data = GLctx.getUniform(GL.programs[program], GL.uniforms[location]);
  7658. if (typeof data == 'number' || typeof data == 'boolean') {
  7659. switch (type) {
  7660. case 'Integer': HEAP32[((params)>>2)]=data; break;
  7661. case 'Float': HEAPF32[((params)>>2)]=data; break;
  7662. default: throw 'internal emscriptenWebGLGetUniform() error, bad type: ' + type;
  7663. }
  7664. } else {
  7665. for (var i = 0; i < data.length; i++) {
  7666. switch (type) {
  7667. case 'Integer': HEAP32[(((params)+(i))>>2)]=data[i]; break;
  7668. case 'Float': HEAPF32[(((params)+(i))>>2)]=data[i]; break;
  7669. default: throw 'internal emscriptenWebGLGetUniform() error, bad type: ' + type;
  7670. }
  7671. }
  7672. }
  7673. }function _emscripten_glGetUniformiv(program, location, params) {
  7674. emscriptenWebGLGetUniform(program, location, params, 'Integer');
  7675. }
  7676. function _emscripten_glDepthMask(flag) {
  7677. GLctx.depthMask(!!flag);
  7678. }
  7679. function _emscripten_glDepthRangef(x0, x1) { GLctx['depthRange'](x0, x1) }
  7680. function _emscripten_glDepthRange(x0, x1) { GLctx['depthRange'](x0, x1) }
  7681. function _emscripten_set_fullscreenchange_callback(target, userData, useCapture, callbackfunc) {
  7682. if (typeof JSEvents.fullscreenEnabled() === 'undefined') return -1;
  7683. if (!target) target = document;
  7684. else {
  7685. target = JSEvents.findEventTarget(target);
  7686. if (!target) return -4;
  7687. }
  7688. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "fullscreenchange");
  7689. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "mozfullscreenchange");
  7690. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "webkitfullscreenchange");
  7691. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "msfullscreenchange");
  7692. return 0;
  7693. }
  7694. function _emscripten_glGetShaderPrecisionFormat(shaderType, precisionType, range, precision) {
  7695. var result = GLctx.getShaderPrecisionFormat(shaderType, precisionType);
  7696. HEAP32[((range)>>2)]=result.rangeMin;
  7697. HEAP32[(((range)+(4))>>2)]=result.rangeMax;
  7698. HEAP32[((precision)>>2)]=result.precision;
  7699. }
  7700. function _emscripten_glUniform1fv(location, count, value) {
  7701. var view;
  7702. if (count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7703. // avoid allocation when uploading few enough uniforms
  7704. view = GL.miniTempBufferViews[count-1];
  7705. for (var i = 0; i < count; ++i) {
  7706. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7707. }
  7708. } else {
  7709. view = HEAPF32.subarray((value)>>2,(value+count*4)>>2);
  7710. }
  7711. GLctx.uniform1fv(GL.uniforms[location], view);
  7712. }
  7713. function _glDeleteBuffers(n, buffers) {
  7714. for (var i = 0; i < n; i++) {
  7715. var id = HEAP32[(((buffers)+(i*4))>>2)];
  7716. var buffer = GL.buffers[id];
  7717. // From spec: "glDeleteBuffers silently ignores 0's and names that do not
  7718. // correspond to existing buffer objects."
  7719. if (!buffer) continue;
  7720. GLctx.deleteBuffer(buffer);
  7721. buffer.name = 0;
  7722. GL.buffers[id] = null;
  7723. if (id == GL.currArrayBuffer) GL.currArrayBuffer = 0;
  7724. if (id == GL.currElementArrayBuffer) GL.currElementArrayBuffer = 0;
  7725. }
  7726. }
  7727. function _emscripten_set_gamepaddisconnected_callback(userData, useCapture, callbackfunc) {
  7728. if (!navigator.getGamepads && !navigator.webkitGetGamepads) return -1;
  7729. JSEvents.registerGamepadEventCallback(window, userData, useCapture, callbackfunc, 27, "gamepaddisconnected");
  7730. return 0;
  7731. }
  7732. function _emscripten_glBindProgramARB() {
  7733. Module['printErr']('missing function: emscripten_glBindProgramARB'); abort(-1);
  7734. }
  7735. function _emscripten_glBindTexture(target, texture) {
  7736. GLctx.bindTexture(target, texture ? GL.textures[texture] : null);
  7737. }
  7738. function _emscripten_glCheckFramebufferStatus(x0) { return GLctx['checkFramebufferStatus'](x0) }
  7739. function _emscripten_glDeleteProgram(id) {
  7740. if (!id) return;
  7741. var program = GL.programs[id];
  7742. if (!program) { // glDeleteProgram actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7743. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7744. return;
  7745. }
  7746. GLctx.deleteProgram(program);
  7747. program.name = 0;
  7748. GL.programs[id] = null;
  7749. GL.programInfos[id] = null;
  7750. }
  7751. function _emscripten_glDisable(x0) { GLctx['disable'](x0) }
  7752. function _emscripten_glVertexAttrib3fv(index, v) {
  7753. GLctx.vertexAttrib3f(index, HEAPF32[v>>2], HEAPF32[v+4>>2], HEAPF32[v+8>>2]);
  7754. }
  7755. function _glClearColor(x0, x1, x2, x3) { GLctx['clearColor'](x0, x1, x2, x3) }
  7756. function _emscripten_glGetActiveAttrib(program, index, bufSize, length, size, type, name) {
  7757. program = GL.programs[program];
  7758. var info = GLctx.getActiveAttrib(program, index);
  7759. if (!info) return; // If an error occurs, nothing will be written to length, size and type and name.
  7760. if (bufSize > 0 && name) {
  7761. var numBytesWrittenExclNull = stringToUTF8(info.name, name, bufSize);
  7762. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7763. } else {
  7764. if (length) HEAP32[((length)>>2)]=0;
  7765. }
  7766. if (size) HEAP32[((size)>>2)]=info.size;
  7767. if (type) HEAP32[((type)>>2)]=info.type;
  7768. }
  7769. function _emscripten_glIsFramebuffer(framebuffer) {
  7770. var fb = GL.framebuffers[framebuffer];
  7771. if (!fb) return 0;
  7772. return GLctx.isFramebuffer(fb);
  7773. }
  7774. function _emscripten_glLineWidth(x0) { GLctx['lineWidth'](x0) }
  7775. function _glfwGetCursorPos(winid, x, y) {
  7776. GLFW.getCursorPos(winid, x, y);
  7777. }
  7778. function _emscripten_glGetString(name_) {
  7779. if (GL.stringCache[name_]) return GL.stringCache[name_];
  7780. var ret;
  7781. switch(name_) {
  7782. case 0x1F00 /* GL_VENDOR */:
  7783. case 0x1F01 /* GL_RENDERER */:
  7784. case 0x9245 /* UNMASKED_VENDOR_WEBGL */:
  7785. case 0x9246 /* UNMASKED_RENDERER_WEBGL */:
  7786. ret = allocate(intArrayFromString(GLctx.getParameter(name_)), 'i8', ALLOC_NORMAL);
  7787. break;
  7788. case 0x1F02 /* GL_VERSION */:
  7789. var glVersion = GLctx.getParameter(GLctx.VERSION);
  7790. // return GLES version string corresponding to the version of the WebGL context
  7791. {
  7792. glVersion = 'OpenGL ES 2.0 (' + glVersion + ')';
  7793. }
  7794. ret = allocate(intArrayFromString(glVersion), 'i8', ALLOC_NORMAL);
  7795. break;
  7796. case 0x1F03 /* GL_EXTENSIONS */:
  7797. var exts = GLctx.getSupportedExtensions();
  7798. var gl_exts = [];
  7799. for (var i = 0; i < exts.length; ++i) {
  7800. gl_exts.push(exts[i]);
  7801. gl_exts.push("GL_" + exts[i]);
  7802. }
  7803. ret = allocate(intArrayFromString(gl_exts.join(' ')), 'i8', ALLOC_NORMAL);
  7804. break;
  7805. case 0x8B8C /* GL_SHADING_LANGUAGE_VERSION */:
  7806. var glslVersion = GLctx.getParameter(GLctx.SHADING_LANGUAGE_VERSION);
  7807. // extract the version number 'N.M' from the string 'WebGL GLSL ES N.M ...'
  7808. var ver_re = /^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/;
  7809. var ver_num = glslVersion.match(ver_re);
  7810. if (ver_num !== null) {
  7811. if (ver_num[1].length == 3) ver_num[1] = ver_num[1] + '0'; // ensure minor version has 2 digits
  7812. glslVersion = 'OpenGL ES GLSL ES ' + ver_num[1] + ' (' + glslVersion + ')';
  7813. }
  7814. ret = allocate(intArrayFromString(glslVersion), 'i8', ALLOC_NORMAL);
  7815. break;
  7816. default:
  7817. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  7818. return 0;
  7819. }
  7820. GL.stringCache[name_] = ret;
  7821. return ret;
  7822. }
  7823. function _emscripten_glGetAttribLocation(program, name) {
  7824. program = GL.programs[program];
  7825. name = Pointer_stringify(name);
  7826. return GLctx.getAttribLocation(program, name);
  7827. }
  7828. function _emscripten_glRotatef() {
  7829. Module['printErr']('missing function: emscripten_glRotatef'); abort(-1);
  7830. }
  7831. function emscriptenWebGLGet(name_, p, type) {
  7832. // Guard against user passing a null pointer.
  7833. // Note that GLES2 spec does not say anything about how passing a null pointer should be treated.
  7834. // Testing on desktop core GL 3, the application crashes on glGetIntegerv to a null pointer, but
  7835. // better to report an error instead of doing anything random.
  7836. if (!p) {
  7837. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7838. return;
  7839. }
  7840. var ret = undefined;
  7841. switch(name_) { // Handle a few trivial GLES values
  7842. case 0x8DFA: // GL_SHADER_COMPILER
  7843. ret = 1;
  7844. break;
  7845. case 0x8DF8: // GL_SHADER_BINARY_FORMATS
  7846. if (type !== 'Integer' && type !== 'Integer64') {
  7847. GL.recordError(0x0500); // GL_INVALID_ENUM
  7848. }
  7849. return; // Do not write anything to the out pointer, since no binary formats are supported.
  7850. case 0x8DF9: // GL_NUM_SHADER_BINARY_FORMATS
  7851. ret = 0;
  7852. break;
  7853. case 0x86A2: // GL_NUM_COMPRESSED_TEXTURE_FORMATS
  7854. // 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),
  7855. // so implement it ourselves to allow C++ GLES2 code get the length.
  7856. var formats = GLctx.getParameter(0x86A3 /*GL_COMPRESSED_TEXTURE_FORMATS*/);
  7857. ret = formats.length;
  7858. break;
  7859. }
  7860. if (ret === undefined) {
  7861. var result = GLctx.getParameter(name_);
  7862. switch (typeof(result)) {
  7863. case "number":
  7864. ret = result;
  7865. break;
  7866. case "boolean":
  7867. ret = result ? 1 : 0;
  7868. break;
  7869. case "string":
  7870. GL.recordError(0x0500); // GL_INVALID_ENUM
  7871. return;
  7872. case "object":
  7873. if (result === null) {
  7874. // null is a valid result for some (e.g., which buffer is bound - perhaps nothing is bound), but otherwise
  7875. // can mean an invalid name_, which we need to report as an error
  7876. switch(name_) {
  7877. case 0x8894: // ARRAY_BUFFER_BINDING
  7878. case 0x8B8D: // CURRENT_PROGRAM
  7879. case 0x8895: // ELEMENT_ARRAY_BUFFER_BINDING
  7880. case 0x8CA6: // FRAMEBUFFER_BINDING
  7881. case 0x8CA7: // RENDERBUFFER_BINDING
  7882. case 0x8069: // TEXTURE_BINDING_2D
  7883. case 0x8514: { // TEXTURE_BINDING_CUBE_MAP
  7884. ret = 0;
  7885. break;
  7886. }
  7887. default: {
  7888. GL.recordError(0x0500); // GL_INVALID_ENUM
  7889. return;
  7890. }
  7891. }
  7892. } else if (result instanceof Float32Array ||
  7893. result instanceof Uint32Array ||
  7894. result instanceof Int32Array ||
  7895. result instanceof Array) {
  7896. for (var i = 0; i < result.length; ++i) {
  7897. switch (type) {
  7898. case 'Integer': HEAP32[(((p)+(i*4))>>2)]=result[i]; break;
  7899. case 'Float': HEAPF32[(((p)+(i*4))>>2)]=result[i]; break;
  7900. case 'Boolean': HEAP8[(((p)+(i))>>0)]=result[i] ? 1 : 0; break;
  7901. default: throw 'internal glGet error, bad type: ' + type;
  7902. }
  7903. }
  7904. return;
  7905. } else if (result instanceof WebGLBuffer ||
  7906. result instanceof WebGLProgram ||
  7907. result instanceof WebGLFramebuffer ||
  7908. result instanceof WebGLRenderbuffer ||
  7909. result instanceof WebGLTexture) {
  7910. ret = result.name | 0;
  7911. } else {
  7912. GL.recordError(0x0500); // GL_INVALID_ENUM
  7913. return;
  7914. }
  7915. break;
  7916. default:
  7917. GL.recordError(0x0500); // GL_INVALID_ENUM
  7918. return;
  7919. }
  7920. }
  7921. switch (type) {
  7922. 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;
  7923. case 'Integer': HEAP32[((p)>>2)]=ret; break;
  7924. case 'Float': HEAPF32[((p)>>2)]=ret; break;
  7925. case 'Boolean': HEAP8[((p)>>0)]=ret ? 1 : 0; break;
  7926. default: throw 'internal glGet error, bad type: ' + type;
  7927. }
  7928. }function _emscripten_glGetIntegerv(name_, p) {
  7929. emscriptenWebGLGet(name_, p, 'Integer');
  7930. }
  7931. function _emscripten_glGetFramebufferAttachmentParameteriv(target, attachment, pname, params) {
  7932. var result = GLctx.getFramebufferAttachmentParameter(target, attachment, pname);
  7933. HEAP32[((params)>>2)]=result;
  7934. }
  7935. function _llvm_stackrestore(p) {
  7936. var self = _llvm_stacksave;
  7937. var ret = self.LLVM_SAVEDSTACKS[p];
  7938. self.LLVM_SAVEDSTACKS.splice(p, 1);
  7939. Runtime.stackRestore(ret);
  7940. }
  7941. function _glfwSetWindowShouldClose(winid, value) {
  7942. var win = GLFW.WindowFromId(winid);
  7943. if (!win) return;
  7944. win.shouldClose = value;
  7945. }
  7946. function _emscripten_glClientActiveTexture() {
  7947. Module['printErr']('missing function: emscripten_glClientActiveTexture'); abort(-1);
  7948. }
  7949. function _glGenBuffers(n, buffers) {
  7950. for (var i = 0; i < n; i++) {
  7951. var buffer = GLctx.createBuffer();
  7952. if (!buffer) {
  7953. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  7954. while(i < n) HEAP32[(((buffers)+(i++*4))>>2)]=0;
  7955. return;
  7956. }
  7957. var id = GL.getNewId(GL.buffers);
  7958. buffer.name = id;
  7959. GL.buffers[id] = buffer;
  7960. HEAP32[(((buffers)+(i*4))>>2)]=id;
  7961. }
  7962. }
  7963. function _emscripten_memcpy_big(dest, src, num) {
  7964. HEAPU8.set(HEAPU8.subarray(src, src+num), dest);
  7965. return dest;
  7966. }
  7967. Module["_memcpy"] = _memcpy;
  7968. function _emscripten_glGetShaderInfoLog(shader, maxLength, length, infoLog) {
  7969. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  7970. if (log === null) log = '(unknown error)';
  7971. if (maxLength > 0 && infoLog) {
  7972. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  7973. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7974. } else {
  7975. if (length) HEAP32[((length)>>2)]=0;
  7976. }
  7977. }
  7978. function _glfwGetTime() {
  7979. return GLFW.getTime() - GLFW.initialTime;
  7980. }
  7981. function _emscripten_glGetRenderbufferParameteriv(target, pname, params) {
  7982. if (!params) {
  7983. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7984. // if params == null, issue a GL error to notify user about it.
  7985. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7986. return;
  7987. }
  7988. HEAP32[((params)>>2)]=GLctx.getRenderbufferParameter(target, pname);
  7989. }
  7990. function _emscripten_glStencilOpSeparate(x0, x1, x2, x3) { GLctx['stencilOpSeparate'](x0, x1, x2, x3) }
  7991. function _emscripten_glReadPixels(x, y, width, height, format, type, pixels) {
  7992. var pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, format);
  7993. if (!pixelData) {
  7994. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  7995. return;
  7996. }
  7997. GLctx.readPixels(x, y, width, height, format, type, pixelData);
  7998. }
  7999. function _emscripten_glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data) {
  8000. GLctx['compressedTexSubImage2D'](target, level, xoffset, yoffset, width, height, format, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  8001. }
  8002. function _emscripten_glGetError() {
  8003. // First return any GL error generated by the emscripten library_gl.js interop layer.
  8004. if (GL.lastError) {
  8005. var error = GL.lastError;
  8006. GL.lastError = 0/*GL_NO_ERROR*/;
  8007. return error;
  8008. } else { // If there were none, return the GL error from the browser GL context.
  8009. return GLctx.getError();
  8010. }
  8011. }
  8012. function _emscripten_glFramebufferTexture2D(target, attachment, textarget, texture, level) {
  8013. GLctx.framebufferTexture2D(target, attachment, textarget,
  8014. GL.textures[texture], level);
  8015. }
  8016. function _emscripten_glIsEnabled(x0) { return GLctx['isEnabled'](x0) }
  8017. function _glClearDepthf(x0) { GLctx['clearDepth'](x0) }
  8018. Module["_memmove"] = _memmove;
  8019. function _glGenTextures(n, textures) {
  8020. for (var i = 0; i < n; i++) {
  8021. var texture = GLctx.createTexture();
  8022. if (!texture) {
  8023. 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.
  8024. while(i < n) HEAP32[(((textures)+(i++*4))>>2)]=0;
  8025. return;
  8026. }
  8027. var id = GL.getNewId(GL.textures);
  8028. texture.name = id;
  8029. GL.textures[id] = texture;
  8030. HEAP32[(((textures)+(i*4))>>2)]=id;
  8031. }
  8032. }
  8033. function _emscripten_glVertexAttrib4f(x0, x1, x2, x3, x4) { GLctx['vertexAttrib4f'](x0, x1, x2, x3, x4) }
  8034. function _glDepthFunc(x0) { GLctx['depthFunc'](x0) }
  8035. Module["___uremdi3"] = ___uremdi3;
  8036. function _emscripten_glClearDepthf(x0) { GLctx['clearDepth'](x0) }
  8037. function _emscripten_glClear(x0) { GLctx['clear'](x0) }
  8038. function _emscripten_glBindBuffer(target, buffer) {
  8039. var bufferObj = buffer ? GL.buffers[buffer] : null;
  8040. GLctx.bindBuffer(target, bufferObj);
  8041. }
  8042. function _emscripten_glGetUniformfv(program, location, params) {
  8043. emscriptenWebGLGetUniform(program, location, params, 'Float');
  8044. }
  8045. function _glGetProgramiv(program, pname, p) {
  8046. if (!p) {
  8047. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8048. // if p == null, issue a GL error to notify user about it.
  8049. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8050. return;
  8051. }
  8052. if (program >= GL.counter) {
  8053. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8054. return;
  8055. }
  8056. var ptable = GL.programInfos[program];
  8057. if (!ptable) {
  8058. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8059. return;
  8060. }
  8061. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8062. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8063. if (log === null) log = '(unknown error)';
  8064. HEAP32[((p)>>2)]=log.length + 1;
  8065. } else if (pname == 0x8B87 /* GL_ACTIVE_UNIFORM_MAX_LENGTH */) {
  8066. HEAP32[((p)>>2)]=ptable.maxUniformLength;
  8067. } else if (pname == 0x8B8A /* GL_ACTIVE_ATTRIBUTE_MAX_LENGTH */) {
  8068. if (ptable.maxAttributeLength == -1) {
  8069. var program = GL.programs[program];
  8070. var numAttribs = GLctx.getProgramParameter(program, GLctx.ACTIVE_ATTRIBUTES);
  8071. ptable.maxAttributeLength = 0; // Spec says if there are no active attribs, 0 must be returned.
  8072. for (var i = 0; i < numAttribs; ++i) {
  8073. var activeAttrib = GLctx.getActiveAttrib(program, i);
  8074. ptable.maxAttributeLength = Math.max(ptable.maxAttributeLength, activeAttrib.name.length+1);
  8075. }
  8076. }
  8077. HEAP32[((p)>>2)]=ptable.maxAttributeLength;
  8078. } else if (pname == 0x8A35 /* GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */) {
  8079. if (ptable.maxUniformBlockNameLength == -1) {
  8080. var program = GL.programs[program];
  8081. var numBlocks = GLctx.getProgramParameter(program, GLctx.ACTIVE_UNIFORM_BLOCKS);
  8082. ptable.maxUniformBlockNameLength = 0;
  8083. for (var i = 0; i < numBlocks; ++i) {
  8084. var activeBlockName = GLctx.getActiveUniformBlockName(program, i);
  8085. ptable.maxUniformBlockNameLength = Math.max(ptable.maxUniformBlockNameLength, activeBlockName.length+1);
  8086. }
  8087. }
  8088. HEAP32[((p)>>2)]=ptable.maxUniformBlockNameLength;
  8089. } else {
  8090. HEAP32[((p)>>2)]=GLctx.getProgramParameter(GL.programs[program], pname);
  8091. }
  8092. }
  8093. function _glVertexAttribPointer(index, size, type, normalized, stride, ptr) {
  8094. GLctx.vertexAttribPointer(index, size, type, !!normalized, stride, ptr);
  8095. }
  8096. function _emscripten_exit_pointerlock() {
  8097. // Make sure no queued up calls will fire after this.
  8098. JSEvents.removeDeferredCalls(JSEvents.requestPointerLock);
  8099. if (document.exitPointerLock) {
  8100. document.exitPointerLock();
  8101. } else if (document.msExitPointerLock) {
  8102. document.msExitPointerLock();
  8103. } else if (document.mozExitPointerLock) {
  8104. document.mozExitPointerLock();
  8105. } else if (document.webkitExitPointerLock) {
  8106. document.webkitExitPointerLock();
  8107. } else {
  8108. return -1;
  8109. }
  8110. return 0;
  8111. }
  8112. function _emscripten_glDrawRangeElements() {
  8113. Module['printErr']('missing function: emscripten_glDrawRangeElements'); abort(-1);
  8114. }
  8115. function _glGetUniformLocation(program, name) {
  8116. name = Pointer_stringify(name);
  8117. var arrayOffset = 0;
  8118. // If user passed an array accessor "[index]", parse the array index off the accessor.
  8119. if (name.indexOf(']', name.length-1) !== -1) {
  8120. var ls = name.lastIndexOf('[');
  8121. var arrayIndex = name.slice(ls+1, -1);
  8122. if (arrayIndex.length > 0) {
  8123. arrayOffset = parseInt(arrayIndex);
  8124. if (arrayOffset < 0) {
  8125. return -1;
  8126. }
  8127. }
  8128. name = name.slice(0, ls);
  8129. }
  8130. var ptable = GL.programInfos[program];
  8131. if (!ptable) {
  8132. return -1;
  8133. }
  8134. var utable = ptable.uniforms;
  8135. var uniformInfo = utable[name]; // returns pair [ dimension_of_uniform_array, uniform_location ]
  8136. 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.
  8137. return uniformInfo[1]+arrayOffset;
  8138. } else {
  8139. return -1;
  8140. }
  8141. }
  8142. function _emscripten_glGetAttachedShaders(program, maxCount, count, shaders) {
  8143. var result = GLctx.getAttachedShaders(GL.programs[program]);
  8144. var len = result.length;
  8145. if (len > maxCount) {
  8146. len = maxCount;
  8147. }
  8148. HEAP32[((count)>>2)]=len;
  8149. for (var i = 0; i < len; ++i) {
  8150. var id = GL.shaders.indexOf(result[i]);
  8151. assert(id !== -1, 'shader not bound to local id');
  8152. HEAP32[(((shaders)+(i*4))>>2)]=id;
  8153. }
  8154. }
  8155. function _emscripten_glGenRenderbuffers(n, renderbuffers) {
  8156. for (var i = 0; i < n; i++) {
  8157. var renderbuffer = GLctx.createRenderbuffer();
  8158. if (!renderbuffer) {
  8159. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8160. while(i < n) HEAP32[(((renderbuffers)+(i++*4))>>2)]=0;
  8161. return;
  8162. }
  8163. var id = GL.getNewId(GL.renderbuffers);
  8164. renderbuffer.name = id;
  8165. GL.renderbuffers[id] = renderbuffer;
  8166. HEAP32[(((renderbuffers)+(i*4))>>2)]=id;
  8167. }
  8168. }
  8169. function _emscripten_glFrontFace(x0) { GLctx['frontFace'](x0) }
  8170. function _emscripten_glActiveTexture(x0) { GLctx['activeTexture'](x0) }
  8171. function _emscripten_glUniform1iv(location, count, value) {
  8172. GLctx.uniform1iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*4)>>2));
  8173. }
  8174. function _emscripten_glTexCoordPointer() {
  8175. Module['printErr']('missing function: emscripten_glTexCoordPointer'); abort(-1);
  8176. }
  8177. function _emscripten_glGetInfoLogARB() {
  8178. Module['printErr']('missing function: emscripten_glGetInfoLogARB'); abort(-1);
  8179. }
  8180. function __exit(status) {
  8181. // void _exit(int status);
  8182. // http://pubs.opengroup.org/onlinepubs/000095399/functions/exit.html
  8183. Module['exit'](status);
  8184. }function _exit(status) {
  8185. __exit(status);
  8186. }
  8187. function _emscripten_glRenderbufferStorage(x0, x1, x2, x3) { GLctx['renderbufferStorage'](x0, x1, x2, x3) }
  8188. function _emscripten_glCopyTexSubImage2D(x0, x1, x2, x3, x4, x5, x6, x7) { GLctx['copyTexSubImage2D'](x0, x1, x2, x3, x4, x5, x6, x7) }
  8189. function _glfwSetCursorPosCallback(winid, cbfun) {
  8190. GLFW.setCursorPosCallback(winid, cbfun);
  8191. }
  8192. function _glBindAttribLocation(program, index, name) {
  8193. name = Pointer_stringify(name);
  8194. GLctx.bindAttribLocation(GL.programs[program], index, name);
  8195. }
  8196. function _emscripten_glShaderBinary() {
  8197. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  8198. }
  8199. function _emscripten_glIsProgram(program) {
  8200. var program = GL.programs[program];
  8201. if (!program) return 0;
  8202. return GLctx.isProgram(program);
  8203. }
  8204. function _emscripten_glBlendColor(x0, x1, x2, x3) { GLctx['blendColor'](x0, x1, x2, x3) }
  8205. function _emscripten_glGetShaderiv(shader, pname, p) {
  8206. if (!p) {
  8207. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8208. // if p == null, issue a GL error to notify user about it.
  8209. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8210. return;
  8211. }
  8212. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8213. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  8214. if (log === null) log = '(unknown error)';
  8215. HEAP32[((p)>>2)]=log.length + 1;
  8216. } else {
  8217. HEAP32[((p)>>2)]=GLctx.getShaderParameter(GL.shaders[shader], pname);
  8218. }
  8219. }
  8220. function _emscripten_glUniformMatrix3fv(location, count, transpose, value) {
  8221. var view;
  8222. if (9*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8223. // avoid allocation when uploading few enough uniforms
  8224. view = GL.miniTempBufferViews[9*count-1];
  8225. for (var i = 0; i < 9*count; i += 9) {
  8226. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8227. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8228. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8229. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8230. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  8231. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  8232. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  8233. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  8234. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  8235. }
  8236. } else {
  8237. view = HEAPF32.subarray((value)>>2,(value+count*36)>>2);
  8238. }
  8239. GLctx.uniformMatrix3fv(GL.uniforms[location], !!transpose, view);
  8240. }
  8241. function _emscripten_glVertexAttrib2f(x0, x1, x2) { GLctx['vertexAttrib2f'](x0, x1, x2) }
  8242. function _emscripten_glUniform4fv(location, count, value) {
  8243. var view;
  8244. if (4*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8245. // avoid allocation when uploading few enough uniforms
  8246. view = GL.miniTempBufferViews[4*count-1];
  8247. for (var i = 0; i < 4*count; i += 4) {
  8248. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8249. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8250. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8251. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8252. }
  8253. } else {
  8254. view = HEAPF32.subarray((value)>>2,(value+count*16)>>2);
  8255. }
  8256. GLctx.uniform4fv(GL.uniforms[location], view);
  8257. }
  8258. function _glBufferSubData(target, offset, size, data) {
  8259. GLctx.bufferSubData(target, offset, HEAPU8.subarray(data, data+size));
  8260. }
  8261. function _emscripten_glGenFramebuffers(n, ids) {
  8262. for (var i = 0; i < n; ++i) {
  8263. var framebuffer = GLctx.createFramebuffer();
  8264. if (!framebuffer) {
  8265. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8266. while(i < n) HEAP32[(((ids)+(i++*4))>>2)]=0;
  8267. return;
  8268. }
  8269. var id = GL.getNewId(GL.framebuffers);
  8270. framebuffer.name = id;
  8271. GL.framebuffers[id] = framebuffer;
  8272. HEAP32[(((ids)+(i*4))>>2)]=id;
  8273. }
  8274. }
  8275. function _glGetShaderiv(shader, pname, p) {
  8276. if (!p) {
  8277. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8278. // if p == null, issue a GL error to notify user about it.
  8279. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8280. return;
  8281. }
  8282. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8283. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  8284. if (log === null) log = '(unknown error)';
  8285. HEAP32[((p)>>2)]=log.length + 1;
  8286. } else {
  8287. HEAP32[((p)>>2)]=GLctx.getShaderParameter(GL.shaders[shader], pname);
  8288. }
  8289. }
  8290. function _emscripten_glBlendEquationSeparate(x0, x1) { GLctx['blendEquationSeparate'](x0, x1) }
  8291. function _glfwSetWindowIconifyCallback(winid, cbfun) {
  8292. var win = GLFW.WindowFromId(winid);
  8293. if (!win) return;
  8294. win.windowIconifyFunc = cbfun;
  8295. }
  8296. function _emscripten_glUniform1i(location, v0) {
  8297. GLctx.uniform1i(GL.uniforms[location], v0);
  8298. }
  8299. function _emscripten_glGenTextures(n, textures) {
  8300. for (var i = 0; i < n; i++) {
  8301. var texture = GLctx.createTexture();
  8302. if (!texture) {
  8303. 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.
  8304. while(i < n) HEAP32[(((textures)+(i++*4))>>2)]=0;
  8305. return;
  8306. }
  8307. var id = GL.getNewId(GL.textures);
  8308. texture.name = id;
  8309. GL.textures[id] = texture;
  8310. HEAP32[(((textures)+(i*4))>>2)]=id;
  8311. }
  8312. }
  8313. function _emscripten_glVertexAttrib2fv(index, v) {
  8314. GLctx.vertexAttrib2f(index, HEAPF32[v>>2], HEAPF32[v+4>>2]);
  8315. }
  8316. function _emscripten_glGetActiveUniform(program, index, bufSize, length, size, type, name) {
  8317. program = GL.programs[program];
  8318. var info = GLctx.getActiveUniform(program, index);
  8319. if (!info) return; // If an error occurs, nothing will be written to length, size, type and name.
  8320. if (bufSize > 0 && name) {
  8321. var numBytesWrittenExclNull = stringToUTF8(info.name, name, bufSize);
  8322. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8323. } else {
  8324. if (length) HEAP32[((length)>>2)]=0;
  8325. }
  8326. if (size) HEAP32[((size)>>2)]=info.size;
  8327. if (type) HEAP32[((type)>>2)]=info.type;
  8328. }
  8329. Module["_roundf"] = _roundf;
  8330. function _emscripten_glDeleteObjectARB() {
  8331. Module['printErr']('missing function: emscripten_glDeleteObjectARB'); abort(-1);
  8332. }
  8333. function _emscripten_set_touchmove_callback(target, userData, useCapture, callbackfunc) {
  8334. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 24, "touchmove");
  8335. return 0;
  8336. }
  8337. function _emscripten_glUniform1f(location, v0) {
  8338. GLctx.uniform1f(GL.uniforms[location], v0);
  8339. }
  8340. function _emscripten_glVertexAttribPointer(index, size, type, normalized, stride, ptr) {
  8341. GLctx.vertexAttribPointer(index, size, type, !!normalized, stride, ptr);
  8342. }
  8343. function _glShaderSource(shader, count, string, length) {
  8344. var source = GL.getSource(shader, count, string, length);
  8345. GLctx.shaderSource(GL.shaders[shader], source);
  8346. }
  8347. function _emscripten_glDrawArrays(mode, first, count) {
  8348. GLctx.drawArrays(mode, first, count);
  8349. }
  8350. function _emscripten_glGenBuffers(n, buffers) {
  8351. for (var i = 0; i < n; i++) {
  8352. var buffer = GLctx.createBuffer();
  8353. if (!buffer) {
  8354. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8355. while(i < n) HEAP32[(((buffers)+(i++*4))>>2)]=0;
  8356. return;
  8357. }
  8358. var id = GL.getNewId(GL.buffers);
  8359. buffer.name = id;
  8360. GL.buffers[id] = buffer;
  8361. HEAP32[(((buffers)+(i*4))>>2)]=id;
  8362. }
  8363. }
  8364. function _emscripten_glClearDepth(x0) { GLctx['clearDepth'](x0) }
  8365. function _emscripten_set_keypress_callback(target, userData, useCapture, callbackfunc) {
  8366. JSEvents.registerKeyEventCallback(target, userData, useCapture, callbackfunc, 1, "keypress");
  8367. return 0;
  8368. }
  8369. function _glfwSetCharCallback(winid, cbfun) {
  8370. GLFW.setCharCallback(winid, cbfun);
  8371. }
  8372. function _emscripten_glGetUniformLocation(program, name) {
  8373. name = Pointer_stringify(name);
  8374. var arrayOffset = 0;
  8375. // If user passed an array accessor "[index]", parse the array index off the accessor.
  8376. if (name.indexOf(']', name.length-1) !== -1) {
  8377. var ls = name.lastIndexOf('[');
  8378. var arrayIndex = name.slice(ls+1, -1);
  8379. if (arrayIndex.length > 0) {
  8380. arrayOffset = parseInt(arrayIndex);
  8381. if (arrayOffset < 0) {
  8382. return -1;
  8383. }
  8384. }
  8385. name = name.slice(0, ls);
  8386. }
  8387. var ptable = GL.programInfos[program];
  8388. if (!ptable) {
  8389. return -1;
  8390. }
  8391. var utable = ptable.uniforms;
  8392. var uniformInfo = utable[name]; // returns pair [ dimension_of_uniform_array, uniform_location ]
  8393. 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.
  8394. return uniformInfo[1]+arrayOffset;
  8395. } else {
  8396. return -1;
  8397. }
  8398. }
  8399. function _glActiveTexture(x0) { GLctx['activeTexture'](x0) }
  8400. function _glBindBuffer(target, buffer) {
  8401. var bufferObj = buffer ? GL.buffers[buffer] : null;
  8402. GLctx.bindBuffer(target, bufferObj);
  8403. }
  8404. function _emscripten_glVertexAttrib4fv(index, v) {
  8405. GLctx.vertexAttrib4f(index, HEAPF32[v>>2], HEAPF32[v+4>>2], HEAPF32[v+8>>2], HEAPF32[v+12>>2]);
  8406. }
  8407. function _emscripten_glScissor(x0, x1, x2, x3) { GLctx['scissor'](x0, x1, x2, x3) }
  8408. function _glfwSetCursorEnterCallback(winid, cbfun) {
  8409. var win = GLFW.WindowFromId(winid);
  8410. if (!win) return;
  8411. win.cursorEnterFunc = cbfun;
  8412. }
  8413. Module["_bitshift64Lshr"] = _bitshift64Lshr;
  8414. function _glBufferData(target, size, data, usage) {
  8415. if (!data) {
  8416. GLctx.bufferData(target, size, usage);
  8417. } else {
  8418. GLctx.bufferData(target, HEAPU8.subarray(data, data+size), usage);
  8419. }
  8420. }
  8421. function _emscripten_glIsShader(shader) {
  8422. var s = GL.shaders[shader];
  8423. if (!s) return 0;
  8424. return GLctx.isShader(s);
  8425. }
  8426. function _emscripten_glDrawBuffers(n, bufs) {
  8427. var bufArray = GL.tempFixedLengthArray[n];
  8428. for (var i = 0; i < n; i++) {
  8429. bufArray[i] = HEAP32[(((bufs)+(i*4))>>2)];
  8430. }
  8431. GLctx['drawBuffers'](bufArray);
  8432. }
  8433. function _glGetFloatv(name_, p) {
  8434. emscriptenWebGLGet(name_, p, 'Float');
  8435. }
  8436. function _emscripten_glBindFramebuffer(target, framebuffer) {
  8437. GLctx.bindFramebuffer(target, framebuffer ? GL.framebuffers[framebuffer] : null);
  8438. }
  8439. function _emscripten_glBlendEquation(x0) { GLctx['blendEquation'](x0) }
  8440. function _emscripten_glBufferSubData(target, offset, size, data) {
  8441. GLctx.bufferSubData(target, offset, HEAPU8.subarray(data, data+size));
  8442. }
  8443. function _emscripten_glBufferData(target, size, data, usage) {
  8444. if (!data) {
  8445. GLctx.bufferData(target, size, usage);
  8446. } else {
  8447. GLctx.bufferData(target, HEAPU8.subarray(data, data+size), usage);
  8448. }
  8449. }
  8450. Module["_sbrk"] = _sbrk;
  8451. Module["_bitshift64Shl"] = _bitshift64Shl;
  8452. function _emscripten_glGetShaderSource(shader, bufSize, length, source) {
  8453. var result = GLctx.getShaderSource(GL.shaders[shader]);
  8454. if (!result) return; // If an error occurs, nothing will be written to length or source.
  8455. if (bufSize > 0 && source) {
  8456. var numBytesWrittenExclNull = stringToUTF8(result, source, bufSize);
  8457. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8458. } else {
  8459. if (length) HEAP32[((length)>>2)]=0;
  8460. }
  8461. }
  8462. Module["_llvm_bswap_i32"] = _llvm_bswap_i32;
  8463. function _glTexParameteri(x0, x1, x2) { GLctx['texParameteri'](x0, x1, x2) }
  8464. function _glfwSetKeyCallback(winid, cbfun) {
  8465. GLFW.setKeyCallback(winid, cbfun);
  8466. }
  8467. function _emscripten_set_gamepadconnected_callback(userData, useCapture, callbackfunc) {
  8468. if (!navigator.getGamepads && !navigator.webkitGetGamepads) return -1;
  8469. JSEvents.registerGamepadEventCallback(window, userData, useCapture, callbackfunc, 26, "gamepadconnected");
  8470. return 0;
  8471. }
  8472. function _emscripten_glGetFloatv(name_, p) {
  8473. emscriptenWebGLGet(name_, p, 'Float');
  8474. }
  8475. function _glTexImage2D(target, level, internalFormat, width, height, border, format, type, pixels) {
  8476. var pixelData = null;
  8477. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat);
  8478. GLctx.texImage2D(target, level, internalFormat, width, height, border, format, type, pixelData);
  8479. }
  8480. function ___assert_fail(condition, filename, line, func) {
  8481. ABORT = true;
  8482. throw 'Assertion failed: ' + Pointer_stringify(condition) + ', at: ' + [filename ? Pointer_stringify(filename) : 'unknown filename', line, func ? Pointer_stringify(func) : 'unknown function'] + ' at ' + stackTrace();
  8483. }
  8484. function _emscripten_glVertexAttribDivisor(index, divisor) {
  8485. GLctx['vertexAttribDivisor'](index, divisor);
  8486. }
  8487. function _emscripten_glDrawElementsInstanced(mode, count, type, indices, primcount) {
  8488. GLctx['drawElementsInstanced'](mode, count, type, indices, primcount);
  8489. }
  8490. function _emscripten_glDrawElements(mode, count, type, indices) {
  8491. GLctx.drawElements(mode, count, type, indices);
  8492. }
  8493. function _glfwSetMouseButtonCallback(winid, cbfun) {
  8494. GLFW.setMouseButtonCallback(winid, cbfun);
  8495. }
  8496. function _emscripten_glCreateProgram() {
  8497. var id = GL.getNewId(GL.programs);
  8498. var program = GLctx.createProgram();
  8499. program.name = id;
  8500. GL.programs[id] = program;
  8501. return id;
  8502. }
  8503. function _emscripten_glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data) {
  8504. GLctx['compressedTexImage2D'](target, level, internalFormat, width, height, border, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  8505. }
  8506. function _emscripten_glClearColor(x0, x1, x2, x3) { GLctx['clearColor'](x0, x1, x2, x3) }
  8507. function _emscripten_glBindVertexArray(vao) {
  8508. GLctx['bindVertexArray'](GL.vaos[vao]);
  8509. }
  8510. function _emscripten_glLoadMatrixf() {
  8511. Module['printErr']('missing function: emscripten_glLoadMatrixf'); abort(-1);
  8512. }
  8513. function _glDeleteShader(id) {
  8514. if (!id) return;
  8515. var shader = GL.shaders[id];
  8516. if (!shader) { // glDeleteShader actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  8517. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8518. return;
  8519. }
  8520. GLctx.deleteShader(shader);
  8521. GL.shaders[id] = null;
  8522. }
  8523. function _emscripten_glGetProgramiv(program, pname, p) {
  8524. if (!p) {
  8525. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8526. // if p == null, issue a GL error to notify user about it.
  8527. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8528. return;
  8529. }
  8530. if (program >= GL.counter) {
  8531. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8532. return;
  8533. }
  8534. var ptable = GL.programInfos[program];
  8535. if (!ptable) {
  8536. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8537. return;
  8538. }
  8539. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8540. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8541. if (log === null) log = '(unknown error)';
  8542. HEAP32[((p)>>2)]=log.length + 1;
  8543. } else if (pname == 0x8B87 /* GL_ACTIVE_UNIFORM_MAX_LENGTH */) {
  8544. HEAP32[((p)>>2)]=ptable.maxUniformLength;
  8545. } else if (pname == 0x8B8A /* GL_ACTIVE_ATTRIBUTE_MAX_LENGTH */) {
  8546. if (ptable.maxAttributeLength == -1) {
  8547. var program = GL.programs[program];
  8548. var numAttribs = GLctx.getProgramParameter(program, GLctx.ACTIVE_ATTRIBUTES);
  8549. ptable.maxAttributeLength = 0; // Spec says if there are no active attribs, 0 must be returned.
  8550. for (var i = 0; i < numAttribs; ++i) {
  8551. var activeAttrib = GLctx.getActiveAttrib(program, i);
  8552. ptable.maxAttributeLength = Math.max(ptable.maxAttributeLength, activeAttrib.name.length+1);
  8553. }
  8554. }
  8555. HEAP32[((p)>>2)]=ptable.maxAttributeLength;
  8556. } else if (pname == 0x8A35 /* GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */) {
  8557. if (ptable.maxUniformBlockNameLength == -1) {
  8558. var program = GL.programs[program];
  8559. var numBlocks = GLctx.getProgramParameter(program, GLctx.ACTIVE_UNIFORM_BLOCKS);
  8560. ptable.maxUniformBlockNameLength = 0;
  8561. for (var i = 0; i < numBlocks; ++i) {
  8562. var activeBlockName = GLctx.getActiveUniformBlockName(program, i);
  8563. ptable.maxUniformBlockNameLength = Math.max(ptable.maxUniformBlockNameLength, activeBlockName.length+1);
  8564. }
  8565. }
  8566. HEAP32[((p)>>2)]=ptable.maxUniformBlockNameLength;
  8567. } else {
  8568. HEAP32[((p)>>2)]=GLctx.getProgramParameter(GL.programs[program], pname);
  8569. }
  8570. }
  8571. function _emscripten_glGetProgramInfoLog(program, maxLength, length, infoLog) {
  8572. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8573. if (log === null) log = '(unknown error)';
  8574. if (maxLength > 0 && infoLog) {
  8575. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  8576. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8577. } else {
  8578. if (length) HEAP32[((length)>>2)]=0;
  8579. }
  8580. }
  8581. function _emscripten_glTexImage2D(target, level, internalFormat, width, height, border, format, type, pixels) {
  8582. var pixelData = null;
  8583. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat);
  8584. GLctx.texImage2D(target, level, internalFormat, width, height, border, format, type, pixelData);
  8585. }
  8586. function _glPixelStorei(pname, param) {
  8587. if (pname == 0x0D05 /* GL_PACK_ALIGNMENT */) {
  8588. GL.packAlignment = param;
  8589. } else if (pname == 0x0cf5 /* GL_UNPACK_ALIGNMENT */) {
  8590. GL.unpackAlignment = param;
  8591. }
  8592. GLctx.pixelStorei(pname, param);
  8593. }
  8594. function ___unlock() {}
  8595. function _emscripten_glColorPointer() {
  8596. Module['printErr']('missing function: emscripten_glColorPointer'); abort(-1);
  8597. }
  8598. function _glViewport(x0, x1, x2, x3) { GLctx['viewport'](x0, x1, x2, x3) }
  8599. function _glVertexAttrib2f(x0, x1, x2) { GLctx['vertexAttrib2f'](x0, x1, x2) }
  8600. function _glfwDestroyWindow(winid) {
  8601. return GLFW.destroyWindow(winid);
  8602. }
  8603. function _emscripten_glFlush() { GLctx['flush']() }
  8604. function _glfwSetErrorCallback(cbfun) {
  8605. GLFW.errorFunc = cbfun;
  8606. }
  8607. function _glfwSetCursorPos(winid, x, y) {
  8608. GLFW.setCursorPos(winid, x, y);
  8609. }
  8610. function _emscripten_glCreateShader(shaderType) {
  8611. var id = GL.getNewId(GL.shaders);
  8612. GL.shaders[id] = GLctx.createShader(shaderType);
  8613. return id;
  8614. }
  8615. function _glUniformMatrix4fv(location, count, transpose, value) {
  8616. var view;
  8617. if (16*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8618. // avoid allocation when uploading few enough uniforms
  8619. view = GL.miniTempBufferViews[16*count-1];
  8620. for (var i = 0; i < 16*count; i += 16) {
  8621. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8622. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8623. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8624. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8625. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  8626. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  8627. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  8628. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  8629. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  8630. view[i+9] = HEAPF32[(((value)+(4*i+36))>>2)];
  8631. view[i+10] = HEAPF32[(((value)+(4*i+40))>>2)];
  8632. view[i+11] = HEAPF32[(((value)+(4*i+44))>>2)];
  8633. view[i+12] = HEAPF32[(((value)+(4*i+48))>>2)];
  8634. view[i+13] = HEAPF32[(((value)+(4*i+52))>>2)];
  8635. view[i+14] = HEAPF32[(((value)+(4*i+56))>>2)];
  8636. view[i+15] = HEAPF32[(((value)+(4*i+60))>>2)];
  8637. }
  8638. } else {
  8639. view = HEAPF32.subarray((value)>>2,(value+count*64)>>2);
  8640. }
  8641. GLctx.uniformMatrix4fv(GL.uniforms[location], !!transpose, view);
  8642. }
  8643. function _emscripten_glValidateProgram(program) {
  8644. GLctx.validateProgram(GL.programs[program]);
  8645. }
  8646. function _emscripten_set_click_callback(target, userData, useCapture, callbackfunc) {
  8647. JSEvents.registerMouseEventCallback(target, userData, useCapture, callbackfunc, 4, "click");
  8648. return 0;
  8649. }
  8650. function _glFrontFace(x0) { GLctx['frontFace'](x0) }
  8651. function _emscripten_glColorMask(red, green, blue, alpha) {
  8652. GLctx.colorMask(!!red, !!green, !!blue, !!alpha);
  8653. }
  8654. function _emscripten_glPixelStorei(pname, param) {
  8655. if (pname == 0x0D05 /* GL_PACK_ALIGNMENT */) {
  8656. GL.packAlignment = param;
  8657. } else if (pname == 0x0cf5 /* GL_UNPACK_ALIGNMENT */) {
  8658. GL.unpackAlignment = param;
  8659. }
  8660. GLctx.pixelStorei(pname, param);
  8661. }
  8662. function _emscripten_glDeleteTextures(n, textures) {
  8663. for (var i = 0; i < n; i++) {
  8664. var id = HEAP32[(((textures)+(i*4))>>2)];
  8665. var texture = GL.textures[id];
  8666. if (!texture) continue; // GL spec: "glDeleteTextures silently ignores 0s and names that do not correspond to existing textures".
  8667. GLctx.deleteTexture(texture);
  8668. texture.name = 0;
  8669. GL.textures[id] = null;
  8670. }
  8671. }
  8672. function _glfwGetKey(winid, key) {
  8673. return GLFW.getKey(winid, key);
  8674. }
  8675. function _emscripten_glCompileShader(shader) {
  8676. GLctx.compileShader(GL.shaders[shader]);
  8677. }
  8678. function _emscripten_glGenVertexArrays(n, arrays) {
  8679. for (var i = 0; i < n; i++) {
  8680. var vao = GLctx['createVertexArray']();
  8681. if (!vao) {
  8682. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8683. while(i < n) HEAP32[(((arrays)+(i++*4))>>2)]=0;
  8684. return;
  8685. }
  8686. var id = GL.getNewId(GL.vaos);
  8687. vao.name = id;
  8688. GL.vaos[id] = vao;
  8689. HEAP32[(((arrays)+(i*4))>>2)]=id;
  8690. }
  8691. }
  8692. function _time(ptr) {
  8693. var ret = (Date.now()/1000)|0;
  8694. if (ptr) {
  8695. HEAP32[((ptr)>>2)]=ret;
  8696. }
  8697. return ret;
  8698. }
  8699. function _emscripten_glGetBooleanv(name_, p) {
  8700. emscriptenWebGLGet(name_, p, 'Boolean');
  8701. }
  8702. function ___syscall221(which, varargs) {SYSCALLS.varargs = varargs;
  8703. try {
  8704. // fcntl64
  8705. var stream = SYSCALLS.getStreamFromFD(), cmd = SYSCALLS.get();
  8706. switch (cmd) {
  8707. case 0: {
  8708. var arg = SYSCALLS.get();
  8709. if (arg < 0) {
  8710. return -ERRNO_CODES.EINVAL;
  8711. }
  8712. var newStream;
  8713. newStream = FS.open(stream.path, stream.flags, 0, arg);
  8714. return newStream.fd;
  8715. }
  8716. case 1:
  8717. case 2:
  8718. return 0; // FD_CLOEXEC makes no sense for a single process.
  8719. case 3:
  8720. return stream.flags;
  8721. case 4: {
  8722. var arg = SYSCALLS.get();
  8723. stream.flags |= arg;
  8724. return 0;
  8725. }
  8726. case 12:
  8727. case 12: {
  8728. var arg = SYSCALLS.get();
  8729. var offset = 0;
  8730. // We're always unlocked.
  8731. HEAP16[(((arg)+(offset))>>1)]=2;
  8732. return 0;
  8733. }
  8734. case 13:
  8735. case 14:
  8736. case 13:
  8737. case 14:
  8738. return 0; // Pretend that the locking is successful.
  8739. case 16:
  8740. case 8:
  8741. return -ERRNO_CODES.EINVAL; // These are for sockets. We don't have them fully implemented yet.
  8742. case 9:
  8743. // 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.
  8744. ___setErrNo(ERRNO_CODES.EINVAL);
  8745. return -1;
  8746. default: {
  8747. return -ERRNO_CODES.EINVAL;
  8748. }
  8749. }
  8750. } catch (e) {
  8751. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  8752. return -e.errno;
  8753. }
  8754. }
  8755. var GLctx; GL.init();
  8756. if (ENVIRONMENT_IS_NODE) {
  8757. _emscripten_get_now = function _emscripten_get_now_actual() {
  8758. var t = process['hrtime']();
  8759. return t[0] * 1e3 + t[1] / 1e6;
  8760. };
  8761. } else if (typeof dateNow !== 'undefined') {
  8762. _emscripten_get_now = dateNow;
  8763. } else if (typeof self === 'object' && self['performance'] && typeof self['performance']['now'] === 'function') {
  8764. _emscripten_get_now = function() { return self['performance']['now'](); };
  8765. } else if (typeof performance === 'object' && typeof performance['now'] === 'function') {
  8766. _emscripten_get_now = function() { return performance['now'](); };
  8767. } else {
  8768. _emscripten_get_now = Date.now;
  8769. };
  8770. 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) };
  8771. Module["requestFullscreen"] = function Module_requestFullscreen(lockPointer, resizeCanvas, vrDevice) { Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice) };
  8772. Module["requestAnimationFrame"] = function Module_requestAnimationFrame(func) { Browser.requestAnimationFrame(func) };
  8773. Module["setCanvasSize"] = function Module_setCanvasSize(width, height, noUpdates) { Browser.setCanvasSize(width, height, noUpdates) };
  8774. Module["pauseMainLoop"] = function Module_pauseMainLoop() { Browser.mainLoop.pause() };
  8775. Module["resumeMainLoop"] = function Module_resumeMainLoop() { Browser.mainLoop.resume() };
  8776. Module["getUserMedia"] = function Module_getUserMedia() { Browser.getUserMedia() }
  8777. Module["createContext"] = function Module_createContext(canvas, useWebGL, setInModule, webGLContextAttributes) { return Browser.createContext(canvas, useWebGL, setInModule, webGLContextAttributes) };
  8778. 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;;
  8779. __ATINIT__.unshift(function() { TTY.init() });__ATEXIT__.push(function() { TTY.shutdown() });;
  8780. if (ENVIRONMENT_IS_NODE) { var fs = require("fs"); var NODEJS_PATH = require("path"); NODEFS.staticInit(); };
  8781. JSEvents.staticInit();;
  8782. DYNAMICTOP_PTR = allocate(1, "i32", ALLOC_STATIC);
  8783. STACK_BASE = STACKTOP = Runtime.alignMemory(STATICTOP);
  8784. STACK_MAX = STACK_BASE + TOTAL_STACK;
  8785. DYNAMIC_BASE = Runtime.alignMemory(STACK_MAX);
  8786. HEAP32[DYNAMICTOP_PTR>>2] = DYNAMIC_BASE;
  8787. staticSealed = true; // seal the static portion of memory
  8788. assert(DYNAMIC_BASE < TOTAL_MEMORY, "TOTAL_MEMORY not big enough for stack");
  8789. 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) }
  8790. 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) }
  8791. 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) }
  8792. 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) }
  8793. 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) }
  8794. 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) }
  8795. 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) }
  8796. 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) }
  8797. 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) }
  8798. 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) }
  8799. 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) }
  8800. 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) }
  8801. 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) }
  8802. 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) }
  8803. 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) }
  8804. 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) }
  8805. 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) }
  8806. 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) }
  8807. 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) }
  8808. 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) }
  8809. 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) }
  8810. 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) }
  8811. 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) }
  8812. 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) }
  8813. function invoke_viiiii(index,a1,a2,a3,a4,a5) {
  8814. try {
  8815. Module["dynCall_viiiii"](index,a1,a2,a3,a4,a5);
  8816. } catch(e) {
  8817. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8818. Module["setThrew"](1, 0);
  8819. }
  8820. }
  8821. function invoke_vd(index,a1) {
  8822. try {
  8823. Module["dynCall_vd"](index,a1);
  8824. } catch(e) {
  8825. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8826. Module["setThrew"](1, 0);
  8827. }
  8828. }
  8829. function invoke_vid(index,a1,a2) {
  8830. try {
  8831. Module["dynCall_vid"](index,a1,a2);
  8832. } catch(e) {
  8833. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8834. Module["setThrew"](1, 0);
  8835. }
  8836. }
  8837. function invoke_vi(index,a1) {
  8838. try {
  8839. Module["dynCall_vi"](index,a1);
  8840. } catch(e) {
  8841. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8842. Module["setThrew"](1, 0);
  8843. }
  8844. }
  8845. function invoke_vii(index,a1,a2) {
  8846. try {
  8847. Module["dynCall_vii"](index,a1,a2);
  8848. } catch(e) {
  8849. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8850. Module["setThrew"](1, 0);
  8851. }
  8852. }
  8853. function invoke_ii(index,a1) {
  8854. try {
  8855. return Module["dynCall_ii"](index,a1);
  8856. } catch(e) {
  8857. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8858. Module["setThrew"](1, 0);
  8859. }
  8860. }
  8861. function invoke_viddd(index,a1,a2,a3,a4) {
  8862. try {
  8863. Module["dynCall_viddd"](index,a1,a2,a3,a4);
  8864. } catch(e) {
  8865. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8866. Module["setThrew"](1, 0);
  8867. }
  8868. }
  8869. function invoke_vidd(index,a1,a2,a3) {
  8870. try {
  8871. Module["dynCall_vidd"](index,a1,a2,a3);
  8872. } catch(e) {
  8873. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8874. Module["setThrew"](1, 0);
  8875. }
  8876. }
  8877. function invoke_iiii(index,a1,a2,a3) {
  8878. try {
  8879. return Module["dynCall_iiii"](index,a1,a2,a3);
  8880. } catch(e) {
  8881. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8882. Module["setThrew"](1, 0);
  8883. }
  8884. }
  8885. function invoke_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8) {
  8886. try {
  8887. Module["dynCall_viiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8);
  8888. } catch(e) {
  8889. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8890. Module["setThrew"](1, 0);
  8891. }
  8892. }
  8893. function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6) {
  8894. try {
  8895. Module["dynCall_viiiiii"](index,a1,a2,a3,a4,a5,a6);
  8896. } catch(e) {
  8897. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8898. Module["setThrew"](1, 0);
  8899. }
  8900. }
  8901. function invoke_viii(index,a1,a2,a3) {
  8902. try {
  8903. Module["dynCall_viii"](index,a1,a2,a3);
  8904. } catch(e) {
  8905. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8906. Module["setThrew"](1, 0);
  8907. }
  8908. }
  8909. function invoke_vidddd(index,a1,a2,a3,a4,a5) {
  8910. try {
  8911. Module["dynCall_vidddd"](index,a1,a2,a3,a4,a5);
  8912. } catch(e) {
  8913. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8914. Module["setThrew"](1, 0);
  8915. }
  8916. }
  8917. function invoke_vdi(index,a1,a2) {
  8918. try {
  8919. Module["dynCall_vdi"](index,a1,a2);
  8920. } catch(e) {
  8921. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8922. Module["setThrew"](1, 0);
  8923. }
  8924. }
  8925. function invoke_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7) {
  8926. try {
  8927. Module["dynCall_viiiiiii"](index,a1,a2,a3,a4,a5,a6,a7);
  8928. } catch(e) {
  8929. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8930. Module["setThrew"](1, 0);
  8931. }
  8932. }
  8933. function invoke_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9) {
  8934. try {
  8935. Module["dynCall_viiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9);
  8936. } catch(e) {
  8937. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8938. Module["setThrew"](1, 0);
  8939. }
  8940. }
  8941. function invoke_iii(index,a1,a2) {
  8942. try {
  8943. return Module["dynCall_iii"](index,a1,a2);
  8944. } catch(e) {
  8945. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8946. Module["setThrew"](1, 0);
  8947. }
  8948. }
  8949. function invoke_i(index) {
  8950. try {
  8951. return Module["dynCall_i"](index);
  8952. } catch(e) {
  8953. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8954. Module["setThrew"](1, 0);
  8955. }
  8956. }
  8957. function invoke_vdddddd(index,a1,a2,a3,a4,a5,a6) {
  8958. try {
  8959. Module["dynCall_vdddddd"](index,a1,a2,a3,a4,a5,a6);
  8960. } catch(e) {
  8961. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8962. Module["setThrew"](1, 0);
  8963. }
  8964. }
  8965. function invoke_vdddd(index,a1,a2,a3,a4) {
  8966. try {
  8967. Module["dynCall_vdddd"](index,a1,a2,a3,a4);
  8968. } catch(e) {
  8969. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8970. Module["setThrew"](1, 0);
  8971. }
  8972. }
  8973. function invoke_vdd(index,a1,a2) {
  8974. try {
  8975. Module["dynCall_vdd"](index,a1,a2);
  8976. } catch(e) {
  8977. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8978. Module["setThrew"](1, 0);
  8979. }
  8980. }
  8981. function invoke_v(index) {
  8982. try {
  8983. Module["dynCall_v"](index);
  8984. } catch(e) {
  8985. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8986. Module["setThrew"](1, 0);
  8987. }
  8988. }
  8989. function invoke_viid(index,a1,a2,a3) {
  8990. try {
  8991. Module["dynCall_viid"](index,a1,a2,a3);
  8992. } catch(e) {
  8993. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8994. Module["setThrew"](1, 0);
  8995. }
  8996. }
  8997. function invoke_viiii(index,a1,a2,a3,a4) {
  8998. try {
  8999. Module["dynCall_viiii"](index,a1,a2,a3,a4);
  9000. } catch(e) {
  9001. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9002. Module["setThrew"](1, 0);
  9003. }
  9004. }
  9005. Module.asmGlobalArg = { "Math": Math, "Int8Array": Int8Array, "Int16Array": Int16Array, "Int32Array": Int32Array, "Uint8Array": Uint8Array, "Uint16Array": Uint16Array, "Uint32Array": Uint32Array, "Float32Array": Float32Array, "Float64Array": Float64Array, "NaN": NaN, "Infinity": Infinity };
  9006. Module.asmLibraryArg = { "abort": abort, "assert": assert, "enlargeMemory": enlargeMemory, "getTotalMemory": getTotalMemory, "abortOnCannotGrowMemory": abortOnCannotGrowMemory, "abortStackOverflow": abortStackOverflow, "nullFunc_viiiii": nullFunc_viiiii, "nullFunc_vd": nullFunc_vd, "nullFunc_vid": nullFunc_vid, "nullFunc_vi": nullFunc_vi, "nullFunc_vii": nullFunc_vii, "nullFunc_ii": nullFunc_ii, "nullFunc_viddd": nullFunc_viddd, "nullFunc_vidd": nullFunc_vidd, "nullFunc_iiii": nullFunc_iiii, "nullFunc_viiiiiiii": nullFunc_viiiiiiii, "nullFunc_viiiiii": nullFunc_viiiiii, "nullFunc_viii": nullFunc_viii, "nullFunc_vidddd": nullFunc_vidddd, "nullFunc_vdi": nullFunc_vdi, "nullFunc_viiiiiii": nullFunc_viiiiiii, "nullFunc_viiiiiiiii": nullFunc_viiiiiiiii, "nullFunc_iii": nullFunc_iii, "nullFunc_i": nullFunc_i, "nullFunc_vdddddd": nullFunc_vdddddd, "nullFunc_vdddd": nullFunc_vdddd, "nullFunc_vdd": nullFunc_vdd, "nullFunc_v": nullFunc_v, "nullFunc_viid": nullFunc_viid, "nullFunc_viiii": nullFunc_viiii, "invoke_viiiii": invoke_viiiii, "invoke_vd": invoke_vd, "invoke_vid": invoke_vid, "invoke_vi": invoke_vi, "invoke_vii": invoke_vii, "invoke_ii": invoke_ii, "invoke_viddd": invoke_viddd, "invoke_vidd": invoke_vidd, "invoke_iiii": invoke_iiii, "invoke_viiiiiiii": invoke_viiiiiiii, "invoke_viiiiii": invoke_viiiiii, "invoke_viii": invoke_viii, "invoke_vidddd": invoke_vidddd, "invoke_vdi": invoke_vdi, "invoke_viiiiiii": invoke_viiiiiii, "invoke_viiiiiiiii": invoke_viiiiiiiii, "invoke_iii": invoke_iii, "invoke_i": invoke_i, "invoke_vdddddd": invoke_vdddddd, "invoke_vdddd": invoke_vdddd, "invoke_vdd": invoke_vdd, "invoke_v": invoke_v, "invoke_viid": invoke_viid, "invoke_viiii": invoke_viiii, "_emscripten_glGetTexParameterfv": _emscripten_glGetTexParameterfv, "_glUseProgram": _glUseProgram, "_emscripten_glShaderSource": _emscripten_glShaderSource, "_glfwCreateWindow": _glfwCreateWindow, "_emscripten_glReleaseShaderCompiler": _emscripten_glReleaseShaderCompiler, "_emscripten_glBlendFuncSeparate": _emscripten_glBlendFuncSeparate, "_emscripten_glVertexAttribPointer": _emscripten_glVertexAttribPointer, "_emscripten_glGetIntegerv": _emscripten_glGetIntegerv, "_emscripten_glCullFace": _emscripten_glCullFace, "_emscripten_glIsProgram": _emscripten_glIsProgram, "_emscripten_glStencilMaskSeparate": _emscripten_glStencilMaskSeparate, "_emscripten_glViewport": _emscripten_glViewport, "_emscripten_glFrontFace": _emscripten_glFrontFace, "___assert_fail": ___assert_fail, "_glDeleteProgram": _glDeleteProgram, "_emscripten_glUniform3fv": _emscripten_glUniform3fv, "_emscripten_glPolygonOffset": _emscripten_glPolygonOffset, "_emscripten_glUseProgram": _emscripten_glUseProgram, "_glVertexAttrib4f": _glVertexAttrib4f, "_glBindBuffer": _glBindBuffer, "_emscripten_glDepthFunc": _emscripten_glDepthFunc, "_glGetShaderInfoLog": _glGetShaderInfoLog, "_emscripten_set_fullscreenchange_callback": _emscripten_set_fullscreenchange_callback, "_emscripten_set_touchmove_callback": _emscripten_set_touchmove_callback, "_emscripten_set_main_loop_timing": _emscripten_set_main_loop_timing, "_glDisable": _glDisable, "_glBlendFunc": _glBlendFunc, "_emscripten_glDisableVertexAttribArray": _emscripten_glDisableVertexAttribArray, "_glGetAttribLocation": _glGetAttribLocation, "_glDisableVertexAttribArray": _glDisableVertexAttribArray, "_glCreateShader": _glCreateShader, "_emscripten_glReadPixels": _emscripten_glReadPixels, "_emscripten_glSampleCoverage": _emscripten_glSampleCoverage, "_emscripten_glVertexPointer": _emscripten_glVertexPointer, "_emscripten_set_touchstart_callback": _emscripten_set_touchstart_callback, "emscriptenWebGLComputeImageSize": emscriptenWebGLComputeImageSize, "_emscripten_glGetBooleanv": _emscripten_glGetBooleanv, "_emscripten_glGetShaderSource": _emscripten_glGetShaderSource, "_glUniform4f": _glUniform4f, "_llvm_stacksave": _llvm_stacksave, "_emscripten_glUniform1i": _emscripten_glUniform1i, "_emscripten_glStencilFuncSeparate": _emscripten_glStencilFuncSeparate, "_emscripten_glLoadMatrixf": _emscripten_glLoadMatrixf, "_emscripten_glGenBuffers": _emscripten_glGenBuffers, "_emscripten_glDeleteObjectARB": _emscripten_glDeleteObjectARB, "_glfwSetWindowSizeCallback": _glfwSetWindowSizeCallback, "_emscripten_glGetShaderPrecisionFormat": _emscripten_glGetShaderPrecisionFormat, "_glfwInit": _glfwInit, "_glGenBuffers": _glGenBuffers, "_glShaderSource": _glShaderSource, "_emscripten_glGetString": _emscripten_glGetString, "_emscripten_glIsFramebuffer": _emscripten_glIsFramebuffer, "_glVertexAttrib3f": _glVertexAttrib3f, "_emscripten_glIsEnabled": _emscripten_glIsEnabled, "_emscripten_glScissor": _emscripten_glScissor, "_emscripten_glVertexAttrib4fv": _emscripten_glVertexAttrib4fv, "_emscripten_glFramebufferTexture2D": _emscripten_glFramebufferTexture2D, "_emscripten_glTexParameteriv": _emscripten_glTexParameteriv, "___syscall145": ___syscall145, "_emscripten_glBindProgramARB": _emscripten_glBindProgramARB, "_emscripten_glStencilOpSeparate": _emscripten_glStencilOpSeparate, "_emscripten_glHint": _emscripten_glHint, "_emscripten_glFramebufferRenderbuffer": _emscripten_glFramebufferRenderbuffer, "___syscall140": ___syscall140, "_glfwSetErrorCallback": _glfwSetErrorCallback, "_glfwDefaultWindowHints": _glfwDefaultWindowHints, "_glfwDestroyWindow": _glfwDestroyWindow, "___syscall146": ___syscall146, "_emscripten_glGetActiveAttrib": _emscripten_glGetActiveAttrib, "_emscripten_glAttachShader": _emscripten_glAttachShader, "_glVertexAttribPointer": _glVertexAttribPointer, "_emscripten_glUniform2i": _emscripten_glUniform2i, "_emscripten_glUniform2f": _emscripten_glUniform2f, "_emscripten_glTexParameterfv": _emscripten_glTexParameterfv, "_emscripten_glUniformMatrix2fv": _emscripten_glUniformMatrix2fv, "_glGetProgramInfoLog": _glGetProgramInfoLog, "_glfwSetScrollCallback": _glfwSetScrollCallback, "_emscripten_glTexParameterf": _emscripten_glTexParameterf, "_emscripten_glGetAttachedShaders": _emscripten_glGetAttachedShaders, "_emscripten_glGenTextures": _emscripten_glGenTextures, "_emscripten_glTexParameteri": _emscripten_glTexParameteri, "_llvm_stackrestore": _llvm_stackrestore, "_glfwMakeContextCurrent": _glfwMakeContextCurrent, "_emscripten_glClear": _emscripten_glClear, "_glDrawElements": _glDrawElements, "_glBufferSubData": _glBufferSubData, "_emscripten_glValidateProgram": _emscripten_glValidateProgram, "_emscripten_glVertexAttrib2fv": _emscripten_glVertexAttrib2fv, "_glViewport": _glViewport, "_emscripten_glUniform4iv": _emscripten_glUniform4iv, "_emscripten_glGetTexParameteriv": _emscripten_glGetTexParameteriv, "___setErrNo": ___setErrNo, "_eglGetProcAddress": _eglGetProcAddress, "_emscripten_glBindAttribLocation": _emscripten_glBindAttribLocation, "_glDeleteTextures": _glDeleteTextures, "_glDepthFunc": _glDepthFunc, "_emscripten_glClientActiveTexture": _emscripten_glClientActiveTexture, "_emscripten_glVertexAttrib2f": _emscripten_glVertexAttrib2f, "_glUniform3f": _glUniform3f, "_emscripten_glFlush": _emscripten_glFlush, "_emscripten_glCheckFramebufferStatus": _emscripten_glCheckFramebufferStatus, "_emscripten_glGenerateMipmap": _emscripten_glGenerateMipmap, "_emscripten_glGetError": _emscripten_glGetError, "_emscripten_glClearDepthf": _emscripten_glClearDepthf, "_emscripten_glBufferData": _emscripten_glBufferData, "_emscripten_glUniform3i": _emscripten_glUniform3i, "_emscripten_glRotatef": _emscripten_glRotatef, "_emscripten_glDeleteShader": _emscripten_glDeleteShader, "_glEnable": _glEnable, "_glVertexAttrib2f": _glVertexAttrib2f, "_glGenTextures": _glGenTextures, "_emscripten_glMatrixMode": _emscripten_glMatrixMode, "_glGetString": _glGetString, "_emscripten_glClearStencil": _emscripten_glClearStencil, "_emscripten_glGetUniformLocation": _emscripten_glGetUniformLocation, "emscriptenWebGLGet": emscriptenWebGLGet, "_emscripten_glEnableVertexAttribArray": _emscripten_glEnableVertexAttribArray, "_emscripten_glGetAttribLocation": _emscripten_glGetAttribLocation, "_emscripten_get_now": _emscripten_get_now, "_emscripten_glNormalPointer": _emscripten_glNormalPointer, "_glAttachShader": _glAttachShader, "_emscripten_glTexCoordPointer": _emscripten_glTexCoordPointer, "_emscripten_glEnable": _emscripten_glEnable, "_glCreateProgram": _glCreateProgram, "_glUniformMatrix4fv": _glUniformMatrix4fv, "_emscripten_glClearDepth": _emscripten_glClearDepth, "___lock": ___lock, "emscriptenWebGLGetTexPixelData": emscriptenWebGLGetTexPixelData, "___syscall6": ___syscall6, "___syscall5": ___syscall5, "_emscripten_glIsBuffer": _emscripten_glIsBuffer, "_emscripten_glVertexAttrib3f": _emscripten_glVertexAttrib3f, "_time": _time, "_emscripten_glVertexAttrib1f": _emscripten_glVertexAttrib1f, "_emscripten_glGetFramebufferAttachmentParameteriv": _emscripten_glGetFramebufferAttachmentParameteriv, "_emscripten_glBlendEquationSeparate": _emscripten_glBlendEquationSeparate, "_exit": _exit, "_emscripten_glEnableClientState": _emscripten_glEnableClientState, "_emscripten_glUniform4i": _emscripten_glUniform4i, "_emscripten_glDrawRangeElements": _emscripten_glDrawRangeElements, "_glCullFace": _glCullFace, "_emscripten_glGetPointerv": _emscripten_glGetPointerv, "_emscripten_set_keypress_callback": _emscripten_set_keypress_callback, "__emscripten_sample_gamepad_data": __emscripten_sample_gamepad_data, "_emscripten_get_gamepad_status": _emscripten_get_gamepad_status, "_emscripten_glUniform4f": _emscripten_glUniform4f, "_emscripten_glUniform2fv": _emscripten_glUniform2fv, "_glfwGetVideoModes": _glfwGetVideoModes, "_emscripten_set_click_callback": _emscripten_set_click_callback, "_emscripten_glFinish": _emscripten_glFinish, "_emscripten_glShaderBinary": _emscripten_glShaderBinary, "_emscripten_glDrawElements": _emscripten_glDrawElements, "_emscripten_glBlendFunc": _emscripten_glBlendFunc, "_emscripten_get_num_gamepads": _emscripten_get_num_gamepads, "___syscall221": ___syscall221, "_glCompressedTexImage2D": _glCompressedTexImage2D, "_emscripten_glUniform1iv": _emscripten_glUniform1iv, "_emscripten_glGetVertexAttribPointerv": _emscripten_glGetVertexAttribPointerv, "_glClearDepthf": _glClearDepthf, "_emscripten_glCompressedTexSubImage2D": _emscripten_glCompressedTexSubImage2D, "emscriptenWebGLGetUniform": emscriptenWebGLGetUniform, "_emscripten_glGenRenderbuffers": _emscripten_glGenRenderbuffers, "_emscripten_glDeleteVertexArrays": _emscripten_glDeleteVertexArrays, "_glfwSetWindowShouldClose": _glfwSetWindowShouldClose, "_emscripten_glUniform1fv": _emscripten_glUniform1fv, "_emscripten_glGetActiveUniform": _emscripten_glGetActiveUniform, "_glBindTexture": _glBindTexture, "_emscripten_glUniform3iv": _emscripten_glUniform3iv, "_emscripten_glUniform2iv": _emscripten_glUniform2iv, "_glfwSetCursorPos": _glfwSetCursorPos, "_glfwSetCharCallback": _glfwSetCharCallback, "emscriptenWebGLGetVertexAttrib": emscriptenWebGLGetVertexAttrib, "_glGetFloatv": _glGetFloatv, "_emscripten_glDeleteProgram": _emscripten_glDeleteProgram, "_emscripten_glDeleteRenderbuffers": _emscripten_glDeleteRenderbuffers, "_emscripten_glDrawElementsInstanced": _emscripten_glDrawElementsInstanced, "_emscripten_glVertexAttrib4f": _emscripten_glVertexAttrib4f, "_glDrawArrays": _glDrawArrays, "_emscripten_glTexSubImage2D": _emscripten_glTexSubImage2D, "_emscripten_memcpy_big": _emscripten_memcpy_big, "_emscripten_glPixelStorei": _emscripten_glPixelStorei, "_glCompileShader": _glCompileShader, "_emscripten_get_pointerlock_status": _emscripten_get_pointerlock_status, "_glfwGetMouseButton": _glfwGetMouseButton, "_emscripten_glColorPointer": _emscripten_glColorPointer, "_emscripten_glGetBufferParameteriv": _emscripten_glGetBufferParameteriv, "_glActiveTexture": _glActiveTexture, "_emscripten_request_pointerlock": _emscripten_request_pointerlock, "_emscripten_set_gamepaddisconnected_callback": _emscripten_set_gamepaddisconnected_callback, "_emscripten_asm_const_iii": _emscripten_asm_const_iii, "_emscripten_glDepthMask": _emscripten_glDepthMask, "_glfwSetWindowIconifyCallback": _glfwSetWindowIconifyCallback, "_emscripten_glDrawBuffers": _emscripten_glDrawBuffers, "_glfwTerminate": _glfwTerminate, "_glFrontFace": _glFrontFace, "_emscripten_glGetObjectParameterivARB": _emscripten_glGetObjectParameterivARB, "_emscripten_exit_pointerlock": _emscripten_exit_pointerlock, "_glfwSwapInterval": _glfwSwapInterval, "_glUniform1i": _glUniform1i, "_glEnableVertexAttribArray": _glEnableVertexAttribArray, "_emscripten_glStencilFunc": _emscripten_glStencilFunc, "_abort": _abort, "_emscripten_glGetUniformiv": _emscripten_glGetUniformiv, "_glDeleteBuffers": _glDeleteBuffers, "_glBufferData": _glBufferData, "_glTexImage2D": _glTexImage2D, "_emscripten_glGetShaderiv": _emscripten_glGetShaderiv, "_glfwSetKeyCallback": _glfwSetKeyCallback, "_emscripten_glGenFramebuffers": _emscripten_glGenFramebuffers, "_glUniform1f": _glUniform1f, "_emscripten_glUniformMatrix4fv": _emscripten_glUniformMatrix4fv, "_emscripten_glLoadIdentity": _emscripten_glLoadIdentity, "_glDeleteShader": _glDeleteShader, "_emscripten_glUniform1f": _emscripten_glUniform1f, "_glGetProgramiv": _glGetProgramiv, "_emscripten_glBindFramebuffer": _emscripten_glBindFramebuffer, "_emscripten_glIsRenderbuffer": _emscripten_glIsRenderbuffer, "_glfwGetTime": _glfwGetTime, "_emscripten_glRenderbufferStorage": _emscripten_glRenderbufferStorage, "_emscripten_set_gamepadconnected_callback": _emscripten_set_gamepadconnected_callback, "_emscripten_glBlendColor": _emscripten_glBlendColor, "_emscripten_glGetVertexAttribiv": _emscripten_glGetVertexAttribiv, "_emscripten_glBindVertexArray": _emscripten_glBindVertexArray, "_emscripten_glDrawArraysInstanced": _emscripten_glDrawArraysInstanced, "_emscripten_set_touchcancel_callback": _emscripten_set_touchcancel_callback, "_emscripten_glCreateShader": _emscripten_glCreateShader, "_emscripten_glStencilMask": _emscripten_glStencilMask, "_emscripten_glDeleteTextures": _emscripten_glDeleteTextures, "_glfwGetKey": _glfwGetKey, "_glfwGetPrimaryMonitor": _glfwGetPrimaryMonitor, "_glLinkProgram": _glLinkProgram, "_emscripten_glVertexAttribDivisor": _emscripten_glVertexAttribDivisor, "_emscripten_set_touchend_callback": _emscripten_set_touchend_callback, "_emscripten_glGetUniformfv": _emscripten_glGetUniformfv, "_emscripten_glGetVertexAttribfv": _emscripten_glGetVertexAttribfv, "_emscripten_glGetRenderbufferParameteriv": _emscripten_glGetRenderbufferParameteriv, "_emscripten_glDeleteFramebuffers": _emscripten_glDeleteFramebuffers, "_glGetShaderiv": _glGetShaderiv, "_emscripten_glVertexAttrib3fv": _emscripten_glVertexAttrib3fv, "_glGetUniformLocation": _glGetUniformLocation, "_emscripten_glGetInfoLogARB": _emscripten_glGetInfoLogARB, "_emscripten_glCompileShader": _emscripten_glCompileShader, "_glClear": _glClear, "_emscripten_glFrustum": _emscripten_glFrustum, "_emscripten_glDisable": _emscripten_glDisable, "_emscripten_glDepthRangef": _emscripten_glDepthRangef, "__exit": __exit, "_emscripten_glLineWidth": _emscripten_glLineWidth, "_emscripten_glUniform3f": _emscripten_glUniform3f, "_emscripten_glGetShaderInfoLog": _emscripten_glGetShaderInfoLog, "_emscripten_glStencilOp": _emscripten_glStencilOp, "_glBindAttribLocation": _glBindAttribLocation, "_glPixelStorei": _glPixelStorei, "_emscripten_glColorMask": _emscripten_glColorMask, "_emscripten_glLinkProgram": _emscripten_glLinkProgram, "_emscripten_glBlendEquation": _emscripten_glBlendEquation, "_emscripten_glIsTexture": _emscripten_glIsTexture, "_emscripten_glGetProgramiv": _emscripten_glGetProgramiv, "_emscripten_glVertexAttrib1fv": _emscripten_glVertexAttrib1fv, "_emscripten_glUniformMatrix3fv": _emscripten_glUniformMatrix3fv, "_emscripten_glBindTexture": _emscripten_glBindTexture, "_glfwSetMouseButtonCallback": _glfwSetMouseButtonCallback, "_glfwGetCursorPos": _glfwGetCursorPos, "_emscripten_glActiveTexture": _emscripten_glActiveTexture, "_emscripten_glDeleteBuffers": _emscripten_glDeleteBuffers, "___syscall54": ___syscall54, "___unlock": ___unlock, "_emscripten_glBufferSubData": _emscripten_glBufferSubData, "_glfwSwapBuffers": _glfwSwapBuffers, "_emscripten_glDepthRange": _emscripten_glDepthRange, "_emscripten_set_main_loop": _emscripten_set_main_loop, "_emscripten_glBindRenderbuffer": _emscripten_glBindRenderbuffer, "_emscripten_glGetProgramInfoLog": _emscripten_glGetProgramInfoLog, "_glfwWindowHint": _glfwWindowHint, "_emscripten_glIsShader": _emscripten_glIsShader, "_emscripten_glUniform4fv": _emscripten_glUniform4fv, "_emscripten_glGenVertexArrays": _emscripten_glGenVertexArrays, "_emscripten_glDrawArrays": _emscripten_glDrawArrays, "_emscripten_glCompressedTexImage2D": _emscripten_glCompressedTexImage2D, "_emscripten_glClearColor": _emscripten_glClearColor, "_emscripten_glCreateProgram": _emscripten_glCreateProgram, "_emscripten_glCopyTexSubImage2D": _emscripten_glCopyTexSubImage2D, "_glTexParameteri": _glTexParameteri, "_emscripten_glBindBuffer": _emscripten_glBindBuffer, "_emscripten_glGetFloatv": _emscripten_glGetFloatv, "_emscripten_glDetachShader": _emscripten_glDetachShader, "_glClearColor": _glClearColor, "_glfwSetCursorPosCallback": _glfwSetCursorPosCallback, "_glfwSetCursorEnterCallback": _glfwSetCursorEnterCallback, "_emscripten_glCopyTexImage2D": _emscripten_glCopyTexImage2D, "_emscripten_glTexImage2D": _emscripten_glTexImage2D, "DYNAMICTOP_PTR": DYNAMICTOP_PTR, "tempDoublePtr": tempDoublePtr, "ABORT": ABORT, "STACKTOP": STACKTOP, "STACK_MAX": STACK_MAX, "cttz_i8": cttz_i8 };
  9007. // EMSCRIPTEN_START_ASM
  9008. var asm = (function(global, env, buffer) {
  9009. 'use asm';
  9010. var HEAP8 = new global.Int8Array(buffer);
  9011. var HEAP16 = new global.Int16Array(buffer);
  9012. var HEAP32 = new global.Int32Array(buffer);
  9013. var HEAPU8 = new global.Uint8Array(buffer);
  9014. var HEAPU16 = new global.Uint16Array(buffer);
  9015. var HEAPU32 = new global.Uint32Array(buffer);
  9016. var HEAPF32 = new global.Float32Array(buffer);
  9017. var HEAPF64 = new global.Float64Array(buffer);
  9018. var DYNAMICTOP_PTR=env.DYNAMICTOP_PTR|0;
  9019. var tempDoublePtr=env.tempDoublePtr|0;
  9020. var ABORT=env.ABORT|0;
  9021. var STACKTOP=env.STACKTOP|0;
  9022. var STACK_MAX=env.STACK_MAX|0;
  9023. var cttz_i8=env.cttz_i8|0;
  9024. var __THREW__ = 0;
  9025. var threwValue = 0;
  9026. var setjmpId = 0;
  9027. var undef = 0;
  9028. var nan = global.NaN, inf = global.Infinity;
  9029. var tempInt = 0, tempBigInt = 0, tempBigIntP = 0, tempBigIntS = 0, tempBigIntR = 0.0, tempBigIntI = 0, tempBigIntD = 0, tempValue = 0, tempDouble = 0.0;
  9030. var tempRet0 = 0;
  9031. var Math_floor=global.Math.floor;
  9032. var Math_abs=global.Math.abs;
  9033. var Math_sqrt=global.Math.sqrt;
  9034. var Math_pow=global.Math.pow;
  9035. var Math_cos=global.Math.cos;
  9036. var Math_sin=global.Math.sin;
  9037. var Math_tan=global.Math.tan;
  9038. var Math_acos=global.Math.acos;
  9039. var Math_asin=global.Math.asin;
  9040. var Math_atan=global.Math.atan;
  9041. var Math_atan2=global.Math.atan2;
  9042. var Math_exp=global.Math.exp;
  9043. var Math_log=global.Math.log;
  9044. var Math_ceil=global.Math.ceil;
  9045. var Math_imul=global.Math.imul;
  9046. var Math_min=global.Math.min;
  9047. var Math_max=global.Math.max;
  9048. var Math_clz32=global.Math.clz32;
  9049. var abort=env.abort;
  9050. var assert=env.assert;
  9051. var enlargeMemory=env.enlargeMemory;
  9052. var getTotalMemory=env.getTotalMemory;
  9053. var abortOnCannotGrowMemory=env.abortOnCannotGrowMemory;
  9054. var abortStackOverflow=env.abortStackOverflow;
  9055. var nullFunc_viiiii=env.nullFunc_viiiii;
  9056. var nullFunc_vd=env.nullFunc_vd;
  9057. var nullFunc_vid=env.nullFunc_vid;
  9058. var nullFunc_vi=env.nullFunc_vi;
  9059. var nullFunc_vii=env.nullFunc_vii;
  9060. var nullFunc_ii=env.nullFunc_ii;
  9061. var nullFunc_viddd=env.nullFunc_viddd;
  9062. var nullFunc_vidd=env.nullFunc_vidd;
  9063. var nullFunc_iiii=env.nullFunc_iiii;
  9064. var nullFunc_viiiiiiii=env.nullFunc_viiiiiiii;
  9065. var nullFunc_viiiiii=env.nullFunc_viiiiii;
  9066. var nullFunc_viii=env.nullFunc_viii;
  9067. var nullFunc_vidddd=env.nullFunc_vidddd;
  9068. var nullFunc_vdi=env.nullFunc_vdi;
  9069. var nullFunc_viiiiiii=env.nullFunc_viiiiiii;
  9070. var nullFunc_viiiiiiiii=env.nullFunc_viiiiiiiii;
  9071. var nullFunc_iii=env.nullFunc_iii;
  9072. var nullFunc_i=env.nullFunc_i;
  9073. var nullFunc_vdddddd=env.nullFunc_vdddddd;
  9074. var nullFunc_vdddd=env.nullFunc_vdddd;
  9075. var nullFunc_vdd=env.nullFunc_vdd;
  9076. var nullFunc_v=env.nullFunc_v;
  9077. var nullFunc_viid=env.nullFunc_viid;
  9078. var nullFunc_viiii=env.nullFunc_viiii;
  9079. var invoke_viiiii=env.invoke_viiiii;
  9080. var invoke_vd=env.invoke_vd;
  9081. var invoke_vid=env.invoke_vid;
  9082. var invoke_vi=env.invoke_vi;
  9083. var invoke_vii=env.invoke_vii;
  9084. var invoke_ii=env.invoke_ii;
  9085. var invoke_viddd=env.invoke_viddd;
  9086. var invoke_vidd=env.invoke_vidd;
  9087. var invoke_iiii=env.invoke_iiii;
  9088. var invoke_viiiiiiii=env.invoke_viiiiiiii;
  9089. var invoke_viiiiii=env.invoke_viiiiii;
  9090. var invoke_viii=env.invoke_viii;
  9091. var invoke_vidddd=env.invoke_vidddd;
  9092. var invoke_vdi=env.invoke_vdi;
  9093. var invoke_viiiiiii=env.invoke_viiiiiii;
  9094. var invoke_viiiiiiiii=env.invoke_viiiiiiiii;
  9095. var invoke_iii=env.invoke_iii;
  9096. var invoke_i=env.invoke_i;
  9097. var invoke_vdddddd=env.invoke_vdddddd;
  9098. var invoke_vdddd=env.invoke_vdddd;
  9099. var invoke_vdd=env.invoke_vdd;
  9100. var invoke_v=env.invoke_v;
  9101. var invoke_viid=env.invoke_viid;
  9102. var invoke_viiii=env.invoke_viiii;
  9103. var _emscripten_glGetTexParameterfv=env._emscripten_glGetTexParameterfv;
  9104. var _glUseProgram=env._glUseProgram;
  9105. var _emscripten_glShaderSource=env._emscripten_glShaderSource;
  9106. var _glfwCreateWindow=env._glfwCreateWindow;
  9107. var _emscripten_glReleaseShaderCompiler=env._emscripten_glReleaseShaderCompiler;
  9108. var _emscripten_glBlendFuncSeparate=env._emscripten_glBlendFuncSeparate;
  9109. var _emscripten_glVertexAttribPointer=env._emscripten_glVertexAttribPointer;
  9110. var _emscripten_glGetIntegerv=env._emscripten_glGetIntegerv;
  9111. var _emscripten_glCullFace=env._emscripten_glCullFace;
  9112. var _emscripten_glIsProgram=env._emscripten_glIsProgram;
  9113. var _emscripten_glStencilMaskSeparate=env._emscripten_glStencilMaskSeparate;
  9114. var _emscripten_glViewport=env._emscripten_glViewport;
  9115. var _emscripten_glFrontFace=env._emscripten_glFrontFace;
  9116. var ___assert_fail=env.___assert_fail;
  9117. var _glDeleteProgram=env._glDeleteProgram;
  9118. var _emscripten_glUniform3fv=env._emscripten_glUniform3fv;
  9119. var _emscripten_glPolygonOffset=env._emscripten_glPolygonOffset;
  9120. var _emscripten_glUseProgram=env._emscripten_glUseProgram;
  9121. var _glVertexAttrib4f=env._glVertexAttrib4f;
  9122. var _glBindBuffer=env._glBindBuffer;
  9123. var _emscripten_glDepthFunc=env._emscripten_glDepthFunc;
  9124. var _glGetShaderInfoLog=env._glGetShaderInfoLog;
  9125. var _emscripten_set_fullscreenchange_callback=env._emscripten_set_fullscreenchange_callback;
  9126. var _emscripten_set_touchmove_callback=env._emscripten_set_touchmove_callback;
  9127. var _emscripten_set_main_loop_timing=env._emscripten_set_main_loop_timing;
  9128. var _glDisable=env._glDisable;
  9129. var _glBlendFunc=env._glBlendFunc;
  9130. var _emscripten_glDisableVertexAttribArray=env._emscripten_glDisableVertexAttribArray;
  9131. var _glGetAttribLocation=env._glGetAttribLocation;
  9132. var _glDisableVertexAttribArray=env._glDisableVertexAttribArray;
  9133. var _glCreateShader=env._glCreateShader;
  9134. var _emscripten_glReadPixels=env._emscripten_glReadPixels;
  9135. var _emscripten_glSampleCoverage=env._emscripten_glSampleCoverage;
  9136. var _emscripten_glVertexPointer=env._emscripten_glVertexPointer;
  9137. var _emscripten_set_touchstart_callback=env._emscripten_set_touchstart_callback;
  9138. var emscriptenWebGLComputeImageSize=env.emscriptenWebGLComputeImageSize;
  9139. var _emscripten_glGetBooleanv=env._emscripten_glGetBooleanv;
  9140. var _emscripten_glGetShaderSource=env._emscripten_glGetShaderSource;
  9141. var _glUniform4f=env._glUniform4f;
  9142. var _llvm_stacksave=env._llvm_stacksave;
  9143. var _emscripten_glUniform1i=env._emscripten_glUniform1i;
  9144. var _emscripten_glStencilFuncSeparate=env._emscripten_glStencilFuncSeparate;
  9145. var _emscripten_glLoadMatrixf=env._emscripten_glLoadMatrixf;
  9146. var _emscripten_glGenBuffers=env._emscripten_glGenBuffers;
  9147. var _emscripten_glDeleteObjectARB=env._emscripten_glDeleteObjectARB;
  9148. var _glfwSetWindowSizeCallback=env._glfwSetWindowSizeCallback;
  9149. var _emscripten_glGetShaderPrecisionFormat=env._emscripten_glGetShaderPrecisionFormat;
  9150. var _glfwInit=env._glfwInit;
  9151. var _glGenBuffers=env._glGenBuffers;
  9152. var _glShaderSource=env._glShaderSource;
  9153. var _emscripten_glGetString=env._emscripten_glGetString;
  9154. var _emscripten_glIsFramebuffer=env._emscripten_glIsFramebuffer;
  9155. var _glVertexAttrib3f=env._glVertexAttrib3f;
  9156. var _emscripten_glIsEnabled=env._emscripten_glIsEnabled;
  9157. var _emscripten_glScissor=env._emscripten_glScissor;
  9158. var _emscripten_glVertexAttrib4fv=env._emscripten_glVertexAttrib4fv;
  9159. var _emscripten_glFramebufferTexture2D=env._emscripten_glFramebufferTexture2D;
  9160. var _emscripten_glTexParameteriv=env._emscripten_glTexParameteriv;
  9161. var ___syscall145=env.___syscall145;
  9162. var _emscripten_glBindProgramARB=env._emscripten_glBindProgramARB;
  9163. var _emscripten_glStencilOpSeparate=env._emscripten_glStencilOpSeparate;
  9164. var _emscripten_glHint=env._emscripten_glHint;
  9165. var _emscripten_glFramebufferRenderbuffer=env._emscripten_glFramebufferRenderbuffer;
  9166. var ___syscall140=env.___syscall140;
  9167. var _glfwSetErrorCallback=env._glfwSetErrorCallback;
  9168. var _glfwDefaultWindowHints=env._glfwDefaultWindowHints;
  9169. var _glfwDestroyWindow=env._glfwDestroyWindow;
  9170. var ___syscall146=env.___syscall146;
  9171. var _emscripten_glGetActiveAttrib=env._emscripten_glGetActiveAttrib;
  9172. var _emscripten_glAttachShader=env._emscripten_glAttachShader;
  9173. var _glVertexAttribPointer=env._glVertexAttribPointer;
  9174. var _emscripten_glUniform2i=env._emscripten_glUniform2i;
  9175. var _emscripten_glUniform2f=env._emscripten_glUniform2f;
  9176. var _emscripten_glTexParameterfv=env._emscripten_glTexParameterfv;
  9177. var _emscripten_glUniformMatrix2fv=env._emscripten_glUniformMatrix2fv;
  9178. var _glGetProgramInfoLog=env._glGetProgramInfoLog;
  9179. var _glfwSetScrollCallback=env._glfwSetScrollCallback;
  9180. var _emscripten_glTexParameterf=env._emscripten_glTexParameterf;
  9181. var _emscripten_glGetAttachedShaders=env._emscripten_glGetAttachedShaders;
  9182. var _emscripten_glGenTextures=env._emscripten_glGenTextures;
  9183. var _emscripten_glTexParameteri=env._emscripten_glTexParameteri;
  9184. var _llvm_stackrestore=env._llvm_stackrestore;
  9185. var _glfwMakeContextCurrent=env._glfwMakeContextCurrent;
  9186. var _emscripten_glClear=env._emscripten_glClear;
  9187. var _glDrawElements=env._glDrawElements;
  9188. var _glBufferSubData=env._glBufferSubData;
  9189. var _emscripten_glValidateProgram=env._emscripten_glValidateProgram;
  9190. var _emscripten_glVertexAttrib2fv=env._emscripten_glVertexAttrib2fv;
  9191. var _glViewport=env._glViewport;
  9192. var _emscripten_glUniform4iv=env._emscripten_glUniform4iv;
  9193. var _emscripten_glGetTexParameteriv=env._emscripten_glGetTexParameteriv;
  9194. var ___setErrNo=env.___setErrNo;
  9195. var _eglGetProcAddress=env._eglGetProcAddress;
  9196. var _emscripten_glBindAttribLocation=env._emscripten_glBindAttribLocation;
  9197. var _glDeleteTextures=env._glDeleteTextures;
  9198. var _glDepthFunc=env._glDepthFunc;
  9199. var _emscripten_glClientActiveTexture=env._emscripten_glClientActiveTexture;
  9200. var _emscripten_glVertexAttrib2f=env._emscripten_glVertexAttrib2f;
  9201. var _glUniform3f=env._glUniform3f;
  9202. var _emscripten_glFlush=env._emscripten_glFlush;
  9203. var _emscripten_glCheckFramebufferStatus=env._emscripten_glCheckFramebufferStatus;
  9204. var _emscripten_glGenerateMipmap=env._emscripten_glGenerateMipmap;
  9205. var _emscripten_glGetError=env._emscripten_glGetError;
  9206. var _emscripten_glClearDepthf=env._emscripten_glClearDepthf;
  9207. var _emscripten_glBufferData=env._emscripten_glBufferData;
  9208. var _emscripten_glUniform3i=env._emscripten_glUniform3i;
  9209. var _emscripten_glRotatef=env._emscripten_glRotatef;
  9210. var _emscripten_glDeleteShader=env._emscripten_glDeleteShader;
  9211. var _glEnable=env._glEnable;
  9212. var _glVertexAttrib2f=env._glVertexAttrib2f;
  9213. var _glGenTextures=env._glGenTextures;
  9214. var _emscripten_glMatrixMode=env._emscripten_glMatrixMode;
  9215. var _glGetString=env._glGetString;
  9216. var _emscripten_glClearStencil=env._emscripten_glClearStencil;
  9217. var _emscripten_glGetUniformLocation=env._emscripten_glGetUniformLocation;
  9218. var emscriptenWebGLGet=env.emscriptenWebGLGet;
  9219. var _emscripten_glEnableVertexAttribArray=env._emscripten_glEnableVertexAttribArray;
  9220. var _emscripten_glGetAttribLocation=env._emscripten_glGetAttribLocation;
  9221. var _emscripten_get_now=env._emscripten_get_now;
  9222. var _emscripten_glNormalPointer=env._emscripten_glNormalPointer;
  9223. var _glAttachShader=env._glAttachShader;
  9224. var _emscripten_glTexCoordPointer=env._emscripten_glTexCoordPointer;
  9225. var _emscripten_glEnable=env._emscripten_glEnable;
  9226. var _glCreateProgram=env._glCreateProgram;
  9227. var _glUniformMatrix4fv=env._glUniformMatrix4fv;
  9228. var _emscripten_glClearDepth=env._emscripten_glClearDepth;
  9229. var ___lock=env.___lock;
  9230. var emscriptenWebGLGetTexPixelData=env.emscriptenWebGLGetTexPixelData;
  9231. var ___syscall6=env.___syscall6;
  9232. var ___syscall5=env.___syscall5;
  9233. var _emscripten_glIsBuffer=env._emscripten_glIsBuffer;
  9234. var _emscripten_glVertexAttrib3f=env._emscripten_glVertexAttrib3f;
  9235. var _time=env._time;
  9236. var _emscripten_glVertexAttrib1f=env._emscripten_glVertexAttrib1f;
  9237. var _emscripten_glGetFramebufferAttachmentParameteriv=env._emscripten_glGetFramebufferAttachmentParameteriv;
  9238. var _emscripten_glBlendEquationSeparate=env._emscripten_glBlendEquationSeparate;
  9239. var _exit=env._exit;
  9240. var _emscripten_glEnableClientState=env._emscripten_glEnableClientState;
  9241. var _emscripten_glUniform4i=env._emscripten_glUniform4i;
  9242. var _emscripten_glDrawRangeElements=env._emscripten_glDrawRangeElements;
  9243. var _glCullFace=env._glCullFace;
  9244. var _emscripten_glGetPointerv=env._emscripten_glGetPointerv;
  9245. var _emscripten_set_keypress_callback=env._emscripten_set_keypress_callback;
  9246. var __emscripten_sample_gamepad_data=env.__emscripten_sample_gamepad_data;
  9247. var _emscripten_get_gamepad_status=env._emscripten_get_gamepad_status;
  9248. var _emscripten_glUniform4f=env._emscripten_glUniform4f;
  9249. var _emscripten_glUniform2fv=env._emscripten_glUniform2fv;
  9250. var _glfwGetVideoModes=env._glfwGetVideoModes;
  9251. var _emscripten_set_click_callback=env._emscripten_set_click_callback;
  9252. var _emscripten_glFinish=env._emscripten_glFinish;
  9253. var _emscripten_glShaderBinary=env._emscripten_glShaderBinary;
  9254. var _emscripten_glDrawElements=env._emscripten_glDrawElements;
  9255. var _emscripten_glBlendFunc=env._emscripten_glBlendFunc;
  9256. var _emscripten_get_num_gamepads=env._emscripten_get_num_gamepads;
  9257. var ___syscall221=env.___syscall221;
  9258. var _glCompressedTexImage2D=env._glCompressedTexImage2D;
  9259. var _emscripten_glUniform1iv=env._emscripten_glUniform1iv;
  9260. var _emscripten_glGetVertexAttribPointerv=env._emscripten_glGetVertexAttribPointerv;
  9261. var _glClearDepthf=env._glClearDepthf;
  9262. var _emscripten_glCompressedTexSubImage2D=env._emscripten_glCompressedTexSubImage2D;
  9263. var emscriptenWebGLGetUniform=env.emscriptenWebGLGetUniform;
  9264. var _emscripten_glGenRenderbuffers=env._emscripten_glGenRenderbuffers;
  9265. var _emscripten_glDeleteVertexArrays=env._emscripten_glDeleteVertexArrays;
  9266. var _glfwSetWindowShouldClose=env._glfwSetWindowShouldClose;
  9267. var _emscripten_glUniform1fv=env._emscripten_glUniform1fv;
  9268. var _emscripten_glGetActiveUniform=env._emscripten_glGetActiveUniform;
  9269. var _glBindTexture=env._glBindTexture;
  9270. var _emscripten_glUniform3iv=env._emscripten_glUniform3iv;
  9271. var _emscripten_glUniform2iv=env._emscripten_glUniform2iv;
  9272. var _glfwSetCursorPos=env._glfwSetCursorPos;
  9273. var _glfwSetCharCallback=env._glfwSetCharCallback;
  9274. var emscriptenWebGLGetVertexAttrib=env.emscriptenWebGLGetVertexAttrib;
  9275. var _glGetFloatv=env._glGetFloatv;
  9276. var _emscripten_glDeleteProgram=env._emscripten_glDeleteProgram;
  9277. var _emscripten_glDeleteRenderbuffers=env._emscripten_glDeleteRenderbuffers;
  9278. var _emscripten_glDrawElementsInstanced=env._emscripten_glDrawElementsInstanced;
  9279. var _emscripten_glVertexAttrib4f=env._emscripten_glVertexAttrib4f;
  9280. var _glDrawArrays=env._glDrawArrays;
  9281. var _emscripten_glTexSubImage2D=env._emscripten_glTexSubImage2D;
  9282. var _emscripten_memcpy_big=env._emscripten_memcpy_big;
  9283. var _emscripten_glPixelStorei=env._emscripten_glPixelStorei;
  9284. var _glCompileShader=env._glCompileShader;
  9285. var _emscripten_get_pointerlock_status=env._emscripten_get_pointerlock_status;
  9286. var _glfwGetMouseButton=env._glfwGetMouseButton;
  9287. var _emscripten_glColorPointer=env._emscripten_glColorPointer;
  9288. var _emscripten_glGetBufferParameteriv=env._emscripten_glGetBufferParameteriv;
  9289. var _glActiveTexture=env._glActiveTexture;
  9290. var _emscripten_request_pointerlock=env._emscripten_request_pointerlock;
  9291. var _emscripten_set_gamepaddisconnected_callback=env._emscripten_set_gamepaddisconnected_callback;
  9292. var _emscripten_asm_const_iii=env._emscripten_asm_const_iii;
  9293. var _emscripten_glDepthMask=env._emscripten_glDepthMask;
  9294. var _glfwSetWindowIconifyCallback=env._glfwSetWindowIconifyCallback;
  9295. var _emscripten_glDrawBuffers=env._emscripten_glDrawBuffers;
  9296. var _glfwTerminate=env._glfwTerminate;
  9297. var _glFrontFace=env._glFrontFace;
  9298. var _emscripten_glGetObjectParameterivARB=env._emscripten_glGetObjectParameterivARB;
  9299. var _emscripten_exit_pointerlock=env._emscripten_exit_pointerlock;
  9300. var _glfwSwapInterval=env._glfwSwapInterval;
  9301. var _glUniform1i=env._glUniform1i;
  9302. var _glEnableVertexAttribArray=env._glEnableVertexAttribArray;
  9303. var _emscripten_glStencilFunc=env._emscripten_glStencilFunc;
  9304. var _abort=env._abort;
  9305. var _emscripten_glGetUniformiv=env._emscripten_glGetUniformiv;
  9306. var _glDeleteBuffers=env._glDeleteBuffers;
  9307. var _glBufferData=env._glBufferData;
  9308. var _glTexImage2D=env._glTexImage2D;
  9309. var _emscripten_glGetShaderiv=env._emscripten_glGetShaderiv;
  9310. var _glfwSetKeyCallback=env._glfwSetKeyCallback;
  9311. var _emscripten_glGenFramebuffers=env._emscripten_glGenFramebuffers;
  9312. var _glUniform1f=env._glUniform1f;
  9313. var _emscripten_glUniformMatrix4fv=env._emscripten_glUniformMatrix4fv;
  9314. var _emscripten_glLoadIdentity=env._emscripten_glLoadIdentity;
  9315. var _glDeleteShader=env._glDeleteShader;
  9316. var _emscripten_glUniform1f=env._emscripten_glUniform1f;
  9317. var _glGetProgramiv=env._glGetProgramiv;
  9318. var _emscripten_glBindFramebuffer=env._emscripten_glBindFramebuffer;
  9319. var _emscripten_glIsRenderbuffer=env._emscripten_glIsRenderbuffer;
  9320. var _glfwGetTime=env._glfwGetTime;
  9321. var _emscripten_glRenderbufferStorage=env._emscripten_glRenderbufferStorage;
  9322. var _emscripten_set_gamepadconnected_callback=env._emscripten_set_gamepadconnected_callback;
  9323. var _emscripten_glBlendColor=env._emscripten_glBlendColor;
  9324. var _emscripten_glGetVertexAttribiv=env._emscripten_glGetVertexAttribiv;
  9325. var _emscripten_glBindVertexArray=env._emscripten_glBindVertexArray;
  9326. var _emscripten_glDrawArraysInstanced=env._emscripten_glDrawArraysInstanced;
  9327. var _emscripten_set_touchcancel_callback=env._emscripten_set_touchcancel_callback;
  9328. var _emscripten_glCreateShader=env._emscripten_glCreateShader;
  9329. var _emscripten_glStencilMask=env._emscripten_glStencilMask;
  9330. var _emscripten_glDeleteTextures=env._emscripten_glDeleteTextures;
  9331. var _glfwGetKey=env._glfwGetKey;
  9332. var _glfwGetPrimaryMonitor=env._glfwGetPrimaryMonitor;
  9333. var _glLinkProgram=env._glLinkProgram;
  9334. var _emscripten_glVertexAttribDivisor=env._emscripten_glVertexAttribDivisor;
  9335. var _emscripten_set_touchend_callback=env._emscripten_set_touchend_callback;
  9336. var _emscripten_glGetUniformfv=env._emscripten_glGetUniformfv;
  9337. var _emscripten_glGetVertexAttribfv=env._emscripten_glGetVertexAttribfv;
  9338. var _emscripten_glGetRenderbufferParameteriv=env._emscripten_glGetRenderbufferParameteriv;
  9339. var _emscripten_glDeleteFramebuffers=env._emscripten_glDeleteFramebuffers;
  9340. var _glGetShaderiv=env._glGetShaderiv;
  9341. var _emscripten_glVertexAttrib3fv=env._emscripten_glVertexAttrib3fv;
  9342. var _glGetUniformLocation=env._glGetUniformLocation;
  9343. var _emscripten_glGetInfoLogARB=env._emscripten_glGetInfoLogARB;
  9344. var _emscripten_glCompileShader=env._emscripten_glCompileShader;
  9345. var _glClear=env._glClear;
  9346. var _emscripten_glFrustum=env._emscripten_glFrustum;
  9347. var _emscripten_glDisable=env._emscripten_glDisable;
  9348. var _emscripten_glDepthRangef=env._emscripten_glDepthRangef;
  9349. var __exit=env.__exit;
  9350. var _emscripten_glLineWidth=env._emscripten_glLineWidth;
  9351. var _emscripten_glUniform3f=env._emscripten_glUniform3f;
  9352. var _emscripten_glGetShaderInfoLog=env._emscripten_glGetShaderInfoLog;
  9353. var _emscripten_glStencilOp=env._emscripten_glStencilOp;
  9354. var _glBindAttribLocation=env._glBindAttribLocation;
  9355. var _glPixelStorei=env._glPixelStorei;
  9356. var _emscripten_glColorMask=env._emscripten_glColorMask;
  9357. var _emscripten_glLinkProgram=env._emscripten_glLinkProgram;
  9358. var _emscripten_glBlendEquation=env._emscripten_glBlendEquation;
  9359. var _emscripten_glIsTexture=env._emscripten_glIsTexture;
  9360. var _emscripten_glGetProgramiv=env._emscripten_glGetProgramiv;
  9361. var _emscripten_glVertexAttrib1fv=env._emscripten_glVertexAttrib1fv;
  9362. var _emscripten_glUniformMatrix3fv=env._emscripten_glUniformMatrix3fv;
  9363. var _emscripten_glBindTexture=env._emscripten_glBindTexture;
  9364. var _glfwSetMouseButtonCallback=env._glfwSetMouseButtonCallback;
  9365. var _glfwGetCursorPos=env._glfwGetCursorPos;
  9366. var _emscripten_glActiveTexture=env._emscripten_glActiveTexture;
  9367. var _emscripten_glDeleteBuffers=env._emscripten_glDeleteBuffers;
  9368. var ___syscall54=env.___syscall54;
  9369. var ___unlock=env.___unlock;
  9370. var _emscripten_glBufferSubData=env._emscripten_glBufferSubData;
  9371. var _glfwSwapBuffers=env._glfwSwapBuffers;
  9372. var _emscripten_glDepthRange=env._emscripten_glDepthRange;
  9373. var _emscripten_set_main_loop=env._emscripten_set_main_loop;
  9374. var _emscripten_glBindRenderbuffer=env._emscripten_glBindRenderbuffer;
  9375. var _emscripten_glGetProgramInfoLog=env._emscripten_glGetProgramInfoLog;
  9376. var _glfwWindowHint=env._glfwWindowHint;
  9377. var _emscripten_glIsShader=env._emscripten_glIsShader;
  9378. var _emscripten_glUniform4fv=env._emscripten_glUniform4fv;
  9379. var _emscripten_glGenVertexArrays=env._emscripten_glGenVertexArrays;
  9380. var _emscripten_glDrawArrays=env._emscripten_glDrawArrays;
  9381. var _emscripten_glCompressedTexImage2D=env._emscripten_glCompressedTexImage2D;
  9382. var _emscripten_glClearColor=env._emscripten_glClearColor;
  9383. var _emscripten_glCreateProgram=env._emscripten_glCreateProgram;
  9384. var _emscripten_glCopyTexSubImage2D=env._emscripten_glCopyTexSubImage2D;
  9385. var _glTexParameteri=env._glTexParameteri;
  9386. var _emscripten_glBindBuffer=env._emscripten_glBindBuffer;
  9387. var _emscripten_glGetFloatv=env._emscripten_glGetFloatv;
  9388. var _emscripten_glDetachShader=env._emscripten_glDetachShader;
  9389. var _glClearColor=env._glClearColor;
  9390. var _glfwSetCursorPosCallback=env._glfwSetCursorPosCallback;
  9391. var _glfwSetCursorEnterCallback=env._glfwSetCursorEnterCallback;
  9392. var _emscripten_glCopyTexImage2D=env._emscripten_glCopyTexImage2D;
  9393. var _emscripten_glTexImage2D=env._emscripten_glTexImage2D;
  9394. var tempFloat = 0.0;
  9395. // EMSCRIPTEN_START_FUNCS
  9396. function stackAlloc(size) {
  9397. size = size|0;
  9398. var ret = 0;
  9399. ret = STACKTOP;
  9400. STACKTOP = (STACKTOP + size)|0;
  9401. STACKTOP = (STACKTOP + 15)&-16;
  9402. if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(size|0);
  9403. return ret|0;
  9404. }
  9405. function stackSave() {
  9406. return STACKTOP|0;
  9407. }
  9408. function stackRestore(top) {
  9409. top = top|0;
  9410. STACKTOP = top;
  9411. }
  9412. function establishStackSpace(stackBase, stackMax) {
  9413. stackBase = stackBase|0;
  9414. stackMax = stackMax|0;
  9415. STACKTOP = stackBase;
  9416. STACK_MAX = stackMax;
  9417. }
  9418. function setThrew(threw, value) {
  9419. threw = threw|0;
  9420. value = value|0;
  9421. if ((__THREW__|0) == 0) {
  9422. __THREW__ = threw;
  9423. threwValue = value;
  9424. }
  9425. }
  9426. function setTempRet0(value) {
  9427. value = value|0;
  9428. tempRet0 = value;
  9429. }
  9430. function getTempRet0() {
  9431. return tempRet0|0;
  9432. }
  9433. function _main() {
  9434. var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $map$byval_copy = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  9435. sp = STACKTOP;
  9436. STACKTOP = STACKTOP + 592|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(592|0);
  9437. $map$byval_copy = sp + 328|0;
  9438. $0 = sp + 20|0;
  9439. $1 = sp + 304|0;
  9440. $2 = sp + 40|0;
  9441. $3 = sp;
  9442. $4 = HEAP32[2]|0;
  9443. $5 = HEAP32[3]|0;
  9444. _InitWindow($4,$5,4288);
  9445. _LoadImage($0,4343);
  9446. ;HEAP32[$map$byval_copy>>2]=HEAP32[$0>>2]|0;HEAP32[$map$byval_copy+4>>2]=HEAP32[$0+4>>2]|0;HEAP32[$map$byval_copy+8>>2]=HEAP32[$0+8>>2]|0;HEAP32[$map$byval_copy+12>>2]=HEAP32[$0+12>>2]|0;HEAP32[$map$byval_copy+16>>2]=HEAP32[$0+16>>2]|0;
  9447. _LoadTextureFromImage($1,$map$byval_copy);
  9448. ;HEAP32[17432>>2]=HEAP32[$1>>2]|0;HEAP32[17432+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[17432+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[17432+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[17432+16>>2]=HEAP32[$1+16>>2]|0;
  9449. ;HEAP32[$map$byval_copy>>2]=HEAP32[$0>>2]|0;HEAP32[$map$byval_copy+4>>2]=HEAP32[$0+4>>2]|0;HEAP32[$map$byval_copy+8>>2]=HEAP32[$0+8>>2]|0;HEAP32[$map$byval_copy+12>>2]=HEAP32[$0+12>>2]|0;HEAP32[$map$byval_copy+16>>2]=HEAP32[$0+16>>2]|0;
  9450. _LoadCubicmap($2,$map$byval_copy);
  9451. _memcpy((17452|0),($2|0),264)|0;
  9452. _LoadTexture($3,4366);
  9453. ;HEAP32[(17640)>>2]=HEAP32[$3>>2]|0;HEAP32[(17640)+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[(17640)+8>>2]=HEAP32[$3+8>>2]|0;HEAP32[(17640)+12>>2]=HEAP32[$3+12>>2]|0;HEAP32[(17640)+16>>2]=HEAP32[$3+16>>2]|0;
  9454. ;HEAP32[$map$byval_copy>>2]=HEAP32[$0>>2]|0;HEAP32[$map$byval_copy+4>>2]=HEAP32[$0+4>>2]|0;HEAP32[$map$byval_copy+8>>2]=HEAP32[$0+8>>2]|0;HEAP32[$map$byval_copy+12>>2]=HEAP32[$0+12>>2]|0;HEAP32[$map$byval_copy+16>>2]=HEAP32[$0+16>>2]|0;
  9455. _UnloadImage($map$byval_copy);
  9456. dest=$map$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));
  9457. _SetCameraMode($map$byval_copy,2);
  9458. _emscripten_set_main_loop((1|0),0,1);
  9459. ;HEAP32[$map$byval_copy>>2]=HEAP32[17432>>2]|0;HEAP32[$map$byval_copy+4>>2]=HEAP32[17432+4>>2]|0;HEAP32[$map$byval_copy+8>>2]=HEAP32[17432+8>>2]|0;HEAP32[$map$byval_copy+12>>2]=HEAP32[17432+12>>2]|0;HEAP32[$map$byval_copy+16>>2]=HEAP32[17432+16>>2]|0;
  9460. _UnloadTexture($map$byval_copy);
  9461. ;HEAP32[$map$byval_copy>>2]=HEAP32[$3>>2]|0;HEAP32[$map$byval_copy+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[$map$byval_copy+8>>2]=HEAP32[$3+8>>2]|0;HEAP32[$map$byval_copy+12>>2]=HEAP32[$3+12>>2]|0;HEAP32[$map$byval_copy+16>>2]=HEAP32[$3+16>>2]|0;
  9462. _UnloadTexture($map$byval_copy);
  9463. _memcpy(($map$byval_copy|0),(17452|0),264)|0;
  9464. _UnloadModel($map$byval_copy);
  9465. _CloseWindow();
  9466. STACKTOP = sp;return 0;
  9467. }
  9468. function _UpdateDrawFrame() {
  9469. var $$byval_copy1 = 0, $$byval_copy4 = 0, $0 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0.0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0;
  9470. var $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $cubicmap$byval_copy = 0, dest = 0, label = 0, sp = 0, src = 0;
  9471. var stop = 0;
  9472. sp = STACKTOP;
  9473. STACKTOP = STACKTOP + 352|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(352|0);
  9474. $$byval_copy4 = sp + 296|0;
  9475. $$byval_copy1 = sp + 284|0;
  9476. $cubicmap$byval_copy = sp + 8|0;
  9477. $0 = sp + 348|0;
  9478. $1 = sp + 280|0;
  9479. $2 = sp + 272|0;
  9480. $3 = sp;
  9481. $4 = sp + 344|0;
  9482. $5 = sp + 340|0;
  9483. $6 = sp + 336|0;
  9484. _UpdateCamera(16);
  9485. _BeginDrawing();
  9486. HEAP8[$0>>0] = -11;
  9487. $7 = ((($0)) + 1|0);
  9488. HEAP8[$7>>0] = -11;
  9489. $8 = ((($0)) + 2|0);
  9490. HEAP8[$8>>0] = -11;
  9491. $9 = ((($0)) + 3|0);
  9492. HEAP8[$9>>0] = -1;
  9493. ;HEAP8[$$byval_copy4>>0]=HEAP8[$0>>0]|0;HEAP8[$$byval_copy4+1>>0]=HEAP8[$0+1>>0]|0;HEAP8[$$byval_copy4+2>>0]=HEAP8[$0+2>>0]|0;HEAP8[$$byval_copy4+3>>0]=HEAP8[$0+3>>0]|0;
  9494. _ClearBackground($$byval_copy4);
  9495. dest=$$byval_copy4; 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));
  9496. _Begin3dMode($$byval_copy4);
  9497. HEAP32[$1>>2] = -1;
  9498. _memcpy(($cubicmap$byval_copy|0),(17452|0),264)|0;
  9499. ;HEAP32[$$byval_copy1>>2]=HEAP32[56>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[56+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[56+8>>2]|0;
  9500. ;HEAP8[$$byval_copy4>>0]=HEAP8[$1>>0]|0;HEAP8[$$byval_copy4+1>>0]=HEAP8[$1+1>>0]|0;HEAP8[$$byval_copy4+2>>0]=HEAP8[$1+2>>0]|0;HEAP8[$$byval_copy4+3>>0]=HEAP8[$1+3>>0]|0;
  9501. _DrawModel($cubicmap$byval_copy,$$byval_copy1,1.0,$$byval_copy4);
  9502. _End3dMode();
  9503. $10 = HEAP32[2]|0;
  9504. $11 = HEAP32[(17436)>>2]|0;
  9505. $12 = $11 << 2;
  9506. $13 = (($10) + -20)|0;
  9507. $14 = (($13) - ($12))|0;
  9508. $15 = (+($14|0));
  9509. HEAPF32[$2>>2] = $15;
  9510. $16 = ((($2)) + 4|0);
  9511. HEAPF32[$16>>2] = 20.0;
  9512. HEAP32[$3>>2] = -1;
  9513. ;HEAP32[$cubicmap$byval_copy>>2]=HEAP32[17432>>2]|0;HEAP32[$cubicmap$byval_copy+4>>2]=HEAP32[17432+4>>2]|0;HEAP32[$cubicmap$byval_copy+8>>2]=HEAP32[17432+8>>2]|0;HEAP32[$cubicmap$byval_copy+12>>2]=HEAP32[17432+12>>2]|0;HEAP32[$cubicmap$byval_copy+16>>2]=HEAP32[17432+16>>2]|0;
  9514. ;HEAP32[$$byval_copy1>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$2+4>>2]|0;
  9515. ;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;
  9516. _DrawTextureEx($cubicmap$byval_copy,$$byval_copy1,0.0,4.0,$$byval_copy4);
  9517. $17 = HEAP32[2]|0;
  9518. $18 = HEAP32[(17436)>>2]|0;
  9519. $19 = $18 << 2;
  9520. $20 = (($17) + -20)|0;
  9521. $21 = (($20) - ($19))|0;
  9522. $22 = HEAP32[(17440)>>2]|0;
  9523. $23 = $22 << 2;
  9524. HEAP8[$4>>0] = 0;
  9525. $24 = ((($4)) + 1|0);
  9526. HEAP8[$24>>0] = -28;
  9527. $25 = ((($4)) + 2|0);
  9528. HEAP8[$25>>0] = 48;
  9529. $26 = ((($4)) + 3|0);
  9530. HEAP8[$26>>0] = -1;
  9531. ;HEAP8[$$byval_copy4>>0]=HEAP8[$4>>0]|0;HEAP8[$$byval_copy4+1>>0]=HEAP8[$4+1>>0]|0;HEAP8[$$byval_copy4+2>>0]=HEAP8[$4+2>>0]|0;HEAP8[$$byval_copy4+3>>0]=HEAP8[$4+3>>0]|0;
  9532. _DrawRectangleLines($21,20,$19,$23,$$byval_copy4);
  9533. HEAP8[$5>>0] = -126;
  9534. $27 = ((($5)) + 1|0);
  9535. HEAP8[$27>>0] = -126;
  9536. $28 = ((($5)) + 2|0);
  9537. HEAP8[$28>>0] = -126;
  9538. $29 = ((($5)) + 3|0);
  9539. HEAP8[$29>>0] = -1;
  9540. ;HEAP8[$$byval_copy4>>0]=HEAP8[$5>>0]|0;HEAP8[$$byval_copy4+1>>0]=HEAP8[$5+1>>0]|0;HEAP8[$$byval_copy4+2>>0]=HEAP8[$5+2>>0]|0;HEAP8[$$byval_copy4+3>>0]=HEAP8[$5+3>>0]|0;
  9541. _DrawText(4395,658,90,10,$$byval_copy4);
  9542. HEAP8[$6>>0] = -126;
  9543. $30 = ((($6)) + 1|0);
  9544. HEAP8[$30>>0] = -126;
  9545. $31 = ((($6)) + 2|0);
  9546. HEAP8[$31>>0] = -126;
  9547. $32 = ((($6)) + 3|0);
  9548. HEAP8[$32>>0] = -1;
  9549. ;HEAP8[$$byval_copy4>>0]=HEAP8[$6>>0]|0;HEAP8[$$byval_copy4+1>>0]=HEAP8[$6+1>>0]|0;HEAP8[$$byval_copy4+2>>0]=HEAP8[$6+2>>0]|0;HEAP8[$$byval_copy4+3>>0]=HEAP8[$6+3>>0]|0;
  9550. _DrawText(4418,658,104,10,$$byval_copy4);
  9551. _DrawFPS(10,10);
  9552. _EndDrawing();
  9553. STACKTOP = sp;return;
  9554. }
  9555. function _Vector2Distance($0,$1) {
  9556. $0 = $0|0;
  9557. $1 = $1|0;
  9558. 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;
  9559. sp = STACKTOP;
  9560. $2 = +HEAPF32[$0>>2];
  9561. $3 = +HEAPF32[$1>>2];
  9562. $4 = $2 - $3;
  9563. $5 = $4 * $4;
  9564. $6 = ((($0)) + 4|0);
  9565. $7 = +HEAPF32[$6>>2];
  9566. $8 = ((($1)) + 4|0);
  9567. $9 = +HEAPF32[$8>>2];
  9568. $10 = $7 - $9;
  9569. $11 = $10 * $10;
  9570. $12 = $5 + $11;
  9571. $13 = (+Math_sqrt((+$12)));
  9572. return (+$13);
  9573. }
  9574. function _Vector2Angle($0,$1) {
  9575. $0 = $0|0;
  9576. $1 = $1|0;
  9577. 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;
  9578. sp = STACKTOP;
  9579. $2 = ((($1)) + 4|0);
  9580. $3 = +HEAPF32[$2>>2];
  9581. $4 = ((($0)) + 4|0);
  9582. $5 = +HEAPF32[$4>>2];
  9583. $6 = $3 - $5;
  9584. $7 = +HEAPF32[$1>>2];
  9585. $8 = +HEAPF32[$0>>2];
  9586. $9 = $7 - $8;
  9587. $10 = (+Math_atan2((+$6),(+$9)));
  9588. $11 = $10 * 57.2957763671875;
  9589. $12 = $11 < 0.0;
  9590. $13 = $11 + 360.0;
  9591. $$0 = $12 ? $13 : $11;
  9592. return (+$$0);
  9593. }
  9594. function _VectorZero($0) {
  9595. $0 = $0|0;
  9596. var $1 = 0, $2 = 0, label = 0, sp = 0;
  9597. sp = STACKTOP;
  9598. HEAPF32[$0>>2] = 0.0;
  9599. $1 = ((($0)) + 4|0);
  9600. HEAPF32[$1>>2] = 0.0;
  9601. $2 = ((($0)) + 8|0);
  9602. HEAPF32[$2>>2] = 0.0;
  9603. return;
  9604. }
  9605. function _VectorSubtract($0,$1,$2) {
  9606. $0 = $0|0;
  9607. $1 = $1|0;
  9608. $2 = $2|0;
  9609. 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;
  9610. sp = STACKTOP;
  9611. $3 = +HEAPF32[$1>>2];
  9612. $4 = +HEAPF32[$2>>2];
  9613. $5 = $3 - $4;
  9614. HEAPF32[$0>>2] = $5;
  9615. $6 = ((($0)) + 4|0);
  9616. $7 = ((($1)) + 4|0);
  9617. $8 = +HEAPF32[$7>>2];
  9618. $9 = ((($2)) + 4|0);
  9619. $10 = +HEAPF32[$9>>2];
  9620. $11 = $8 - $10;
  9621. HEAPF32[$6>>2] = $11;
  9622. $12 = ((($0)) + 8|0);
  9623. $13 = ((($1)) + 8|0);
  9624. $14 = +HEAPF32[$13>>2];
  9625. $15 = ((($2)) + 8|0);
  9626. $16 = +HEAPF32[$15>>2];
  9627. $17 = $14 - $16;
  9628. HEAPF32[$12>>2] = $17;
  9629. return;
  9630. }
  9631. function _VectorCrossProduct($0,$1,$2) {
  9632. $0 = $0|0;
  9633. $1 = $1|0;
  9634. $2 = $2|0;
  9635. 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;
  9636. var $9 = 0.0, label = 0, sp = 0;
  9637. sp = STACKTOP;
  9638. $3 = ((($1)) + 4|0);
  9639. $4 = +HEAPF32[$3>>2];
  9640. $5 = ((($2)) + 8|0);
  9641. $6 = +HEAPF32[$5>>2];
  9642. $7 = $4 * $6;
  9643. $8 = ((($1)) + 8|0);
  9644. $9 = +HEAPF32[$8>>2];
  9645. $10 = ((($2)) + 4|0);
  9646. $11 = +HEAPF32[$10>>2];
  9647. $12 = $9 * $11;
  9648. $13 = $7 - $12;
  9649. $14 = +HEAPF32[$2>>2];
  9650. $15 = $9 * $14;
  9651. $16 = +HEAPF32[$1>>2];
  9652. $17 = $6 * $16;
  9653. $18 = $15 - $17;
  9654. $19 = $11 * $16;
  9655. $20 = $4 * $14;
  9656. $21 = $19 - $20;
  9657. HEAPF32[$0>>2] = $13;
  9658. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  9659. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $18;
  9660. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  9661. HEAPF32[$$sroa$5$0$$sroa_idx4>>2] = $21;
  9662. return;
  9663. }
  9664. function _VectorLength($0) {
  9665. $0 = $0|0;
  9666. 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;
  9667. sp = STACKTOP;
  9668. $1 = +HEAPF32[$0>>2];
  9669. $2 = $1 * $1;
  9670. $3 = ((($0)) + 4|0);
  9671. $4 = +HEAPF32[$3>>2];
  9672. $5 = $4 * $4;
  9673. $6 = $2 + $5;
  9674. $7 = ((($0)) + 8|0);
  9675. $8 = +HEAPF32[$7>>2];
  9676. $9 = $8 * $8;
  9677. $10 = $6 + $9;
  9678. $11 = (+Math_sqrt((+$10)));
  9679. return (+$11);
  9680. }
  9681. function _VectorNormalize($0) {
  9682. $0 = $0|0;
  9683. 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;
  9684. sp = STACKTOP;
  9685. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  9686. $$byval_copy = sp;
  9687. ;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;
  9688. $1 = (+_VectorLength($$byval_copy));
  9689. $2 = $1 == 0.0;
  9690. $$op = 1.0 / $1;
  9691. $3 = $2 ? 1.0 : $$op;
  9692. $4 = +HEAPF32[$0>>2];
  9693. $5 = $4 * $3;
  9694. HEAPF32[$0>>2] = $5;
  9695. $6 = ((($0)) + 4|0);
  9696. $7 = +HEAPF32[$6>>2];
  9697. $8 = $3 * $7;
  9698. HEAPF32[$6>>2] = $8;
  9699. $9 = ((($0)) + 8|0);
  9700. $10 = +HEAPF32[$9>>2];
  9701. $11 = $3 * $10;
  9702. HEAPF32[$9>>2] = $11;
  9703. STACKTOP = sp;return;
  9704. }
  9705. function _VectorTransform($0,$1) {
  9706. $0 = $0|0;
  9707. $1 = $1|0;
  9708. 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;
  9709. 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;
  9710. var $47 = 0.0, $5 = 0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0, label = 0, sp = 0;
  9711. sp = STACKTOP;
  9712. $2 = +HEAPF32[$0>>2];
  9713. $3 = ((($0)) + 4|0);
  9714. $4 = +HEAPF32[$3>>2];
  9715. $5 = ((($0)) + 8|0);
  9716. $6 = +HEAPF32[$5>>2];
  9717. $7 = +HEAPF32[$1>>2];
  9718. $8 = $2 * $7;
  9719. $9 = ((($1)) + 4|0);
  9720. $10 = +HEAPF32[$9>>2];
  9721. $11 = $4 * $10;
  9722. $12 = $8 + $11;
  9723. $13 = ((($1)) + 8|0);
  9724. $14 = +HEAPF32[$13>>2];
  9725. $15 = $6 * $14;
  9726. $16 = $12 + $15;
  9727. $17 = ((($1)) + 12|0);
  9728. $18 = +HEAPF32[$17>>2];
  9729. $19 = $18 + $16;
  9730. HEAPF32[$0>>2] = $19;
  9731. $20 = ((($1)) + 16|0);
  9732. $21 = +HEAPF32[$20>>2];
  9733. $22 = $2 * $21;
  9734. $23 = ((($1)) + 20|0);
  9735. $24 = +HEAPF32[$23>>2];
  9736. $25 = $4 * $24;
  9737. $26 = $22 + $25;
  9738. $27 = ((($1)) + 24|0);
  9739. $28 = +HEAPF32[$27>>2];
  9740. $29 = $6 * $28;
  9741. $30 = $26 + $29;
  9742. $31 = ((($1)) + 28|0);
  9743. $32 = +HEAPF32[$31>>2];
  9744. $33 = $32 + $30;
  9745. HEAPF32[$3>>2] = $33;
  9746. $34 = ((($1)) + 32|0);
  9747. $35 = +HEAPF32[$34>>2];
  9748. $36 = $2 * $35;
  9749. $37 = ((($1)) + 36|0);
  9750. $38 = +HEAPF32[$37>>2];
  9751. $39 = $4 * $38;
  9752. $40 = $36 + $39;
  9753. $41 = ((($1)) + 40|0);
  9754. $42 = +HEAPF32[$41>>2];
  9755. $43 = $6 * $42;
  9756. $44 = $40 + $43;
  9757. $45 = ((($1)) + 44|0);
  9758. $46 = +HEAPF32[$45>>2];
  9759. $47 = $46 + $44;
  9760. HEAPF32[$5>>2] = $47;
  9761. return;
  9762. }
  9763. function _MatrixTranspose($0) {
  9764. $0 = $0|0;
  9765. 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;
  9766. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  9767. sp = STACKTOP;
  9768. $1 = ((($0)) + 4|0);
  9769. $2 = HEAP32[$1>>2]|0;
  9770. $3 = ((($0)) + 8|0);
  9771. $4 = HEAP32[$3>>2]|0;
  9772. $5 = ((($0)) + 12|0);
  9773. $6 = HEAP32[$5>>2]|0;
  9774. $7 = ((($0)) + 16|0);
  9775. $8 = HEAP32[$7>>2]|0;
  9776. $9 = ((($0)) + 24|0);
  9777. $10 = HEAP32[$9>>2]|0;
  9778. $11 = ((($0)) + 28|0);
  9779. $12 = HEAP32[$11>>2]|0;
  9780. $13 = ((($0)) + 32|0);
  9781. $14 = HEAP32[$13>>2]|0;
  9782. $15 = ((($0)) + 36|0);
  9783. $16 = HEAP32[$15>>2]|0;
  9784. $17 = ((($0)) + 44|0);
  9785. $18 = HEAP32[$17>>2]|0;
  9786. $19 = ((($0)) + 48|0);
  9787. $20 = HEAP32[$19>>2]|0;
  9788. $21 = ((($0)) + 52|0);
  9789. $22 = HEAP32[$21>>2]|0;
  9790. $23 = ((($0)) + 56|0);
  9791. $24 = HEAP32[$23>>2]|0;
  9792. HEAP32[$1>>2] = $8;
  9793. HEAP32[$3>>2] = $14;
  9794. HEAP32[$5>>2] = $20;
  9795. HEAP32[$7>>2] = $2;
  9796. HEAP32[$9>>2] = $16;
  9797. HEAP32[$11>>2] = $22;
  9798. HEAP32[$13>>2] = $4;
  9799. HEAP32[$15>>2] = $10;
  9800. HEAP32[$17>>2] = $24;
  9801. HEAP32[$19>>2] = $6;
  9802. HEAP32[$21>>2] = $12;
  9803. HEAP32[$23>>2] = $18;
  9804. return;
  9805. }
  9806. function _MatrixInvert($0) {
  9807. $0 = $0|0;
  9808. 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;
  9809. 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;
  9810. 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;
  9811. 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;
  9812. 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;
  9813. 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;
  9814. 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;
  9815. 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;
  9816. 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;
  9817. sp = STACKTOP;
  9818. $1 = +HEAPF32[$0>>2];
  9819. $2 = ((($0)) + 16|0);
  9820. $3 = +HEAPF32[$2>>2];
  9821. $4 = ((($0)) + 32|0);
  9822. $5 = +HEAPF32[$4>>2];
  9823. $6 = ((($0)) + 48|0);
  9824. $7 = +HEAPF32[$6>>2];
  9825. $8 = ((($0)) + 4|0);
  9826. $9 = +HEAPF32[$8>>2];
  9827. $10 = ((($0)) + 20|0);
  9828. $11 = +HEAPF32[$10>>2];
  9829. $12 = ((($0)) + 36|0);
  9830. $13 = +HEAPF32[$12>>2];
  9831. $14 = ((($0)) + 52|0);
  9832. $15 = +HEAPF32[$14>>2];
  9833. $16 = ((($0)) + 8|0);
  9834. $17 = +HEAPF32[$16>>2];
  9835. $18 = ((($0)) + 24|0);
  9836. $19 = +HEAPF32[$18>>2];
  9837. $20 = ((($0)) + 40|0);
  9838. $21 = +HEAPF32[$20>>2];
  9839. $22 = ((($0)) + 56|0);
  9840. $23 = +HEAPF32[$22>>2];
  9841. $24 = ((($0)) + 12|0);
  9842. $25 = +HEAPF32[$24>>2];
  9843. $26 = ((($0)) + 28|0);
  9844. $27 = +HEAPF32[$26>>2];
  9845. $28 = ((($0)) + 44|0);
  9846. $29 = +HEAPF32[$28>>2];
  9847. $30 = ((($0)) + 60|0);
  9848. $31 = +HEAPF32[$30>>2];
  9849. $32 = $1 * $11;
  9850. $33 = $3 * $9;
  9851. $34 = $32 - $33;
  9852. $35 = $1 * $13;
  9853. $36 = $5 * $9;
  9854. $37 = $35 - $36;
  9855. $38 = $1 * $15;
  9856. $39 = $7 * $9;
  9857. $40 = $38 - $39;
  9858. $41 = $3 * $13;
  9859. $42 = $5 * $11;
  9860. $43 = $41 - $42;
  9861. $44 = $3 * $15;
  9862. $45 = $7 * $11;
  9863. $46 = $44 - $45;
  9864. $47 = $5 * $15;
  9865. $48 = $7 * $13;
  9866. $49 = $47 - $48;
  9867. $50 = $17 * $27;
  9868. $51 = $19 * $25;
  9869. $52 = $50 - $51;
  9870. $53 = $17 * $29;
  9871. $54 = $21 * $25;
  9872. $55 = $53 - $54;
  9873. $56 = $17 * $31;
  9874. $57 = $23 * $25;
  9875. $58 = $56 - $57;
  9876. $59 = $19 * $29;
  9877. $60 = $21 * $27;
  9878. $61 = $59 - $60;
  9879. $62 = $19 * $31;
  9880. $63 = $23 * $27;
  9881. $64 = $62 - $63;
  9882. $65 = $21 * $31;
  9883. $66 = $23 * $29;
  9884. $67 = $65 - $66;
  9885. $68 = $34 * $67;
  9886. $69 = $37 * $64;
  9887. $70 = $68 - $69;
  9888. $71 = $40 * $61;
  9889. $72 = $71 + $70;
  9890. $73 = $43 * $58;
  9891. $74 = $73 + $72;
  9892. $75 = $46 * $55;
  9893. $76 = $74 - $75;
  9894. $77 = $49 * $52;
  9895. $78 = $77 + $76;
  9896. $79 = 1.0 / $78;
  9897. $80 = $11 * $67;
  9898. $81 = $13 * $64;
  9899. $82 = $80 - $81;
  9900. $83 = $15 * $61;
  9901. $84 = $83 + $82;
  9902. $85 = $84 * $79;
  9903. $86 = $3 * $67;
  9904. $87 = $5 * $64;
  9905. $88 = $87 - $86;
  9906. $89 = $7 * $61;
  9907. $90 = $88 - $89;
  9908. $91 = $90 * $79;
  9909. $92 = $49 * $27;
  9910. $93 = $46 * $29;
  9911. $94 = $92 - $93;
  9912. $95 = $43 * $31;
  9913. $96 = $94 + $95;
  9914. $97 = $96 * $79;
  9915. $98 = $19 * $49;
  9916. $99 = $46 * $21;
  9917. $100 = $99 - $98;
  9918. $101 = $43 * $23;
  9919. $102 = $100 - $101;
  9920. $103 = $102 * $79;
  9921. $104 = -$9;
  9922. $105 = $67 * $104;
  9923. $106 = $13 * $58;
  9924. $107 = $105 + $106;
  9925. $108 = $15 * $55;
  9926. $109 = $107 - $108;
  9927. $110 = $109 * $79;
  9928. $111 = $1 * $67;
  9929. $112 = $5 * $58;
  9930. $113 = $111 - $112;
  9931. $114 = $7 * $55;
  9932. $115 = $114 + $113;
  9933. $116 = $115 * $79;
  9934. $117 = -$25;
  9935. $118 = $49 * $117;
  9936. $119 = $40 * $29;
  9937. $120 = $118 + $119;
  9938. $121 = $37 * $31;
  9939. $122 = $120 - $121;
  9940. $123 = $122 * $79;
  9941. $124 = $17 * $49;
  9942. $125 = $40 * $21;
  9943. $126 = $124 - $125;
  9944. $127 = $37 * $23;
  9945. $128 = $126 + $127;
  9946. $129 = $128 * $79;
  9947. $130 = $9 * $64;
  9948. $131 = $11 * $58;
  9949. $132 = $130 - $131;
  9950. $133 = $15 * $52;
  9951. $134 = $133 + $132;
  9952. $135 = $134 * $79;
  9953. $136 = $1 * $64;
  9954. $137 = $3 * $58;
  9955. $138 = $137 - $136;
  9956. $139 = $7 * $52;
  9957. $140 = $138 - $139;
  9958. $141 = $140 * $79;
  9959. $142 = $46 * $25;
  9960. $143 = $40 * $27;
  9961. $144 = $142 - $143;
  9962. $145 = $34 * $31;
  9963. $146 = $144 + $145;
  9964. $147 = $146 * $79;
  9965. $148 = $17 * $46;
  9966. $149 = $19 * $40;
  9967. $150 = $149 - $148;
  9968. $151 = $34 * $23;
  9969. $152 = $150 - $151;
  9970. $153 = $152 * $79;
  9971. $154 = $61 * $104;
  9972. $155 = $11 * $55;
  9973. $156 = $154 + $155;
  9974. $157 = $13 * $52;
  9975. $158 = $156 - $157;
  9976. $159 = $158 * $79;
  9977. $160 = $1 * $61;
  9978. $161 = $3 * $55;
  9979. $162 = $160 - $161;
  9980. $163 = $5 * $52;
  9981. $164 = $163 + $162;
  9982. $165 = $164 * $79;
  9983. $166 = $43 * $117;
  9984. $167 = $37 * $27;
  9985. $168 = $166 + $167;
  9986. $169 = $34 * $29;
  9987. $170 = $168 - $169;
  9988. $171 = $170 * $79;
  9989. $172 = $17 * $43;
  9990. $173 = $37 * $19;
  9991. $174 = $172 - $173;
  9992. $175 = $34 * $21;
  9993. $176 = $174 + $175;
  9994. $177 = $176 * $79;
  9995. HEAPF32[$0>>2] = $85;
  9996. HEAPF32[$8>>2] = $110;
  9997. HEAPF32[$16>>2] = $135;
  9998. HEAPF32[$24>>2] = $159;
  9999. HEAPF32[$2>>2] = $91;
  10000. HEAPF32[$10>>2] = $116;
  10001. HEAPF32[$18>>2] = $141;
  10002. HEAPF32[$26>>2] = $165;
  10003. HEAPF32[$4>>2] = $97;
  10004. HEAPF32[$12>>2] = $123;
  10005. HEAPF32[$20>>2] = $147;
  10006. HEAPF32[$28>>2] = $171;
  10007. HEAPF32[$6>>2] = $103;
  10008. HEAPF32[$14>>2] = $129;
  10009. HEAPF32[$22>>2] = $153;
  10010. HEAPF32[$30>>2] = $177;
  10011. return;
  10012. }
  10013. function _MatrixIdentity($0) {
  10014. $0 = $0|0;
  10015. 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;
  10016. sp = STACKTOP;
  10017. HEAPF32[$0>>2] = 1.0;
  10018. $$sroa$5$0$$sroa_idx = ((($0)) + 4|0);
  10019. ;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;
  10020. $$sroa$55$0$$sroa_idx6 = ((($0)) + 20|0);
  10021. HEAPF32[$$sroa$55$0$$sroa_idx6>>2] = 1.0;
  10022. $$sroa$6$0$$sroa_idx = ((($0)) + 24|0);
  10023. ;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;
  10024. $$sroa$611$0$$sroa_idx12 = ((($0)) + 40|0);
  10025. HEAPF32[$$sroa$611$0$$sroa_idx12>>2] = 1.0;
  10026. $$sroa$7$0$$sroa_idx = ((($0)) + 44|0);
  10027. ;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;
  10028. $$sroa$717$0$$sroa_idx18 = ((($0)) + 60|0);
  10029. HEAPF32[$$sroa$717$0$$sroa_idx18>>2] = 1.0;
  10030. return;
  10031. }
  10032. function _MatrixTranslate($0,$1,$2,$3) {
  10033. $0 = $0|0;
  10034. $1 = +$1;
  10035. $2 = +$2;
  10036. $3 = +$3;
  10037. 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;
  10038. sp = STACKTOP;
  10039. HEAPF32[$0>>2] = 1.0;
  10040. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  10041. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  10042. ;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;
  10043. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = 1.0;
  10044. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  10045. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  10046. ;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;
  10047. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = 1.0;
  10048. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  10049. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = 0.0;
  10050. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  10051. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $1;
  10052. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  10053. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $2;
  10054. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  10055. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $3;
  10056. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  10057. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = 1.0;
  10058. return;
  10059. }
  10060. function _MatrixRotate($0,$1,$2) {
  10061. $0 = $0|0;
  10062. $1 = $1|0;
  10063. $2 = +$2;
  10064. 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;
  10065. 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;
  10066. 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;
  10067. 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;
  10068. 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;
  10069. 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;
  10070. 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;
  10071. 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;
  10072. sp = STACKTOP;
  10073. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  10074. $3 = sp;
  10075. _MatrixIdentity($3);
  10076. $4 = +HEAPF32[$1>>2];
  10077. $5 = ((($1)) + 4|0);
  10078. $6 = +HEAPF32[$5>>2];
  10079. $7 = ((($1)) + 8|0);
  10080. $8 = +HEAPF32[$7>>2];
  10081. $9 = $4 * $4;
  10082. $10 = $6 * $6;
  10083. $11 = $9 + $10;
  10084. $12 = $8 * $8;
  10085. $13 = $11 + $12;
  10086. $14 = (+Math_sqrt((+$13)));
  10087. $15 = $14 != 1.0;
  10088. $16 = $14 != 0.0;
  10089. $or$cond = $15 & $16;
  10090. $17 = 1.0 / $14;
  10091. $18 = $4 * $17;
  10092. $19 = $6 * $17;
  10093. $20 = $8 * $17;
  10094. $$ = $or$cond ? $20 : $8;
  10095. $$221 = $or$cond ? $19 : $6;
  10096. $$222 = $or$cond ? $18 : $4;
  10097. $21 = (+Math_sin((+$2)));
  10098. $22 = (+Math_cos((+$2)));
  10099. $23 = 1.0 - $22;
  10100. $24 = +HEAPF32[$3>>2];
  10101. $25 = ((($3)) + 16|0);
  10102. $26 = +HEAPF32[$25>>2];
  10103. $27 = ((($3)) + 32|0);
  10104. $28 = +HEAPF32[$27>>2];
  10105. $29 = ((($3)) + 48|0);
  10106. $30 = +HEAPF32[$29>>2];
  10107. $31 = ((($3)) + 4|0);
  10108. $32 = +HEAPF32[$31>>2];
  10109. $33 = ((($3)) + 20|0);
  10110. $34 = +HEAPF32[$33>>2];
  10111. $35 = ((($3)) + 36|0);
  10112. $36 = +HEAPF32[$35>>2];
  10113. $37 = ((($3)) + 52|0);
  10114. $38 = +HEAPF32[$37>>2];
  10115. $39 = ((($3)) + 8|0);
  10116. $40 = +HEAPF32[$39>>2];
  10117. $41 = ((($3)) + 24|0);
  10118. $42 = +HEAPF32[$41>>2];
  10119. $43 = ((($3)) + 40|0);
  10120. $44 = +HEAPF32[$43>>2];
  10121. $45 = ((($3)) + 56|0);
  10122. $46 = +HEAPF32[$45>>2];
  10123. $47 = $$222 * $$222;
  10124. $48 = $23 * $47;
  10125. $49 = $22 + $48;
  10126. $50 = $$221 * $$222;
  10127. $51 = $23 * $50;
  10128. $52 = $21 * $$;
  10129. $53 = $52 + $51;
  10130. $54 = $$ * $$222;
  10131. $55 = $23 * $54;
  10132. $56 = $21 * $$221;
  10133. $57 = $55 - $56;
  10134. $58 = $51 - $52;
  10135. $59 = $$221 * $$221;
  10136. $60 = $23 * $59;
  10137. $61 = $22 + $60;
  10138. $62 = $$ * $$221;
  10139. $63 = $23 * $62;
  10140. $64 = $21 * $$222;
  10141. $65 = $64 + $63;
  10142. $66 = $56 + $55;
  10143. $67 = $63 - $64;
  10144. $68 = $$ * $$;
  10145. $69 = $23 * $68;
  10146. $70 = $22 + $69;
  10147. $71 = $24 * $49;
  10148. $72 = $53 * $32;
  10149. $73 = $71 + $72;
  10150. $74 = $57 * $40;
  10151. $75 = $73 + $74;
  10152. $76 = $26 * $49;
  10153. $77 = $53 * $34;
  10154. $78 = $76 + $77;
  10155. $79 = $57 * $42;
  10156. $80 = $78 + $79;
  10157. $81 = $28 * $49;
  10158. $82 = $53 * $36;
  10159. $83 = $81 + $82;
  10160. $84 = $57 * $44;
  10161. $85 = $83 + $84;
  10162. $86 = $30 * $49;
  10163. $87 = $53 * $38;
  10164. $88 = $86 + $87;
  10165. $89 = $57 * $46;
  10166. $90 = $88 + $89;
  10167. $91 = $24 * $58;
  10168. $92 = $61 * $32;
  10169. $93 = $91 + $92;
  10170. $94 = $65 * $40;
  10171. $95 = $93 + $94;
  10172. $96 = $26 * $58;
  10173. $97 = $61 * $34;
  10174. $98 = $96 + $97;
  10175. $99 = $65 * $42;
  10176. $100 = $98 + $99;
  10177. $101 = $28 * $58;
  10178. $102 = $61 * $36;
  10179. $103 = $101 + $102;
  10180. $104 = $65 * $44;
  10181. $105 = $103 + $104;
  10182. $106 = $30 * $58;
  10183. $107 = $61 * $38;
  10184. $108 = $106 + $107;
  10185. $109 = $65 * $46;
  10186. $110 = $108 + $109;
  10187. $111 = $24 * $66;
  10188. $112 = $67 * $32;
  10189. $113 = $111 + $112;
  10190. $114 = $70 * $40;
  10191. $115 = $113 + $114;
  10192. $116 = $26 * $66;
  10193. $117 = $67 * $34;
  10194. $118 = $116 + $117;
  10195. $119 = $70 * $42;
  10196. $120 = $118 + $119;
  10197. $121 = $28 * $66;
  10198. $122 = $67 * $36;
  10199. $123 = $121 + $122;
  10200. $124 = $70 * $44;
  10201. $125 = $123 + $124;
  10202. $126 = $30 * $66;
  10203. $127 = $67 * $38;
  10204. $128 = $126 + $127;
  10205. $129 = $70 * $46;
  10206. $130 = $128 + $129;
  10207. $131 = ((($3)) + 12|0);
  10208. $132 = HEAP32[$131>>2]|0;
  10209. $133 = ((($3)) + 28|0);
  10210. $134 = HEAP32[$133>>2]|0;
  10211. $135 = ((($3)) + 44|0);
  10212. $136 = HEAP32[$135>>2]|0;
  10213. $137 = ((($3)) + 60|0);
  10214. $138 = HEAP32[$137>>2]|0;
  10215. HEAPF32[$0>>2] = $75;
  10216. $$sroa$4$0$$sroa_idx187 = ((($0)) + 4|0);
  10217. HEAPF32[$$sroa$4$0$$sroa_idx187>>2] = $95;
  10218. $$sroa$5$0$$sroa_idx189 = ((($0)) + 8|0);
  10219. HEAPF32[$$sroa$5$0$$sroa_idx189>>2] = $115;
  10220. $$sroa$6$0$$sroa_idx191 = ((($0)) + 12|0);
  10221. HEAP32[$$sroa$6$0$$sroa_idx191>>2] = $132;
  10222. $$sroa$7$0$$sroa_idx193 = ((($0)) + 16|0);
  10223. HEAPF32[$$sroa$7$0$$sroa_idx193>>2] = $80;
  10224. $$sroa$8$0$$sroa_idx195 = ((($0)) + 20|0);
  10225. HEAPF32[$$sroa$8$0$$sroa_idx195>>2] = $100;
  10226. $$sroa$9$0$$sroa_idx197 = ((($0)) + 24|0);
  10227. HEAPF32[$$sroa$9$0$$sroa_idx197>>2] = $120;
  10228. $$sroa$10$0$$sroa_idx199 = ((($0)) + 28|0);
  10229. HEAP32[$$sroa$10$0$$sroa_idx199>>2] = $134;
  10230. $$sroa$11$0$$sroa_idx201 = ((($0)) + 32|0);
  10231. HEAPF32[$$sroa$11$0$$sroa_idx201>>2] = $85;
  10232. $$sroa$12$0$$sroa_idx203 = ((($0)) + 36|0);
  10233. HEAPF32[$$sroa$12$0$$sroa_idx203>>2] = $105;
  10234. $$sroa$13$0$$sroa_idx205 = ((($0)) + 40|0);
  10235. HEAPF32[$$sroa$13$0$$sroa_idx205>>2] = $125;
  10236. $$sroa$14$0$$sroa_idx207 = ((($0)) + 44|0);
  10237. HEAP32[$$sroa$14$0$$sroa_idx207>>2] = $136;
  10238. $$sroa$15$0$$sroa_idx209 = ((($0)) + 48|0);
  10239. HEAPF32[$$sroa$15$0$$sroa_idx209>>2] = $90;
  10240. $$sroa$16$0$$sroa_idx211 = ((($0)) + 52|0);
  10241. HEAPF32[$$sroa$16$0$$sroa_idx211>>2] = $110;
  10242. $$sroa$17$0$$sroa_idx213 = ((($0)) + 56|0);
  10243. HEAPF32[$$sroa$17$0$$sroa_idx213>>2] = $130;
  10244. $$sroa$18$0$$sroa_idx215 = ((($0)) + 60|0);
  10245. HEAP32[$$sroa$18$0$$sroa_idx215>>2] = $138;
  10246. STACKTOP = sp;return;
  10247. }
  10248. function _MatrixScale($0,$1,$2,$3) {
  10249. $0 = $0|0;
  10250. $1 = +$1;
  10251. $2 = +$2;
  10252. $3 = +$3;
  10253. 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;
  10254. sp = STACKTOP;
  10255. HEAPF32[$0>>2] = $1;
  10256. $$sroa$5$0$$sroa_idx = ((($0)) + 4|0);
  10257. ;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;
  10258. $$sroa$55$0$$sroa_idx6 = ((($0)) + 20|0);
  10259. HEAPF32[$$sroa$55$0$$sroa_idx6>>2] = $2;
  10260. $$sroa$6$0$$sroa_idx = ((($0)) + 24|0);
  10261. ;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;
  10262. $$sroa$611$0$$sroa_idx12 = ((($0)) + 40|0);
  10263. HEAPF32[$$sroa$611$0$$sroa_idx12>>2] = $3;
  10264. $$sroa$7$0$$sroa_idx = ((($0)) + 44|0);
  10265. ;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;
  10266. $$sroa$717$0$$sroa_idx18 = ((($0)) + 60|0);
  10267. HEAPF32[$$sroa$717$0$$sroa_idx18>>2] = 1.0;
  10268. return;
  10269. }
  10270. function _MatrixMultiply($0,$1,$2) {
  10271. $0 = $0|0;
  10272. $1 = $1|0;
  10273. $2 = $2|0;
  10274. 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;
  10275. 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;
  10276. 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;
  10277. 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;
  10278. 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;
  10279. 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;
  10280. 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;
  10281. 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;
  10282. 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;
  10283. 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;
  10284. sp = STACKTOP;
  10285. $3 = +HEAPF32[$2>>2];
  10286. $4 = +HEAPF32[$1>>2];
  10287. $5 = $3 * $4;
  10288. $6 = ((($2)) + 16|0);
  10289. $7 = +HEAPF32[$6>>2];
  10290. $8 = ((($1)) + 4|0);
  10291. $9 = +HEAPF32[$8>>2];
  10292. $10 = $7 * $9;
  10293. $11 = $5 + $10;
  10294. $12 = ((($2)) + 32|0);
  10295. $13 = +HEAPF32[$12>>2];
  10296. $14 = ((($1)) + 8|0);
  10297. $15 = +HEAPF32[$14>>2];
  10298. $16 = $13 * $15;
  10299. $17 = $11 + $16;
  10300. $18 = ((($2)) + 48|0);
  10301. $19 = +HEAPF32[$18>>2];
  10302. $20 = ((($1)) + 12|0);
  10303. $21 = +HEAPF32[$20>>2];
  10304. $22 = $19 * $21;
  10305. $23 = $17 + $22;
  10306. $24 = ((($1)) + 16|0);
  10307. $25 = +HEAPF32[$24>>2];
  10308. $26 = $3 * $25;
  10309. $27 = ((($1)) + 20|0);
  10310. $28 = +HEAPF32[$27>>2];
  10311. $29 = $7 * $28;
  10312. $30 = $26 + $29;
  10313. $31 = ((($1)) + 24|0);
  10314. $32 = +HEAPF32[$31>>2];
  10315. $33 = $13 * $32;
  10316. $34 = $30 + $33;
  10317. $35 = ((($1)) + 28|0);
  10318. $36 = +HEAPF32[$35>>2];
  10319. $37 = $19 * $36;
  10320. $38 = $34 + $37;
  10321. $39 = ((($1)) + 32|0);
  10322. $40 = +HEAPF32[$39>>2];
  10323. $41 = $3 * $40;
  10324. $42 = ((($1)) + 36|0);
  10325. $43 = +HEAPF32[$42>>2];
  10326. $44 = $7 * $43;
  10327. $45 = $41 + $44;
  10328. $46 = ((($1)) + 40|0);
  10329. $47 = +HEAPF32[$46>>2];
  10330. $48 = $13 * $47;
  10331. $49 = $45 + $48;
  10332. $50 = ((($1)) + 44|0);
  10333. $51 = +HEAPF32[$50>>2];
  10334. $52 = $19 * $51;
  10335. $53 = $49 + $52;
  10336. $54 = ((($1)) + 48|0);
  10337. $55 = +HEAPF32[$54>>2];
  10338. $56 = $3 * $55;
  10339. $57 = ((($1)) + 52|0);
  10340. $58 = +HEAPF32[$57>>2];
  10341. $59 = $7 * $58;
  10342. $60 = $56 + $59;
  10343. $61 = ((($1)) + 56|0);
  10344. $62 = +HEAPF32[$61>>2];
  10345. $63 = $13 * $62;
  10346. $64 = $60 + $63;
  10347. $65 = ((($1)) + 60|0);
  10348. $66 = +HEAPF32[$65>>2];
  10349. $67 = $19 * $66;
  10350. $68 = $64 + $67;
  10351. $69 = ((($2)) + 4|0);
  10352. $70 = +HEAPF32[$69>>2];
  10353. $71 = $4 * $70;
  10354. $72 = ((($2)) + 20|0);
  10355. $73 = +HEAPF32[$72>>2];
  10356. $74 = $9 * $73;
  10357. $75 = $71 + $74;
  10358. $76 = ((($2)) + 36|0);
  10359. $77 = +HEAPF32[$76>>2];
  10360. $78 = $15 * $77;
  10361. $79 = $75 + $78;
  10362. $80 = ((($2)) + 52|0);
  10363. $81 = +HEAPF32[$80>>2];
  10364. $82 = $21 * $81;
  10365. $83 = $79 + $82;
  10366. $84 = $25 * $70;
  10367. $85 = $28 * $73;
  10368. $86 = $84 + $85;
  10369. $87 = $32 * $77;
  10370. $88 = $86 + $87;
  10371. $89 = $36 * $81;
  10372. $90 = $88 + $89;
  10373. $91 = $40 * $70;
  10374. $92 = $43 * $73;
  10375. $93 = $91 + $92;
  10376. $94 = $47 * $77;
  10377. $95 = $93 + $94;
  10378. $96 = $51 * $81;
  10379. $97 = $95 + $96;
  10380. $98 = $55 * $70;
  10381. $99 = $58 * $73;
  10382. $100 = $98 + $99;
  10383. $101 = $62 * $77;
  10384. $102 = $100 + $101;
  10385. $103 = $66 * $81;
  10386. $104 = $102 + $103;
  10387. $105 = ((($2)) + 8|0);
  10388. $106 = +HEAPF32[$105>>2];
  10389. $107 = $4 * $106;
  10390. $108 = ((($2)) + 24|0);
  10391. $109 = +HEAPF32[$108>>2];
  10392. $110 = $9 * $109;
  10393. $111 = $107 + $110;
  10394. $112 = ((($2)) + 40|0);
  10395. $113 = +HEAPF32[$112>>2];
  10396. $114 = $15 * $113;
  10397. $115 = $111 + $114;
  10398. $116 = ((($2)) + 56|0);
  10399. $117 = +HEAPF32[$116>>2];
  10400. $118 = $21 * $117;
  10401. $119 = $115 + $118;
  10402. $120 = $25 * $106;
  10403. $121 = $28 * $109;
  10404. $122 = $120 + $121;
  10405. $123 = $32 * $113;
  10406. $124 = $122 + $123;
  10407. $125 = $36 * $117;
  10408. $126 = $124 + $125;
  10409. $127 = $40 * $106;
  10410. $128 = $43 * $109;
  10411. $129 = $127 + $128;
  10412. $130 = $47 * $113;
  10413. $131 = $129 + $130;
  10414. $132 = $51 * $117;
  10415. $133 = $131 + $132;
  10416. $134 = $55 * $106;
  10417. $135 = $58 * $109;
  10418. $136 = $134 + $135;
  10419. $137 = $62 * $113;
  10420. $138 = $136 + $137;
  10421. $139 = $66 * $117;
  10422. $140 = $138 + $139;
  10423. $141 = ((($2)) + 12|0);
  10424. $142 = +HEAPF32[$141>>2];
  10425. $143 = $4 * $142;
  10426. $144 = ((($2)) + 28|0);
  10427. $145 = +HEAPF32[$144>>2];
  10428. $146 = $9 * $145;
  10429. $147 = $143 + $146;
  10430. $148 = ((($2)) + 44|0);
  10431. $149 = +HEAPF32[$148>>2];
  10432. $150 = $15 * $149;
  10433. $151 = $147 + $150;
  10434. $152 = ((($2)) + 60|0);
  10435. $153 = +HEAPF32[$152>>2];
  10436. $154 = $21 * $153;
  10437. $155 = $151 + $154;
  10438. $156 = $25 * $142;
  10439. $157 = $28 * $145;
  10440. $158 = $156 + $157;
  10441. $159 = $32 * $149;
  10442. $160 = $158 + $159;
  10443. $161 = $36 * $153;
  10444. $162 = $160 + $161;
  10445. $163 = $40 * $142;
  10446. $164 = $43 * $145;
  10447. $165 = $163 + $164;
  10448. $166 = $47 * $149;
  10449. $167 = $165 + $166;
  10450. $168 = $51 * $153;
  10451. $169 = $167 + $168;
  10452. $170 = $55 * $142;
  10453. $171 = $58 * $145;
  10454. $172 = $170 + $171;
  10455. $173 = $62 * $149;
  10456. $174 = $172 + $173;
  10457. $175 = $66 * $153;
  10458. $176 = $174 + $175;
  10459. HEAPF32[$0>>2] = $23;
  10460. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  10461. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $83;
  10462. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  10463. HEAPF32[$$sroa$5$0$$sroa_idx4>>2] = $119;
  10464. $$sroa$6$0$$sroa_idx6 = ((($0)) + 12|0);
  10465. HEAPF32[$$sroa$6$0$$sroa_idx6>>2] = $155;
  10466. $$sroa$7$0$$sroa_idx8 = ((($0)) + 16|0);
  10467. HEAPF32[$$sroa$7$0$$sroa_idx8>>2] = $38;
  10468. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  10469. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = $90;
  10470. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  10471. HEAPF32[$$sroa$9$0$$sroa_idx12>>2] = $126;
  10472. $$sroa$10$0$$sroa_idx14 = ((($0)) + 28|0);
  10473. HEAPF32[$$sroa$10$0$$sroa_idx14>>2] = $162;
  10474. $$sroa$11$0$$sroa_idx16 = ((($0)) + 32|0);
  10475. HEAPF32[$$sroa$11$0$$sroa_idx16>>2] = $53;
  10476. $$sroa$12$0$$sroa_idx18 = ((($0)) + 36|0);
  10477. HEAPF32[$$sroa$12$0$$sroa_idx18>>2] = $97;
  10478. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  10479. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = $133;
  10480. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  10481. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = $169;
  10482. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  10483. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $68;
  10484. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  10485. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $104;
  10486. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  10487. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $140;
  10488. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  10489. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = $176;
  10490. return;
  10491. }
  10492. function _MatrixFrustum($0,$1,$2,$3,$4,$5,$6) {
  10493. $0 = $0|0;
  10494. $1 = +$1;
  10495. $2 = +$2;
  10496. $3 = +$3;
  10497. $4 = +$4;
  10498. $5 = +$5;
  10499. $6 = +$6;
  10500. 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;
  10501. 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;
  10502. var $35 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  10503. sp = STACKTOP;
  10504. $7 = $2 - $1;
  10505. $8 = $7;
  10506. $9 = $4 - $3;
  10507. $10 = $9;
  10508. $11 = $6 - $5;
  10509. $12 = $11;
  10510. $13 = $5 * 2.0;
  10511. $14 = $8;
  10512. $15 = $13 / $14;
  10513. $16 = $15;
  10514. $17 = $10;
  10515. $18 = $13 / $17;
  10516. $19 = $18;
  10517. $20 = $1 + $2;
  10518. $21 = $20 / $14;
  10519. $22 = $21;
  10520. $23 = $3 + $4;
  10521. $24 = $23 / $17;
  10522. $25 = $24;
  10523. $26 = $5 + $6;
  10524. $27 = -$26;
  10525. $28 = $12;
  10526. $29 = $27 / $28;
  10527. $30 = $29;
  10528. $31 = $5 * $6;
  10529. $32 = $31 * 2.0;
  10530. $33 = -$32;
  10531. $34 = $33 / $28;
  10532. $35 = $34;
  10533. HEAPF32[$0>>2] = $16;
  10534. $$sroa$4$0$$sroa_idx12 = ((($0)) + 4|0);
  10535. HEAPF32[$$sroa$4$0$$sroa_idx12>>2] = 0.0;
  10536. $$sroa$5$0$$sroa_idx14 = ((($0)) + 8|0);
  10537. HEAPF32[$$sroa$5$0$$sroa_idx14>>2] = $22;
  10538. $$sroa$6$0$$sroa_idx16 = ((($0)) + 12|0);
  10539. HEAPF32[$$sroa$6$0$$sroa_idx16>>2] = 0.0;
  10540. $$sroa$7$0$$sroa_idx18 = ((($0)) + 16|0);
  10541. HEAPF32[$$sroa$7$0$$sroa_idx18>>2] = 0.0;
  10542. $$sroa$8$0$$sroa_idx20 = ((($0)) + 20|0);
  10543. HEAPF32[$$sroa$8$0$$sroa_idx20>>2] = $19;
  10544. $$sroa$9$0$$sroa_idx22 = ((($0)) + 24|0);
  10545. HEAPF32[$$sroa$9$0$$sroa_idx22>>2] = $25;
  10546. $$sroa$10$0$$sroa_idx24 = ((($0)) + 28|0);
  10547. HEAPF32[$$sroa$10$0$$sroa_idx24>>2] = 0.0;
  10548. $$sroa$11$0$$sroa_idx26 = ((($0)) + 32|0);
  10549. HEAPF32[$$sroa$11$0$$sroa_idx26>>2] = 0.0;
  10550. $$sroa$12$0$$sroa_idx28 = ((($0)) + 36|0);
  10551. HEAPF32[$$sroa$12$0$$sroa_idx28>>2] = 0.0;
  10552. $$sroa$13$0$$sroa_idx30 = ((($0)) + 40|0);
  10553. HEAPF32[$$sroa$13$0$$sroa_idx30>>2] = $30;
  10554. $$sroa$14$0$$sroa_idx32 = ((($0)) + 44|0);
  10555. HEAPF32[$$sroa$14$0$$sroa_idx32>>2] = $35;
  10556. $$sroa$15$0$$sroa_idx34 = ((($0)) + 48|0);
  10557. HEAPF32[$$sroa$15$0$$sroa_idx34>>2] = 0.0;
  10558. $$sroa$16$0$$sroa_idx36 = ((($0)) + 52|0);
  10559. HEAPF32[$$sroa$16$0$$sroa_idx36>>2] = 0.0;
  10560. $$sroa$17$0$$sroa_idx38 = ((($0)) + 56|0);
  10561. HEAPF32[$$sroa$17$0$$sroa_idx38>>2] = -1.0;
  10562. $$sroa$18$0$$sroa_idx40 = ((($0)) + 60|0);
  10563. HEAPF32[$$sroa$18$0$$sroa_idx40>>2] = 0.0;
  10564. return;
  10565. }
  10566. function _MatrixOrtho($0,$1,$2,$3,$4,$5,$6) {
  10567. $0 = $0|0;
  10568. $1 = +$1;
  10569. $2 = +$2;
  10570. $3 = +$3;
  10571. $4 = +$4;
  10572. $5 = +$5;
  10573. $6 = +$6;
  10574. 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;
  10575. 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;
  10576. var sp = 0;
  10577. sp = STACKTOP;
  10578. $7 = $2 - $1;
  10579. $8 = $7;
  10580. $9 = $4 - $3;
  10581. $10 = $9;
  10582. $11 = $6 - $5;
  10583. $12 = $11;
  10584. $13 = 2.0 / $8;
  10585. $14 = 2.0 / $10;
  10586. $15 = -2.0 / $12;
  10587. $16 = $1 + $2;
  10588. $17 = -$16;
  10589. $18 = $8;
  10590. $19 = $17 / $18;
  10591. $20 = $19;
  10592. $21 = $3 + $4;
  10593. $22 = -$21;
  10594. $23 = $10;
  10595. $24 = $22 / $23;
  10596. $25 = $24;
  10597. $26 = $5 + $6;
  10598. $27 = -$26;
  10599. $28 = $12;
  10600. $29 = $27 / $28;
  10601. $30 = $29;
  10602. HEAPF32[$0>>2] = $13;
  10603. $$sroa$4$0$$sroa_idx12 = ((($0)) + 4|0);
  10604. HEAPF32[$$sroa$4$0$$sroa_idx12>>2] = 0.0;
  10605. $$sroa$5$0$$sroa_idx14 = ((($0)) + 8|0);
  10606. HEAPF32[$$sroa$5$0$$sroa_idx14>>2] = 0.0;
  10607. $$sroa$6$0$$sroa_idx16 = ((($0)) + 12|0);
  10608. HEAPF32[$$sroa$6$0$$sroa_idx16>>2] = $20;
  10609. $$sroa$7$0$$sroa_idx18 = ((($0)) + 16|0);
  10610. HEAPF32[$$sroa$7$0$$sroa_idx18>>2] = 0.0;
  10611. $$sroa$8$0$$sroa_idx20 = ((($0)) + 20|0);
  10612. HEAPF32[$$sroa$8$0$$sroa_idx20>>2] = $14;
  10613. $$sroa$9$0$$sroa_idx22 = ((($0)) + 24|0);
  10614. HEAPF32[$$sroa$9$0$$sroa_idx22>>2] = 0.0;
  10615. $$sroa$10$0$$sroa_idx24 = ((($0)) + 28|0);
  10616. HEAPF32[$$sroa$10$0$$sroa_idx24>>2] = $25;
  10617. $$sroa$11$0$$sroa_idx26 = ((($0)) + 32|0);
  10618. HEAPF32[$$sroa$11$0$$sroa_idx26>>2] = 0.0;
  10619. $$sroa$12$0$$sroa_idx28 = ((($0)) + 36|0);
  10620. HEAPF32[$$sroa$12$0$$sroa_idx28>>2] = 0.0;
  10621. $$sroa$13$0$$sroa_idx30 = ((($0)) + 40|0);
  10622. HEAPF32[$$sroa$13$0$$sroa_idx30>>2] = $15;
  10623. $$sroa$14$0$$sroa_idx32 = ((($0)) + 44|0);
  10624. HEAPF32[$$sroa$14$0$$sroa_idx32>>2] = $30;
  10625. $$sroa$15$0$$sroa_idx34 = ((($0)) + 48|0);
  10626. HEAPF32[$$sroa$15$0$$sroa_idx34>>2] = 0.0;
  10627. $$sroa$16$0$$sroa_idx36 = ((($0)) + 52|0);
  10628. HEAPF32[$$sroa$16$0$$sroa_idx36>>2] = 0.0;
  10629. $$sroa$17$0$$sroa_idx38 = ((($0)) + 56|0);
  10630. HEAPF32[$$sroa$17$0$$sroa_idx38>>2] = 0.0;
  10631. $$sroa$18$0$$sroa_idx40 = ((($0)) + 60|0);
  10632. HEAPF32[$$sroa$18$0$$sroa_idx40>>2] = 1.0;
  10633. return;
  10634. }
  10635. function _MatrixLookAt($0,$1,$2,$3) {
  10636. $0 = $0|0;
  10637. $1 = $1|0;
  10638. $2 = $2|0;
  10639. $3 = $3|0;
  10640. 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;
  10641. 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;
  10642. 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;
  10643. sp = STACKTOP;
  10644. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  10645. $$byval_copy5 = sp + 48|0;
  10646. $$byval_copy4 = sp + 36|0;
  10647. $4 = sp + 24|0;
  10648. $5 = sp + 12|0;
  10649. $6 = sp;
  10650. ;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;
  10651. ;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;
  10652. _VectorSubtract($4,$$byval_copy4,$$byval_copy5);
  10653. _VectorNormalize($4);
  10654. ;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;
  10655. ;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;
  10656. _VectorCrossProduct($5,$$byval_copy4,$$byval_copy5);
  10657. _VectorNormalize($5);
  10658. ;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;
  10659. ;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;
  10660. _VectorCrossProduct($6,$$byval_copy4,$$byval_copy5);
  10661. _VectorNormalize($6);
  10662. $7 = +HEAPF32[$5>>2];
  10663. $8 = ((($5)) + 4|0);
  10664. $9 = +HEAPF32[$8>>2];
  10665. $10 = ((($5)) + 8|0);
  10666. $11 = +HEAPF32[$10>>2];
  10667. $12 = +HEAPF32[$1>>2];
  10668. $13 = $7 * $12;
  10669. $14 = ((($1)) + 4|0);
  10670. $15 = +HEAPF32[$14>>2];
  10671. $16 = $9 * $15;
  10672. $17 = $13 + $16;
  10673. $18 = ((($1)) + 8|0);
  10674. $19 = +HEAPF32[$18>>2];
  10675. $20 = $11 * $19;
  10676. $21 = $17 + $20;
  10677. $22 = -$21;
  10678. $23 = +HEAPF32[$6>>2];
  10679. $24 = ((($6)) + 4|0);
  10680. $25 = +HEAPF32[$24>>2];
  10681. $26 = ((($6)) + 8|0);
  10682. $27 = +HEAPF32[$26>>2];
  10683. $28 = $12 * $23;
  10684. $29 = $15 * $25;
  10685. $30 = $28 + $29;
  10686. $31 = $19 * $27;
  10687. $32 = $30 + $31;
  10688. $33 = -$32;
  10689. $34 = +HEAPF32[$4>>2];
  10690. $35 = ((($4)) + 4|0);
  10691. $36 = +HEAPF32[$35>>2];
  10692. $37 = ((($4)) + 8|0);
  10693. $38 = +HEAPF32[$37>>2];
  10694. $39 = $12 * $34;
  10695. $40 = $15 * $36;
  10696. $41 = $39 + $40;
  10697. $42 = $19 * $38;
  10698. $43 = $41 + $42;
  10699. $44 = -$43;
  10700. HEAPF32[$0>>2] = $7;
  10701. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  10702. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $23;
  10703. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  10704. HEAPF32[$$sroa$5$0$$sroa_idx4>>2] = $34;
  10705. $$sroa$6$0$$sroa_idx6 = ((($0)) + 12|0);
  10706. HEAPF32[$$sroa$6$0$$sroa_idx6>>2] = 0.0;
  10707. $$sroa$7$0$$sroa_idx8 = ((($0)) + 16|0);
  10708. HEAPF32[$$sroa$7$0$$sroa_idx8>>2] = $9;
  10709. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  10710. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = $25;
  10711. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  10712. HEAPF32[$$sroa$9$0$$sroa_idx12>>2] = $36;
  10713. $$sroa$10$0$$sroa_idx14 = ((($0)) + 28|0);
  10714. HEAPF32[$$sroa$10$0$$sroa_idx14>>2] = 0.0;
  10715. $$sroa$11$0$$sroa_idx16 = ((($0)) + 32|0);
  10716. HEAPF32[$$sroa$11$0$$sroa_idx16>>2] = $11;
  10717. $$sroa$12$0$$sroa_idx18 = ((($0)) + 36|0);
  10718. HEAPF32[$$sroa$12$0$$sroa_idx18>>2] = $27;
  10719. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  10720. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = $38;
  10721. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  10722. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = 0.0;
  10723. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  10724. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $22;
  10725. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  10726. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $33;
  10727. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  10728. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $44;
  10729. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  10730. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = 1.0;
  10731. STACKTOP = sp;return;
  10732. }
  10733. function _ProcessGestureEvent($0) {
  10734. $0 = $0|0;
  10735. 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;
  10736. 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;
  10737. 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;
  10738. 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;
  10739. 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;
  10740. 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;
  10741. 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;
  10742. 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;
  10743. 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;
  10744. var $moveDownPosition2$byval_copy12 = 0, $or$cond = 0, $or$cond3 = 0, $or$cond5 = 0, $or$cond7 = 0, $or$cond9 = 0, label = 0, sp = 0;
  10745. sp = STACKTOP;
  10746. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  10747. $moveDownPosition2$byval_copy12 = sp + 8|0;
  10748. $moveDownPosition$byval_copy11 = sp;
  10749. $1 = ((($0)) + 4|0);
  10750. $2 = HEAP32[$1>>2]|0;
  10751. HEAP32[4430] = $2;
  10752. $3 = ($2|0)<(2);
  10753. $4 = HEAP32[$0>>2]|0;
  10754. $5 = ($4|0)==(1);
  10755. if (!($3)) {
  10756. if ($5) {
  10757. $88 = ((($0)) + 24|0);
  10758. $89 = $88;
  10759. $90 = $89;
  10760. $91 = HEAP32[$90>>2]|0;
  10761. $92 = (($89) + 4)|0;
  10762. $93 = $92;
  10763. $94 = HEAP32[$93>>2]|0;
  10764. $95 = 17152;
  10765. $96 = $95;
  10766. HEAP32[$96>>2] = $91;
  10767. $97 = (($95) + 4)|0;
  10768. $98 = $97;
  10769. HEAP32[$98>>2] = $94;
  10770. $99 = ((($0)) + 32|0);
  10771. $100 = $99;
  10772. $101 = $100;
  10773. $102 = HEAP32[$101>>2]|0;
  10774. $103 = (($100) + 4)|0;
  10775. $104 = $103;
  10776. $105 = HEAP32[$104>>2]|0;
  10777. $106 = 17192;
  10778. $107 = $106;
  10779. HEAP32[$107>>2] = $102;
  10780. $108 = (($106) + 4)|0;
  10781. $109 = $108;
  10782. HEAP32[$109>>2] = $105;
  10783. $110 = +HEAPF32[4298];
  10784. $111 = +HEAPF32[4288];
  10785. $112 = $110 - $111;
  10786. HEAPF32[4300] = $112;
  10787. $113 = +HEAPF32[(17196)>>2];
  10788. $114 = +HEAPF32[(17156)>>2];
  10789. $115 = $113 - $114;
  10790. HEAPF32[(17204)>>2] = $115;
  10791. HEAP32[4429] = 4;
  10792. STACKTOP = sp;return;
  10793. }
  10794. switch ($4|0) {
  10795. case 2: {
  10796. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[17184>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[17184+4>>2]|0;
  10797. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[17208>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[17208+4>>2]|0;
  10798. $116 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10799. HEAPF32[4435] = $116;
  10800. $117 = 17184;
  10801. $118 = $117;
  10802. $119 = HEAP32[$118>>2]|0;
  10803. $120 = (($117) + 4)|0;
  10804. $121 = $120;
  10805. $122 = HEAP32[$121>>2]|0;
  10806. $123 = 17152;
  10807. $124 = $123;
  10808. HEAP32[$124>>2] = $119;
  10809. $125 = (($123) + 4)|0;
  10810. $126 = $125;
  10811. HEAP32[$126>>2] = $122;
  10812. $127 = 17208;
  10813. $128 = $127;
  10814. $129 = HEAP32[$128>>2]|0;
  10815. $130 = (($127) + 4)|0;
  10816. $131 = $130;
  10817. $132 = HEAP32[$131>>2]|0;
  10818. $133 = 17192;
  10819. $134 = $133;
  10820. HEAP32[$134>>2] = $129;
  10821. $135 = (($133) + 4)|0;
  10822. $136 = $135;
  10823. HEAP32[$136>>2] = $132;
  10824. $137 = ((($0)) + 24|0);
  10825. $138 = $137;
  10826. $139 = $138;
  10827. $140 = HEAP32[$139>>2]|0;
  10828. $141 = (($138) + 4)|0;
  10829. $142 = $141;
  10830. $143 = HEAP32[$142>>2]|0;
  10831. $144 = 17184;
  10832. $145 = $144;
  10833. HEAP32[$145>>2] = $140;
  10834. $146 = (($144) + 4)|0;
  10835. $147 = $146;
  10836. HEAP32[$147>>2] = $143;
  10837. $148 = ((($0)) + 32|0);
  10838. $149 = $148;
  10839. $150 = $149;
  10840. $151 = HEAP32[$150>>2]|0;
  10841. $152 = (($149) + 4)|0;
  10842. $153 = $152;
  10843. $154 = HEAP32[$153>>2]|0;
  10844. $155 = 17208;
  10845. $156 = $155;
  10846. HEAP32[$156>>2] = $151;
  10847. $157 = (($155) + 4)|0;
  10848. $158 = $157;
  10849. HEAP32[$158>>2] = $154;
  10850. $159 = +HEAPF32[4302];
  10851. $160 = +HEAPF32[4296];
  10852. $161 = $159 - $160;
  10853. HEAPF32[4300] = $161;
  10854. $162 = +HEAPF32[(17212)>>2];
  10855. $163 = +HEAPF32[(17188)>>2];
  10856. $164 = $162 - $163;
  10857. HEAPF32[(17204)>>2] = $164;
  10858. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[17152>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[17152+4>>2]|0;
  10859. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[17184>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[17184+4>>2]|0;
  10860. $165 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10861. $166 = !($165 >= 0.004999999888241291);
  10862. if ($166) {
  10863. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[17192>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[17192+4>>2]|0;
  10864. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[17208>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[17208+4>>2]|0;
  10865. $167 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10866. $168 = !($167 >= 0.004999999888241291);
  10867. if ($168) {
  10868. $$sink16 = 4;
  10869. } else {
  10870. label = 29;
  10871. }
  10872. } else {
  10873. label = 29;
  10874. }
  10875. if ((label|0) == 29) {
  10876. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[17184>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[17184+4>>2]|0;
  10877. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[17208>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[17208+4>>2]|0;
  10878. $169 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10879. $170 = +HEAPF32[4435];
  10880. $171 = $169 - $170;
  10881. $172 = $171 < 0.0;
  10882. $$sink11 = $172 ? 256 : 512;
  10883. $$sink16 = $$sink11;
  10884. }
  10885. HEAP32[4429] = $$sink16;
  10886. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[17184>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[17184+4>>2]|0;
  10887. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[17208>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[17208+4>>2]|0;
  10888. $173 = (+_Vector2Angle($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10889. $174 = 360.0 - $173;
  10890. HEAPF32[4436] = $174;
  10891. STACKTOP = sp;return;
  10892. break;
  10893. }
  10894. case 0: {
  10895. HEAPF32[4435] = 0.0;
  10896. HEAPF32[4436] = 0.0;
  10897. HEAPF32[4300] = 0.0;
  10898. HEAPF32[(17204)>>2] = 0.0;
  10899. HEAP32[4430] = 0;
  10900. HEAP32[4429] = 0;
  10901. STACKTOP = sp;return;
  10902. break;
  10903. }
  10904. default: {
  10905. STACKTOP = sp;return;
  10906. }
  10907. }
  10908. }
  10909. if ($5) {
  10910. $6 = HEAP32[4431]|0;
  10911. $7 = (($6) + 1)|0;
  10912. HEAP32[4431] = $7;
  10913. $8 = HEAP32[4429]|0;
  10914. $9 = ($8|0)==(0);
  10915. $10 = ($6|0)>(0);
  10916. $or$cond = $10 & $9;
  10917. if ($or$cond) {
  10918. $11 = ((($0)) + 24|0);
  10919. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[17152>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[17152+4>>2]|0;
  10920. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[$11>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[$11+4>>2]|0;
  10921. $12 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10922. $13 = $12 < 0.029999999329447746;
  10923. if ($13) {
  10924. HEAP32[4429] = 2;
  10925. HEAP32[4431] = 0;
  10926. } else {
  10927. label = 6;
  10928. }
  10929. } else {
  10930. label = 6;
  10931. }
  10932. if ((label|0) == 6) {
  10933. HEAP32[4431] = 1;
  10934. HEAP32[4429] = 1;
  10935. }
  10936. $14 = ((($0)) + 24|0);
  10937. $15 = $14;
  10938. $16 = $15;
  10939. $17 = HEAP32[$16>>2]|0;
  10940. $18 = (($15) + 4)|0;
  10941. $19 = $18;
  10942. $20 = HEAP32[$19>>2]|0;
  10943. $21 = 17152;
  10944. $22 = $21;
  10945. HEAP32[$22>>2] = $17;
  10946. $23 = (($21) + 4)|0;
  10947. $24 = $23;
  10948. HEAP32[$24>>2] = $20;
  10949. $25 = 17160;
  10950. $26 = $25;
  10951. HEAP32[$26>>2] = $17;
  10952. $27 = (($25) + 4)|0;
  10953. $28 = $27;
  10954. HEAP32[$28>>2] = $20;
  10955. $29 = 17168;
  10956. $30 = $29;
  10957. HEAP32[$30>>2] = $17;
  10958. $31 = (($29) + 4)|0;
  10959. $32 = $31;
  10960. HEAP32[$32>>2] = $20;
  10961. $33 = ((($0)) + 8|0);
  10962. $34 = HEAP32[$33>>2]|0;
  10963. HEAP32[17] = $34;
  10964. HEAPF32[4294] = 0.0;
  10965. HEAPF32[(17180)>>2] = 0.0;
  10966. STACKTOP = sp;return;
  10967. }
  10968. switch ($4|0) {
  10969. case 0: {
  10970. $35 = HEAP32[4429]|0;
  10971. $36 = ($35|0)==(8);
  10972. if ($36) {
  10973. $37 = ((($0)) + 24|0);
  10974. $38 = $37;
  10975. $39 = $38;
  10976. $40 = HEAP32[$39>>2]|0;
  10977. $41 = (($38) + 4)|0;
  10978. $42 = $41;
  10979. $43 = HEAP32[$42>>2]|0;
  10980. $44 = 17168;
  10981. $45 = $44;
  10982. HEAP32[$45>>2] = $40;
  10983. $46 = (($44) + 4)|0;
  10984. $47 = $46;
  10985. HEAP32[$47>>2] = $43;
  10986. }
  10987. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[17152>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[17152+4>>2]|0;
  10988. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[17168>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[17168+4>>2]|0;
  10989. $48 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10990. $49 = $48 / 0.0;
  10991. HEAPF32[4432] = $49;
  10992. HEAP32[4433] = 0;
  10993. $50 = $49 > 5.0000002374872565E-4;
  10994. if ($50) {
  10995. $51 = HEAP32[17]|0;
  10996. $52 = ((($0)) + 8|0);
  10997. $53 = HEAP32[$52>>2]|0;
  10998. $54 = ($51|0)==($53|0);
  10999. if ($54) {
  11000. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[17152>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[17152+4>>2]|0;
  11001. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[17168>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[17168+4>>2]|0;
  11002. $55 = (+_Vector2Angle($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  11003. $56 = 360.0 - $55;
  11004. HEAPF32[4434] = $56;
  11005. $57 = $56 < 30.0;
  11006. $58 = $56 > 330.0;
  11007. $or$cond3 = $57 | $58;
  11008. if ($or$cond3) {
  11009. $$sink10 = 16;
  11010. } else {
  11011. $59 = $56 > 30.0;
  11012. $60 = $56 < 120.0;
  11013. $or$cond5 = $59 & $60;
  11014. if ($or$cond5) {
  11015. $$sink10 = 64;
  11016. } else {
  11017. $61 = $56 > 120.0;
  11018. $62 = $56 < 210.0;
  11019. $or$cond7 = $61 & $62;
  11020. $63 = $56 > 210.0;
  11021. $64 = $56 < 300.0;
  11022. $or$cond9 = $63 & $64;
  11023. $$sink = $or$cond9 ? 128 : 0;
  11024. $$$sink = $or$cond7 ? 32 : $$sink;
  11025. $$sink10 = $$$sink;
  11026. }
  11027. }
  11028. } else {
  11029. label = 16;
  11030. }
  11031. } else {
  11032. label = 16;
  11033. }
  11034. if ((label|0) == 16) {
  11035. HEAPF32[4432] = 0.0;
  11036. HEAPF32[4434] = 0.0;
  11037. $$sink10 = 0;
  11038. }
  11039. HEAP32[4429] = $$sink10;
  11040. HEAPF32[4290] = 0.0;
  11041. HEAPF32[(17164)>>2] = 0.0;
  11042. HEAP32[4430] = 0;
  11043. STACKTOP = sp;return;
  11044. break;
  11045. }
  11046. case 2: {
  11047. $65 = HEAP32[4433]|0;
  11048. $66 = ($65|0)==(0);
  11049. if ($66) {
  11050. HEAP32[4433] = 1;
  11051. }
  11052. $67 = ((($0)) + 24|0);
  11053. $68 = $67;
  11054. $69 = $68;
  11055. $70 = HEAP32[$69>>2]|0;
  11056. $71 = (($68) + 4)|0;
  11057. $72 = $71;
  11058. $73 = HEAP32[$72>>2]|0;
  11059. $74 = 17184;
  11060. $75 = $74;
  11061. HEAP32[$75>>2] = $70;
  11062. $76 = (($74) + 4)|0;
  11063. $77 = $76;
  11064. HEAP32[$77>>2] = $73;
  11065. $78 = HEAP32[4429]|0;
  11066. $79 = ($78|0)==(4);
  11067. if ($79) {
  11068. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[17152>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[17152+4>>2]|0;
  11069. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[17184>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[17184+4>>2]|0;
  11070. $80 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  11071. $81 = !($80 >= 0.014999999664723873);
  11072. if (!($81)) {
  11073. HEAP32[4429] = 8;
  11074. }
  11075. }
  11076. $82 = +HEAPF32[4296];
  11077. $83 = +HEAPF32[4290];
  11078. $84 = $82 - $83;
  11079. HEAPF32[4294] = $84;
  11080. $85 = +HEAPF32[(17188)>>2];
  11081. $86 = +HEAPF32[(17164)>>2];
  11082. $87 = $85 - $86;
  11083. HEAPF32[(17180)>>2] = $87;
  11084. STACKTOP = sp;return;
  11085. break;
  11086. }
  11087. default: {
  11088. STACKTOP = sp;return;
  11089. }
  11090. }
  11091. }
  11092. function _UpdateGestures() {
  11093. 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;
  11094. sp = STACKTOP;
  11095. $0 = HEAP32[4429]|0;
  11096. $$off = (($0) + -1)|0;
  11097. $1 = ($$off>>>0)<(2);
  11098. $2 = HEAP32[4430]|0;
  11099. $3 = ($2|0)<(2);
  11100. $or$cond3 = $1 & $3;
  11101. if ($or$cond3) {
  11102. HEAP32[4429] = 4;
  11103. }
  11104. $4 = HEAP32[4429]|0;
  11105. $5 = (($4) + -16)|0;
  11106. $6 = $5 >>> 4;
  11107. $7 = $5 << 28;
  11108. $8 = $6 | $7;
  11109. switch ($8|0) {
  11110. case 0: case 1: case 3: case 7: {
  11111. break;
  11112. }
  11113. default: {
  11114. return;
  11115. }
  11116. }
  11117. HEAP32[4429] = 0;
  11118. return;
  11119. }
  11120. function _SetCameraMode($0,$1) {
  11121. $0 = $0|0;
  11122. $1 = $1|0;
  11123. var $$sroa$023$0$$sroa_idx = 0, $$sroa$023$0$copyload = 0.0, $$sroa$030$0$copyload = 0.0, $$sroa$4$0$$sroa_idx25 = 0, $$sroa$4$0$copyload = 0.0, $$sroa$432$0$$sroa_idx33 = 0, $$sroa$432$0$copyload = 0.0, $$sroa$527$0$$sroa_idx28 = 0, $$sroa$527$0$copyload = 0.0, $$sroa$535$0$$sroa_idx36 = 0, $$sroa$535$0$copyload = 0.0, $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0.0;
  11124. var $19 = 0.0, $2 = 0.0, $20 = 0.0, $21 = 0, $3 = 0.0, $4 = 0.0, $5 = 0.0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  11125. sp = STACKTOP;
  11126. $$sroa$030$0$copyload = +HEAPF32[$0>>2];
  11127. $$sroa$432$0$$sroa_idx33 = ((($0)) + 4|0);
  11128. $$sroa$432$0$copyload = +HEAPF32[$$sroa$432$0$$sroa_idx33>>2];
  11129. $$sroa$535$0$$sroa_idx36 = ((($0)) + 8|0);
  11130. $$sroa$535$0$copyload = +HEAPF32[$$sroa$535$0$$sroa_idx36>>2];
  11131. $$sroa$023$0$$sroa_idx = ((($0)) + 12|0);
  11132. $$sroa$023$0$copyload = +HEAPF32[$$sroa$023$0$$sroa_idx>>2];
  11133. $$sroa$4$0$$sroa_idx25 = ((($0)) + 16|0);
  11134. $$sroa$4$0$copyload = +HEAPF32[$$sroa$4$0$$sroa_idx25>>2];
  11135. $$sroa$527$0$$sroa_idx28 = ((($0)) + 20|0);
  11136. $$sroa$527$0$copyload = +HEAPF32[$$sroa$527$0$$sroa_idx28>>2];
  11137. $2 = $$sroa$023$0$copyload - $$sroa$030$0$copyload;
  11138. $3 = $$sroa$4$0$copyload - $$sroa$432$0$copyload;
  11139. $4 = $$sroa$527$0$copyload - $$sroa$535$0$copyload;
  11140. $5 = $2 * $2;
  11141. $6 = $3 * $3;
  11142. $7 = $5 + $6;
  11143. $8 = $4 * $4;
  11144. $9 = $7 + $8;
  11145. $10 = (+Math_sqrt((+$9)));
  11146. HEAPF32[4437] = $10;
  11147. $11 = $5 + $8;
  11148. $12 = (+Math_sqrt((+$11)));
  11149. $13 = (+Math_sqrt((+$7)));
  11150. $14 = (+Math_abs((+$2)));
  11151. $15 = $14 / $12;
  11152. $16 = (+Math_asin((+$15)));
  11153. HEAPF32[4438] = $16;
  11154. $17 = (+Math_abs((+$3)));
  11155. $18 = $17 / $13;
  11156. $19 = (+Math_asin((+$18)));
  11157. $20 = -$19;
  11158. HEAPF32[4439] = $20;
  11159. $21 = HEAP32[$$sroa$432$0$$sroa_idx33>>2]|0;
  11160. HEAP32[18] = $21;
  11161. HEAP32[4440] = $1;
  11162. return;
  11163. }
  11164. function _UpdateCamera($0) {
  11165. $0 = $0|0;
  11166. var $$ = 0, $$0 = 0, $$byval_copy3 = 0, $$not = 0, $$not188 = 0, $$off187 = 0, $$pr = 0, $$pr190 = 0, $$sink = 0.0, $$sink17 = 0, $$sink22 = 0.0, $$sink22$p = 0.0, $$sink26 = 0.0, $$sink28 = 0.0, $$sroa$095$0 = 0.0, $$sroa$9$0 = 0.0, $1 = 0, $10 = 0, $100 = 0.0, $101 = 0.0;
  11167. var $102 = 0.0, $103 = 0.0, $104 = 0.0, $105 = 0.0, $106 = 0.0, $107 = 0.0, $108 = 0.0, $109 = 0.0, $11 = 0, $110 = 0.0, $111 = 0.0, $112 = 0, $113 = 0.0, $114 = 0, $115 = 0.0, $116 = 0.0, $117 = 0.0, $118 = 0.0, $119 = 0.0, $12 = 0;
  11168. var $120 = 0.0, $121 = 0, $122 = 0.0, $123 = 0.0, $124 = 0.0, $125 = 0.0, $126 = 0.0, $127 = 0.0, $128 = 0.0, $129 = 0.0, $13 = 0, $130 = 0.0, $131 = 0.0, $132 = 0.0, $133 = 0.0, $134 = 0.0, $135 = 0, $136 = 0.0, $137 = 0, $138 = 0.0;
  11169. var $139 = 0.0, $14 = 0, $140 = 0.0, $141 = 0.0, $142 = 0.0, $143 = 0.0, $144 = 0, $145 = 0, $146 = 0.0, $147 = 0.0, $148 = 0.0, $149 = 0, $15 = 0, $150 = 0, $151 = 0.0, $152 = 0.0, $153 = 0.0, $154 = 0.0, $155 = 0.0, $156 = 0.0;
  11170. var $157 = 0.0, $158 = 0.0, $159 = 0.0, $16 = 0, $160 = 0.0, $161 = 0.0, $162 = 0.0, $163 = 0.0, $164 = 0.0, $165 = 0.0, $166 = 0.0, $167 = 0, $168 = 0.0, $169 = 0, $17 = 0, $170 = 0.0, $171 = 0.0, $172 = 0.0, $173 = 0.0, $174 = 0.0;
  11171. var $175 = 0.0, $176 = 0, $177 = 0.0, $178 = 0.0, $179 = 0.0, $18 = 0, $180 = 0.0, $181 = 0.0, $182 = 0.0, $183 = 0.0, $184 = 0.0, $185 = 0.0, $186 = 0.0, $187 = 0.0, $188 = 0.0, $189 = 0.0, $19 = 0, $190 = 0.0, $191 = 0, $192 = 0.0;
  11172. var $193 = 0, $194 = 0.0, $195 = 0.0, $196 = 0.0, $197 = 0.0, $198 = 0.0, $199 = 0.0, $2 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0.0, $204 = 0.0, $205 = 0.0, $206 = 0.0, $207 = 0, $208 = 0, $209 = 0, $21 = 0;
  11173. var $210 = 0, $211 = 0.0, $212 = 0.0, $213 = 0.0, $214 = 0.0, $215 = 0.0, $216 = 0.0, $217 = 0.0, $218 = 0.0, $219 = 0.0, $22 = 0, $220 = 0, $221 = 0, $222 = 0.0, $223 = 0.0, $224 = 0.0, $225 = 0.0, $226 = 0.0, $227 = 0.0, $228 = 0.0;
  11174. var $229 = 0.0, $23 = 0, $230 = 0.0, $231 = 0.0, $232 = 0.0, $233 = 0.0, $234 = 0.0, $235 = 0.0, $236 = 0, $237 = 0.0, $238 = 0.0, $239 = 0.0, $24 = 0, $240 = 0.0, $241 = 0.0, $242 = 0, $243 = 0.0, $244 = 0.0, $245 = 0.0, $246 = 0.0;
  11175. var $247 = 0.0, $248 = 0.0, $249 = 0.0, $25 = 0, $250 = 0.0, $251 = 0, $252 = 0.0, $253 = 0.0, $254 = 0.0, $255 = 0.0, $256 = 0.0, $257 = 0.0, $258 = 0.0, $259 = 0.0, $26 = 0, $260 = 0, $261 = 0, $262 = 0, $263 = 0, $264 = 0.0;
  11176. var $265 = 0.0, $266 = 0, $267 = 0.0, $268 = 0.0, $269 = 0, $27 = 0, $270 = 0.0, $271 = 0.0, $272 = 0.0, $273 = 0.0, $274 = 0, $275 = 0.0, $276 = 0.0, $277 = 0.0, $278 = 0, $279 = 0.0, $28 = 0, $280 = 0.0, $281 = 0.0, $282 = 0.0;
  11177. var $283 = 0.0, $284 = 0.0, $285 = 0.0, $286 = 0.0, $287 = 0.0, $288 = 0.0, $289 = 0.0, $29 = 0, $290 = 0, $291 = 0.0, $292 = 0.0, $293 = 0, $294 = 0.0, $295 = 0.0, $296 = 0.0, $297 = 0, $298 = 0.0, $299 = 0.0, $3 = 0, $30 = 0;
  11178. var $300 = 0.0, $301 = 0.0, $302 = 0.0, $303 = 0.0, $304 = 0.0, $305 = 0.0, $306 = 0.0, $307 = 0.0, $308 = 0, $309 = 0.0, $31 = 0, $310 = 0.0, $311 = 0, $312 = 0, $313 = 0.0, $314 = 0.0, $315 = 0.0, $316 = 0.0, $317 = 0.0, $318 = 0.0;
  11179. var $319 = 0, $32 = 0, $320 = 0, $321 = 0, $322 = 0, $323 = 0.0, $324 = 0.0, $325 = 0.0, $326 = 0.0, $327 = 0, $328 = 0.0, $329 = 0.0, $33 = 0, $330 = 0.0, $331 = 0.0, $332 = 0.0, $333 = 0.0, $334 = 0.0, $335 = 0.0, $336 = 0;
  11180. var $337 = 0.0, $338 = 0.0, $339 = 0, $34 = 0, $340 = 0.0, $341 = 0.0, $342 = 0.0, $343 = 0.0, $344 = 0, $345 = 0, $346 = 0.0, $347 = 0.0, $348 = 0.0, $349 = 0.0, $35 = 0, $350 = 0.0, $351 = 0, $352 = 0.0, $353 = 0.0, $354 = 0.0;
  11181. var $355 = 0.0, $356 = 0.0, $357 = 0, $358 = 0.0, $359 = 0.0, $36 = 0, $360 = 0.0, $361 = 0.0, $362 = 0, $363 = 0, $364 = 0, $365 = 0, $366 = 0.0, $367 = 0, $368 = 0.0, $369 = 0.0, $37 = 0.0, $370 = 0.0, $371 = 0.0, $372 = 0.0;
  11182. var $373 = 0.0, $374 = 0.0, $375 = 0.0, $376 = 0, $377 = 0.0, $378 = 0.0, $379 = 0, $38 = 0.0, $380 = 0, $381 = 0.0, $382 = 0.0, $383 = 0.0, $384 = 0.0, $385 = 0.0, $386 = 0.0, $387 = 0.0, $388 = 0, $389 = 0.0, $39 = 0.0, $390 = 0.0;
  11183. var $391 = 0, $392 = 0.0, $393 = 0.0, $394 = 0, $395 = 0.0, $396 = 0.0, $397 = 0.0, $398 = 0.0, $399 = 0, $4 = 0, $40 = 0, $400 = 0.0, $401 = 0.0, $402 = 0.0, $403 = 0, $404 = 0.0, $405 = 0.0, $406 = 0, $407 = 0, $408 = 0;
  11184. var $409 = 0, $41 = 0, $410 = 0, $411 = 0, $412 = 0, $413 = 0, $414 = 0, $415 = 0, $416 = 0, $417 = 0, $42 = 0.0, $43 = 0, $44 = 0, $45 = 0.0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0;
  11185. var $51 = 0.0, $52 = 0.0, $53 = 0.0, $54 = 0, $55 = 0, $56 = 0.0, $57 = 0, $58 = 0, $59 = 0.0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0.0, $64 = 0.0, $65 = 0.0, $66 = 0.0, $67 = 0.0, $68 = 0.0, $69 = 0.0;
  11186. var $7 = 0, $70 = 0.0, $71 = 0, $72 = 0.0, $73 = 0.0, $74 = 0.0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0.0, $86 = 0, $87 = 0;
  11187. var $88 = 0.0, $89 = 0.0, $9 = 0, $90 = 0.0, $91 = 0, $92 = 0, $93 = 0.0, $94 = 0, $95 = 0, $96 = 0.0, $97 = 0, $98 = 0, $99 = 0.0, $not$ = 0, $or$cond = 0, $or$cond11 = 0, $or$cond13 = 0, $or$cond15 = 0, $or$cond189 = 0, $or$cond3 = 0;
  11188. var $or$cond5 = 0, $or$cond7 = 0, $or$cond9 = 0, $storemerge = 0.0, label = 0, sp = 0;
  11189. sp = STACKTOP;
  11190. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  11191. $$byval_copy3 = sp + 72|0;
  11192. $1 = sp + 56|0;
  11193. $2 = sp + 16|0;
  11194. $3 = sp + 64|0;
  11195. $4 = sp + 48|0;
  11196. $5 = sp + 40|0;
  11197. $6 = sp + 8|0;
  11198. $7 = sp;
  11199. _GetMousePosition($1);
  11200. $8 = (_GetMouseWheelMove()|0);
  11201. $9 = HEAP32[19]|0;
  11202. $10 = (_IsMouseButtonDown($9)|0);
  11203. $11 = HEAP32[20]|0;
  11204. $12 = (_IsKeyDown($11)|0);
  11205. $13 = HEAP32[21]|0;
  11206. $14 = (_IsKeyDown($13)|0);
  11207. $15 = HEAP32[22]|0;
  11208. $16 = (_IsKeyDown($15)|0);
  11209. HEAP32[$2>>2] = $16;
  11210. $17 = ((($2)) + 4|0);
  11211. $18 = HEAP32[23]|0;
  11212. $19 = (_IsKeyDown($18)|0);
  11213. HEAP32[$17>>2] = $19;
  11214. $20 = ((($2)) + 8|0);
  11215. $21 = HEAP32[24]|0;
  11216. $22 = (_IsKeyDown($21)|0);
  11217. HEAP32[$20>>2] = $22;
  11218. $23 = ((($2)) + 12|0);
  11219. $24 = HEAP32[25]|0;
  11220. $25 = (_IsKeyDown($24)|0);
  11221. HEAP32[$23>>2] = $25;
  11222. $26 = ((($2)) + 16|0);
  11223. $27 = HEAP32[26]|0;
  11224. $28 = (_IsKeyDown($27)|0);
  11225. HEAP32[$26>>2] = $28;
  11226. $29 = ((($2)) + 20|0);
  11227. $30 = HEAP32[27]|0;
  11228. $31 = (_IsKeyDown($30)|0);
  11229. HEAP32[$29>>2] = $31;
  11230. $32 = HEAP32[4440]|0;
  11231. $33 = ($32|0)==(0);
  11232. L1: do {
  11233. if ($33) {
  11234. label = 58;
  11235. } else {
  11236. $34 = (_GetScreenWidth()|0);
  11237. $35 = (_GetScreenHeight()|0);
  11238. $$off187 = (($32) + -3)|0;
  11239. $36 = ($$off187>>>0)<(2);
  11240. do {
  11241. if ($36) {
  11242. _HideCursor();
  11243. $37 = +HEAPF32[$1>>2];
  11244. $38 = (+($35|0));
  11245. $39 = $38 / 3.0;
  11246. $40 = $37 < $39;
  11247. $41 = ((($1)) + 4|0);
  11248. $42 = +HEAPF32[$41>>2];
  11249. if ($40) {
  11250. $43 = (($35|0) / 3)&-1;
  11251. $44 = (($34) - ($43))|0;
  11252. $45 = (+($44|0));
  11253. HEAPF32[$3>>2] = $45;
  11254. $46 = ((($3)) + 4|0);
  11255. HEAPF32[$46>>2] = $42;
  11256. ;HEAP32[$$byval_copy3>>2]=HEAP32[$3>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$3+4>>2]|0;
  11257. _SetMousePosition($$byval_copy3);
  11258. $$sroa$095$0 = 0.0;$$sroa$9$0 = 0.0;
  11259. break;
  11260. }
  11261. $47 = $42 < $39;
  11262. if ($47) {
  11263. HEAPF32[$4>>2] = $37;
  11264. $48 = ((($4)) + 4|0);
  11265. $49 = (($35|0) / 3)&-1;
  11266. $50 = (($35) - ($49))|0;
  11267. $51 = (+($50|0));
  11268. HEAPF32[$48>>2] = $51;
  11269. ;HEAP32[$$byval_copy3>>2]=HEAP32[$4>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$4+4>>2]|0;
  11270. _SetMousePosition($$byval_copy3);
  11271. $$sroa$095$0 = 0.0;$$sroa$9$0 = 0.0;
  11272. break;
  11273. }
  11274. $52 = (+($34|0));
  11275. $53 = $52 - $39;
  11276. $54 = $37 > $53;
  11277. if ($54) {
  11278. $55 = (($35|0) / 3)&-1;
  11279. $56 = (+($55|0));
  11280. HEAPF32[$5>>2] = $56;
  11281. $57 = ((($5)) + 4|0);
  11282. $58 = HEAP32[$41>>2]|0;
  11283. HEAP32[$57>>2] = $58;
  11284. ;HEAP32[$$byval_copy3>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$5+4>>2]|0;
  11285. _SetMousePosition($$byval_copy3);
  11286. $$sroa$095$0 = 0.0;$$sroa$9$0 = 0.0;
  11287. break;
  11288. }
  11289. $59 = $38 - $39;
  11290. $60 = $42 > $59;
  11291. if ($60) {
  11292. HEAPF32[$6>>2] = $37;
  11293. $61 = ((($6)) + 4|0);
  11294. $62 = (($35|0) / 3)&-1;
  11295. $63 = (+($62|0));
  11296. HEAPF32[$61>>2] = $63;
  11297. ;HEAP32[$$byval_copy3>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$6+4>>2]|0;
  11298. _SetMousePosition($$byval_copy3);
  11299. $$sroa$095$0 = 0.0;$$sroa$9$0 = 0.0;
  11300. break;
  11301. } else {
  11302. $64 = +HEAPF32[4304];
  11303. $65 = $37 - $64;
  11304. $66 = +HEAPF32[(17220)>>2];
  11305. $67 = $42 - $66;
  11306. $$sroa$095$0 = $65;$$sroa$9$0 = $67;
  11307. break;
  11308. }
  11309. } else {
  11310. _ShowCursor();
  11311. $68 = +HEAPF32[$1>>2];
  11312. $69 = +HEAPF32[4304];
  11313. $70 = $68 - $69;
  11314. $71 = ((($1)) + 4|0);
  11315. $72 = +HEAPF32[$71>>2];
  11316. $73 = +HEAPF32[(17220)>>2];
  11317. $74 = $72 - $73;
  11318. $$sroa$095$0 = $70;$$sroa$9$0 = $74;
  11319. }
  11320. } while(0);
  11321. _GetMousePosition($7);
  11322. $75 = $7;
  11323. $76 = $75;
  11324. $77 = HEAP32[$76>>2]|0;
  11325. $78 = (($75) + 4)|0;
  11326. $79 = $78;
  11327. $80 = HEAP32[$79>>2]|0;
  11328. $81 = 17216;
  11329. $82 = $81;
  11330. HEAP32[$82>>2] = $77;
  11331. $83 = (($81) + 4)|0;
  11332. $84 = $83;
  11333. HEAP32[$84>>2] = $80;
  11334. $$pr = HEAP32[4440]|0;
  11335. switch ($$pr|0) {
  11336. case 1: {
  11337. $85 = +HEAPF32[4437];
  11338. $86 = $85 < 120.0;
  11339. $87 = ($8|0)<(0);
  11340. $or$cond3 = $87 & $86;
  11341. do {
  11342. if ($or$cond3) {
  11343. $88 = (+($8|0));
  11344. $89 = $88 * 1.5;
  11345. $90 = $85 - $89;
  11346. HEAPF32[4437] = $90;
  11347. $91 = $90 > 120.0;
  11348. if ($91) {
  11349. HEAPF32[4437] = 120.0;
  11350. }
  11351. } else {
  11352. $92 = ((($0)) + 4|0);
  11353. $93 = +HEAPF32[$92>>2];
  11354. $94 = ((($0)) + 12|0);
  11355. $95 = ((($0)) + 16|0);
  11356. $96 = +HEAPF32[$95>>2];
  11357. $97 = $93 > $96;
  11358. $98 = $85 == 120.0;
  11359. $or$cond5 = $98 & $97;
  11360. $or$cond7 = $87 & $or$cond5;
  11361. if ($or$cond7) {
  11362. $99 = (+($8|0));
  11363. $100 = +HEAPF32[$94>>2];
  11364. $101 = +HEAPF32[$0>>2];
  11365. $102 = $100 - $101;
  11366. $103 = $99 * $102;
  11367. $104 = $103 * 1.5;
  11368. $105 = $104 / $85;
  11369. $106 = $100 + $105;
  11370. HEAPF32[$94>>2] = $106;
  11371. $107 = $96 - $93;
  11372. $108 = $99 * $107;
  11373. $109 = $108 * 1.5;
  11374. $110 = $109 / $85;
  11375. $111 = $96 + $110;
  11376. HEAPF32[$95>>2] = $111;
  11377. $112 = ((($0)) + 20|0);
  11378. $113 = +HEAPF32[$112>>2];
  11379. $114 = ((($0)) + 8|0);
  11380. $115 = +HEAPF32[$114>>2];
  11381. $116 = $113 - $115;
  11382. $117 = $99 * $116;
  11383. $118 = $117 * 1.5;
  11384. $119 = $118 / $85;
  11385. $120 = $113 + $119;
  11386. HEAPF32[$112>>2] = $120;
  11387. break;
  11388. }
  11389. $$not = $97 ^ 1;
  11390. $121 = !($96 >= 0.0);
  11391. $or$cond = $121 | $$not;
  11392. if (!($or$cond)) {
  11393. $122 = (+($8|0));
  11394. $123 = +HEAPF32[$94>>2];
  11395. $124 = +HEAPF32[$0>>2];
  11396. $125 = $123 - $124;
  11397. $126 = $122 * $125;
  11398. $127 = $126 * 1.5;
  11399. $128 = $127 / $85;
  11400. $129 = $123 + $128;
  11401. HEAPF32[$94>>2] = $129;
  11402. $130 = $96 - $93;
  11403. $131 = $122 * $130;
  11404. $132 = $131 * 1.5;
  11405. $133 = $132 / $85;
  11406. $134 = $96 + $133;
  11407. HEAPF32[$95>>2] = $134;
  11408. $135 = ((($0)) + 20|0);
  11409. $136 = +HEAPF32[$135>>2];
  11410. $137 = ((($0)) + 8|0);
  11411. $138 = +HEAPF32[$137>>2];
  11412. $139 = $136 - $138;
  11413. $140 = $122 * $139;
  11414. $141 = $140 * 1.5;
  11415. $142 = $141 / $85;
  11416. $143 = $136 + $142;
  11417. HEAPF32[$135>>2] = $143;
  11418. break;
  11419. }
  11420. if ($97) {
  11421. $144 = $96 < 0.0;
  11422. $145 = ($8|0)>(0);
  11423. $or$cond9 = $145 & $144;
  11424. if ($or$cond9) {
  11425. $146 = (+($8|0));
  11426. $147 = $146 * 1.5;
  11427. $148 = $85 - $147;
  11428. HEAPF32[4437] = $148;
  11429. $149 = $148 < 0.30000001192092896;
  11430. if (!($149)) {
  11431. break;
  11432. }
  11433. HEAPF32[4437] = 0.30000001192092896;
  11434. break;
  11435. }
  11436. }
  11437. $150 = $93 < $96;
  11438. $or$cond11 = $98 & $150;
  11439. $or$cond13 = $87 & $or$cond11;
  11440. $151 = +HEAPF32[$95>>2];
  11441. $152 = +HEAPF32[$92>>2];
  11442. if ($or$cond13) {
  11443. $153 = (+($8|0));
  11444. $154 = +HEAPF32[$94>>2];
  11445. $155 = +HEAPF32[$0>>2];
  11446. $156 = $154 - $155;
  11447. $157 = $153 * $156;
  11448. $158 = $157 * 1.5;
  11449. $159 = $158 / $85;
  11450. $160 = $154 + $159;
  11451. HEAPF32[$94>>2] = $160;
  11452. $161 = $151 - $152;
  11453. $162 = $153 * $161;
  11454. $163 = $162 * 1.5;
  11455. $164 = +HEAPF32[4437];
  11456. $165 = $163 / $164;
  11457. $166 = $151 + $165;
  11458. HEAPF32[$95>>2] = $166;
  11459. $167 = ((($0)) + 20|0);
  11460. $168 = +HEAPF32[$167>>2];
  11461. $169 = ((($0)) + 8|0);
  11462. $170 = +HEAPF32[$169>>2];
  11463. $171 = $168 - $170;
  11464. $172 = $153 * $171;
  11465. $173 = $172 * 1.5;
  11466. $174 = $173 / $164;
  11467. $175 = $168 + $174;
  11468. HEAPF32[$167>>2] = $175;
  11469. break;
  11470. }
  11471. $$not188 = $150 ^ 1;
  11472. $176 = !($96 <= 0.0);
  11473. $or$cond189 = $176 | $$not188;
  11474. if (!($or$cond189)) {
  11475. $177 = (+($8|0));
  11476. $178 = +HEAPF32[$94>>2];
  11477. $179 = +HEAPF32[$0>>2];
  11478. $180 = $178 - $179;
  11479. $181 = $177 * $180;
  11480. $182 = $181 * 1.5;
  11481. $183 = $182 / $85;
  11482. $184 = $178 + $183;
  11483. HEAPF32[$94>>2] = $184;
  11484. $185 = $151 - $152;
  11485. $186 = $177 * $185;
  11486. $187 = $186 * 1.5;
  11487. $188 = +HEAPF32[4437];
  11488. $189 = $187 / $188;
  11489. $190 = $151 + $189;
  11490. HEAPF32[$95>>2] = $190;
  11491. $191 = ((($0)) + 20|0);
  11492. $192 = +HEAPF32[$191>>2];
  11493. $193 = ((($0)) + 8|0);
  11494. $194 = +HEAPF32[$193>>2];
  11495. $195 = $192 - $194;
  11496. $196 = $177 * $195;
  11497. $197 = $196 * 1.5;
  11498. $198 = $197 / $188;
  11499. $199 = $192 + $198;
  11500. HEAPF32[$191>>2] = $199;
  11501. break;
  11502. }
  11503. $200 = $152 < $151;
  11504. if ($200) {
  11505. $201 = $151 > 0.0;
  11506. $202 = ($8|0)>(0);
  11507. $or$cond15 = $202 & $201;
  11508. if ($or$cond15) {
  11509. $203 = (+($8|0));
  11510. $204 = $203 * 1.5;
  11511. $205 = +HEAPF32[4437];
  11512. $206 = $205 - $204;
  11513. HEAPF32[4437] = $206;
  11514. $207 = $206 < 0.30000001192092896;
  11515. if ($207) {
  11516. HEAPF32[4437] = 0.30000001192092896;
  11517. }
  11518. }
  11519. }
  11520. }
  11521. } while(0);
  11522. $208 = ($10|0)==(0);
  11523. if ($208) {
  11524. label = 58;
  11525. break L1;
  11526. }
  11527. $209 = ($12|0)==(0);
  11528. if ($209) {
  11529. $222 = $$sroa$095$0 * -0.0099999997764825821;
  11530. $223 = +HEAPF32[4438];
  11531. $224 = (+Math_cos((+$223)));
  11532. $225 = $222 * $224;
  11533. $226 = $$sroa$9$0 * 0.0099999997764825821;
  11534. $227 = (+Math_sin((+$223)));
  11535. $228 = $226 * $227;
  11536. $229 = +HEAPF32[4439];
  11537. $230 = (+Math_sin((+$229)));
  11538. $231 = $228 * $230;
  11539. $232 = $225 + $231;
  11540. $233 = +HEAPF32[4437];
  11541. $234 = $233 / 5.0999999046325684;
  11542. $235 = $232 * $234;
  11543. $236 = ((($0)) + 12|0);
  11544. $237 = +HEAPF32[$236>>2];
  11545. $238 = $237 + $235;
  11546. HEAPF32[$236>>2] = $238;
  11547. $239 = (+Math_cos((+$229)));
  11548. $240 = $226 * $239;
  11549. $241 = $234 * $240;
  11550. $242 = ((($0)) + 16|0);
  11551. $243 = +HEAPF32[$242>>2];
  11552. $244 = $243 + $241;
  11553. HEAPF32[$242>>2] = $244;
  11554. $245 = $$sroa$095$0 * 0.0099999997764825821;
  11555. $246 = $245 * $227;
  11556. $247 = $226 * $224;
  11557. $248 = $247 * $230;
  11558. $249 = $246 + $248;
  11559. $250 = $249 * $234;
  11560. $251 = ((($0)) + 20|0);
  11561. $252 = +HEAPF32[$251>>2];
  11562. $253 = $250 + $252;
  11563. HEAPF32[$251>>2] = $253;
  11564. label = 58;
  11565. break L1;
  11566. }
  11567. $210 = ($14|0)==(0);
  11568. if (!($210)) {
  11569. $211 = $$sroa$9$0 * 0.05000000074505806;
  11570. $212 = +HEAPF32[4437];
  11571. $213 = $211 + $212;
  11572. HEAPF32[4437] = $213;
  11573. label = 58;
  11574. break L1;
  11575. }
  11576. $214 = $$sroa$095$0 * 0.0099999997764825821;
  11577. $215 = +HEAPF32[4438];
  11578. $216 = $215 - $214;
  11579. HEAPF32[4438] = $216;
  11580. $217 = $$sroa$9$0 * 0.0099999997764825821;
  11581. $218 = +HEAPF32[4439];
  11582. $219 = $218 - $217;
  11583. HEAPF32[4439] = $219;
  11584. $220 = $219 > 1.483529806137085;
  11585. if ($220) {
  11586. HEAPF32[4439] = 1.483529806137085;
  11587. label = 58;
  11588. break L1;
  11589. }
  11590. $221 = $219 < -1.483529806137085;
  11591. if (!($221)) {
  11592. label = 58;
  11593. break L1;
  11594. }
  11595. HEAPF32[4439] = -1.483529806137085;
  11596. label = 58;
  11597. break L1;
  11598. break;
  11599. }
  11600. case 2: {
  11601. $254 = +HEAPF32[4438];
  11602. $255 = $254 + 0.0099999997764825821;
  11603. HEAPF32[4438] = $255;
  11604. $256 = (+($8|0));
  11605. $257 = $256 * 1.5;
  11606. $258 = +HEAPF32[4437];
  11607. $259 = $258 - $257;
  11608. HEAPF32[4437] = $259;
  11609. $260 = $259 < 1.2000000476837158;
  11610. if (!($260)) {
  11611. label = 58;
  11612. break L1;
  11613. }
  11614. HEAPF32[4437] = 1.2000000476837158;
  11615. label = 58;
  11616. break L1;
  11617. break;
  11618. }
  11619. case 4: case 3: {
  11620. $264 = +HEAPF32[4438];
  11621. $265 = (+Math_sin((+$264)));
  11622. $266 = HEAP32[$17>>2]|0;
  11623. $267 = (+($266>>>0));
  11624. $268 = $265 * $267;
  11625. $269 = HEAP32[$2>>2]|0;
  11626. $270 = (+($269>>>0));
  11627. $271 = $265 * $270;
  11628. $272 = $268 - $271;
  11629. $273 = (+Math_cos((+$264)));
  11630. $274 = HEAP32[$23>>2]|0;
  11631. $275 = (+($274>>>0));
  11632. $276 = $273 * $275;
  11633. $277 = $272 - $276;
  11634. $278 = HEAP32[$20>>2]|0;
  11635. $279 = (+($278>>>0));
  11636. $280 = $273 * $279;
  11637. $281 = $277 + $280;
  11638. $282 = $281 / 20.0;
  11639. $283 = +HEAPF32[$0>>2];
  11640. $284 = $283 + $282;
  11641. HEAPF32[$0>>2] = $284;
  11642. $285 = +HEAPF32[4439];
  11643. $286 = (+Math_sin((+$285)));
  11644. $287 = $270 * $286;
  11645. $288 = $267 * $286;
  11646. $289 = $287 - $288;
  11647. $290 = HEAP32[$26>>2]|0;
  11648. $291 = (+($290>>>0));
  11649. $292 = $289 + $291;
  11650. $293 = HEAP32[$29>>2]|0;
  11651. $294 = (+($293>>>0));
  11652. $295 = $292 - $294;
  11653. $296 = $295 / 20.0;
  11654. $297 = ((($0)) + 4|0);
  11655. $298 = +HEAPF32[$297>>2];
  11656. $299 = $298 + $296;
  11657. HEAPF32[$297>>2] = $299;
  11658. $300 = $267 * $273;
  11659. $301 = $273 * $270;
  11660. $302 = $300 - $301;
  11661. $303 = $265 * $275;
  11662. $304 = $302 + $303;
  11663. $305 = $265 * $279;
  11664. $306 = $304 - $305;
  11665. $307 = $306 / 20.0;
  11666. $308 = ((($0)) + 8|0);
  11667. $309 = +HEAPF32[$308>>2];
  11668. $310 = $307 + $309;
  11669. HEAPF32[$308>>2] = $310;
  11670. $311 = HEAP32[$2>>2]|0;
  11671. $312 = ($311|0)==(0);
  11672. if ($312) {
  11673. $261 = ((($2)) + 4|0);
  11674. $262 = HEAP32[$261>>2]|0;
  11675. $263 = ($262|0)==(0);
  11676. if ($263) {
  11677. $407 = ((($2)) + 8|0);
  11678. $408 = HEAP32[$407>>2]|0;
  11679. $409 = ($408|0)==(0);
  11680. if ($409) {
  11681. $410 = ((($2)) + 12|0);
  11682. $411 = HEAP32[$410>>2]|0;
  11683. $412 = ($411|0)==(0);
  11684. if ($412) {
  11685. $413 = ((($2)) + 16|0);
  11686. $414 = HEAP32[$413>>2]|0;
  11687. $415 = ($414|0)==(0);
  11688. if ($415) {
  11689. $416 = ((($2)) + 20|0);
  11690. $417 = HEAP32[$416>>2]|0;
  11691. $not$ = ($417|0)!=(0);
  11692. $$ = $not$&1;
  11693. $$0 = $$;
  11694. } else {
  11695. $$0 = 1;
  11696. }
  11697. } else {
  11698. $$0 = 1;
  11699. }
  11700. } else {
  11701. $$0 = 1;
  11702. }
  11703. } else {
  11704. $$0 = 1;
  11705. }
  11706. } else {
  11707. $$0 = 1;
  11708. }
  11709. $313 = $$sroa$095$0 * 0.0030000000260770321;
  11710. $314 = +HEAPF32[4438];
  11711. $315 = $314 - $313;
  11712. HEAPF32[4438] = $315;
  11713. $316 = $$sroa$9$0 * 0.0030000000260770321;
  11714. $317 = +HEAPF32[4439];
  11715. $318 = $317 - $316;
  11716. HEAPF32[4439] = $318;
  11717. $319 = HEAP32[4440]|0;
  11718. $320 = ($319|0)==(4);
  11719. if ($320) {
  11720. $321 = $318 > 0.087266460061073303;
  11721. if ($321) {
  11722. $$sink26 = 0.087266460061073303;
  11723. label = 49;
  11724. } else {
  11725. $322 = $318 < -1.483529806137085;
  11726. if ($322) {
  11727. $$sink26 = -1.483529806137085;
  11728. label = 49;
  11729. }
  11730. }
  11731. if ((label|0) == 49) {
  11732. HEAPF32[4439] = $$sink26;
  11733. }
  11734. $323 = (+($8|0));
  11735. $324 = $323 * 1.5;
  11736. $325 = +HEAPF32[4437];
  11737. $326 = $325 - $324;
  11738. $327 = $326 < 1.2000000476837158;
  11739. $storemerge = $327 ? 1.2000000476837158 : $326;
  11740. HEAPF32[4437] = $storemerge;
  11741. $328 = +HEAPF32[$0>>2];
  11742. $329 = +HEAPF32[4438];
  11743. $330 = (+Math_cos((+$329)));
  11744. $331 = $330 * 0.40000000596046448;
  11745. $332 = $328 + $331;
  11746. $333 = (+Math_sin((+$329)));
  11747. $334 = $333 * 0.0;
  11748. $335 = $332 + $334;
  11749. $336 = ((($0)) + 12|0);
  11750. HEAPF32[$336>>2] = $335;
  11751. $337 = +HEAPF32[$297>>2];
  11752. $338 = $337 + 0.0;
  11753. $339 = ((($0)) + 16|0);
  11754. HEAPF32[$339>>2] = $338;
  11755. $340 = +HEAPF32[$308>>2];
  11756. $341 = $334 + $340;
  11757. $342 = $333 * 0.40000000596046448;
  11758. $343 = $341 - $342;
  11759. $$sink = $343;$$sink17 = $336;
  11760. } else {
  11761. $344 = $318 > 1.483529806137085;
  11762. if ($344) {
  11763. $$sink28 = 1.483529806137085;
  11764. label = 53;
  11765. } else {
  11766. $345 = $318 < -1.483529806137085;
  11767. if ($345) {
  11768. $$sink28 = -1.483529806137085;
  11769. label = 53;
  11770. }
  11771. }
  11772. if ((label|0) == 53) {
  11773. HEAPF32[4439] = $$sink28;
  11774. }
  11775. $346 = +HEAPF32[$0>>2];
  11776. $347 = +HEAPF32[4438];
  11777. $348 = (+Math_sin((+$347)));
  11778. $349 = $348 * 25.0;
  11779. $350 = $346 - $349;
  11780. $351 = ((($0)) + 12|0);
  11781. HEAPF32[$351>>2] = $350;
  11782. $352 = +HEAPF32[$297>>2];
  11783. $353 = +HEAPF32[4439];
  11784. $354 = (+Math_sin((+$353)));
  11785. $355 = $354 * 25.0;
  11786. $356 = $352 + $355;
  11787. $357 = ((($0)) + 16|0);
  11788. HEAPF32[$357>>2] = $356;
  11789. $358 = +HEAPF32[$308>>2];
  11790. $359 = (+Math_cos((+$347)));
  11791. $360 = $359 * 25.0;
  11792. $361 = $358 - $360;
  11793. $362 = ((($0)) + 20|0);
  11794. HEAPF32[$362>>2] = $361;
  11795. $363 = ($$0|0)==(0);
  11796. if (!($363)) {
  11797. $364 = HEAP32[4441]|0;
  11798. $365 = (($364) + 1)|0;
  11799. HEAP32[4441] = $365;
  11800. }
  11801. $366 = +HEAPF32[18];
  11802. $367 = HEAP32[4441]|0;
  11803. $368 = (+($367|0));
  11804. $369 = $368 / 5.0;
  11805. $370 = (+Math_sin((+$369)));
  11806. $371 = $370 / 30.0;
  11807. $372 = $366 - $371;
  11808. HEAPF32[$297>>2] = $372;
  11809. $373 = $368 / 10.0;
  11810. $374 = (+Math_sin((+$373)));
  11811. $375 = $374 / 200.0;
  11812. $376 = ((($0)) + 24|0);
  11813. HEAPF32[$376>>2] = $375;
  11814. $377 = -$374;
  11815. $378 = $377 / 200.0;
  11816. $$sink = $378;$$sink17 = $376;
  11817. }
  11818. $379 = ((($$sink17)) + 8|0);
  11819. HEAPF32[$379>>2] = $$sink;
  11820. label = 58;
  11821. break L1;
  11822. break;
  11823. }
  11824. default: {
  11825. $380 = $$pr;
  11826. break L1;
  11827. }
  11828. }
  11829. }
  11830. } while(0);
  11831. if ((label|0) == 58) {
  11832. $$pr190 = HEAP32[4440]|0;
  11833. $380 = $$pr190;
  11834. }
  11835. switch ($380|0) {
  11836. case 1: case 2: case 4: {
  11837. break;
  11838. }
  11839. default: {
  11840. STACKTOP = sp;return;
  11841. }
  11842. }
  11843. $381 = +HEAPF32[4438];
  11844. $382 = (+Math_sin((+$381)));
  11845. $383 = +HEAPF32[4437];
  11846. $384 = $382 * $383;
  11847. $385 = +HEAPF32[4439];
  11848. $386 = (+Math_cos((+$385)));
  11849. $387 = $384 * $386;
  11850. $388 = ((($0)) + 12|0);
  11851. $389 = +HEAPF32[$388>>2];
  11852. $390 = $387 + $389;
  11853. HEAPF32[$0>>2] = $390;
  11854. $391 = !($385 <= 0.0);
  11855. $392 = (+Math_sin((+$385)));
  11856. $393 = +HEAPF32[4437];
  11857. $394 = ((($0)) + 16|0);
  11858. $395 = +HEAPF32[$394>>2];
  11859. $396 = $392 * $393;
  11860. $397 = $392 * $396;
  11861. $398 = -$397;
  11862. $$sink22$p = $391 ? $398 : $397;
  11863. $$sink22 = $395 + $$sink22$p;
  11864. $399 = ((($0)) + 4|0);
  11865. HEAPF32[$399>>2] = $$sink22;
  11866. $400 = (+Math_cos((+$381)));
  11867. $401 = $393 * $400;
  11868. $402 = $386 * $401;
  11869. $403 = ((($0)) + 20|0);
  11870. $404 = +HEAPF32[$403>>2];
  11871. $405 = $404 + $402;
  11872. $406 = ((($0)) + 8|0);
  11873. HEAPF32[$406>>2] = $405;
  11874. STACKTOP = sp;return;
  11875. }
  11876. function _GetMousePosition($0) {
  11877. $0 = $0|0;
  11878. 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;
  11879. sp = STACKTOP;
  11880. $1 = 17224;
  11881. $2 = $1;
  11882. $3 = HEAP32[$2>>2]|0;
  11883. $4 = (($1) + 4)|0;
  11884. $5 = $4;
  11885. $6 = HEAP32[$5>>2]|0;
  11886. $7 = $0;
  11887. $8 = $7;
  11888. HEAP32[$8>>2] = $3;
  11889. $9 = (($7) + 4)|0;
  11890. $10 = $9;
  11891. HEAP32[$10>>2] = $6;
  11892. return;
  11893. }
  11894. function _GetMouseWheelMove() {
  11895. var $0 = 0, $1 = 0, label = 0, sp = 0;
  11896. sp = STACKTOP;
  11897. $0 = HEAP32[4446]|0;
  11898. $1 = (($0|0) / 100)&-1;
  11899. return ($1|0);
  11900. }
  11901. function _IsMouseButtonDown($0) {
  11902. $0 = $0|0;
  11903. var $$ = 0, $1 = 0, $2 = 0, label = 0, sp = 0;
  11904. sp = STACKTOP;
  11905. $1 = (_GetMouseButtonStatus($0)|0);
  11906. $2 = ($1|0)==(1);
  11907. $$ = $2&1;
  11908. return ($$|0);
  11909. }
  11910. function _IsKeyDown($0) {
  11911. $0 = $0|0;
  11912. var $$ = 0, $1 = 0, $2 = 0, label = 0, sp = 0;
  11913. sp = STACKTOP;
  11914. $1 = (_GetKeyStatus($0)|0);
  11915. $2 = ($1|0)==(1);
  11916. $$ = $2&1;
  11917. return ($$|0);
  11918. }
  11919. function _GetScreenWidth() {
  11920. var $0 = 0, label = 0, sp = 0;
  11921. sp = STACKTOP;
  11922. $0 = HEAP32[4445]|0;
  11923. return ($0|0);
  11924. }
  11925. function _GetScreenHeight() {
  11926. var $0 = 0, label = 0, sp = 0;
  11927. sp = STACKTOP;
  11928. $0 = HEAP32[4444]|0;
  11929. return ($0|0);
  11930. }
  11931. function _HideCursor() {
  11932. var label = 0, sp = 0;
  11933. sp = STACKTOP;
  11934. HEAP32[4442] = 1;
  11935. return;
  11936. }
  11937. function _SetMousePosition($0) {
  11938. $0 = $0|0;
  11939. var $1 = 0, $10 = 0, $11 = 0, $12 = 0.0, $13 = 0.0, $14 = 0, $15 = 0.0, $16 = 0.0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  11940. sp = STACKTOP;
  11941. $1 = $0;
  11942. $2 = $1;
  11943. $3 = HEAP32[$2>>2]|0;
  11944. $4 = (($1) + 4)|0;
  11945. $5 = $4;
  11946. $6 = HEAP32[$5>>2]|0;
  11947. $7 = 17224;
  11948. $8 = $7;
  11949. HEAP32[$8>>2] = $3;
  11950. $9 = (($7) + 4)|0;
  11951. $10 = $9;
  11952. HEAP32[$10>>2] = $6;
  11953. $11 = HEAP32[4443]|0;
  11954. $12 = +HEAPF32[$0>>2];
  11955. $13 = $12;
  11956. $14 = ((($0)) + 4|0);
  11957. $15 = +HEAPF32[$14>>2];
  11958. $16 = $15;
  11959. _glfwSetCursorPos(($11|0),(+$13),(+$16));
  11960. return;
  11961. }
  11962. function _ShowCursor() {
  11963. var label = 0, sp = 0;
  11964. sp = STACKTOP;
  11965. HEAP32[4442] = 0;
  11966. return;
  11967. }
  11968. function _GetKeyStatus($0) {
  11969. $0 = $0|0;
  11970. var $1 = 0, $2 = 0, label = 0, sp = 0;
  11971. sp = STACKTOP;
  11972. $1 = HEAP32[4443]|0;
  11973. $2 = (_glfwGetKey(($1|0),($0|0))|0);
  11974. return ($2|0);
  11975. }
  11976. function _GetMouseButtonStatus($0) {
  11977. $0 = $0|0;
  11978. var $1 = 0, $2 = 0, label = 0, sp = 0;
  11979. sp = STACKTOP;
  11980. $1 = HEAP32[4443]|0;
  11981. $2 = (_glfwGetMouseButton(($1|0),($0|0))|0);
  11982. return ($2|0);
  11983. }
  11984. function _InitWindow($0,$1,$2) {
  11985. $0 = $0|0;
  11986. $1 = $1|0;
  11987. $2 = $2|0;
  11988. 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;
  11989. sp = STACKTOP;
  11990. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  11991. $vararg_buffer = sp;
  11992. _TraceLog(0,4440,$vararg_buffer);
  11993. HEAP32[4447] = $2;
  11994. _InitGraphicsDevice($0,$1);
  11995. _LoadDefaultFont();
  11996. _InitTimer();
  11997. (_emscripten_set_fullscreenchange_callback((0|0),(0|0),1,(5|0))|0);
  11998. (_emscripten_set_keypress_callback((4469|0),(0|0),1,(6|0))|0);
  11999. (_emscripten_set_click_callback((4469|0),(0|0),1,(7|0))|0);
  12000. (_emscripten_set_touchstart_callback((4469|0),(0|0),1,(8|0))|0);
  12001. (_emscripten_set_touchend_callback((4469|0),(0|0),1,(8|0))|0);
  12002. (_emscripten_set_touchmove_callback((4469|0),(0|0),1,(8|0))|0);
  12003. (_emscripten_set_touchcancel_callback((4469|0),(0|0),1,(8|0))|0);
  12004. (_emscripten_set_gamepadconnected_callback((0|0),1,(9|0))|0);
  12005. (_emscripten_set_gamepaddisconnected_callback((0|0),1,(9|0))|0);
  12006. $3 = HEAP32[4445]|0;
  12007. $4 = (+($3|0));
  12008. $5 = $4 * 0.5;
  12009. HEAPF32[4306] = $5;
  12010. $6 = HEAP32[4444]|0;
  12011. $7 = (+($6|0));
  12012. $8 = $7 * 0.5;
  12013. HEAPF32[(17228)>>2] = $8;
  12014. $9 = HEAP32[4448]|0;
  12015. $10 = ($9|0)==(0);
  12016. if ($10) {
  12017. STACKTOP = sp;return;
  12018. }
  12019. _SetTargetFPS(60);
  12020. _LogoAnimation();
  12021. STACKTOP = sp;return;
  12022. }
  12023. function _TraceLog($0,$1,$varargs) {
  12024. $0 = $0|0;
  12025. $1 = $1|0;
  12026. $varargs = $varargs|0;
  12027. 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;
  12028. sp = STACKTOP;
  12029. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  12030. $2 = sp;
  12031. switch ($0|0) {
  12032. case 0: {
  12033. ;HEAP8[17264>>0]=HEAP8[8969>>0]|0;HEAP8[17264+1>>0]=HEAP8[8969+1>>0]|0;HEAP8[17264+2>>0]=HEAP8[8969+2>>0]|0;HEAP8[17264+3>>0]=HEAP8[8969+3>>0]|0;HEAP8[17264+4>>0]=HEAP8[8969+4>>0]|0;HEAP8[17264+5>>0]=HEAP8[8969+5>>0]|0;HEAP8[17264+6>>0]=HEAP8[8969+6>>0]|0;
  12034. break;
  12035. }
  12036. case 1: {
  12037. $3 = 17264;
  12038. $4 = $3;
  12039. HEAP32[$4>>2] = 1330795077;
  12040. $5 = (($3) + 4)|0;
  12041. $6 = $5;
  12042. HEAP32[$6>>2] = 2112082;
  12043. break;
  12044. }
  12045. case 2: {
  12046. dest=17264; src=8976; 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));
  12047. break;
  12048. }
  12049. case 3: {
  12050. $7 = 17264;
  12051. $8 = $7;
  12052. HEAP32[$8>>2] = 1430406468;
  12053. $9 = (($7) + 4)|0;
  12054. $10 = $9;
  12055. HEAP32[$10>>2] = 2112071;
  12056. break;
  12057. }
  12058. default: {
  12059. }
  12060. }
  12061. (_strcat(17264,$1)|0);
  12062. $strlen = (_strlen(17264)|0);
  12063. $endptr = (17264 + ($strlen)|0);
  12064. HEAP8[$endptr>>0]=10&255;HEAP8[$endptr+1>>0]=10>>8;
  12065. HEAP32[$2>>2] = $varargs;
  12066. $11 = ($0|0)==(3);
  12067. if ($11) {
  12068. STACKTOP = sp;return;
  12069. }
  12070. (_vprintf(17264,$2)|0);
  12071. $12 = ($0|0)==(1);
  12072. if ($12) {
  12073. _exit(1);
  12074. // unreachable;
  12075. } else {
  12076. STACKTOP = sp;return;
  12077. }
  12078. }
  12079. function _InitGraphicsDevice($0,$1) {
  12080. $0 = $0|0;
  12081. $1 = $1|0;
  12082. 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;
  12083. 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;
  12084. 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;
  12085. 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;
  12086. 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;
  12087. var label = 0, sp = 0, src = 0, stop = 0;
  12088. sp = STACKTOP;
  12089. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  12090. $$byval_copy = sp + 136|0;
  12091. $vararg_buffer22 = sp + 64|0;
  12092. $vararg_buffer18 = sp + 56|0;
  12093. $vararg_buffer14 = sp + 48|0;
  12094. $vararg_buffer10 = sp + 40|0;
  12095. $vararg_buffer8 = sp + 32|0;
  12096. $vararg_buffer6 = sp + 24|0;
  12097. $vararg_buffer3 = sp + 16|0;
  12098. $vararg_buffer1 = sp + 8|0;
  12099. $vararg_buffer = sp;
  12100. $2 = sp + 72|0;
  12101. $3 = sp + 140|0;
  12102. HEAP32[4445] = $0;
  12103. HEAP32[4444] = $1;
  12104. _MatrixIdentity($2);
  12105. dest=17868; 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));
  12106. (_glfwSetErrorCallback((2|0))|0);
  12107. $4 = (_glfwInit()|0);
  12108. $5 = ($4|0)==(0);
  12109. if ($5) {
  12110. _TraceLog(1,5111,$vararg_buffer);
  12111. }
  12112. $6 = HEAP32[4445]|0;
  12113. HEAP32[4483] = $6;
  12114. $7 = HEAP32[4444]|0;
  12115. HEAP32[4484] = $7;
  12116. _glfwDefaultWindowHints();
  12117. $8 = HEAP8[20608]|0;
  12118. $9 = $8 & 4;
  12119. $10 = ($9<<24>>24)==(0);
  12120. if ($10) {
  12121. _glfwWindowHint(131075,0);
  12122. } else {
  12123. _glfwWindowHint(131075,1);
  12124. }
  12125. $11 = HEAP8[20608]|0;
  12126. $12 = $11 & 8;
  12127. $13 = ($12<<24>>24)==(0);
  12128. if (!($13)) {
  12129. _glfwWindowHint(131077,1);
  12130. }
  12131. $14 = HEAP8[20608]|0;
  12132. $15 = $14 & 32;
  12133. $16 = ($15<<24>>24)==(0);
  12134. if (!($16)) {
  12135. _glfwWindowHint(135181,4);
  12136. _TraceLog(0,5137,$vararg_buffer1);
  12137. }
  12138. $17 = (_rlGetVersion()|0);
  12139. $18 = ($17|0)==(2);
  12140. if ($18) {
  12141. _glfwWindowHint(139266,2);
  12142. _glfwWindowHint(139267,1);
  12143. } else {
  12144. $19 = (_rlGetVersion()|0);
  12145. $20 = ($19|0)==(3);
  12146. if ($20) {
  12147. _glfwWindowHint(139266,3);
  12148. _glfwWindowHint(139267,3);
  12149. _glfwWindowHint(139272,204801);
  12150. _glfwWindowHint(139270,0);
  12151. }
  12152. }
  12153. $21 = HEAP32[4485]|0;
  12154. $22 = ($21|0)==(0);
  12155. if ($22) {
  12156. $47 = HEAP32[4445]|0;
  12157. $48 = HEAP32[4444]|0;
  12158. $49 = HEAP32[4447]|0;
  12159. $50 = (_glfwCreateWindow(($47|0),($48|0),($49|0),(0|0),(0|0))|0);
  12160. HEAP32[4443] = $50;
  12161. $51 = HEAP32[4445]|0;
  12162. HEAP32[4486] = $51;
  12163. $52 = HEAP32[4444]|0;
  12164. HEAP32[4487] = $52;
  12165. $54 = $50;
  12166. } else {
  12167. $23 = (_glfwGetPrimaryMonitor()|0);
  12168. $24 = (_glfwGetVideoModes(($23|0),($$byval_copy|0))|0);
  12169. $25 = HEAP32[$$byval_copy>>2]|0;
  12170. $26 = ($25|0)>(0);
  12171. L22: do {
  12172. if ($26) {
  12173. $27 = HEAP32[4445]|0;
  12174. $28 = HEAP32[$$byval_copy>>2]|0;
  12175. $29 = HEAP32[4444]|0;
  12176. $$015 = 0;
  12177. while(1) {
  12178. $30 = (($24) + (($$015*24)|0)|0);
  12179. $31 = HEAP32[$30>>2]|0;
  12180. $32 = ($31|0)<($27|0);
  12181. if (!($32)) {
  12182. $33 = (((($24) + (($$015*24)|0)|0)) + 4|0);
  12183. $34 = HEAP32[$33>>2]|0;
  12184. $35 = ($34|0)<($29|0);
  12185. if (!($35)) {
  12186. break;
  12187. }
  12188. }
  12189. $36 = (($$015) + 1)|0;
  12190. $37 = ($36|0)<($28|0);
  12191. if ($37) {
  12192. $$015 = $36;
  12193. } else {
  12194. break L22;
  12195. }
  12196. }
  12197. HEAP32[4483] = $31;
  12198. HEAP32[4484] = $34;
  12199. }
  12200. } while(0);
  12201. $38 = HEAP32[4483]|0;
  12202. $39 = HEAP32[4484]|0;
  12203. HEAP32[$vararg_buffer3>>2] = $38;
  12204. $vararg_ptr5 = ((($vararg_buffer3)) + 4|0);
  12205. HEAP32[$vararg_ptr5>>2] = $39;
  12206. _TraceLog(2,5162,$vararg_buffer3);
  12207. $40 = HEAP32[4483]|0;
  12208. $41 = HEAP32[4484]|0;
  12209. _SetupFramebufferSize($40,$41);
  12210. $42 = HEAP32[4483]|0;
  12211. $43 = HEAP32[4484]|0;
  12212. $44 = HEAP32[4447]|0;
  12213. $45 = (_glfwGetPrimaryMonitor()|0);
  12214. $46 = (_glfwCreateWindow(($42|0),($43|0),($44|0),($45|0),(0|0))|0);
  12215. HEAP32[4443] = $46;
  12216. $54 = $46;
  12217. }
  12218. $53 = ($54|0)==(0|0);
  12219. if ($53) {
  12220. _glfwTerminate();
  12221. _TraceLog(1,5200,$vararg_buffer6);
  12222. } else {
  12223. _TraceLog(0,5233,$vararg_buffer8);
  12224. $55 = HEAP32[4486]|0;
  12225. $56 = HEAP32[4487]|0;
  12226. HEAP32[$vararg_buffer10>>2] = $55;
  12227. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  12228. HEAP32[$vararg_ptr13>>2] = $56;
  12229. _TraceLog(0,5273,$vararg_buffer10);
  12230. $57 = HEAP32[4445]|0;
  12231. $58 = HEAP32[4444]|0;
  12232. HEAP32[$vararg_buffer14>>2] = $57;
  12233. $vararg_ptr17 = ((($vararg_buffer14)) + 4|0);
  12234. HEAP32[$vararg_ptr17>>2] = $58;
  12235. _TraceLog(0,5294,$vararg_buffer14);
  12236. $59 = HEAP32[4488]|0;
  12237. $60 = HEAP32[4489]|0;
  12238. HEAP32[$vararg_buffer18>>2] = $59;
  12239. $vararg_ptr21 = ((($vararg_buffer18)) + 4|0);
  12240. HEAP32[$vararg_ptr21>>2] = $60;
  12241. _TraceLog(0,5315,$vararg_buffer18);
  12242. }
  12243. $61 = HEAP32[4443]|0;
  12244. (_glfwSetWindowSizeCallback(($61|0),(1|0))|0);
  12245. $62 = HEAP32[4443]|0;
  12246. (_glfwSetCursorEnterCallback(($62|0),(3|0))|0);
  12247. $63 = HEAP32[4443]|0;
  12248. (_glfwSetKeyCallback(($63|0),(1|0))|0);
  12249. $64 = HEAP32[4443]|0;
  12250. (_glfwSetMouseButtonCallback(($64|0),(1|0))|0);
  12251. $65 = HEAP32[4443]|0;
  12252. (_glfwSetCursorPosCallback(($65|0),(1|0))|0);
  12253. $66 = HEAP32[4443]|0;
  12254. (_glfwSetCharCallback(($66|0),(4|0))|0);
  12255. $67 = HEAP32[4443]|0;
  12256. (_glfwSetScrollCallback(($67|0),(2|0))|0);
  12257. $68 = HEAP32[4443]|0;
  12258. (_glfwSetWindowIconifyCallback(($68|0),(5|0))|0);
  12259. $69 = HEAP32[4443]|0;
  12260. _glfwMakeContextCurrent(($69|0));
  12261. _glfwSwapInterval(0);
  12262. $70 = HEAP8[20608]|0;
  12263. $71 = $70 & 64;
  12264. $72 = ($71<<24>>24)==(0);
  12265. if ($72) {
  12266. $73 = HEAP32[4445]|0;
  12267. $74 = HEAP32[4444]|0;
  12268. _rlglInit($73,$74);
  12269. _SetupViewport();
  12270. _rlMatrixMode(5889);
  12271. _rlLoadIdentity();
  12272. $75 = HEAP32[4486]|0;
  12273. $76 = HEAP32[4488]|0;
  12274. $77 = (($75) - ($76))|0;
  12275. $78 = (+($77|0));
  12276. $79 = HEAP32[4487]|0;
  12277. $80 = HEAP32[4489]|0;
  12278. $81 = (($79) - ($80))|0;
  12279. $82 = (+($81|0));
  12280. _rlOrtho(0.0,$78,$82,0.0,0.0,1.0);
  12281. _rlMatrixMode(5888);
  12282. _rlLoadIdentity();
  12283. HEAP8[$3>>0] = -11;
  12284. $83 = ((($3)) + 1|0);
  12285. HEAP8[$83>>0] = -11;
  12286. $84 = ((($3)) + 2|0);
  12287. HEAP8[$84>>0] = -11;
  12288. $85 = ((($3)) + 3|0);
  12289. HEAP8[$85>>0] = -1;
  12290. ;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;
  12291. _ClearBackground($$byval_copy);
  12292. STACKTOP = sp;return;
  12293. }
  12294. _glfwSwapInterval(1);
  12295. _TraceLog(0,5340,$vararg_buffer22);
  12296. $73 = HEAP32[4445]|0;
  12297. $74 = HEAP32[4444]|0;
  12298. _rlglInit($73,$74);
  12299. _SetupViewport();
  12300. _rlMatrixMode(5889);
  12301. _rlLoadIdentity();
  12302. $75 = HEAP32[4486]|0;
  12303. $76 = HEAP32[4488]|0;
  12304. $77 = (($75) - ($76))|0;
  12305. $78 = (+($77|0));
  12306. $79 = HEAP32[4487]|0;
  12307. $80 = HEAP32[4489]|0;
  12308. $81 = (($79) - ($80))|0;
  12309. $82 = (+($81|0));
  12310. _rlOrtho(0.0,$78,$82,0.0,0.0,1.0);
  12311. _rlMatrixMode(5888);
  12312. _rlLoadIdentity();
  12313. HEAP8[$3>>0] = -11;
  12314. $83 = ((($3)) + 1|0);
  12315. HEAP8[$83>>0] = -11;
  12316. $84 = ((($3)) + 2|0);
  12317. HEAP8[$84>>0] = -11;
  12318. $85 = ((($3)) + 3|0);
  12319. HEAP8[$85>>0] = -1;
  12320. ;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;
  12321. _ClearBackground($$byval_copy);
  12322. STACKTOP = sp;return;
  12323. }
  12324. function _LoadDefaultFont() {
  12325. 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;
  12326. 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;
  12327. 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;
  12328. var $vararg_buffer = 0, label = 0, sp = 0;
  12329. sp = STACKTOP;
  12330. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  12331. $$byval_copy1 = sp + 44|0;
  12332. $vararg_buffer = sp;
  12333. $0 = sp + 4|0;
  12334. $1 = sp + 24|0;
  12335. HEAP32[(17836)>>2] = 224;
  12336. $2 = (_malloc(65536)|0);
  12337. _memset(($2|0),0,65536)|0;
  12338. $$095104 = 0;$$096103 = 0;
  12339. while(1) {
  12340. $3 = (112 + ($$095104<<2)|0);
  12341. $4 = HEAP32[$3>>2]|0;
  12342. $$097102 = 31;
  12343. while(1) {
  12344. $16 = 1 << $$097102;
  12345. $17 = $4 & $16;
  12346. $18 = ($17|0)==(0);
  12347. if (!($18)) {
  12348. $19 = (($$097102) + ($$096103))|0;
  12349. $$sroa$0$0$$sroa_idx = (($2) + ($19<<2)|0);
  12350. 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;
  12351. }
  12352. $20 = (($$097102) + -1)|0;
  12353. $21 = ($$097102|0)>(0);
  12354. if ($21) {
  12355. $$097102 = $20;
  12356. } else {
  12357. break;
  12358. }
  12359. }
  12360. $12 = (($$095104) + 1)|0;
  12361. $13 = ($$095104|0)>(511);
  12362. $$ = $13 ? 0 : $12;
  12363. $14 = (($$096103) + 32)|0;
  12364. $15 = ($14|0)<(16384);
  12365. if ($15) {
  12366. $$095104 = $$;$$096103 = $14;
  12367. } else {
  12368. break;
  12369. }
  12370. }
  12371. _LoadImageEx($0,$2,128,128);
  12372. _ImageFormat($0,2);
  12373. _free($2);
  12374. ;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;
  12375. _LoadTextureFromImage($1,$$byval_copy1);
  12376. ;HEAP32[17812>>2]=HEAP32[$1>>2]|0;HEAP32[17812+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[17812+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[17812+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[17812+16>>2]=HEAP32[$1+16>>2]|0;
  12377. ;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;
  12378. _UnloadImage($$byval_copy1);
  12379. $5 = HEAP32[(17836)>>2]|0;
  12380. $6 = $5 << 5;
  12381. $7 = (_malloc($6)|0);
  12382. HEAP32[(17840)>>2] = $7;
  12383. $8 = ($5|0)>(0);
  12384. if (!($8)) {
  12385. $$lcssa = $7;
  12386. $22 = ((($$lcssa)) + 16|0);
  12387. $23 = HEAP32[$22>>2]|0;
  12388. HEAP32[(17832)>>2] = $23;
  12389. $24 = HEAP32[4453]|0;
  12390. HEAP32[$vararg_buffer>>2] = $24;
  12391. _TraceLog(0,4664,$vararg_buffer);
  12392. STACKTOP = sp;return;
  12393. }
  12394. $9 = HEAP32[(17816)>>2]|0;
  12395. $10 = HEAP32[(17836)>>2]|0;
  12396. $11 = HEAP32[(17840)>>2]|0;
  12397. $$0101 = 0;$$090100 = 1;$$09299 = 0;$27 = $7;
  12398. while(1) {
  12399. $25 = (($$0101) + 32)|0;
  12400. $26 = (($27) + ($$0101<<5)|0);
  12401. HEAP32[$26>>2] = $25;
  12402. $28 = (((($27) + ($$0101<<5)|0)) + 4|0);
  12403. HEAP32[$28>>2] = $$090100;
  12404. $29 = ($$09299*11)|0;
  12405. $30 = (($29) + 1)|0;
  12406. $31 = (((($27) + ($$0101<<5)|0)) + 8|0);
  12407. HEAP32[$31>>2] = $30;
  12408. $32 = (2160 + ($$0101<<2)|0);
  12409. $33 = HEAP32[$32>>2]|0;
  12410. $34 = (((($27) + ($$0101<<5)|0)) + 12|0);
  12411. HEAP32[$34>>2] = $33;
  12412. $35 = (((($27) + ($$0101<<5)|0)) + 16|0);
  12413. HEAP32[$35>>2] = 10;
  12414. $36 = (($$090100) + 1)|0;
  12415. $37 = (($36) + ($33))|0;
  12416. $38 = ($37|0)<($9|0);
  12417. $39 = (($$09299) + 1)|0;
  12418. if ($38) {
  12419. $$191 = $37;$$193 = $$09299;
  12420. } else {
  12421. $40 = ($39*11)|0;
  12422. $41 = (($40) + 1)|0;
  12423. $42 = (($33) + 2)|0;
  12424. HEAP32[$28>>2] = 1;
  12425. HEAP32[$31>>2] = $41;
  12426. $$191 = $42;$$193 = $39;
  12427. }
  12428. $43 = (((($27) + ($$0101<<5)|0)) + 20|0);
  12429. HEAP32[$43>>2] = 0;
  12430. $44 = (((($27) + ($$0101<<5)|0)) + 24|0);
  12431. HEAP32[$44>>2] = 0;
  12432. $45 = (((($27) + ($$0101<<5)|0)) + 28|0);
  12433. HEAP32[$45>>2] = 0;
  12434. $46 = (($$0101) + 1)|0;
  12435. $47 = ($46|0)<($10|0);
  12436. if ($47) {
  12437. $$0101 = $46;$$090100 = $$191;$$09299 = $$193;$27 = $11;
  12438. } else {
  12439. $$lcssa = $11;
  12440. break;
  12441. }
  12442. }
  12443. $22 = ((($$lcssa)) + 16|0);
  12444. $23 = HEAP32[$22>>2]|0;
  12445. HEAP32[(17832)>>2] = $23;
  12446. $24 = HEAP32[4453]|0;
  12447. HEAP32[$vararg_buffer>>2] = $24;
  12448. _TraceLog(0,4664,$vararg_buffer);
  12449. STACKTOP = sp;return;
  12450. }
  12451. function _InitTimer() {
  12452. var $0 = 0, $1 = 0.0, label = 0, sp = 0;
  12453. sp = STACKTOP;
  12454. $0 = (_time((0|0))|0);
  12455. _srand($0);
  12456. $1 = (+_GetTime());
  12457. HEAPF64[2157] = $1;
  12458. return;
  12459. }
  12460. function _EmscriptenFullscreenChangeCallback($0,$1,$2) {
  12461. $0 = $0|0;
  12462. $1 = $1|0;
  12463. $2 = $2|0;
  12464. 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;
  12465. sp = STACKTOP;
  12466. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  12467. $vararg_buffer4 = sp + 16|0;
  12468. $vararg_buffer = sp;
  12469. $3 = HEAP32[$1>>2]|0;
  12470. $4 = ($3|0)==(0);
  12471. $5 = ((($1)) + 264|0);
  12472. $6 = HEAP32[$5>>2]|0;
  12473. $7 = ((($1)) + 268|0);
  12474. $8 = HEAP32[$7>>2]|0;
  12475. $9 = ((($1)) + 272|0);
  12476. $10 = HEAP32[$9>>2]|0;
  12477. $11 = ((($1)) + 276|0);
  12478. $12 = HEAP32[$11>>2]|0;
  12479. if ($4) {
  12480. HEAP32[$vararg_buffer4>>2] = $6;
  12481. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  12482. HEAP32[$vararg_ptr7>>2] = $8;
  12483. $vararg_ptr8 = ((($vararg_buffer4)) + 8|0);
  12484. HEAP32[$vararg_ptr8>>2] = $10;
  12485. $vararg_ptr9 = ((($vararg_buffer4)) + 12|0);
  12486. HEAP32[$vararg_ptr9>>2] = $12;
  12487. _TraceLog(0,4597,$vararg_buffer4);
  12488. STACKTOP = sp;return 0;
  12489. } else {
  12490. HEAP32[$vararg_buffer>>2] = $6;
  12491. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  12492. HEAP32[$vararg_ptr1>>2] = $8;
  12493. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  12494. HEAP32[$vararg_ptr2>>2] = $10;
  12495. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  12496. HEAP32[$vararg_ptr3>>2] = $12;
  12497. _TraceLog(0,4528,$vararg_buffer);
  12498. STACKTOP = sp;return 0;
  12499. }
  12500. return (0)|0;
  12501. }
  12502. function _EmscriptenKeyboardCallback($0,$1,$2) {
  12503. $0 = $0|0;
  12504. $1 = $1|0;
  12505. $2 = $2|0;
  12506. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  12507. sp = STACKTOP;
  12508. $3 = ($0|0)==(1);
  12509. if (!($3)) {
  12510. return 0;
  12511. }
  12512. $4 = ((($1)) + 32|0);
  12513. $5 = (_strcmp($4,4521)|0);
  12514. $6 = ($5|0)==(0);
  12515. if (!($6)) {
  12516. return 0;
  12517. }
  12518. (_emscripten_exit_pointerlock()|0);
  12519. return 0;
  12520. }
  12521. function _EmscriptenMouseCallback($0,$1,$2) {
  12522. $0 = $0|0;
  12523. $1 = $1|0;
  12524. $2 = $2|0;
  12525. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  12526. sp = STACKTOP;
  12527. STACKTOP = STACKTOP + 272|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(272|0);
  12528. $3 = sp;
  12529. $4 = ($0|0)==(4);
  12530. if (!($4)) {
  12531. STACKTOP = sp;return 0;
  12532. }
  12533. (_emscripten_get_pointerlock_status(($3|0))|0);
  12534. $5 = HEAP32[$3>>2]|0;
  12535. $6 = ($5|0)==(0);
  12536. if ($6) {
  12537. (_emscripten_request_pointerlock((0|0),1)|0);
  12538. } else {
  12539. (_emscripten_exit_pointerlock()|0);
  12540. (_emscripten_get_pointerlock_status(($3|0))|0);
  12541. }
  12542. STACKTOP = sp;return 0;
  12543. }
  12544. function _EmscriptenTouchCallback($0,$1,$2) {
  12545. $0 = $0|0;
  12546. $1 = $1|0;
  12547. $2 = $2|0;
  12548. 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;
  12549. 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;
  12550. 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;
  12551. var $60 = 0.0, $61 = 0.0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  12552. sp = STACKTOP;
  12553. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  12554. $$byval_copy = sp + 56|0;
  12555. $3 = sp;
  12556. switch ($0|0) {
  12557. case 22: {
  12558. $$sink = 1;
  12559. label = 4;
  12560. break;
  12561. }
  12562. case 23: {
  12563. $$sink = 0;
  12564. label = 4;
  12565. break;
  12566. }
  12567. case 24: {
  12568. $$sink = 2;
  12569. label = 4;
  12570. break;
  12571. }
  12572. default: {
  12573. }
  12574. }
  12575. if ((label|0) == 4) {
  12576. HEAP32[$3>>2] = $$sink;
  12577. }
  12578. $4 = HEAP32[$1>>2]|0;
  12579. $5 = ((($3)) + 4|0);
  12580. HEAP32[$5>>2] = $4;
  12581. $6 = ((($1)) + 20|0);
  12582. $7 = HEAP32[$6>>2]|0;
  12583. $8 = ((($3)) + 8|0);
  12584. HEAP32[$8>>2] = $7;
  12585. $9 = ((($1)) + 72|0);
  12586. $10 = HEAP32[$9>>2]|0;
  12587. $11 = ((($3)) + 12|0);
  12588. HEAP32[$11>>2] = $10;
  12589. $12 = ((($1)) + 56|0);
  12590. $13 = HEAP32[$12>>2]|0;
  12591. $14 = (+($13|0));
  12592. $15 = ((($1)) + 60|0);
  12593. $16 = HEAP32[$15>>2]|0;
  12594. $17 = (+($16|0));
  12595. $$sroa$03$0$$sroa_idx = ((($3)) + 24|0);
  12596. HEAPF32[$$sroa$03$0$$sroa_idx>>2] = $14;
  12597. $$sroa$24$0$$sroa_idx5 = ((($3)) + 28|0);
  12598. HEAPF32[$$sroa$24$0$$sroa_idx5>>2] = $17;
  12599. $18 = ((($1)) + 108|0);
  12600. $19 = HEAP32[$18>>2]|0;
  12601. $20 = (+($19|0));
  12602. $21 = ((($1)) + 112|0);
  12603. $22 = HEAP32[$21>>2]|0;
  12604. $23 = (+($22|0));
  12605. $$sroa$0$0$$sroa_idx = ((($3)) + 32|0);
  12606. HEAPF32[$$sroa$0$0$$sroa_idx>>2] = $20;
  12607. $$sroa$2$0$$sroa_idx2 = ((($3)) + 36|0);
  12608. HEAPF32[$$sroa$2$0$$sroa_idx2>>2] = $23;
  12609. $24 = ((($3)) + 24|0);
  12610. $25 = $24;
  12611. $26 = $25;
  12612. $27 = HEAP32[$26>>2]|0;
  12613. $28 = (($25) + 4)|0;
  12614. $29 = $28;
  12615. $30 = HEAP32[$29>>2]|0;
  12616. $31 = 17240;
  12617. $32 = $31;
  12618. HEAP32[$32>>2] = $27;
  12619. $33 = (($31) + 4)|0;
  12620. $34 = $33;
  12621. HEAP32[$34>>2] = $30;
  12622. $35 = ((($3)) + 32|0);
  12623. $36 = $35;
  12624. $37 = $36;
  12625. $38 = HEAP32[$37>>2]|0;
  12626. $39 = (($36) + 4)|0;
  12627. $40 = $39;
  12628. $41 = HEAP32[$40>>2]|0;
  12629. $42 = (17248);
  12630. $43 = $42;
  12631. HEAP32[$43>>2] = $38;
  12632. $44 = (($42) + 4)|0;
  12633. $45 = $44;
  12634. HEAP32[$45>>2] = $41;
  12635. $46 = (_GetScreenWidth()|0);
  12636. $47 = (+($46|0));
  12637. $48 = +HEAPF32[$24>>2];
  12638. $49 = $48 / $47;
  12639. HEAPF32[$24>>2] = $49;
  12640. $50 = (_GetScreenHeight()|0);
  12641. $51 = (+($50|0));
  12642. $52 = +HEAPF32[$$sroa$24$0$$sroa_idx5>>2];
  12643. $53 = $52 / $51;
  12644. HEAPF32[$$sroa$24$0$$sroa_idx5>>2] = $53;
  12645. $54 = (_GetScreenWidth()|0);
  12646. $55 = (+($54|0));
  12647. $56 = +HEAPF32[$35>>2];
  12648. $57 = $56 / $55;
  12649. HEAPF32[$35>>2] = $57;
  12650. $58 = (_GetScreenHeight()|0);
  12651. $59 = (+($58|0));
  12652. $60 = +HEAPF32[$$sroa$2$0$$sroa_idx2>>2];
  12653. $61 = $60 / $59;
  12654. HEAPF32[$$sroa$2$0$$sroa_idx2>>2] = $61;
  12655. 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));
  12656. _ProcessGestureEvent($$byval_copy);
  12657. STACKTOP = sp;return 1;
  12658. }
  12659. function _EmscriptenGamepadCallback($0,$1,$2) {
  12660. $0 = $0|0;
  12661. $1 = $1|0;
  12662. $2 = $2|0;
  12663. 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;
  12664. sp = STACKTOP;
  12665. $3 = ((($1)) + 1296|0);
  12666. $4 = HEAP32[$3>>2]|0;
  12667. $5 = ($4|0)==(0);
  12668. if ($5) {
  12669. label = 3;
  12670. } else {
  12671. $6 = ((($1)) + 1300|0);
  12672. $7 = HEAP32[$6>>2]|0;
  12673. $8 = ($7|0)<(4);
  12674. if ($8) {
  12675. $$sink = 1;
  12676. } else {
  12677. label = 3;
  12678. }
  12679. }
  12680. if ((label|0) == 3) {
  12681. $$sink = 0;
  12682. }
  12683. $9 = ((($1)) + 1300|0);
  12684. $10 = HEAP32[$9>>2]|0;
  12685. $11 = (17796 + ($10<<2)|0);
  12686. HEAP32[$11>>2] = $$sink;
  12687. return 0;
  12688. }
  12689. function _SetTargetFPS($0) {
  12690. $0 = $0|0;
  12691. 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;
  12692. sp = STACKTOP;
  12693. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  12694. $vararg_buffer = sp;
  12695. $1 = ($0|0)<(1);
  12696. $2 = (+($0|0));
  12697. $3 = 1.0 / $2;
  12698. $$ = $1 ? 0.0 : $3;
  12699. HEAPF64[2154] = $$;
  12700. $4 = $3;
  12701. $$op = $4 * 1000.0;
  12702. $5 = $$op;
  12703. $6 = $1 ? 0.0 : $5;
  12704. HEAPF64[$vararg_buffer>>3] = $6;
  12705. _TraceLog(0,4477,$vararg_buffer);
  12706. STACKTOP = sp;return;
  12707. }
  12708. function _LogoAnimation() {
  12709. var label = 0, sp = 0;
  12710. sp = STACKTOP;
  12711. HEAP32[4448] = 0;
  12712. return;
  12713. }
  12714. function _GetTime() {
  12715. var $0 = 0.0, label = 0, sp = 0;
  12716. sp = STACKTOP;
  12717. $0 = (+_glfwGetTime());
  12718. return (+$0);
  12719. }
  12720. function _LoadImageEx($0,$1,$2,$3) {
  12721. $0 = $0|0;
  12722. $1 = $1|0;
  12723. $2 = $2|0;
  12724. $3 = $3|0;
  12725. 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;
  12726. 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;
  12727. sp = STACKTOP;
  12728. $4 = $2 << 2;
  12729. $5 = Math_imul($4, $3)|0;
  12730. $6 = (_malloc($5)|0);
  12731. $7 = ($5|0)>(0);
  12732. if ($7) {
  12733. $8 = (($5) + -1)|0;
  12734. $9 = $8 >>> 2;
  12735. $$03334 = 0;$$035 = 0;
  12736. while(1) {
  12737. $10 = (($1) + ($$03334<<2)|0);
  12738. $11 = HEAP8[$10>>0]|0;
  12739. $12 = (($6) + ($$035)|0);
  12740. HEAP8[$12>>0] = $11;
  12741. $13 = (((($1) + ($$03334<<2)|0)) + 1|0);
  12742. $14 = HEAP8[$13>>0]|0;
  12743. $15 = $$035 | 1;
  12744. $16 = (($6) + ($15)|0);
  12745. HEAP8[$16>>0] = $14;
  12746. $17 = (((($1) + ($$03334<<2)|0)) + 2|0);
  12747. $18 = HEAP8[$17>>0]|0;
  12748. $19 = $$035 | 2;
  12749. $20 = (($6) + ($19)|0);
  12750. HEAP8[$20>>0] = $18;
  12751. $21 = (((($1) + ($$03334<<2)|0)) + 3|0);
  12752. $22 = HEAP8[$21>>0]|0;
  12753. $23 = $$035 | 3;
  12754. $24 = (($6) + ($23)|0);
  12755. HEAP8[$24>>0] = $22;
  12756. $25 = (($$03334) + 1)|0;
  12757. $26 = (($$035) + 4)|0;
  12758. $exitcond = ($$03334|0)==($9|0);
  12759. if ($exitcond) {
  12760. break;
  12761. } else {
  12762. $$03334 = $25;$$035 = $26;
  12763. }
  12764. }
  12765. }
  12766. HEAP32[$0>>2] = $6;
  12767. $$sroa$9$0$$sroa_idx18 = ((($0)) + 4|0);
  12768. HEAP32[$$sroa$9$0$$sroa_idx18>>2] = $2;
  12769. $$sroa$12$0$$sroa_idx21 = ((($0)) + 8|0);
  12770. HEAP32[$$sroa$12$0$$sroa_idx21>>2] = $3;
  12771. $$sroa$15$0$$sroa_idx24 = ((($0)) + 12|0);
  12772. HEAP32[$$sroa$15$0$$sroa_idx24>>2] = 1;
  12773. $$sroa$16$0$$sroa_idx26 = ((($0)) + 16|0);
  12774. HEAP32[$$sroa$16$0$$sroa_idx26>>2] = 7;
  12775. return;
  12776. }
  12777. function _ImageFormat($0,$1) {
  12778. $0 = $0|0;
  12779. $1 = $1|0;
  12780. 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;
  12781. 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;
  12782. 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;
  12783. 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;
  12784. 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;
  12785. 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;
  12786. 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;
  12787. 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;
  12788. 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;
  12789. 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;
  12790. 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;
  12791. 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;
  12792. 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;
  12793. 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;
  12794. 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;
  12795. 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;
  12796. sp = STACKTOP;
  12797. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  12798. $$byval_copy = sp + 4|0;
  12799. $vararg_buffer = sp;
  12800. $2 = ((($0)) + 16|0);
  12801. $3 = HEAP32[$2>>2]|0;
  12802. $4 = ($3|0)==($1|0);
  12803. if ($4) {
  12804. STACKTOP = sp;return;
  12805. }
  12806. $5 = ($3|0)<(8);
  12807. $6 = ($1|0)<(8);
  12808. $or$cond = $6 & $5;
  12809. if (!($or$cond)) {
  12810. _TraceLog(2,5011,$vararg_buffer);
  12811. STACKTOP = sp;return;
  12812. }
  12813. ;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;
  12814. $7 = (_GetImageData($$byval_copy)|0);
  12815. $8 = HEAP32[$0>>2]|0;
  12816. _free($8);
  12817. HEAP32[$2>>2] = $1;
  12818. switch ($1|0) {
  12819. case 1: {
  12820. $9 = ((($0)) + 4|0);
  12821. $10 = HEAP32[$9>>2]|0;
  12822. $11 = ((($0)) + 8|0);
  12823. $12 = HEAP32[$11>>2]|0;
  12824. $13 = Math_imul($12, $10)|0;
  12825. $14 = (_malloc($13)|0);
  12826. HEAP32[$0>>2] = $14;
  12827. $15 = Math_imul($12, $10)|0;
  12828. $16 = ($15|0)>(0);
  12829. if ($16) {
  12830. $$0171188 = 0;
  12831. while(1) {
  12832. $17 = (($7) + ($$0171188<<2)|0);
  12833. $18 = HEAP8[$17>>0]|0;
  12834. $19 = (+($18&255));
  12835. $20 = $19 * 0.29899999499320984;
  12836. $21 = (((($7) + ($$0171188<<2)|0)) + 1|0);
  12837. $22 = HEAP8[$21>>0]|0;
  12838. $23 = (+($22&255));
  12839. $24 = $23 * 0.58700001239776611;
  12840. $25 = $20 + $24;
  12841. $26 = (((($7) + ($$0171188<<2)|0)) + 2|0);
  12842. $27 = HEAP8[$26>>0]|0;
  12843. $28 = (+($27&255));
  12844. $29 = $28 * 0.11400000005960464;
  12845. $30 = $25 + $29;
  12846. $31 = (~~(($30))&255);
  12847. $32 = HEAP32[$0>>2]|0;
  12848. $33 = (($32) + ($$0171188)|0);
  12849. HEAP8[$33>>0] = $31;
  12850. $34 = (($$0171188) + 1)|0;
  12851. $35 = HEAP32[$9>>2]|0;
  12852. $36 = HEAP32[$11>>2]|0;
  12853. $37 = Math_imul($36, $35)|0;
  12854. $38 = ($34|0)<($37|0);
  12855. if ($38) {
  12856. $$0171188 = $34;
  12857. } else {
  12858. break;
  12859. }
  12860. }
  12861. }
  12862. break;
  12863. }
  12864. case 2: {
  12865. $39 = ((($0)) + 4|0);
  12866. $40 = HEAP32[$39>>2]|0;
  12867. $41 = ((($0)) + 8|0);
  12868. $42 = HEAP32[$41>>2]|0;
  12869. $43 = $40 << 1;
  12870. $44 = Math_imul($43, $42)|0;
  12871. $45 = (_malloc($44)|0);
  12872. HEAP32[$0>>2] = $45;
  12873. $46 = HEAP32[$39>>2]|0;
  12874. $47 = $46 << 1;
  12875. $48 = Math_imul($47, $42)|0;
  12876. $49 = ($48|0)>(0);
  12877. if ($49) {
  12878. $$0170190 = 0;$$0172189 = 0;
  12879. while(1) {
  12880. $50 = (($7) + ($$0172189<<2)|0);
  12881. $51 = HEAP8[$50>>0]|0;
  12882. $52 = (+($51&255));
  12883. $53 = $52 * 0.29899999499320984;
  12884. $54 = (((($7) + ($$0172189<<2)|0)) + 1|0);
  12885. $55 = HEAP8[$54>>0]|0;
  12886. $56 = (+($55&255));
  12887. $57 = $56 * 0.58700001239776611;
  12888. $58 = $53 + $57;
  12889. $59 = (((($7) + ($$0172189<<2)|0)) + 2|0);
  12890. $60 = HEAP8[$59>>0]|0;
  12891. $61 = (+($60&255));
  12892. $62 = $61 * 0.11400000005960464;
  12893. $63 = $58 + $62;
  12894. $64 = (~~(($63))&255);
  12895. $65 = HEAP32[$0>>2]|0;
  12896. $66 = (($65) + ($$0170190)|0);
  12897. HEAP8[$66>>0] = $64;
  12898. $67 = (((($7) + ($$0172189<<2)|0)) + 3|0);
  12899. $68 = HEAP8[$67>>0]|0;
  12900. $69 = HEAP32[$0>>2]|0;
  12901. $70 = $$0170190 | 1;
  12902. $71 = (($69) + ($70)|0);
  12903. HEAP8[$71>>0] = $68;
  12904. $72 = (($$0172189) + 1)|0;
  12905. $73 = (($$0170190) + 2)|0;
  12906. $74 = HEAP32[$39>>2]|0;
  12907. $75 = HEAP32[$41>>2]|0;
  12908. $76 = $74 << 1;
  12909. $77 = Math_imul($76, $75)|0;
  12910. $78 = ($73|0)<($77|0);
  12911. if ($78) {
  12912. $$0170190 = $73;$$0172189 = $72;
  12913. } else {
  12914. break;
  12915. }
  12916. }
  12917. }
  12918. break;
  12919. }
  12920. case 3: {
  12921. $79 = ((($0)) + 4|0);
  12922. $80 = HEAP32[$79>>2]|0;
  12923. $81 = ((($0)) + 8|0);
  12924. $82 = HEAP32[$81>>2]|0;
  12925. $83 = $80 << 1;
  12926. $84 = Math_imul($83, $82)|0;
  12927. $85 = (_malloc($84)|0);
  12928. HEAP32[$0>>2] = $85;
  12929. $86 = HEAP32[$79>>2]|0;
  12930. $87 = Math_imul($82, $86)|0;
  12931. $88 = ($87|0)>(0);
  12932. if ($88) {
  12933. $89 = HEAP8[$7>>0]|0;
  12934. $90 = (+($89&255));
  12935. $91 = $90 * 31.0;
  12936. $92 = $91 / 255.0;
  12937. $roundf179 = (+_roundf((+$92)));
  12938. $93 = (~~(($roundf179))&255);
  12939. $94 = ((($7)) + 1|0);
  12940. $95 = HEAP8[$94>>0]|0;
  12941. $96 = (+($95&255));
  12942. $97 = $96 * 63.0;
  12943. $98 = $97 / 255.0;
  12944. $roundf180 = (+_roundf((+$98)));
  12945. $99 = (~~(($roundf180))&255);
  12946. $100 = ((($7)) + 2|0);
  12947. $101 = HEAP8[$100>>0]|0;
  12948. $102 = (+($101&255));
  12949. $103 = $102 * 31.0;
  12950. $104 = $103 / 255.0;
  12951. $roundf181 = (+_roundf((+$104)));
  12952. $105 = (~~(($roundf181))&255);
  12953. $106 = $93&255;
  12954. $107 = $106 << 11;
  12955. $108 = $99&255;
  12956. $109 = $108 << 5;
  12957. $110 = $109 | $107;
  12958. $111 = $105&255;
  12959. $112 = $110 | $111;
  12960. $113 = $112&65535;
  12961. $114 = HEAP32[$0>>2]|0;
  12962. $115 = HEAP32[$79>>2]|0;
  12963. $116 = HEAP32[$81>>2]|0;
  12964. $117 = Math_imul($116, $115)|0;
  12965. $$0169192 = 0;
  12966. while(1) {
  12967. $118 = (($114) + ($$0169192<<1)|0);
  12968. HEAP16[$118>>1] = $113;
  12969. $119 = (($$0169192) + 1)|0;
  12970. $120 = ($119|0)<($117|0);
  12971. if ($120) {
  12972. $$0169192 = $119;
  12973. } else {
  12974. break;
  12975. }
  12976. }
  12977. }
  12978. break;
  12979. }
  12980. case 4: {
  12981. $121 = ((($0)) + 4|0);
  12982. $122 = HEAP32[$121>>2]|0;
  12983. $123 = ((($0)) + 8|0);
  12984. $124 = HEAP32[$123>>2]|0;
  12985. $125 = ($122*3)|0;
  12986. $126 = Math_imul($125, $124)|0;
  12987. $127 = (_malloc($126)|0);
  12988. HEAP32[$0>>2] = $127;
  12989. $128 = HEAP32[$121>>2]|0;
  12990. $129 = ($128*3)|0;
  12991. $130 = Math_imul($129, $124)|0;
  12992. $131 = ($130|0)>(0);
  12993. if ($131) {
  12994. $$0168195 = 0;$$1194 = 0;
  12995. while(1) {
  12996. $132 = (($7) + ($$1194<<2)|0);
  12997. $133 = HEAP8[$132>>0]|0;
  12998. $134 = HEAP32[$0>>2]|0;
  12999. $135 = (($134) + ($$0168195)|0);
  13000. HEAP8[$135>>0] = $133;
  13001. $136 = (((($7) + ($$1194<<2)|0)) + 1|0);
  13002. $137 = HEAP8[$136>>0]|0;
  13003. $138 = HEAP32[$0>>2]|0;
  13004. $139 = (($$0168195) + 1)|0;
  13005. $140 = (($138) + ($139)|0);
  13006. HEAP8[$140>>0] = $137;
  13007. $141 = (((($7) + ($$1194<<2)|0)) + 2|0);
  13008. $142 = HEAP8[$141>>0]|0;
  13009. $143 = HEAP32[$0>>2]|0;
  13010. $144 = (($$0168195) + 2)|0;
  13011. $145 = (($143) + ($144)|0);
  13012. HEAP8[$145>>0] = $142;
  13013. $146 = (($$1194) + 1)|0;
  13014. $147 = (($$0168195) + 3)|0;
  13015. $148 = HEAP32[$121>>2]|0;
  13016. $149 = HEAP32[$123>>2]|0;
  13017. $150 = ($148*3)|0;
  13018. $151 = Math_imul($150, $149)|0;
  13019. $152 = ($147|0)<($151|0);
  13020. if ($152) {
  13021. $$0168195 = $147;$$1194 = $146;
  13022. } else {
  13023. break;
  13024. }
  13025. }
  13026. }
  13027. break;
  13028. }
  13029. case 5: {
  13030. $153 = ((($0)) + 4|0);
  13031. $154 = HEAP32[$153>>2]|0;
  13032. $155 = ((($0)) + 8|0);
  13033. $156 = HEAP32[$155>>2]|0;
  13034. $157 = $154 << 1;
  13035. $158 = Math_imul($157, $156)|0;
  13036. $159 = (_malloc($158)|0);
  13037. HEAP32[$0>>2] = $159;
  13038. $160 = HEAP32[$153>>2]|0;
  13039. $161 = Math_imul($156, $160)|0;
  13040. $162 = ($161|0)>(0);
  13041. if ($162) {
  13042. $163 = HEAP32[$0>>2]|0;
  13043. $164 = HEAP32[$153>>2]|0;
  13044. $165 = HEAP32[$155>>2]|0;
  13045. $166 = Math_imul($165, $164)|0;
  13046. $$0167197 = 0;
  13047. while(1) {
  13048. $167 = (($7) + ($$0167197<<2)|0);
  13049. $168 = HEAP8[$167>>0]|0;
  13050. $169 = (+($168&255));
  13051. $170 = $169 * 31.0;
  13052. $171 = $170 / 255.0;
  13053. $roundf176 = (+_roundf((+$171)));
  13054. $172 = (~~(($roundf176))&255);
  13055. $173 = (((($7) + ($$0167197<<2)|0)) + 1|0);
  13056. $174 = HEAP8[$173>>0]|0;
  13057. $175 = (+($174&255));
  13058. $176 = $175 * 31.0;
  13059. $177 = $176 / 255.0;
  13060. $roundf177 = (+_roundf((+$177)));
  13061. $178 = (~~(($roundf177))&255);
  13062. $179 = (((($7) + ($$0167197<<2)|0)) + 2|0);
  13063. $180 = HEAP8[$179>>0]|0;
  13064. $181 = (+($180&255));
  13065. $182 = $181 * 31.0;
  13066. $183 = $182 / 255.0;
  13067. $roundf178 = (+_roundf((+$183)));
  13068. $184 = (~~(($roundf178))&255);
  13069. $185 = (((($7) + ($$0167197<<2)|0)) + 3|0);
  13070. $186 = HEAP8[$185>>0]|0;
  13071. $187 = ($186&255)>(50);
  13072. $188 = $172&255;
  13073. $189 = $188 << 11;
  13074. $190 = $178&255;
  13075. $191 = $190 << 6;
  13076. $192 = $191 | $189;
  13077. $193 = $184&255;
  13078. $194 = $193 << 1;
  13079. $195 = $192 | $194;
  13080. $196 = $187&1;
  13081. $197 = $195 | $196;
  13082. $198 = $197&65535;
  13083. $199 = (($163) + ($$0167197<<1)|0);
  13084. HEAP16[$199>>1] = $198;
  13085. $200 = (($$0167197) + 1)|0;
  13086. $201 = ($200|0)<($166|0);
  13087. if ($201) {
  13088. $$0167197 = $200;
  13089. } else {
  13090. break;
  13091. }
  13092. }
  13093. }
  13094. break;
  13095. }
  13096. case 6: {
  13097. $202 = ((($0)) + 4|0);
  13098. $203 = HEAP32[$202>>2]|0;
  13099. $204 = ((($0)) + 8|0);
  13100. $205 = HEAP32[$204>>2]|0;
  13101. $206 = $203 << 1;
  13102. $207 = Math_imul($206, $205)|0;
  13103. $208 = (_malloc($207)|0);
  13104. HEAP32[$0>>2] = $208;
  13105. $209 = HEAP32[$202>>2]|0;
  13106. $210 = Math_imul($205, $209)|0;
  13107. $211 = ($210|0)>(0);
  13108. if ($211) {
  13109. $212 = HEAP32[$0>>2]|0;
  13110. $213 = HEAP32[$202>>2]|0;
  13111. $214 = HEAP32[$204>>2]|0;
  13112. $215 = Math_imul($214, $213)|0;
  13113. $$0166199 = 0;
  13114. while(1) {
  13115. $216 = (($7) + ($$0166199<<2)|0);
  13116. $217 = HEAP8[$216>>0]|0;
  13117. $218 = (+($217&255));
  13118. $219 = $218 * 15.0;
  13119. $220 = $219 / 255.0;
  13120. $roundf = (+_roundf((+$220)));
  13121. $221 = (~~(($roundf))&255);
  13122. $222 = (((($7) + ($$0166199<<2)|0)) + 1|0);
  13123. $223 = HEAP8[$222>>0]|0;
  13124. $224 = (+($223&255));
  13125. $225 = $224 * 15.0;
  13126. $226 = $225 / 255.0;
  13127. $roundf173 = (+_roundf((+$226)));
  13128. $227 = (~~(($roundf173))&255);
  13129. $228 = (((($7) + ($$0166199<<2)|0)) + 2|0);
  13130. $229 = HEAP8[$228>>0]|0;
  13131. $230 = (+($229&255));
  13132. $231 = $230 * 15.0;
  13133. $232 = $231 / 255.0;
  13134. $roundf174 = (+_roundf((+$232)));
  13135. $233 = (~~(($roundf174))&255);
  13136. $234 = (((($7) + ($$0166199<<2)|0)) + 3|0);
  13137. $235 = HEAP8[$234>>0]|0;
  13138. $236 = (+($235&255));
  13139. $237 = $236 * 15.0;
  13140. $238 = $237 / 255.0;
  13141. $roundf175 = (+_roundf((+$238)));
  13142. $239 = (~~(($roundf175))&255);
  13143. $240 = $221&255;
  13144. $241 = $240 << 12;
  13145. $242 = $227&255;
  13146. $243 = $242 << 8;
  13147. $244 = $243 | $241;
  13148. $245 = $233&255;
  13149. $246 = $245 << 4;
  13150. $247 = $244 | $246;
  13151. $248 = $239&255;
  13152. $249 = $247 | $248;
  13153. $250 = $249&65535;
  13154. $251 = (($212) + ($$0166199<<1)|0);
  13155. HEAP16[$251>>1] = $250;
  13156. $252 = (($$0166199) + 1)|0;
  13157. $253 = ($252|0)<($215|0);
  13158. if ($253) {
  13159. $$0166199 = $252;
  13160. } else {
  13161. break;
  13162. }
  13163. }
  13164. }
  13165. break;
  13166. }
  13167. case 7: {
  13168. $254 = ((($0)) + 4|0);
  13169. $255 = HEAP32[$254>>2]|0;
  13170. $256 = ((($0)) + 8|0);
  13171. $257 = HEAP32[$256>>2]|0;
  13172. $258 = $255 << 2;
  13173. $259 = Math_imul($258, $257)|0;
  13174. $260 = (_malloc($259)|0);
  13175. HEAP32[$0>>2] = $260;
  13176. $261 = HEAP32[$254>>2]|0;
  13177. $262 = $261 << 2;
  13178. $263 = Math_imul($262, $257)|0;
  13179. $264 = ($263|0)>(0);
  13180. if ($264) {
  13181. $$0202 = 0;$$2201 = 0;
  13182. while(1) {
  13183. $265 = (($7) + ($$2201<<2)|0);
  13184. $266 = HEAP8[$265>>0]|0;
  13185. $267 = HEAP32[$0>>2]|0;
  13186. $268 = (($267) + ($$0202)|0);
  13187. HEAP8[$268>>0] = $266;
  13188. $269 = (((($7) + ($$2201<<2)|0)) + 1|0);
  13189. $270 = HEAP8[$269>>0]|0;
  13190. $271 = HEAP32[$0>>2]|0;
  13191. $272 = $$0202 | 1;
  13192. $273 = (($271) + ($272)|0);
  13193. HEAP8[$273>>0] = $270;
  13194. $274 = (((($7) + ($$2201<<2)|0)) + 2|0);
  13195. $275 = HEAP8[$274>>0]|0;
  13196. $276 = HEAP32[$0>>2]|0;
  13197. $277 = $$0202 | 2;
  13198. $278 = (($276) + ($277)|0);
  13199. HEAP8[$278>>0] = $275;
  13200. $279 = (((($7) + ($$2201<<2)|0)) + 3|0);
  13201. $280 = HEAP8[$279>>0]|0;
  13202. $281 = HEAP32[$0>>2]|0;
  13203. $282 = $$0202 | 3;
  13204. $283 = (($281) + ($282)|0);
  13205. HEAP8[$283>>0] = $280;
  13206. $284 = (($$2201) + 1)|0;
  13207. $285 = (($$0202) + 4)|0;
  13208. $286 = HEAP32[$254>>2]|0;
  13209. $287 = HEAP32[$256>>2]|0;
  13210. $288 = $286 << 2;
  13211. $289 = Math_imul($288, $287)|0;
  13212. $290 = ($285|0)<($289|0);
  13213. if ($290) {
  13214. $$0202 = $285;$$2201 = $284;
  13215. } else {
  13216. break;
  13217. }
  13218. }
  13219. }
  13220. break;
  13221. }
  13222. default: {
  13223. }
  13224. }
  13225. _free($7);
  13226. STACKTOP = sp;return;
  13227. }
  13228. function _LoadTextureFromImage($0,$1) {
  13229. $0 = $0|0;
  13230. $1 = $1|0;
  13231. var $$sroa$11$0$$sroa_idx8 = 0, $$sroa$5$0$$sroa_idx2 = 0, $$sroa$7$0$$sroa_idx4 = 0, $$sroa$9$0$$sroa_idx6 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  13232. sp = STACKTOP;
  13233. $2 = HEAP32[$1>>2]|0;
  13234. $3 = ((($1)) + 4|0);
  13235. $4 = HEAP32[$3>>2]|0;
  13236. $5 = ((($1)) + 8|0);
  13237. $6 = HEAP32[$5>>2]|0;
  13238. $7 = ((($1)) + 16|0);
  13239. $8 = HEAP32[$7>>2]|0;
  13240. $9 = ((($1)) + 12|0);
  13241. $10 = HEAP32[$9>>2]|0;
  13242. $11 = (_rlglLoadTexture($2,$4,$6,$8,$10)|0);
  13243. $12 = HEAP32[$3>>2]|0;
  13244. $13 = HEAP32[$5>>2]|0;
  13245. HEAP32[$0>>2] = $11;
  13246. $$sroa$5$0$$sroa_idx2 = ((($0)) + 4|0);
  13247. HEAP32[$$sroa$5$0$$sroa_idx2>>2] = $12;
  13248. $$sroa$7$0$$sroa_idx4 = ((($0)) + 8|0);
  13249. HEAP32[$$sroa$7$0$$sroa_idx4>>2] = $13;
  13250. $$sroa$9$0$$sroa_idx6 = ((($0)) + 12|0);
  13251. HEAP32[$$sroa$9$0$$sroa_idx6>>2] = $10;
  13252. $$sroa$11$0$$sroa_idx8 = ((($0)) + 16|0);
  13253. HEAP32[$$sroa$11$0$$sroa_idx8>>2] = $8;
  13254. return;
  13255. }
  13256. function _UnloadImage($0) {
  13257. $0 = $0|0;
  13258. var $1 = 0, label = 0, sp = 0;
  13259. sp = STACKTOP;
  13260. $1 = HEAP32[$0>>2]|0;
  13261. _free($1);
  13262. return;
  13263. }
  13264. function _rlglLoadTexture($0,$1,$2,$3,$4) {
  13265. $0 = $0|0;
  13266. $1 = $1|0;
  13267. $2 = $2|0;
  13268. $3 = $3|0;
  13269. $4 = $4|0;
  13270. var $$0 = 0, $$off = 0, $$off92 = 0, $$off93 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0;
  13271. 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;
  13272. var $46 = 0, $47 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond100 = 0, $or$cond7 = 0, $or$cond96 = 0, $or$cond98 = 0, $switch = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer11 = 0, $vararg_buffer15 = 0, $vararg_buffer3 = 0, $vararg_buffer5 = 0, $vararg_buffer7 = 0;
  13273. var $vararg_buffer9 = 0, $vararg_ptr13 = 0, $vararg_ptr14 = 0, label = 0, sp = 0;
  13274. sp = STACKTOP;
  13275. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  13276. $vararg_buffer15 = sp + 64|0;
  13277. $vararg_buffer11 = sp + 48|0;
  13278. $vararg_buffer9 = sp + 40|0;
  13279. $vararg_buffer7 = sp + 32|0;
  13280. $vararg_buffer5 = sp + 24|0;
  13281. $vararg_buffer3 = sp + 16|0;
  13282. $vararg_buffer1 = sp + 8|0;
  13283. $vararg_buffer = sp;
  13284. $5 = sp + 68|0;
  13285. _glBindTexture(3553,0);
  13286. HEAP32[$5>>2] = 0;
  13287. $6 = HEAP32[4461]|0;
  13288. $7 = ($6|0)==(0);
  13289. $8 = $3 & -4;
  13290. $switch = ($8|0)==(8);
  13291. $or$cond100 = $switch & $7;
  13292. if ($or$cond100) {
  13293. _TraceLog(2,4709,$vararg_buffer);
  13294. $$0 = HEAP32[$5>>2]|0;
  13295. STACKTOP = sp;return ($$0|0);
  13296. }
  13297. $9 = HEAP32[4462]|0;
  13298. $10 = ($9|0)==(0);
  13299. $11 = ($3|0)==(12);
  13300. $or$cond7 = $11 & $10;
  13301. if ($or$cond7) {
  13302. _TraceLog(2,4753,$vararg_buffer1);
  13303. $$0 = HEAP32[$5>>2]|0;
  13304. STACKTOP = sp;return ($$0|0);
  13305. }
  13306. $12 = HEAP32[4463]|0;
  13307. $13 = ($12|0)==(0);
  13308. $$off = (($3) + -13)|0;
  13309. $14 = ($$off>>>0)<(2);
  13310. $or$cond = $14 & $13;
  13311. if ($or$cond) {
  13312. _TraceLog(2,4798,$vararg_buffer3);
  13313. $$0 = HEAP32[$5>>2]|0;
  13314. STACKTOP = sp;return ($$0|0);
  13315. }
  13316. $15 = HEAP32[4464]|0;
  13317. $16 = ($15|0)==(0);
  13318. $$off92 = (($3) + -15)|0;
  13319. $17 = ($$off92>>>0)<(2);
  13320. $or$cond96 = $17 & $16;
  13321. if ($or$cond96) {
  13322. _TraceLog(2,4843,$vararg_buffer5);
  13323. $$0 = HEAP32[$5>>2]|0;
  13324. STACKTOP = sp;return ($$0|0);
  13325. }
  13326. $18 = HEAP32[4465]|0;
  13327. $19 = ($18|0)==(0);
  13328. $$off93 = (($3) + -17)|0;
  13329. $20 = ($$off93>>>0)<(2);
  13330. $or$cond98 = $20 & $19;
  13331. if ($or$cond98) {
  13332. _TraceLog(2,4888,$vararg_buffer7);
  13333. $$0 = HEAP32[$5>>2]|0;
  13334. STACKTOP = sp;return ($$0|0);
  13335. }
  13336. _glGenTextures(1,($5|0));
  13337. $21 = HEAP32[$5>>2]|0;
  13338. _glBindTexture(3553,($21|0));
  13339. do {
  13340. switch ($3|0) {
  13341. case 1: {
  13342. _glTexImage2D(3553,0,6409,($1|0),($2|0),0,6409,5121,($0|0));
  13343. break;
  13344. }
  13345. case 2: {
  13346. _glTexImage2D(3553,0,6410,($1|0),($2|0),0,6410,5121,($0|0));
  13347. break;
  13348. }
  13349. case 3: {
  13350. _glTexImage2D(3553,0,6407,($1|0),($2|0),0,6407,33635,($0|0));
  13351. break;
  13352. }
  13353. case 4: {
  13354. _glTexImage2D(3553,0,6407,($1|0),($2|0),0,6407,5121,($0|0));
  13355. break;
  13356. }
  13357. case 5: {
  13358. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,32820,($0|0));
  13359. break;
  13360. }
  13361. case 6: {
  13362. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,32819,($0|0));
  13363. break;
  13364. }
  13365. case 7: {
  13366. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,5121,($0|0));
  13367. break;
  13368. }
  13369. case 8: {
  13370. $22 = HEAP32[4461]|0;
  13371. $23 = ($22|0)==(0);
  13372. if (!($23)) {
  13373. _LoadCompressedTexture($0,$1,$2,$4,33776);
  13374. }
  13375. break;
  13376. }
  13377. case 9: {
  13378. $24 = HEAP32[4461]|0;
  13379. $25 = ($24|0)==(0);
  13380. if (!($25)) {
  13381. _LoadCompressedTexture($0,$1,$2,$4,33777);
  13382. }
  13383. break;
  13384. }
  13385. case 10: {
  13386. $26 = HEAP32[4461]|0;
  13387. $27 = ($26|0)==(0);
  13388. if (!($27)) {
  13389. _LoadCompressedTexture($0,$1,$2,$4,33778);
  13390. }
  13391. break;
  13392. }
  13393. case 11: {
  13394. $28 = HEAP32[4461]|0;
  13395. $29 = ($28|0)==(0);
  13396. if (!($29)) {
  13397. _LoadCompressedTexture($0,$1,$2,$4,33779);
  13398. }
  13399. break;
  13400. }
  13401. case 12: {
  13402. $30 = HEAP32[4462]|0;
  13403. $31 = ($30|0)==(0);
  13404. if (!($31)) {
  13405. _LoadCompressedTexture($0,$1,$2,$4,36196);
  13406. }
  13407. break;
  13408. }
  13409. case 13: {
  13410. $32 = HEAP32[4463]|0;
  13411. $33 = ($32|0)==(0);
  13412. if (!($33)) {
  13413. _LoadCompressedTexture($0,$1,$2,$4,37492);
  13414. }
  13415. break;
  13416. }
  13417. case 14: {
  13418. $34 = HEAP32[4463]|0;
  13419. $35 = ($34|0)==(0);
  13420. if (!($35)) {
  13421. _LoadCompressedTexture($0,$1,$2,$4,37496);
  13422. }
  13423. break;
  13424. }
  13425. case 15: {
  13426. $36 = HEAP32[4464]|0;
  13427. $37 = ($36|0)==(0);
  13428. if (!($37)) {
  13429. _LoadCompressedTexture($0,$1,$2,$4,35840);
  13430. }
  13431. break;
  13432. }
  13433. case 16: {
  13434. $38 = HEAP32[4464]|0;
  13435. $39 = ($38|0)==(0);
  13436. if (!($39)) {
  13437. _LoadCompressedTexture($0,$1,$2,$4,35842);
  13438. }
  13439. break;
  13440. }
  13441. case 17: {
  13442. $40 = HEAP32[4465]|0;
  13443. $41 = ($40|0)==(0);
  13444. if (!($41)) {
  13445. _LoadCompressedTexture($0,$1,$2,$4,37808);
  13446. }
  13447. break;
  13448. }
  13449. case 18: {
  13450. $42 = HEAP32[4465]|0;
  13451. $43 = ($42|0)==(0);
  13452. if (!($43)) {
  13453. _LoadCompressedTexture($0,$1,$2,$4,37815);
  13454. }
  13455. break;
  13456. }
  13457. default: {
  13458. _TraceLog(2,4933,$vararg_buffer9);
  13459. }
  13460. }
  13461. } while(0);
  13462. $44 = HEAP32[4466]|0;
  13463. $45 = ($44|0)==(0);
  13464. if ($45) {
  13465. _glTexParameteri(3553,10242,33071);
  13466. _glTexParameteri(3553,10243,33071);
  13467. } else {
  13468. _glTexParameteri(3553,10242,10497);
  13469. _glTexParameteri(3553,10243,10497);
  13470. }
  13471. _glTexParameteri(3553,10240,9728);
  13472. _glTexParameteri(3553,10241,9728);
  13473. _glBindTexture(3553,0);
  13474. $46 = HEAP32[$5>>2]|0;
  13475. $47 = ($46|0)==(0);
  13476. if ($47) {
  13477. _TraceLog(2,11666,$vararg_buffer15);
  13478. $$0 = HEAP32[$5>>2]|0;
  13479. STACKTOP = sp;return ($$0|0);
  13480. } else {
  13481. HEAP32[$vararg_buffer11>>2] = $46;
  13482. $vararg_ptr13 = ((($vararg_buffer11)) + 4|0);
  13483. HEAP32[$vararg_ptr13>>2] = $1;
  13484. $vararg_ptr14 = ((($vararg_buffer11)) + 8|0);
  13485. HEAP32[$vararg_ptr14>>2] = $2;
  13486. _TraceLog(0,4962,$vararg_buffer11);
  13487. $$0 = HEAP32[$5>>2]|0;
  13488. STACKTOP = sp;return ($$0|0);
  13489. }
  13490. return (0)|0;
  13491. }
  13492. function _LoadCompressedTexture($0,$1,$2,$3,$4) {
  13493. $0 = $0|0;
  13494. $1 = $1|0;
  13495. $2 = $2|0;
  13496. $3 = $3|0;
  13497. $4 = $4|0;
  13498. 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;
  13499. var $23 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond42 = 0, label = 0, sp = 0;
  13500. sp = STACKTOP;
  13501. _glPixelStorei(3317,1);
  13502. switch ($4|0) {
  13503. case 33776: case 33777: case 36196: case 37492: {
  13504. $$038 = 8;
  13505. break;
  13506. }
  13507. default: {
  13508. $$038 = 16;
  13509. }
  13510. }
  13511. $5 = ($3|0)<(1);
  13512. $6 = $1 | $2;
  13513. $7 = ($6|0)==(0);
  13514. $or$cond42 = $5 | $7;
  13515. if ($or$cond42) {
  13516. return;
  13517. } else {
  13518. $$03645 = 0;$$03744 = 0;$$03943 = $2;$$046 = $1;
  13519. }
  13520. while(1) {
  13521. $8 = (($$046) + 3)|0;
  13522. $9 = (($8|0) / 4)&-1;
  13523. $10 = (($$03943) + 3)|0;
  13524. $11 = (($10|0) / 4)&-1;
  13525. $12 = Math_imul($11, $$038)|0;
  13526. $13 = Math_imul($12, $9)|0;
  13527. $14 = (($0) + ($$03744)|0);
  13528. _glCompressedTexImage2D(3553,($$03645|0),($4|0),($$046|0),($$03943|0),0,($13|0),($14|0));
  13529. $15 = (($13) + ($$03744))|0;
  13530. $16 = (($$046|0) / 2)&-1;
  13531. $17 = (($$03943|0) / 2)&-1;
  13532. $18 = ($$046|0)<(2);
  13533. $$ = $18 ? 1 : $16;
  13534. $19 = ($$03943|0)<(2);
  13535. $$140 = $19 ? 1 : $17;
  13536. $20 = (($$03645) + 1)|0;
  13537. $21 = ($20|0)>=($3|0);
  13538. $22 = $$ | $$140;
  13539. $23 = ($22|0)==(0);
  13540. $or$cond = $21 | $23;
  13541. if ($or$cond) {
  13542. break;
  13543. } else {
  13544. $$03645 = $20;$$03744 = $15;$$03943 = $$140;$$046 = $$;
  13545. }
  13546. }
  13547. return;
  13548. }
  13549. function _GetImageData($0) {
  13550. $0 = $0|0;
  13551. 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;
  13552. 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;
  13553. 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;
  13554. 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;
  13555. 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;
  13556. 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;
  13557. 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;
  13558. var $97 = 0.0, $98 = 0.0, $99 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  13559. sp = STACKTOP;
  13560. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  13561. $vararg_buffer = sp;
  13562. $1 = ((($0)) + 4|0);
  13563. $2 = HEAP32[$1>>2]|0;
  13564. $3 = ((($0)) + 8|0);
  13565. $4 = HEAP32[$3>>2]|0;
  13566. $5 = $2 << 2;
  13567. $6 = Math_imul($5, $4)|0;
  13568. $7 = (_malloc($6)|0);
  13569. $8 = HEAP32[$1>>2]|0;
  13570. $9 = Math_imul($4, $8)|0;
  13571. $10 = ($9|0)>(0);
  13572. if (!($10)) {
  13573. STACKTOP = sp;return ($7|0);
  13574. }
  13575. $11 = ((($0)) + 16|0);
  13576. $12 = HEAP32[$11>>2]|0;
  13577. $13 = HEAP32[$0>>2]|0;
  13578. $$0104105 = 0;$$0106 = 0;
  13579. while(1) {
  13580. switch ($12|0) {
  13581. case 1: {
  13582. $14 = (($13) + ($$0106)|0);
  13583. $15 = HEAP8[$14>>0]|0;
  13584. $16 = (($7) + ($$0104105<<2)|0);
  13585. HEAP8[$16>>0] = $15;
  13586. $17 = HEAP8[$14>>0]|0;
  13587. $18 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13588. HEAP8[$18>>0] = $17;
  13589. $19 = HEAP8[$14>>0]|0;
  13590. $20 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13591. HEAP8[$20>>0] = $19;
  13592. $21 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13593. HEAP8[$21>>0] = -1;
  13594. $22 = (($$0106) + 1)|0;
  13595. $$1 = $22;
  13596. break;
  13597. }
  13598. case 2: {
  13599. $23 = (($13) + ($$0106)|0);
  13600. $24 = HEAP8[$23>>0]|0;
  13601. $25 = (($7) + ($$0104105<<2)|0);
  13602. HEAP8[$25>>0] = $24;
  13603. $26 = HEAP8[$23>>0]|0;
  13604. $27 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13605. HEAP8[$27>>0] = $26;
  13606. $28 = HEAP8[$23>>0]|0;
  13607. $29 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13608. HEAP8[$29>>0] = $28;
  13609. $30 = (($$0106) + 1)|0;
  13610. $31 = (($13) + ($30)|0);
  13611. $32 = HEAP8[$31>>0]|0;
  13612. $33 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13613. HEAP8[$33>>0] = $32;
  13614. $34 = (($$0106) + 2)|0;
  13615. $$1 = $34;
  13616. break;
  13617. }
  13618. case 5: {
  13619. $35 = (($13) + ($$0106<<1)|0);
  13620. $36 = HEAP16[$35>>1]|0;
  13621. $37 = $36&65535;
  13622. $38 = $37 >>> 11;
  13623. $39 = (+($38|0));
  13624. $40 = $39 * 8.0;
  13625. $41 = (~~(($40))&255);
  13626. $42 = (($7) + ($$0104105<<2)|0);
  13627. HEAP8[$42>>0] = $41;
  13628. $43 = $37 >>> 6;
  13629. $44 = $43 & 31;
  13630. $45 = (+($44|0));
  13631. $46 = $45 * 8.0;
  13632. $47 = (~~(($46))&255);
  13633. $48 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13634. HEAP8[$48>>0] = $47;
  13635. $49 = $37 >>> 1;
  13636. $50 = $49 & 31;
  13637. $51 = (+($50|0));
  13638. $52 = $51 * 8.0;
  13639. $53 = (~~(($52))&255);
  13640. $54 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13641. HEAP8[$54>>0] = $53;
  13642. $55 = $37 & 1;
  13643. $56 = (0 - ($55))|0;
  13644. $57 = $56&255;
  13645. $58 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13646. HEAP8[$58>>0] = $57;
  13647. $59 = (($$0106) + 1)|0;
  13648. $$1 = $59;
  13649. break;
  13650. }
  13651. case 3: {
  13652. $60 = (($13) + ($$0106<<1)|0);
  13653. $61 = HEAP16[$60>>1]|0;
  13654. $62 = $61&65535;
  13655. $63 = $62 >>> 11;
  13656. $64 = (+($63|0));
  13657. $65 = $64 * 8.0;
  13658. $66 = (~~(($65))&255);
  13659. $67 = (($7) + ($$0104105<<2)|0);
  13660. HEAP8[$67>>0] = $66;
  13661. $68 = $62 >>> 5;
  13662. $69 = $68 & 63;
  13663. $70 = (+($69|0));
  13664. $71 = $70 * 4.0;
  13665. $72 = (~~(($71))&255);
  13666. $73 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13667. HEAP8[$73>>0] = $72;
  13668. $74 = $62 & 31;
  13669. $75 = (+($74|0));
  13670. $76 = $75 * 8.0;
  13671. $77 = (~~(($76))&255);
  13672. $78 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13673. HEAP8[$78>>0] = $77;
  13674. $79 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13675. HEAP8[$79>>0] = -1;
  13676. $80 = (($$0106) + 1)|0;
  13677. $$1 = $80;
  13678. break;
  13679. }
  13680. case 6: {
  13681. $81 = (($13) + ($$0106<<1)|0);
  13682. $82 = HEAP16[$81>>1]|0;
  13683. $83 = $82&65535;
  13684. $84 = $83 >>> 12;
  13685. $85 = (+($84|0));
  13686. $86 = $85 * 17.0;
  13687. $87 = (~~(($86))&255);
  13688. $88 = (($7) + ($$0104105<<2)|0);
  13689. HEAP8[$88>>0] = $87;
  13690. $89 = $83 >>> 8;
  13691. $90 = $89 & 15;
  13692. $91 = (+($90|0));
  13693. $92 = $91 * 17.0;
  13694. $93 = (~~(($92))&255);
  13695. $94 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13696. HEAP8[$94>>0] = $93;
  13697. $95 = $83 >>> 4;
  13698. $96 = $95 & 15;
  13699. $97 = (+($96|0));
  13700. $98 = $97 * 17.0;
  13701. $99 = (~~(($98))&255);
  13702. $100 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13703. HEAP8[$100>>0] = $99;
  13704. $101 = $83 & 15;
  13705. $102 = (+($101|0));
  13706. $103 = $102 * 17.0;
  13707. $104 = (~~(($103))&255);
  13708. $105 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13709. HEAP8[$105>>0] = $104;
  13710. $106 = (($$0106) + 1)|0;
  13711. $$1 = $106;
  13712. break;
  13713. }
  13714. case 7: {
  13715. $107 = (($13) + ($$0106)|0);
  13716. $108 = HEAP8[$107>>0]|0;
  13717. $109 = (($7) + ($$0104105<<2)|0);
  13718. HEAP8[$109>>0] = $108;
  13719. $110 = (($$0106) + 1)|0;
  13720. $111 = (($13) + ($110)|0);
  13721. $112 = HEAP8[$111>>0]|0;
  13722. $113 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13723. HEAP8[$113>>0] = $112;
  13724. $114 = (($$0106) + 2)|0;
  13725. $115 = (($13) + ($114)|0);
  13726. $116 = HEAP8[$115>>0]|0;
  13727. $117 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13728. HEAP8[$117>>0] = $116;
  13729. $118 = (($$0106) + 3)|0;
  13730. $119 = (($13) + ($118)|0);
  13731. $120 = HEAP8[$119>>0]|0;
  13732. $121 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13733. HEAP8[$121>>0] = $120;
  13734. $122 = (($$0106) + 4)|0;
  13735. $$1 = $122;
  13736. break;
  13737. }
  13738. case 4: {
  13739. $123 = (($13) + ($$0106)|0);
  13740. $124 = HEAP8[$123>>0]|0;
  13741. $125 = (($7) + ($$0104105<<2)|0);
  13742. HEAP8[$125>>0] = $124;
  13743. $126 = (($$0106) + 1)|0;
  13744. $127 = (($13) + ($126)|0);
  13745. $128 = HEAP8[$127>>0]|0;
  13746. $129 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13747. HEAP8[$129>>0] = $128;
  13748. $130 = (($$0106) + 2)|0;
  13749. $131 = (($13) + ($130)|0);
  13750. $132 = HEAP8[$131>>0]|0;
  13751. $133 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13752. HEAP8[$133>>0] = $132;
  13753. $134 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13754. HEAP8[$134>>0] = -1;
  13755. $135 = (($$0106) + 3)|0;
  13756. $$1 = $135;
  13757. break;
  13758. }
  13759. default: {
  13760. _TraceLog(2,5065,$vararg_buffer);
  13761. $$1 = $$0106;
  13762. }
  13763. }
  13764. $136 = (($$0104105) + 1)|0;
  13765. $137 = HEAP32[$1>>2]|0;
  13766. $138 = HEAP32[$3>>2]|0;
  13767. $139 = Math_imul($138, $137)|0;
  13768. $140 = ($136|0)<($139|0);
  13769. if ($140) {
  13770. $$0104105 = $136;$$0106 = $$1;
  13771. } else {
  13772. break;
  13773. }
  13774. }
  13775. STACKTOP = sp;return ($7|0);
  13776. }
  13777. function _ErrorCallback($0,$1) {
  13778. $0 = $0|0;
  13779. $1 = $1|0;
  13780. var $vararg_buffer = 0, $vararg_ptr1 = 0, label = 0, sp = 0;
  13781. sp = STACKTOP;
  13782. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  13783. $vararg_buffer = sp;
  13784. HEAP32[$vararg_buffer>>2] = $0;
  13785. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  13786. HEAP32[$vararg_ptr1>>2] = $1;
  13787. _TraceLog(2,8931,$vararg_buffer);
  13788. STACKTOP = sp;return;
  13789. }
  13790. function _rlGetVersion() {
  13791. var label = 0, sp = 0;
  13792. sp = STACKTOP;
  13793. return 4;
  13794. }
  13795. function _SetupFramebufferSize($0,$1) {
  13796. $0 = $0|0;
  13797. $1 = $1|0;
  13798. 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;
  13799. 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;
  13800. 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;
  13801. var $vararg_ptr3 = 0, $vararg_ptr7 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  13802. sp = STACKTOP;
  13803. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  13804. $vararg_buffer8 = sp + 24|0;
  13805. $vararg_buffer4 = sp + 16|0;
  13806. $vararg_buffer = sp;
  13807. $2 = sp + 40|0;
  13808. $3 = HEAP32[4445]|0;
  13809. $4 = ($3|0)>($0|0);
  13810. if (!($4)) {
  13811. $5 = HEAP32[4444]|0;
  13812. $6 = ($5|0)>($1|0);
  13813. if (!($6)) {
  13814. $30 = ($3|0)<($0|0);
  13815. $31 = ($5|0)<($1|0);
  13816. $or$cond = $30 | $31;
  13817. if (!($or$cond)) {
  13818. HEAP32[4486] = $3;
  13819. HEAP32[4487] = $5;
  13820. HEAP32[4488] = 0;
  13821. HEAP32[4489] = 0;
  13822. STACKTOP = sp;return;
  13823. }
  13824. HEAP32[$vararg_buffer8>>2] = $3;
  13825. $vararg_ptr11 = ((($vararg_buffer8)) + 4|0);
  13826. HEAP32[$vararg_ptr11>>2] = $5;
  13827. $vararg_ptr12 = ((($vararg_buffer8)) + 8|0);
  13828. HEAP32[$vararg_ptr12>>2] = $0;
  13829. $vararg_ptr13 = ((($vararg_buffer8)) + 12|0);
  13830. HEAP32[$vararg_ptr13>>2] = $1;
  13831. _TraceLog(0,8865,$vararg_buffer8);
  13832. $32 = (+($0|0));
  13833. $33 = (+($1|0));
  13834. $34 = $32 / $33;
  13835. $35 = HEAP32[4445]|0;
  13836. $36 = (+($35|0));
  13837. $37 = HEAP32[4444]|0;
  13838. $38 = (+($37|0));
  13839. $39 = $36 / $38;
  13840. $40 = !($34 <= $39);
  13841. if ($40) {
  13842. $44 = $34 * $38;
  13843. $roundf = (+_roundf((+$44)));
  13844. $45 = (~~(($roundf)));
  13845. HEAP32[4486] = $45;
  13846. HEAP32[4487] = $37;
  13847. $46 = (($45) - ($35))|0;
  13848. HEAP32[4488] = $46;
  13849. $$sink1 = 0;
  13850. } else {
  13851. HEAP32[4486] = $35;
  13852. $41 = $36 / $34;
  13853. $roundf38 = (+_roundf((+$41)));
  13854. $42 = (~~(($roundf38)));
  13855. HEAP32[4487] = $42;
  13856. HEAP32[4488] = 0;
  13857. $43 = (($42) - ($37))|0;
  13858. $$sink1 = $43;
  13859. }
  13860. HEAP32[4489] = $$sink1;
  13861. STACKTOP = sp;return;
  13862. }
  13863. }
  13864. $7 = HEAP32[4444]|0;
  13865. HEAP32[$vararg_buffer>>2] = $3;
  13866. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  13867. HEAP32[$vararg_ptr1>>2] = $7;
  13868. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  13869. HEAP32[$vararg_ptr2>>2] = $0;
  13870. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  13871. HEAP32[$vararg_ptr3>>2] = $1;
  13872. _TraceLog(2,8722,$vararg_buffer);
  13873. $8 = (+($0|0));
  13874. $9 = HEAP32[4445]|0;
  13875. $10 = (+($9|0));
  13876. $11 = $8 / $10;
  13877. $12 = (+($1|0));
  13878. $13 = HEAP32[4444]|0;
  13879. $14 = (+($13|0));
  13880. $15 = $12 / $14;
  13881. $16 = !($11 <= $15);
  13882. if ($16) {
  13883. $22 = $10 * $15;
  13884. $roundf39 = (+_roundf((+$22)));
  13885. $23 = (~~(($roundf39)));
  13886. HEAP32[4486] = $23;
  13887. HEAP32[4487] = $1;
  13888. $24 = (($0) - ($23))|0;
  13889. HEAP32[4488] = $24;
  13890. $$sink = 0;
  13891. } else {
  13892. HEAP32[4486] = $0;
  13893. $17 = HEAP32[4444]|0;
  13894. $18 = (+($17|0));
  13895. $19 = $11 * $18;
  13896. $roundf40 = (+_roundf((+$19)));
  13897. $20 = (~~(($roundf40)));
  13898. HEAP32[4487] = $20;
  13899. HEAP32[4488] = 0;
  13900. $21 = (($1) - ($20))|0;
  13901. $$sink = $21;
  13902. }
  13903. HEAP32[4489] = $$sink;
  13904. $25 = HEAP32[4486]|0;
  13905. $26 = (+($25|0));
  13906. $27 = HEAP32[4445]|0;
  13907. $28 = (+($27|0));
  13908. $29 = $26 / $28;
  13909. _MatrixScale($2,$29,$29,$29);
  13910. dest=17868; 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));
  13911. HEAP32[4486] = $0;
  13912. HEAP32[4487] = $1;
  13913. HEAP32[$vararg_buffer4>>2] = $0;
  13914. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  13915. HEAP32[$vararg_ptr7>>2] = $1;
  13916. _TraceLog(2,8800,$vararg_buffer4);
  13917. STACKTOP = sp;return;
  13918. }
  13919. function _WindowSizeCallback($0,$1,$2) {
  13920. $0 = $0|0;
  13921. $1 = $1|0;
  13922. $2 = $2|0;
  13923. var $3 = 0.0, $4 = 0.0, label = 0, sp = 0;
  13924. sp = STACKTOP;
  13925. _rlViewport(0,0,$1,$2);
  13926. _rlMatrixMode(5889);
  13927. _rlLoadIdentity();
  13928. $3 = (+($1|0));
  13929. $4 = (+($2|0));
  13930. _rlOrtho(0.0,$3,$4,0.0,0.0,1.0);
  13931. _rlMatrixMode(5888);
  13932. _rlLoadIdentity();
  13933. _rlClearScreenBuffers();
  13934. HEAP32[4445] = $1;
  13935. HEAP32[4444] = $2;
  13936. HEAP32[4486] = $1;
  13937. HEAP32[4487] = $2;
  13938. return;
  13939. }
  13940. function _CursorEnterCallback($0,$1) {
  13941. $0 = $0|0;
  13942. $1 = $1|0;
  13943. var label = 0, sp = 0;
  13944. sp = STACKTOP;
  13945. return;
  13946. }
  13947. function _KeyCallback($0,$1,$2,$3,$4) {
  13948. $0 = $0|0;
  13949. $1 = $1|0;
  13950. $2 = $2|0;
  13951. $3 = $3|0;
  13952. $4 = $4|0;
  13953. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  13954. sp = STACKTOP;
  13955. $5 = HEAP32[765]|0;
  13956. $6 = ($5|0)==($1|0);
  13957. $7 = ($3|0)==(1);
  13958. $or$cond = $7 & $6;
  13959. if ($or$cond) {
  13960. _glfwSetWindowShouldClose(($0|0),1);
  13961. return;
  13962. }
  13963. $8 = $3&255;
  13964. $9 = (20615 + ($1)|0);
  13965. HEAP8[$9>>0] = $8;
  13966. if (!($7)) {
  13967. return;
  13968. }
  13969. HEAP32[764] = $1;
  13970. return;
  13971. }
  13972. function _MouseButtonCallback($0,$1,$2,$3) {
  13973. $0 = $0|0;
  13974. $1 = $1|0;
  13975. $2 = $2|0;
  13976. $3 = $3|0;
  13977. 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;
  13978. 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;
  13979. sp = STACKTOP;
  13980. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  13981. $$byval_copy = sp + 64|0;
  13982. $4 = sp + 8|0;
  13983. $5 = sp;
  13984. $6 = $2&255;
  13985. $7 = (20609 + ($1)|0);
  13986. HEAP8[$7>>0] = $6;
  13987. $8 = (_IsMouseButtonPressed(0)|0);
  13988. $9 = ($8|0)==(0);
  13989. if ($9) {
  13990. $10 = (_IsMouseButtonReleased(0)|0);
  13991. $11 = ($10|0)==(0);
  13992. if (!($11)) {
  13993. $$sink = 0;
  13994. label = 3;
  13995. }
  13996. } else {
  13997. $$sink = 1;
  13998. label = 3;
  13999. }
  14000. if ((label|0) == 3) {
  14001. HEAP32[$4>>2] = $$sink;
  14002. }
  14003. $12 = ((($4)) + 8|0);
  14004. HEAP32[$12>>2] = 0;
  14005. $13 = ((($4)) + 4|0);
  14006. HEAP32[$13>>2] = 1;
  14007. $14 = ((($4)) + 24|0);
  14008. _GetMousePosition($5);
  14009. $15 = $5;
  14010. $16 = $15;
  14011. $17 = HEAP32[$16>>2]|0;
  14012. $18 = (($15) + 4)|0;
  14013. $19 = $18;
  14014. $20 = HEAP32[$19>>2]|0;
  14015. $21 = $14;
  14016. $22 = $21;
  14017. HEAP32[$22>>2] = $17;
  14018. $23 = (($21) + 4)|0;
  14019. $24 = $23;
  14020. HEAP32[$24>>2] = $20;
  14021. $25 = (_GetScreenWidth()|0);
  14022. $26 = (+($25|0));
  14023. $27 = +HEAPF32[$14>>2];
  14024. $28 = $27 / $26;
  14025. HEAPF32[$14>>2] = $28;
  14026. $29 = (_GetScreenHeight()|0);
  14027. $30 = (+($29|0));
  14028. $31 = ((($4)) + 28|0);
  14029. $32 = +HEAPF32[$31>>2];
  14030. $33 = $32 / $30;
  14031. HEAPF32[$31>>2] = $33;
  14032. 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));
  14033. _ProcessGestureEvent($$byval_copy);
  14034. STACKTOP = sp;return;
  14035. }
  14036. function _MouseCursorPosCallback($0,$1,$2) {
  14037. $0 = $0|0;
  14038. $1 = +$1;
  14039. $2 = +$2;
  14040. 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;
  14041. 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;
  14042. sp = STACKTOP;
  14043. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  14044. $$byval_copy = sp + 56|0;
  14045. $3 = sp;
  14046. HEAP32[$3>>2] = 2;
  14047. $4 = ((($3)) + 8|0);
  14048. HEAP32[$4>>2] = 0;
  14049. $5 = ((($3)) + 4|0);
  14050. HEAP32[$5>>2] = 1;
  14051. $6 = $1;
  14052. $7 = $2;
  14053. $$sroa$0$0$$sroa_idx = ((($3)) + 24|0);
  14054. HEAPF32[$$sroa$0$0$$sroa_idx>>2] = $6;
  14055. $$sroa$2$0$$sroa_idx1 = ((($3)) + 28|0);
  14056. HEAPF32[$$sroa$2$0$$sroa_idx1>>2] = $7;
  14057. $8 = ((($3)) + 24|0);
  14058. $9 = $8;
  14059. $10 = $9;
  14060. $11 = HEAP32[$10>>2]|0;
  14061. $12 = (($9) + 4)|0;
  14062. $13 = $12;
  14063. $14 = HEAP32[$13>>2]|0;
  14064. $15 = 17240;
  14065. $16 = $15;
  14066. HEAP32[$16>>2] = $11;
  14067. $17 = (($15) + 4)|0;
  14068. $18 = $17;
  14069. HEAP32[$18>>2] = $14;
  14070. $19 = (_GetScreenWidth()|0);
  14071. $20 = (+($19|0));
  14072. $21 = +HEAPF32[$8>>2];
  14073. $22 = $21 / $20;
  14074. HEAPF32[$8>>2] = $22;
  14075. $23 = (_GetScreenHeight()|0);
  14076. $24 = (+($23|0));
  14077. $25 = +HEAPF32[$$sroa$2$0$$sroa_idx1>>2];
  14078. $26 = $25 / $24;
  14079. HEAPF32[$$sroa$2$0$$sroa_idx1>>2] = $26;
  14080. 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));
  14081. _ProcessGestureEvent($$byval_copy);
  14082. STACKTOP = sp;return;
  14083. }
  14084. function _CharCallback($0,$1) {
  14085. $0 = $0|0;
  14086. $1 = $1|0;
  14087. var label = 0, sp = 0;
  14088. sp = STACKTOP;
  14089. HEAP32[764] = $1;
  14090. return;
  14091. }
  14092. function _ScrollCallback($0,$1,$2) {
  14093. $0 = $0|0;
  14094. $1 = +$1;
  14095. $2 = +$2;
  14096. var $3 = 0, label = 0, sp = 0;
  14097. sp = STACKTOP;
  14098. $3 = (~~(($2)));
  14099. HEAP32[4859] = $3;
  14100. return;
  14101. }
  14102. function _WindowIconifyCallback($0,$1) {
  14103. $0 = $0|0;
  14104. $1 = $1|0;
  14105. var $$sink = 0, $2 = 0, label = 0, sp = 0;
  14106. sp = STACKTOP;
  14107. $2 = ($1|0)!=(0);
  14108. $$sink = $2&1;
  14109. HEAP32[4858] = $$sink;
  14110. return;
  14111. }
  14112. function _rlglInit($0,$1) {
  14113. $0 = $0|0;
  14114. $1 = $1|0;
  14115. var $$05965 = 0, $$06066 = 0, $$06167 = 0, $$062 = 0, $$sink63 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0;
  14116. 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;
  14117. 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;
  14118. var $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0.0, $72 = 0.0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0;
  14119. var $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $9 = 0, $exitcond = 0, $exitcond69 = 0, $exitcond70 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer10 = 0, $vararg_buffer13 = 0, $vararg_buffer15 = 0, $vararg_buffer17 = 0, $vararg_buffer19 = 0;
  14120. var $vararg_buffer21 = 0, $vararg_buffer23 = 0, $vararg_buffer25 = 0, $vararg_buffer27 = 0, $vararg_buffer29 = 0, $vararg_buffer31 = 0, $vararg_buffer34 = 0, $vararg_buffer36 = 0, $vararg_buffer39 = 0, $vararg_buffer4 = 0, $vararg_buffer41 = 0, $vararg_buffer7 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14121. sp = STACKTOP;
  14122. STACKTOP = STACKTOP + 2464|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(2464|0);
  14123. $vararg_buffer41 = sp + 2184|0;
  14124. $vararg_buffer39 = sp + 2176|0;
  14125. $vararg_buffer36 = sp + 2168|0;
  14126. $vararg_buffer34 = sp + 2160|0;
  14127. $vararg_buffer31 = sp + 2152|0;
  14128. $vararg_buffer29 = sp + 2144|0;
  14129. $vararg_buffer27 = sp + 2136|0;
  14130. $vararg_buffer25 = sp + 2128|0;
  14131. $vararg_buffer23 = sp + 2120|0;
  14132. $vararg_buffer21 = sp + 2112|0;
  14133. $vararg_buffer19 = sp + 2104|0;
  14134. $vararg_buffer17 = sp + 2096|0;
  14135. $vararg_buffer15 = sp + 2088|0;
  14136. $vararg_buffer13 = sp + 2080|0;
  14137. $vararg_buffer10 = sp + 2072|0;
  14138. $vararg_buffer7 = sp + 24|0;
  14139. $vararg_buffer4 = sp + 16|0;
  14140. $vararg_buffer1 = sp + 8|0;
  14141. $vararg_buffer = sp;
  14142. $2 = sp + 2400|0;
  14143. $3 = sp + 2384|0;
  14144. $4 = sp + 2320|0;
  14145. $5 = sp + 2256|0;
  14146. $6 = sp + 2192|0;
  14147. $7 = (_glGetString(7936)|0);
  14148. HEAP32[$vararg_buffer>>2] = $7;
  14149. _TraceLog(0,5363,$vararg_buffer);
  14150. $8 = (_glGetString(7937)|0);
  14151. HEAP32[$vararg_buffer1>>2] = $8;
  14152. _TraceLog(0,5381,$vararg_buffer1);
  14153. $9 = (_glGetString(7938)|0);
  14154. HEAP32[$vararg_buffer4>>2] = $9;
  14155. _TraceLog(0,5399,$vararg_buffer4);
  14156. $10 = (_glGetString(35724)|0);
  14157. HEAP32[$vararg_buffer7>>2] = $10;
  14158. _TraceLog(0,5417,$vararg_buffer7);
  14159. $11 = (_glGetString(7939)|0);
  14160. $12 = (_strlen($11)|0);
  14161. $13 = (($12) + 1)|0;
  14162. $14 = (_malloc($13)|0);
  14163. _memcpy(($14|0),($11|0),($13|0))|0;
  14164. $$062 = 0;$$sink63 = $14;
  14165. while(1) {
  14166. $15 = (_strtok($$sink63,5435)|0);
  14167. $16 = (($vararg_buffer7) + ($$062<<2)|0);
  14168. HEAP32[$16>>2] = $15;
  14169. $17 = ($15|0)==(0|0);
  14170. $18 = (($$062) + 1)|0;
  14171. if ($17) {
  14172. break;
  14173. } else {
  14174. $$062 = $18;$$sink63 = 0;
  14175. }
  14176. }
  14177. _free($14);
  14178. $19 = (($$062) + -1)|0;
  14179. HEAP32[$vararg_buffer10>>2] = $19;
  14180. _TraceLog(0,5437,$vararg_buffer10);
  14181. $20 = ($$062|0)>(1);
  14182. if ($20) {
  14183. $$06167 = 0;
  14184. while(1) {
  14185. $23 = (($vararg_buffer7) + ($$06167<<2)|0);
  14186. $24 = HEAP32[$23>>2]|0;
  14187. $25 = (_strcmp($24,5472)|0);
  14188. $26 = ($25|0)==(0);
  14189. if ($26) {
  14190. HEAP32[4524] = 1;
  14191. $27 = (_eglGetProcAddress((5499|0))|0);
  14192. HEAP32[4525] = $27;
  14193. $28 = (_eglGetProcAddress((5520|0))|0);
  14194. HEAP32[4526] = $28;
  14195. $29 = (_eglGetProcAddress((5541|0))|0);
  14196. HEAP32[4527] = $29;
  14197. }
  14198. $30 = (_strcmp($24,5565)|0);
  14199. $31 = ($30|0)==(0);
  14200. if ($31) {
  14201. HEAP32[4466] = 1;
  14202. }
  14203. $32 = (_strcmp($24,5585)|0);
  14204. $33 = ($32|0)==(0);
  14205. if ($33) {
  14206. label = 12;
  14207. } else {
  14208. $34 = HEAP32[$23>>2]|0;
  14209. $35 = (_strcmp($34,5617)|0);
  14210. $36 = ($35|0)==(0);
  14211. if ($36) {
  14212. label = 12;
  14213. } else {
  14214. $37 = (_strcmp($34,5650)|0);
  14215. $38 = ($37|0)==(0);
  14216. if ($38) {
  14217. label = 12;
  14218. }
  14219. }
  14220. }
  14221. if ((label|0) == 12) {
  14222. label = 0;
  14223. HEAP32[4461] = 1;
  14224. }
  14225. $39 = (_strcmp($24,5690)|0);
  14226. $40 = ($39|0)==(0);
  14227. if ($40) {
  14228. label = 15;
  14229. } else {
  14230. $41 = HEAP32[$23>>2]|0;
  14231. $42 = (_strcmp($41,5726)|0);
  14232. $43 = ($42|0)==(0);
  14233. if ($43) {
  14234. label = 15;
  14235. }
  14236. }
  14237. if ((label|0) == 15) {
  14238. label = 0;
  14239. HEAP32[4462] = 1;
  14240. }
  14241. $44 = HEAP32[$23>>2]|0;
  14242. $45 = (_strcmp($44,5759)|0);
  14243. $46 = ($45|0)==(0);
  14244. if ($46) {
  14245. HEAP32[4463] = 1;
  14246. }
  14247. $47 = (_strcmp($44,5784)|0);
  14248. $48 = ($47|0)==(0);
  14249. if ($48) {
  14250. HEAP32[4464] = 1;
  14251. }
  14252. $49 = (_strcmp($44,5817)|0);
  14253. $50 = ($49|0)==(0);
  14254. if ($50) {
  14255. HEAP32[4465] = 1;
  14256. }
  14257. $51 = (_strcmp($44,5853)|0);
  14258. $52 = ($51|0)==(0);
  14259. if ($52) {
  14260. HEAP32[4528] = 1;
  14261. _glGetFloatv(34047,(18116|0));
  14262. }
  14263. $53 = HEAP32[$23>>2]|0;
  14264. $54 = (_strcmp($53,5887)|0);
  14265. $55 = ($54|0)==(0);
  14266. if ($55) {
  14267. HEAP32[4530] = 1;
  14268. }
  14269. $56 = (($$06167) + 1)|0;
  14270. $exitcond70 = ($56|0)==($19|0);
  14271. if ($exitcond70) {
  14272. break;
  14273. } else {
  14274. $$06167 = $56;
  14275. }
  14276. }
  14277. }
  14278. $21 = HEAP32[4524]|0;
  14279. $22 = ($21|0)==(0);
  14280. if ($22) {
  14281. _TraceLog(2,5990,$vararg_buffer15);
  14282. } else {
  14283. _TraceLog(0,5915,$vararg_buffer13);
  14284. }
  14285. $57 = HEAP32[4466]|0;
  14286. $58 = ($57|0)==(0);
  14287. if ($58) {
  14288. _TraceLog(2,6126,$vararg_buffer19);
  14289. } else {
  14290. _TraceLog(0,6051,$vararg_buffer17);
  14291. }
  14292. $59 = HEAP32[4461]|0;
  14293. $60 = ($59|0)==(0);
  14294. if (!($60)) {
  14295. _TraceLog(0,6218,$vararg_buffer21);
  14296. }
  14297. $61 = HEAP32[4462]|0;
  14298. $62 = ($61|0)==(0);
  14299. if (!($62)) {
  14300. _TraceLog(0,6264,$vararg_buffer23);
  14301. }
  14302. $63 = HEAP32[4463]|0;
  14303. $64 = ($63|0)==(0);
  14304. if (!($64)) {
  14305. _TraceLog(0,6311,$vararg_buffer25);
  14306. }
  14307. $65 = HEAP32[4464]|0;
  14308. $66 = ($65|0)==(0);
  14309. if (!($66)) {
  14310. _TraceLog(0,6362,$vararg_buffer27);
  14311. }
  14312. $67 = HEAP32[4465]|0;
  14313. $68 = ($67|0)==(0);
  14314. if (!($68)) {
  14315. _TraceLog(0,6409,$vararg_buffer29);
  14316. }
  14317. $69 = HEAP32[4528]|0;
  14318. $70 = ($69|0)==(0);
  14319. if (!($70)) {
  14320. $71 = +HEAPF32[4529];
  14321. $72 = $71;
  14322. HEAPF64[$vararg_buffer31>>3] = $72;
  14323. _TraceLog(0,6456,$vararg_buffer31);
  14324. }
  14325. $73 = HEAP32[4530]|0;
  14326. $74 = ($73|0)==(0);
  14327. if (!($74)) {
  14328. _TraceLog(0,6522,$vararg_buffer34);
  14329. }
  14330. HEAP32[$vararg_buffer10>>2] = -1;
  14331. $75 = (_rlglLoadTexture($vararg_buffer10,1,1,7,1)|0);
  14332. HEAP32[4531] = $75;
  14333. $76 = ($75|0)==(0);
  14334. if ($76) {
  14335. _TraceLog(2,6626,$vararg_buffer39);
  14336. } else {
  14337. HEAP32[$vararg_buffer36>>2] = $75;
  14338. _TraceLog(0,6575,$vararg_buffer36);
  14339. }
  14340. _LoadDefaultShader($2);
  14341. dest=18128; 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));
  14342. dest=18184; 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));
  14343. _LoadDefaultBuffers();
  14344. $77 = (_malloc(49152)|0);
  14345. HEAP32[4560] = $77;
  14346. $$06066 = 0;
  14347. while(1) {
  14348. $79 = HEAP32[4560]|0;
  14349. $80 = (($79) + (($$06066*12)|0)|0);
  14350. _VectorZero($3);
  14351. ;HEAP32[$80>>2]=HEAP32[$3>>2]|0;HEAP32[$80+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[$80+8>>2]=HEAP32[$3+8>>2]|0;
  14352. $81 = (($$06066) + 1)|0;
  14353. $exitcond69 = ($81|0)==(4096);
  14354. if ($exitcond69) {
  14355. break;
  14356. } else {
  14357. $$06066 = $81;
  14358. }
  14359. }
  14360. $78 = (_malloc(36864)|0);
  14361. HEAP32[4561] = $78;
  14362. $$05965 = 0;
  14363. while(1) {
  14364. $82 = (((($78) + (($$05965*144)|0)|0)) + 8|0);
  14365. HEAP32[$82>>2] = 0;
  14366. $83 = (($78) + (($$05965*144)|0)|0);
  14367. HEAP32[$83>>2] = 0;
  14368. $84 = (($$05965) + 1)|0;
  14369. $exitcond = ($84|0)==(256);
  14370. if ($exitcond) {
  14371. break;
  14372. } else {
  14373. $$05965 = $84;
  14374. }
  14375. }
  14376. HEAP32[4562] = 1;
  14377. $85 = HEAP32[4531]|0;
  14378. $86 = ((($78)) + 8|0);
  14379. HEAP32[$86>>2] = $85;
  14380. HEAP32[4563] = 4;
  14381. _MatrixIdentity($4);
  14382. dest=18256; 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));
  14383. _MatrixIdentity($4);
  14384. dest=(18320); 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));
  14385. _MatrixIdentity($4);
  14386. dest=(18384); 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));
  14387. _MatrixIdentity($4);
  14388. dest=(18448); 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));
  14389. _MatrixIdentity($4);
  14390. dest=(18512); 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));
  14391. _MatrixIdentity($4);
  14392. dest=(18576); 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));
  14393. _MatrixIdentity($4);
  14394. dest=(18640); 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));
  14395. _MatrixIdentity($4);
  14396. dest=(18704); 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));
  14397. _MatrixIdentity($4);
  14398. dest=(18768); 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));
  14399. _MatrixIdentity($4);
  14400. dest=(18832); 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));
  14401. _MatrixIdentity($4);
  14402. dest=(18896); 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));
  14403. _MatrixIdentity($4);
  14404. dest=(18960); 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));
  14405. _MatrixIdentity($4);
  14406. dest=(19024); 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));
  14407. _MatrixIdentity($4);
  14408. dest=(19088); 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));
  14409. _MatrixIdentity($4);
  14410. dest=(19152); 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));
  14411. _MatrixIdentity($4);
  14412. dest=(19216); 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));
  14413. _MatrixIdentity($5);
  14414. dest=17964; 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));
  14415. _MatrixIdentity($6);
  14416. dest=18028; 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));
  14417. HEAP32[4490] = 18028;
  14418. _glDepthFunc(515);
  14419. _glDisable(2929);
  14420. _glBlendFunc(770,771);
  14421. _glEnable(3042);
  14422. _glCullFace(1029);
  14423. _glFrontFace(2305);
  14424. _glEnable(2884);
  14425. _glClearColor(0.0,0.0,0.0,1.0);
  14426. _glClearDepthf(1.0);
  14427. _glClear(16640);
  14428. HEAP32[4820] = $0;
  14429. HEAP32[4821] = $1;
  14430. _TraceLog(0,6665,$vararg_buffer41);
  14431. STACKTOP = sp;return;
  14432. }
  14433. function _SetupViewport() {
  14434. var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  14435. sp = STACKTOP;
  14436. $0 = HEAP32[4488]|0;
  14437. $1 = (($0|0) / 2)&-1;
  14438. $2 = HEAP32[4489]|0;
  14439. $3 = (($2|0) / 2)&-1;
  14440. $4 = HEAP32[4486]|0;
  14441. $5 = (($4) - ($0))|0;
  14442. $6 = HEAP32[4487]|0;
  14443. $7 = (($6) - ($2))|0;
  14444. _rlViewport($1,$3,$5,$7);
  14445. return;
  14446. }
  14447. function _rlMatrixMode($0) {
  14448. $0 = $0|0;
  14449. var $modelview$sink = 0, label = 0, sp = 0;
  14450. sp = STACKTOP;
  14451. switch ($0|0) {
  14452. case 5889: {
  14453. $modelview$sink = 17964;
  14454. label = 3;
  14455. break;
  14456. }
  14457. case 5888: {
  14458. $modelview$sink = 18028;
  14459. label = 3;
  14460. break;
  14461. }
  14462. default: {
  14463. }
  14464. }
  14465. if ((label|0) == 3) {
  14466. HEAP32[4490] = $modelview$sink;
  14467. }
  14468. HEAP32[4523] = $0;
  14469. return;
  14470. }
  14471. function _rlLoadIdentity() {
  14472. var $0 = 0, $1 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14473. sp = STACKTOP;
  14474. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  14475. $0 = sp;
  14476. $1 = HEAP32[4490]|0;
  14477. _MatrixIdentity($0);
  14478. 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));
  14479. STACKTOP = sp;return;
  14480. }
  14481. function _rlOrtho($0,$1,$2,$3,$4,$5) {
  14482. $0 = +$0;
  14483. $1 = +$1;
  14484. $2 = +$2;
  14485. $3 = +$3;
  14486. $4 = +$4;
  14487. $5 = +$5;
  14488. var $$byval_copy = 0, $$byval_copy1 = 0, $6 = 0, $7 = 0, $8 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14489. sp = STACKTOP;
  14490. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  14491. $$byval_copy1 = sp + 192|0;
  14492. $$byval_copy = sp + 128|0;
  14493. $6 = sp + 64|0;
  14494. $7 = sp;
  14495. _MatrixOrtho($6,$0,$1,$2,$3,$4,$5);
  14496. _MatrixTranspose($6);
  14497. $8 = HEAP32[4490]|0;
  14498. 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));
  14499. 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));
  14500. _MatrixMultiply($7,$$byval_copy,$$byval_copy1);
  14501. 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));
  14502. STACKTOP = sp;return;
  14503. }
  14504. function _ClearBackground($0) {
  14505. $0 = $0|0;
  14506. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  14507. sp = STACKTOP;
  14508. $1 = HEAP8[$0>>0]|0;
  14509. $2 = ((($0)) + 1|0);
  14510. $3 = HEAP8[$2>>0]|0;
  14511. $4 = ((($0)) + 2|0);
  14512. $5 = HEAP8[$4>>0]|0;
  14513. $6 = ((($0)) + 3|0);
  14514. $7 = HEAP8[$6>>0]|0;
  14515. _rlClearColor($1,$3,$5,$7);
  14516. return;
  14517. }
  14518. function _rlClearColor($0,$1,$2,$3) {
  14519. $0 = $0|0;
  14520. $1 = $1|0;
  14521. $2 = $2|0;
  14522. $3 = $3|0;
  14523. 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;
  14524. sp = STACKTOP;
  14525. $4 = (+($0&255));
  14526. $5 = $4 / 255.0;
  14527. $6 = (+($1&255));
  14528. $7 = $6 / 255.0;
  14529. $8 = (+($2&255));
  14530. $9 = $8 / 255.0;
  14531. $10 = (+($3&255));
  14532. $11 = $10 / 255.0;
  14533. _glClearColor((+$5),(+$7),(+$9),(+$11));
  14534. return;
  14535. }
  14536. function _rlViewport($0,$1,$2,$3) {
  14537. $0 = $0|0;
  14538. $1 = $1|0;
  14539. $2 = $2|0;
  14540. $3 = $3|0;
  14541. var label = 0, sp = 0;
  14542. sp = STACKTOP;
  14543. _glViewport(($0|0),($1|0),($2|0),($3|0));
  14544. return;
  14545. }
  14546. function _LoadDefaultShader($0) {
  14547. $0 = $0|0;
  14548. 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;
  14549. sp = STACKTOP;
  14550. STACKTOP = STACKTOP + 1008|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1008|0);
  14551. $vararg_buffer1 = sp + 8|0;
  14552. $vararg_buffer = sp;
  14553. $1 = sp + 16|0;
  14554. $2 = sp + 513|0;
  14555. $3 = sp + 72|0;
  14556. _memcpy(($2|0),(7241|0),489)|0;
  14557. _memcpy(($3|0),(7730|0),441)|0;
  14558. $4 = (_LoadShaderProgram($2,$3)|0);
  14559. HEAP32[$1>>2] = $4;
  14560. $5 = ($4|0)==(0);
  14561. if ($5) {
  14562. HEAP32[$vararg_buffer1>>2] = $4;
  14563. _TraceLog(2,8219,$vararg_buffer1);
  14564. } else {
  14565. HEAP32[$vararg_buffer>>2] = $4;
  14566. _TraceLog(0,8171,$vararg_buffer);
  14567. }
  14568. $6 = HEAP32[$1>>2]|0;
  14569. $7 = ($6|0)==(0);
  14570. if (!($7)) {
  14571. _LoadDefaultShaderLocations($1);
  14572. }
  14573. 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));
  14574. STACKTOP = sp;return;
  14575. }
  14576. function _LoadDefaultBuffers() {
  14577. 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;
  14578. 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;
  14579. 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;
  14580. 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;
  14581. 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;
  14582. 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;
  14583. 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;
  14584. sp = STACKTOP;
  14585. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  14586. $vararg_buffer17 = sp + 48|0;
  14587. $vararg_buffer14 = sp + 40|0;
  14588. $vararg_buffer10 = sp + 32|0;
  14589. $vararg_buffer7 = sp + 24|0;
  14590. $vararg_buffer3 = sp + 16|0;
  14591. $vararg_buffer1 = sp + 8|0;
  14592. $vararg_buffer = sp;
  14593. $0 = (_malloc(24576)|0);
  14594. HEAP32[(19300)>>2] = $0;
  14595. $1 = (_malloc(8192)|0);
  14596. HEAP32[(19308)>>2] = $1;
  14597. HEAP32[(19304)>>2] = 0;
  14598. HEAP32[(19312)>>2] = 0;
  14599. _memset(($0|0),0,24576)|0;
  14600. $$05972 = 0;
  14601. while(1) {
  14602. $2 = HEAP32[(19308)>>2]|0;
  14603. $3 = (($2) + ($$05972)|0);
  14604. HEAP8[$3>>0] = 0;
  14605. $4 = (($$05972) + 1)|0;
  14606. $exitcond80 = ($4|0)==(8192);
  14607. if ($exitcond80) {
  14608. break;
  14609. } else {
  14610. $$05972 = $4;
  14611. }
  14612. }
  14613. HEAP32[4822] = 0;
  14614. HEAP32[(19296)>>2] = 0;
  14615. HEAP32[(19292)>>2] = 0;
  14616. $5 = (_malloc(73728)|0);
  14617. HEAP32[(19348)>>2] = $5;
  14618. $6 = (_malloc(24576)|0);
  14619. HEAP32[(19356)>>2] = $6;
  14620. HEAP32[(19352)>>2] = 0;
  14621. HEAP32[(19360)>>2] = 0;
  14622. _memset(($5|0),0,73728)|0;
  14623. $$05770 = 0;
  14624. while(1) {
  14625. $7 = HEAP32[(19356)>>2]|0;
  14626. $8 = (($7) + ($$05770)|0);
  14627. HEAP8[$8>>0] = 0;
  14628. $9 = (($$05770) + 1)|0;
  14629. $exitcond78 = ($9|0)==(24576);
  14630. if ($exitcond78) {
  14631. break;
  14632. } else {
  14633. $$05770 = $9;
  14634. }
  14635. }
  14636. HEAP32[4834] = 0;
  14637. HEAP32[(19344)>>2] = 0;
  14638. HEAP32[(19340)>>2] = 0;
  14639. $10 = (_malloc(49152)|0);
  14640. HEAP32[(19396)>>2] = $10;
  14641. $11 = (_malloc(32768)|0);
  14642. HEAP32[(19400)>>2] = $11;
  14643. $12 = (_malloc(16384)|0);
  14644. HEAP32[(19404)>>2] = $12;
  14645. $13 = (_malloc(12288)|0);
  14646. HEAP32[(19408)>>2] = $13;
  14647. $14 = HEAP32[(19396)>>2]|0;
  14648. _memset(($14|0),0,49152)|0;
  14649. $15 = HEAP32[(19400)>>2]|0;
  14650. _memset(($15|0),0,32768)|0;
  14651. $$05467 = 0;
  14652. while(1) {
  14653. $17 = HEAP32[(19404)>>2]|0;
  14654. $18 = (($17) + ($$05467)|0);
  14655. HEAP8[$18>>0] = 0;
  14656. $19 = (($$05467) + 1)|0;
  14657. $exitcond75 = ($19|0)==(16384);
  14658. if ($exitcond75) {
  14659. break;
  14660. } else {
  14661. $$05467 = $19;
  14662. }
  14663. }
  14664. $16 = HEAP32[(19408)>>2]|0;
  14665. $$05365 = 0;$$066 = 0;
  14666. while(1) {
  14667. $22 = $$05365 << 2;
  14668. $23 = $22&65535;
  14669. $24 = (($16) + ($$066<<1)|0);
  14670. HEAP16[$24>>1] = $23;
  14671. $25 = $22 | 1;
  14672. $26 = $25&65535;
  14673. $27 = $$066 | 1;
  14674. $28 = (($16) + ($27<<1)|0);
  14675. HEAP16[$28>>1] = $26;
  14676. $29 = $22 | 2;
  14677. $30 = $29&65535;
  14678. $31 = (($$066) + 2)|0;
  14679. $32 = (($16) + ($31<<1)|0);
  14680. HEAP16[$32>>1] = $30;
  14681. $33 = (($$066) + 3)|0;
  14682. $34 = (($16) + ($33<<1)|0);
  14683. HEAP16[$34>>1] = $23;
  14684. $35 = (($$066) + 4)|0;
  14685. $36 = (($16) + ($35<<1)|0);
  14686. HEAP16[$36>>1] = $30;
  14687. $37 = $22 | 3;
  14688. $38 = $37&65535;
  14689. $39 = (($$066) + 5)|0;
  14690. $40 = (($16) + ($39<<1)|0);
  14691. HEAP16[$40>>1] = $38;
  14692. $41 = (($$05365) + 1)|0;
  14693. $42 = (($$066) + 6)|0;
  14694. $exitcond = ($41|0)==(1024);
  14695. if ($exitcond) {
  14696. break;
  14697. } else {
  14698. $$05365 = $41;$$066 = $42;
  14699. }
  14700. }
  14701. HEAP32[4846] = 0;
  14702. HEAP32[(19388)>>2] = 0;
  14703. HEAP32[(19392)>>2] = 0;
  14704. _TraceLog(0,6712,$vararg_buffer);
  14705. $20 = HEAP32[4524]|0;
  14706. $21 = ($20|0)==(0);
  14707. if (!($21)) {
  14708. $43 = HEAP32[4525]|0;
  14709. FUNCTION_TABLE_vii[$43 & 63](1,(19316));
  14710. $44 = HEAP32[4526]|0;
  14711. $45 = HEAP32[(19316)>>2]|0;
  14712. FUNCTION_TABLE_vi[$44 & 31]($45);
  14713. }
  14714. _glGenBuffers(2,((19320)|0));
  14715. $46 = HEAP32[(19320)>>2]|0;
  14716. _glBindBuffer(34962,($46|0));
  14717. $47 = HEAP32[(19300)>>2]|0;
  14718. _glBufferData(34962,24576,($47|0),35048);
  14719. $48 = HEAP32[(18188)>>2]|0;
  14720. _glEnableVertexAttribArray(($48|0));
  14721. $49 = HEAP32[(18188)>>2]|0;
  14722. _glVertexAttribPointer(($49|0),3,5126,0,0,(0|0));
  14723. _glGenBuffers(2,((19324)|0));
  14724. $50 = HEAP32[(19324)>>2]|0;
  14725. _glBindBuffer(34962,($50|0));
  14726. $51 = HEAP32[(19308)>>2]|0;
  14727. _glBufferData(34962,8192,($51|0),35048);
  14728. $52 = HEAP32[(18208)>>2]|0;
  14729. _glEnableVertexAttribArray(($52|0));
  14730. $53 = HEAP32[(18208)>>2]|0;
  14731. _glVertexAttribPointer(($53|0),4,5121,1,0,(0|0));
  14732. $54 = HEAP32[4524]|0;
  14733. $55 = ($54|0)==(0);
  14734. if ($55) {
  14735. $57 = HEAP32[(19320)>>2]|0;
  14736. $58 = HEAP32[(19324)>>2]|0;
  14737. HEAP32[$vararg_buffer3>>2] = $57;
  14738. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  14739. HEAP32[$vararg_ptr6>>2] = $58;
  14740. _TraceLog(0,6850,$vararg_buffer3);
  14741. } else {
  14742. $56 = HEAP32[(19316)>>2]|0;
  14743. HEAP32[$vararg_buffer1>>2] = $56;
  14744. _TraceLog(0,6785,$vararg_buffer1);
  14745. }
  14746. $59 = HEAP32[4524]|0;
  14747. $60 = ($59|0)==(0);
  14748. if (!($60)) {
  14749. $61 = HEAP32[4525]|0;
  14750. FUNCTION_TABLE_vii[$61 & 63](1,(19364));
  14751. $62 = HEAP32[4526]|0;
  14752. $63 = HEAP32[(19364)>>2]|0;
  14753. FUNCTION_TABLE_vi[$62 & 31]($63);
  14754. }
  14755. _glGenBuffers(1,((19368)|0));
  14756. $64 = HEAP32[(19368)>>2]|0;
  14757. _glBindBuffer(34962,($64|0));
  14758. $65 = HEAP32[(19348)>>2]|0;
  14759. _glBufferData(34962,73728,($65|0),35048);
  14760. $66 = HEAP32[(18188)>>2]|0;
  14761. _glEnableVertexAttribArray(($66|0));
  14762. $67 = HEAP32[(18188)>>2]|0;
  14763. _glVertexAttribPointer(($67|0),3,5126,0,0,(0|0));
  14764. _glGenBuffers(1,((19372)|0));
  14765. $68 = HEAP32[(19372)>>2]|0;
  14766. _glBindBuffer(34962,($68|0));
  14767. $69 = HEAP32[(19356)>>2]|0;
  14768. _glBufferData(34962,24576,($69|0),35048);
  14769. $70 = HEAP32[(18208)>>2]|0;
  14770. _glEnableVertexAttribArray(($70|0));
  14771. $71 = HEAP32[(18208)>>2]|0;
  14772. _glVertexAttribPointer(($71|0),4,5121,1,0,(0|0));
  14773. $72 = HEAP32[4524]|0;
  14774. $73 = ($72|0)==(0);
  14775. if ($73) {
  14776. $75 = HEAP32[(19368)>>2]|0;
  14777. $76 = HEAP32[(19372)>>2]|0;
  14778. HEAP32[$vararg_buffer10>>2] = $75;
  14779. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  14780. HEAP32[$vararg_ptr13>>2] = $76;
  14781. _TraceLog(0,6996,$vararg_buffer10);
  14782. } else {
  14783. $74 = HEAP32[(19364)>>2]|0;
  14784. HEAP32[$vararg_buffer7>>2] = $74;
  14785. _TraceLog(0,6927,$vararg_buffer7);
  14786. }
  14787. $77 = HEAP32[4524]|0;
  14788. $78 = ($77|0)==(0);
  14789. if (!($78)) {
  14790. $79 = HEAP32[4525]|0;
  14791. FUNCTION_TABLE_vii[$79 & 63](1,(19412));
  14792. $80 = HEAP32[4526]|0;
  14793. $81 = HEAP32[(19412)>>2]|0;
  14794. FUNCTION_TABLE_vi[$80 & 31]($81);
  14795. }
  14796. _glGenBuffers(1,((19416)|0));
  14797. $82 = HEAP32[(19416)>>2]|0;
  14798. _glBindBuffer(34962,($82|0));
  14799. $83 = HEAP32[(19396)>>2]|0;
  14800. _glBufferData(34962,49152,($83|0),35048);
  14801. $84 = HEAP32[(18188)>>2]|0;
  14802. _glEnableVertexAttribArray(($84|0));
  14803. $85 = HEAP32[(18188)>>2]|0;
  14804. _glVertexAttribPointer(($85|0),3,5126,0,0,(0|0));
  14805. _glGenBuffers(1,((19420)|0));
  14806. $86 = HEAP32[(19420)>>2]|0;
  14807. _glBindBuffer(34962,($86|0));
  14808. $87 = HEAP32[(19400)>>2]|0;
  14809. _glBufferData(34962,32768,($87|0),35048);
  14810. $88 = HEAP32[(18192)>>2]|0;
  14811. _glEnableVertexAttribArray(($88|0));
  14812. $89 = HEAP32[(18192)>>2]|0;
  14813. _glVertexAttribPointer(($89|0),2,5126,0,0,(0|0));
  14814. _glGenBuffers(1,((19424)|0));
  14815. $90 = HEAP32[(19424)>>2]|0;
  14816. _glBindBuffer(34962,($90|0));
  14817. $91 = HEAP32[(19404)>>2]|0;
  14818. _glBufferData(34962,16384,($91|0),35048);
  14819. $92 = HEAP32[(18208)>>2]|0;
  14820. _glEnableVertexAttribArray(($92|0));
  14821. $93 = HEAP32[(18208)>>2]|0;
  14822. _glVertexAttribPointer(($93|0),4,5121,1,0,(0|0));
  14823. _glGenBuffers(1,((19428)|0));
  14824. $94 = HEAP32[(19428)>>2]|0;
  14825. _glBindBuffer(34963,($94|0));
  14826. $95 = HEAP32[(19408)>>2]|0;
  14827. _glBufferData(34963,12288,($95|0),35044);
  14828. $96 = HEAP32[4524]|0;
  14829. $97 = ($96|0)==(0);
  14830. if ($97) {
  14831. $99 = HEAP32[(19416)>>2]|0;
  14832. $100 = HEAP32[(19420)>>2]|0;
  14833. $101 = HEAP32[(19424)>>2]|0;
  14834. $102 = HEAP32[(19428)>>2]|0;
  14835. HEAP32[$vararg_buffer17>>2] = $99;
  14836. $vararg_ptr20 = ((($vararg_buffer17)) + 4|0);
  14837. HEAP32[$vararg_ptr20>>2] = $100;
  14838. $vararg_ptr21 = ((($vararg_buffer17)) + 8|0);
  14839. HEAP32[$vararg_ptr21>>2] = $101;
  14840. $vararg_ptr22 = ((($vararg_buffer17)) + 12|0);
  14841. HEAP32[$vararg_ptr22>>2] = $102;
  14842. _TraceLog(0,7142,$vararg_buffer17);
  14843. } else {
  14844. $98 = HEAP32[(19412)>>2]|0;
  14845. HEAP32[$vararg_buffer14>>2] = $98;
  14846. _TraceLog(0,7077,$vararg_buffer14);
  14847. }
  14848. $103 = HEAP32[4524]|0;
  14849. $104 = ($103|0)==(0);
  14850. if ($104) {
  14851. STACKTOP = sp;return;
  14852. }
  14853. $105 = HEAP32[4526]|0;
  14854. FUNCTION_TABLE_vi[$105 & 31](0);
  14855. STACKTOP = sp;return;
  14856. }
  14857. function _LoadShaderProgram($0,$1) {
  14858. $0 = $0|0;
  14859. $1 = $1|0;
  14860. 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;
  14861. 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;
  14862. sp = STACKTOP;
  14863. STACKTOP = STACKTOP + 96|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(96|0);
  14864. $vararg_buffer22 = sp + 64|0;
  14865. $vararg_buffer19 = sp + 56|0;
  14866. $vararg_buffer16 = sp + 48|0;
  14867. $vararg_buffer13 = sp + 40|0;
  14868. $vararg_buffer10 = sp + 32|0;
  14869. $vararg_buffer7 = sp + 24|0;
  14870. $vararg_buffer4 = sp + 16|0;
  14871. $vararg_buffer1 = sp + 8|0;
  14872. $vararg_buffer = sp;
  14873. $2 = sp + 80|0;
  14874. $3 = sp + 76|0;
  14875. $4 = sp + 72|0;
  14876. $5 = sp + 68|0;
  14877. $6 = (_glCreateShader(35633)|0);
  14878. $7 = (_glCreateShader(35632)|0);
  14879. HEAP32[$2>>2] = $0;
  14880. HEAP32[$3>>2] = $1;
  14881. _glShaderSource(($6|0),1,($2|0),(0|0));
  14882. _glShaderSource(($7|0),1,($3|0),(0|0));
  14883. HEAP32[$4>>2] = 0;
  14884. _glCompileShader(($6|0));
  14885. _glGetShaderiv(($6|0),35713,($4|0));
  14886. $8 = HEAP32[$4>>2]|0;
  14887. $9 = ($8|0)==(1);
  14888. if ($9) {
  14889. HEAP32[$vararg_buffer4>>2] = $6;
  14890. _TraceLog(0,8475,$vararg_buffer4);
  14891. } else {
  14892. HEAP32[$vararg_buffer>>2] = $6;
  14893. _TraceLog(2,8423,$vararg_buffer);
  14894. HEAP32[$vararg_buffer>>2] = 0;
  14895. _glGetShaderiv(($6|0),35716,($vararg_buffer|0));
  14896. $10 = HEAP32[$vararg_buffer>>2]|0;
  14897. $11 = (_llvm_stacksave()|0);
  14898. $$alloca_mul = $10;
  14899. $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);;
  14900. $13 = HEAP32[$vararg_buffer>>2]|0;
  14901. _glGetShaderInfoLog(($6|0),($13|0),($5|0),($12|0));
  14902. HEAP32[$vararg_buffer1>>2] = $12;
  14903. _TraceLog(0,8472,$vararg_buffer1);
  14904. _llvm_stackrestore(($11|0));
  14905. }
  14906. _glCompileShader(($7|0));
  14907. _glGetShaderiv(($7|0),35713,($4|0));
  14908. $14 = HEAP32[$4>>2]|0;
  14909. $15 = ($14|0)==(1);
  14910. if ($15) {
  14911. HEAP32[$vararg_buffer13>>2] = $7;
  14912. _TraceLog(0,8576,$vararg_buffer13);
  14913. } else {
  14914. HEAP32[$vararg_buffer7>>2] = $7;
  14915. _TraceLog(2,8525,$vararg_buffer7);
  14916. HEAP32[$vararg_buffer7>>2] = 0;
  14917. _glGetShaderiv(($7|0),35716,($vararg_buffer7|0));
  14918. $16 = HEAP32[$vararg_buffer7>>2]|0;
  14919. $17 = (_llvm_stacksave()|0);
  14920. $$alloca_mul34 = $16;
  14921. $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);;
  14922. $19 = HEAP32[$vararg_buffer7>>2]|0;
  14923. _glGetShaderInfoLog(($7|0),($19|0),($5|0),($18|0));
  14924. HEAP32[$vararg_buffer10>>2] = $18;
  14925. _TraceLog(0,8472,$vararg_buffer10);
  14926. _llvm_stackrestore(($17|0));
  14927. }
  14928. $20 = (_glCreateProgram()|0);
  14929. _glAttachShader(($20|0),($6|0));
  14930. _glAttachShader(($20|0),($7|0));
  14931. _glBindAttribLocation(($20|0),0,(8267|0));
  14932. _glBindAttribLocation(($20|0),1,(8282|0));
  14933. _glBindAttribLocation(($20|0),2,(8313|0));
  14934. _glBindAttribLocation(($20|0),3,(8340|0));
  14935. _glBindAttribLocation(($20|0),4,(8326|0));
  14936. _glBindAttribLocation(($20|0),5,(8297|0));
  14937. _glLinkProgram(($20|0));
  14938. _glGetProgramiv(($20|0),35714,($4|0));
  14939. $21 = HEAP32[$4>>2]|0;
  14940. $22 = ($21|0)==(0);
  14941. if ($22) {
  14942. HEAP32[$vararg_buffer16>>2] = $20;
  14943. _TraceLog(2,8628,$vararg_buffer16);
  14944. HEAP32[$vararg_buffer16>>2] = 0;
  14945. _glGetProgramiv(($20|0),35716,($vararg_buffer16|0));
  14946. $23 = HEAP32[$vararg_buffer16>>2]|0;
  14947. $24 = (_llvm_stacksave()|0);
  14948. $$alloca_mul36 = $23;
  14949. $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);;
  14950. $26 = HEAP32[$vararg_buffer16>>2]|0;
  14951. _glGetProgramInfoLog(($20|0),($26|0),($5|0),($25|0));
  14952. HEAP32[$vararg_buffer19>>2] = $25;
  14953. _TraceLog(0,8472,$vararg_buffer19);
  14954. _glDeleteProgram(($20|0));
  14955. _llvm_stackrestore(($24|0));
  14956. $$0 = 0;
  14957. _glDeleteShader(($6|0));
  14958. _glDeleteShader(($7|0));
  14959. STACKTOP = sp;return ($$0|0);
  14960. } else {
  14961. HEAP32[$vararg_buffer22>>2] = $20;
  14962. _TraceLog(0,8674,$vararg_buffer22);
  14963. $$0 = $20;
  14964. _glDeleteShader(($6|0));
  14965. _glDeleteShader(($7|0));
  14966. STACKTOP = sp;return ($$0|0);
  14967. }
  14968. return (0)|0;
  14969. }
  14970. function _LoadDefaultShaderLocations($0) {
  14971. $0 = $0|0;
  14972. 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;
  14973. 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;
  14974. var sp = 0;
  14975. sp = STACKTOP;
  14976. $1 = HEAP32[$0>>2]|0;
  14977. $2 = (_glGetAttribLocation(($1|0),(8267|0))|0);
  14978. $3 = ((($0)) + 4|0);
  14979. HEAP32[$3>>2] = $2;
  14980. $4 = HEAP32[$0>>2]|0;
  14981. $5 = (_glGetAttribLocation(($4|0),(8282|0))|0);
  14982. $6 = ((($0)) + 8|0);
  14983. HEAP32[$6>>2] = $5;
  14984. $7 = HEAP32[$0>>2]|0;
  14985. $8 = (_glGetAttribLocation(($7|0),(8297|0))|0);
  14986. $9 = ((($0)) + 12|0);
  14987. HEAP32[$9>>2] = $8;
  14988. $10 = HEAP32[$0>>2]|0;
  14989. $11 = (_glGetAttribLocation(($10|0),(8313|0))|0);
  14990. $12 = ((($0)) + 16|0);
  14991. HEAP32[$12>>2] = $11;
  14992. $13 = HEAP32[$0>>2]|0;
  14993. $14 = (_glGetAttribLocation(($13|0),(8326|0))|0);
  14994. $15 = ((($0)) + 20|0);
  14995. HEAP32[$15>>2] = $14;
  14996. $16 = HEAP32[$0>>2]|0;
  14997. $17 = (_glGetAttribLocation(($16|0),(8340|0))|0);
  14998. $18 = ((($0)) + 24|0);
  14999. HEAP32[$18>>2] = $17;
  15000. $19 = HEAP32[$0>>2]|0;
  15001. $20 = (_glGetUniformLocation(($19|0),(8352|0))|0);
  15002. $21 = ((($0)) + 28|0);
  15003. HEAP32[$21>>2] = $20;
  15004. $22 = HEAP32[$0>>2]|0;
  15005. $23 = (_glGetUniformLocation(($22|0),(8362|0))|0);
  15006. $24 = ((($0)) + 32|0);
  15007. HEAP32[$24>>2] = $23;
  15008. $25 = HEAP32[$0>>2]|0;
  15009. $26 = (_glGetUniformLocation(($25|0),(8373|0))|0);
  15010. $27 = ((($0)) + 36|0);
  15011. HEAP32[$27>>2] = $26;
  15012. $28 = HEAP32[$0>>2]|0;
  15013. $29 = (_glGetUniformLocation(($28|0),(8384|0))|0);
  15014. $30 = ((($0)) + 40|0);
  15015. HEAP32[$30>>2] = $29;
  15016. $31 = HEAP32[$0>>2]|0;
  15017. $32 = (_glGetUniformLocation(($31|0),(8396|0))|0);
  15018. $33 = ((($0)) + 44|0);
  15019. HEAP32[$33>>2] = $32;
  15020. $34 = HEAP32[$0>>2]|0;
  15021. $35 = (_glGetUniformLocation(($34|0),(8405|0))|0);
  15022. $36 = ((($0)) + 48|0);
  15023. HEAP32[$36>>2] = $35;
  15024. $37 = HEAP32[$0>>2]|0;
  15025. $38 = (_glGetUniformLocation(($37|0),(8414|0))|0);
  15026. $39 = ((($0)) + 52|0);
  15027. HEAP32[$39>>2] = $38;
  15028. return;
  15029. }
  15030. function _IsMouseButtonPressed($0) {
  15031. $0 = $0|0;
  15032. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $or$cond = 0, label = 0, sp = 0;
  15033. sp = STACKTOP;
  15034. $1 = (20609 + ($0)|0);
  15035. $2 = HEAP8[$1>>0]|0;
  15036. $3 = (20612 + ($0)|0);
  15037. $4 = HEAP8[$3>>0]|0;
  15038. $5 = ($2<<24>>24)!=($4<<24>>24);
  15039. $6 = ($2<<24>>24)==(1);
  15040. $or$cond = $6 & $5;
  15041. $$0 = $or$cond&1;
  15042. return ($$0|0);
  15043. }
  15044. function _IsMouseButtonReleased($0) {
  15045. $0 = $0|0;
  15046. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $or$cond = 0, label = 0, sp = 0;
  15047. sp = STACKTOP;
  15048. $1 = (20609 + ($0)|0);
  15049. $2 = HEAP8[$1>>0]|0;
  15050. $3 = (20612 + ($0)|0);
  15051. $4 = HEAP8[$3>>0]|0;
  15052. $5 = ($2<<24>>24)!=($4<<24>>24);
  15053. $6 = ($2<<24>>24)==(0);
  15054. $or$cond = $6 & $5;
  15055. $$0 = $or$cond&1;
  15056. return ($$0|0);
  15057. }
  15058. function _rlClearScreenBuffers() {
  15059. var label = 0, sp = 0;
  15060. sp = STACKTOP;
  15061. _glClear(16640);
  15062. return;
  15063. }
  15064. function _CloseWindow() {
  15065. var $0 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  15066. sp = STACKTOP;
  15067. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15068. $vararg_buffer = sp;
  15069. _UnloadDefaultFont();
  15070. _rlglClose();
  15071. $0 = HEAP32[4443]|0;
  15072. _glfwDestroyWindow(($0|0));
  15073. _glfwTerminate();
  15074. _TraceLog(0,8986,$vararg_buffer);
  15075. STACKTOP = sp;return;
  15076. }
  15077. function _UnloadDefaultFont() {
  15078. var $$byval_copy = 0, $0 = 0, label = 0, sp = 0;
  15079. sp = STACKTOP;
  15080. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  15081. $$byval_copy = sp;
  15082. ;HEAP32[$$byval_copy>>2]=HEAP32[17812>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[17812+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[17812+8>>2]|0;HEAP32[$$byval_copy+12>>2]=HEAP32[17812+12>>2]|0;HEAP32[$$byval_copy+16>>2]=HEAP32[17812+16>>2]|0;
  15083. _UnloadTexture($$byval_copy);
  15084. $0 = HEAP32[(17840)>>2]|0;
  15085. _free($0);
  15086. STACKTOP = sp;return;
  15087. }
  15088. function _rlglClose() {
  15089. var $0 = 0, $1 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  15090. sp = STACKTOP;
  15091. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15092. $vararg_buffer = sp;
  15093. _UnloadDefaultShader();
  15094. _UnloadDefaultBuffers();
  15095. _glDeleteTextures(1,(18124|0));
  15096. $0 = HEAP32[4531]|0;
  15097. HEAP32[$vararg_buffer>>2] = $0;
  15098. _TraceLog(0,9013,$vararg_buffer);
  15099. $1 = HEAP32[4561]|0;
  15100. _free($1);
  15101. STACKTOP = sp;return;
  15102. }
  15103. function _UnloadDefaultShader() {
  15104. var $0 = 0, label = 0, sp = 0;
  15105. sp = STACKTOP;
  15106. _glUseProgram(0);
  15107. $0 = HEAP32[4532]|0;
  15108. _glDeleteProgram(($0|0));
  15109. return;
  15110. }
  15111. function _UnloadDefaultBuffers() {
  15112. 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;
  15113. sp = STACKTOP;
  15114. $0 = HEAP32[4524]|0;
  15115. $1 = ($0|0)==(0);
  15116. if (!($1)) {
  15117. $2 = HEAP32[4526]|0;
  15118. FUNCTION_TABLE_vi[$2 & 31](0);
  15119. }
  15120. _glDisableVertexAttribArray(0);
  15121. _glDisableVertexAttribArray(1);
  15122. _glDisableVertexAttribArray(2);
  15123. _glDisableVertexAttribArray(3);
  15124. _glBindBuffer(34962,0);
  15125. _glBindBuffer(34963,0);
  15126. _glDeleteBuffers(1,((19320)|0));
  15127. _glDeleteBuffers(1,((19324)|0));
  15128. _glDeleteBuffers(1,((19368)|0));
  15129. _glDeleteBuffers(1,((19372)|0));
  15130. _glDeleteBuffers(1,((19416)|0));
  15131. _glDeleteBuffers(1,((19420)|0));
  15132. _glDeleteBuffers(1,((19424)|0));
  15133. _glDeleteBuffers(1,((19428)|0));
  15134. $3 = HEAP32[4524]|0;
  15135. $4 = ($3|0)==(0);
  15136. if (!($4)) {
  15137. $5 = HEAP32[4527]|0;
  15138. FUNCTION_TABLE_vii[$5 & 63](1,(19316));
  15139. $6 = HEAP32[4527]|0;
  15140. FUNCTION_TABLE_vii[$6 & 63](1,(19364));
  15141. $7 = HEAP32[4527]|0;
  15142. FUNCTION_TABLE_vii[$7 & 63](1,(19412));
  15143. }
  15144. $8 = HEAP32[(19300)>>2]|0;
  15145. _free($8);
  15146. $9 = HEAP32[(19308)>>2]|0;
  15147. _free($9);
  15148. $10 = HEAP32[(19348)>>2]|0;
  15149. _free($10);
  15150. $11 = HEAP32[(19356)>>2]|0;
  15151. _free($11);
  15152. $12 = HEAP32[(19396)>>2]|0;
  15153. _free($12);
  15154. $13 = HEAP32[(19400)>>2]|0;
  15155. _free($13);
  15156. $14 = HEAP32[(19404)>>2]|0;
  15157. _free($14);
  15158. $15 = HEAP32[(19408)>>2]|0;
  15159. _free($15);
  15160. return;
  15161. }
  15162. function _UnloadTexture($0) {
  15163. $0 = $0|0;
  15164. var $1 = 0, $2 = 0, $3 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  15165. sp = STACKTOP;
  15166. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15167. $vararg_buffer = sp;
  15168. $1 = HEAP32[$0>>2]|0;
  15169. $2 = ($1|0)==(0);
  15170. if ($2) {
  15171. STACKTOP = sp;return;
  15172. }
  15173. _rlDeleteTextures($1);
  15174. $3 = HEAP32[$0>>2]|0;
  15175. HEAP32[$vararg_buffer>>2] = $3;
  15176. _TraceLog(0,9078,$vararg_buffer);
  15177. STACKTOP = sp;return;
  15178. }
  15179. function _rlDeleteTextures($0) {
  15180. $0 = $0|0;
  15181. var $1 = 0, $2 = 0, label = 0, sp = 0;
  15182. sp = STACKTOP;
  15183. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15184. $1 = sp;
  15185. HEAP32[$1>>2] = $0;
  15186. $2 = ($0|0)==(0);
  15187. if (!($2)) {
  15188. _glDeleteTextures(1,($1|0));
  15189. }
  15190. STACKTOP = sp;return;
  15191. }
  15192. function _BeginDrawing() {
  15193. var $0 = 0.0, $1 = 0.0, $2 = 0.0, $downscaleView$byval_copy = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  15194. sp = STACKTOP;
  15195. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  15196. $downscaleView$byval_copy = sp;
  15197. $0 = (+_GetTime());
  15198. HEAPF64[2174] = $0;
  15199. $1 = +HEAPF64[2157];
  15200. $2 = $0 - $1;
  15201. HEAPF64[2175] = $2;
  15202. HEAPF64[2157] = $0;
  15203. _rlClearScreenBuffers();
  15204. _rlLoadIdentity();
  15205. dest=$downscaleView$byval_copy; src=17868; 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));
  15206. (_MatrixToFloat($downscaleView$byval_copy)|0);
  15207. _rlMultMatrixf(19440);
  15208. STACKTOP = sp;return;
  15209. }
  15210. function _MatrixToFloat($0) {
  15211. $0 = $0|0;
  15212. 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;
  15213. 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;
  15214. sp = STACKTOP;
  15215. $1 = HEAP32[$0>>2]|0;
  15216. HEAP32[4860] = $1;
  15217. $2 = ((($0)) + 4|0);
  15218. $3 = HEAP32[$2>>2]|0;
  15219. HEAP32[(19444)>>2] = $3;
  15220. $4 = ((($0)) + 8|0);
  15221. $5 = HEAP32[$4>>2]|0;
  15222. HEAP32[(19448)>>2] = $5;
  15223. $6 = ((($0)) + 12|0);
  15224. $7 = HEAP32[$6>>2]|0;
  15225. HEAP32[(19452)>>2] = $7;
  15226. $8 = ((($0)) + 16|0);
  15227. $9 = HEAP32[$8>>2]|0;
  15228. HEAP32[(19456)>>2] = $9;
  15229. $10 = ((($0)) + 20|0);
  15230. $11 = HEAP32[$10>>2]|0;
  15231. HEAP32[(19460)>>2] = $11;
  15232. $12 = ((($0)) + 24|0);
  15233. $13 = HEAP32[$12>>2]|0;
  15234. HEAP32[(19464)>>2] = $13;
  15235. $14 = ((($0)) + 28|0);
  15236. $15 = HEAP32[$14>>2]|0;
  15237. HEAP32[(19468)>>2] = $15;
  15238. $16 = ((($0)) + 32|0);
  15239. $17 = HEAP32[$16>>2]|0;
  15240. HEAP32[(19472)>>2] = $17;
  15241. $18 = ((($0)) + 36|0);
  15242. $19 = HEAP32[$18>>2]|0;
  15243. HEAP32[(19476)>>2] = $19;
  15244. $20 = ((($0)) + 40|0);
  15245. $21 = HEAP32[$20>>2]|0;
  15246. HEAP32[(19480)>>2] = $21;
  15247. $22 = ((($0)) + 44|0);
  15248. $23 = HEAP32[$22>>2]|0;
  15249. HEAP32[(19484)>>2] = $23;
  15250. $24 = ((($0)) + 48|0);
  15251. $25 = HEAP32[$24>>2]|0;
  15252. HEAP32[(19488)>>2] = $25;
  15253. $26 = ((($0)) + 52|0);
  15254. $27 = HEAP32[$26>>2]|0;
  15255. HEAP32[(19492)>>2] = $27;
  15256. $28 = ((($0)) + 56|0);
  15257. $29 = HEAP32[$28>>2]|0;
  15258. HEAP32[(19496)>>2] = $29;
  15259. $30 = ((($0)) + 60|0);
  15260. $31 = HEAP32[$30>>2]|0;
  15261. HEAP32[(19500)>>2] = $31;
  15262. return (19440|0);
  15263. }
  15264. function _rlMultMatrixf($0) {
  15265. $0 = $0|0;
  15266. 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;
  15267. 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;
  15268. 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;
  15269. sp = STACKTOP;
  15270. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  15271. $$byval_copy1 = sp + 192|0;
  15272. $$byval_copy = sp + 128|0;
  15273. $1 = sp + 64|0;
  15274. $2 = sp;
  15275. $3 = HEAP32[$0>>2]|0;
  15276. HEAP32[$1>>2] = $3;
  15277. $4 = ((($1)) + 4|0);
  15278. $5 = ((($0)) + 4|0);
  15279. $6 = HEAP32[$5>>2]|0;
  15280. HEAP32[$4>>2] = $6;
  15281. $7 = ((($1)) + 8|0);
  15282. $8 = ((($0)) + 8|0);
  15283. $9 = HEAP32[$8>>2]|0;
  15284. HEAP32[$7>>2] = $9;
  15285. $10 = ((($1)) + 12|0);
  15286. $11 = ((($0)) + 12|0);
  15287. $12 = HEAP32[$11>>2]|0;
  15288. HEAP32[$10>>2] = $12;
  15289. $13 = ((($1)) + 16|0);
  15290. $14 = ((($0)) + 16|0);
  15291. $15 = HEAP32[$14>>2]|0;
  15292. HEAP32[$13>>2] = $15;
  15293. $16 = ((($1)) + 20|0);
  15294. $17 = ((($0)) + 20|0);
  15295. $18 = HEAP32[$17>>2]|0;
  15296. HEAP32[$16>>2] = $18;
  15297. $19 = ((($1)) + 24|0);
  15298. $20 = ((($0)) + 24|0);
  15299. $21 = HEAP32[$20>>2]|0;
  15300. HEAP32[$19>>2] = $21;
  15301. $22 = ((($1)) + 28|0);
  15302. $23 = ((($0)) + 28|0);
  15303. $24 = HEAP32[$23>>2]|0;
  15304. HEAP32[$22>>2] = $24;
  15305. $25 = ((($1)) + 32|0);
  15306. $26 = ((($0)) + 32|0);
  15307. $27 = HEAP32[$26>>2]|0;
  15308. HEAP32[$25>>2] = $27;
  15309. $28 = ((($1)) + 36|0);
  15310. $29 = ((($0)) + 36|0);
  15311. $30 = HEAP32[$29>>2]|0;
  15312. HEAP32[$28>>2] = $30;
  15313. $31 = ((($1)) + 40|0);
  15314. $32 = ((($0)) + 40|0);
  15315. $33 = HEAP32[$32>>2]|0;
  15316. HEAP32[$31>>2] = $33;
  15317. $34 = ((($1)) + 44|0);
  15318. $35 = ((($0)) + 44|0);
  15319. $36 = HEAP32[$35>>2]|0;
  15320. HEAP32[$34>>2] = $36;
  15321. $37 = ((($1)) + 48|0);
  15322. $38 = ((($0)) + 48|0);
  15323. $39 = HEAP32[$38>>2]|0;
  15324. HEAP32[$37>>2] = $39;
  15325. $40 = ((($1)) + 52|0);
  15326. $41 = ((($0)) + 52|0);
  15327. $42 = HEAP32[$41>>2]|0;
  15328. HEAP32[$40>>2] = $42;
  15329. $43 = ((($1)) + 56|0);
  15330. $44 = ((($0)) + 56|0);
  15331. $45 = HEAP32[$44>>2]|0;
  15332. HEAP32[$43>>2] = $45;
  15333. $46 = ((($1)) + 60|0);
  15334. $47 = ((($0)) + 60|0);
  15335. $48 = HEAP32[$47>>2]|0;
  15336. HEAP32[$46>>2] = $48;
  15337. $49 = HEAP32[4490]|0;
  15338. 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));
  15339. 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));
  15340. _MatrixMultiply($2,$$byval_copy,$$byval_copy1);
  15341. 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));
  15342. STACKTOP = sp;return;
  15343. }
  15344. function _EndDrawing() {
  15345. 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;
  15346. sp = STACKTOP;
  15347. _rlglDraw();
  15348. _SwapBuffers();
  15349. _PollInputEvents();
  15350. $0 = (+_GetTime());
  15351. HEAPF64[2174] = $0;
  15352. $1 = +HEAPF64[2157];
  15353. $2 = $0 - $1;
  15354. HEAPF64[2176] = $2;
  15355. HEAPF64[2157] = $0;
  15356. $3 = +HEAPF64[2175];
  15357. $4 = $2 + $3;
  15358. HEAPF64[2177] = $4;
  15359. $5 = +HEAPF64[2154];
  15360. $6 = $4 < $5;
  15361. if (!($6)) {
  15362. return;
  15363. }
  15364. $7 = $5 - $4;
  15365. $8 = $7 * 1000.0;
  15366. $9 = $8;
  15367. _Wait($9);
  15368. $10 = (+_GetTime());
  15369. HEAPF64[2174] = $10;
  15370. $11 = +HEAPF64[2157];
  15371. $12 = $10 - $11;
  15372. HEAPF64[2157] = $10;
  15373. $13 = +HEAPF64[2177];
  15374. $14 = $12 + $13;
  15375. HEAPF64[2177] = $14;
  15376. return;
  15377. }
  15378. function _rlglDraw() {
  15379. var label = 0, sp = 0;
  15380. sp = STACKTOP;
  15381. _UpdateDefaultBuffers();
  15382. _DrawDefaultBuffers();
  15383. return;
  15384. }
  15385. function _SwapBuffers() {
  15386. var $0 = 0, label = 0, sp = 0;
  15387. sp = STACKTOP;
  15388. $0 = HEAP32[4443]|0;
  15389. _glfwSwapBuffers(($0|0));
  15390. return;
  15391. }
  15392. function _PollInputEvents() {
  15393. 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;
  15394. 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;
  15395. 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;
  15396. sp = STACKTOP;
  15397. STACKTOP = STACKTOP + 1456|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1456|0);
  15398. $0 = sp + 1440|0;
  15399. $1 = sp + 1432|0;
  15400. $2 = sp;
  15401. _UpdateGestures();
  15402. HEAP32[764] = -1;
  15403. HEAP32[766] = -1;
  15404. HEAP32[4876] = 0;
  15405. $3 = HEAP32[4443]|0;
  15406. _glfwGetCursorPos(($3|0),($0|0),($1|0));
  15407. $4 = +HEAPF64[$0>>3];
  15408. $5 = $4;
  15409. HEAPF32[4306] = $5;
  15410. $6 = +HEAPF64[$1>>3];
  15411. $7 = $6;
  15412. HEAPF32[(17228)>>2] = $7;
  15413. _memcpy((21127|0),(20615|0),512)|0;
  15414. ;HEAP8[20612>>0]=HEAP8[20609>>0]|0;HEAP8[20612+1>>0]=HEAP8[20609+1>>0]|0;HEAP8[20612+2>>0]=HEAP8[20609+2>>0]|0;
  15415. $8 = HEAP32[4859]|0;
  15416. HEAP32[4446] = $8;
  15417. HEAP32[4859] = 0;
  15418. $9 = (_emscripten_get_num_gamepads()|0);
  15419. $10 = ($9|0)>(0);
  15420. if (!($10)) {
  15421. STACKTOP = sp;return;
  15422. }
  15423. $11 = ((($2)) + 12|0);
  15424. $12 = ((($2)) + 8|0);
  15425. $$05160 = 0;
  15426. while(1) {
  15427. $scevgep = (21639 + ($$05160<<5)|0);
  15428. $scevgep67 = (21767 + ($$05160<<5)|0);
  15429. 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));
  15430. $13 = (_emscripten_get_gamepad_status(($$05160|0),($2|0))|0);
  15431. $14 = ($13|0)==(0);
  15432. if ($14) {
  15433. $15 = HEAP32[$11>>2]|0;
  15434. $16 = ($15|0)>(0);
  15435. if ($16) {
  15436. $17 = HEAP32[$11>>2]|0;
  15437. $$04857 = 0;
  15438. while(1) {
  15439. $21 = (((($2)) + 1040|0) + ($$04857<<2)|0);
  15440. $22 = HEAP32[$21>>2]|0;
  15441. $23 = ($22|0)==(1);
  15442. $24 = ((21767 + ($$05160<<5)|0) + ($$04857)|0);
  15443. if ($23) {
  15444. HEAP8[$24>>0] = 1;
  15445. HEAP32[766] = $$04857;
  15446. } else {
  15447. HEAP8[$24>>0] = 0;
  15448. }
  15449. $25 = (($$04857) + 1)|0;
  15450. $26 = ($25|0)<($17|0);
  15451. $27 = ($25|0)<(32);
  15452. $28 = $27 & $26;
  15453. if ($28) {
  15454. $$04857 = $25;
  15455. } else {
  15456. break;
  15457. }
  15458. }
  15459. }
  15460. $18 = HEAP32[$12>>2]|0;
  15461. $19 = ($18|0)>(0);
  15462. if ($19) {
  15463. $20 = HEAP32[$12>>2]|0;
  15464. $$058 = 0;
  15465. while(1) {
  15466. $29 = (((($2)) + 16|0) + ($$058<<3)|0);
  15467. $30 = +HEAPF64[$29>>3];
  15468. $31 = $30;
  15469. $32 = ((19508 + ($$05160<<5)|0) + ($$058<<2)|0);
  15470. HEAPF32[$32>>2] = $31;
  15471. $33 = (($$058) + 1)|0;
  15472. $34 = ($33|0)<($20|0);
  15473. $35 = ($33|0)<(8);
  15474. $36 = $35 & $34;
  15475. if ($36) {
  15476. $$058 = $33;
  15477. } else {
  15478. $$lcssa = $20;
  15479. break;
  15480. }
  15481. }
  15482. } else {
  15483. $$lcssa = $18;
  15484. }
  15485. HEAP32[4876] = $$lcssa;
  15486. }
  15487. $37 = (($$05160) + 1)|0;
  15488. $38 = ($37|0)<($9|0);
  15489. $39 = ($37|0)<(4);
  15490. $40 = $38 & $39;
  15491. if ($40) {
  15492. $$05160 = $37;
  15493. } else {
  15494. break;
  15495. }
  15496. }
  15497. STACKTOP = sp;return;
  15498. }
  15499. function _Wait($0) {
  15500. $0 = +$0;
  15501. 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;
  15502. sp = STACKTOP;
  15503. $1 = (+_GetTime());
  15504. $2 = 0.0 - $1;
  15505. $3 = $0 / 1000.0;
  15506. $4 = $3;
  15507. $5 = $2 < $4;
  15508. if (!($5)) {
  15509. return;
  15510. }
  15511. while(1) {
  15512. $6 = (+_GetTime());
  15513. $7 = $6 - $1;
  15514. $8 = $7 < $4;
  15515. if (!($8)) {
  15516. break;
  15517. }
  15518. }
  15519. return;
  15520. }
  15521. function _UpdateDefaultBuffers() {
  15522. 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;
  15523. 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;
  15524. var $45 = 0, $46 = 0, $47 = 0, $48 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  15525. sp = STACKTOP;
  15526. $0 = HEAP32[4822]|0;
  15527. $1 = ($0|0)>(0);
  15528. if ($1) {
  15529. $2 = HEAP32[4524]|0;
  15530. $3 = ($2|0)==(0);
  15531. if (!($3)) {
  15532. $4 = HEAP32[4526]|0;
  15533. $5 = HEAP32[(19316)>>2]|0;
  15534. FUNCTION_TABLE_vi[$4 & 31]($5);
  15535. }
  15536. $6 = HEAP32[(19320)>>2]|0;
  15537. _glBindBuffer(34962,($6|0));
  15538. $7 = HEAP32[4822]|0;
  15539. $8 = ($7*12)|0;
  15540. $9 = HEAP32[(19300)>>2]|0;
  15541. _glBufferSubData(34962,0,($8|0),($9|0));
  15542. $10 = HEAP32[(19324)>>2]|0;
  15543. _glBindBuffer(34962,($10|0));
  15544. $11 = HEAP32[(19296)>>2]|0;
  15545. $12 = $11 << 2;
  15546. $13 = HEAP32[(19308)>>2]|0;
  15547. _glBufferSubData(34962,0,($12|0),($13|0));
  15548. }
  15549. $14 = HEAP32[4834]|0;
  15550. $15 = ($14|0)>(0);
  15551. if ($15) {
  15552. $16 = HEAP32[4524]|0;
  15553. $17 = ($16|0)==(0);
  15554. if (!($17)) {
  15555. $18 = HEAP32[4526]|0;
  15556. $19 = HEAP32[(19364)>>2]|0;
  15557. FUNCTION_TABLE_vi[$18 & 31]($19);
  15558. }
  15559. $20 = HEAP32[(19368)>>2]|0;
  15560. _glBindBuffer(34962,($20|0));
  15561. $21 = HEAP32[4834]|0;
  15562. $22 = ($21*12)|0;
  15563. $23 = HEAP32[(19348)>>2]|0;
  15564. _glBufferSubData(34962,0,($22|0),($23|0));
  15565. $24 = HEAP32[(19372)>>2]|0;
  15566. _glBindBuffer(34962,($24|0));
  15567. $25 = HEAP32[(19344)>>2]|0;
  15568. $26 = $25 << 2;
  15569. $27 = HEAP32[(19356)>>2]|0;
  15570. _glBufferSubData(34962,0,($26|0),($27|0));
  15571. }
  15572. $28 = HEAP32[4846]|0;
  15573. $29 = ($28|0)>(0);
  15574. if ($29) {
  15575. $30 = HEAP32[4524]|0;
  15576. $31 = ($30|0)==(0);
  15577. if (!($31)) {
  15578. $32 = HEAP32[4526]|0;
  15579. $33 = HEAP32[(19412)>>2]|0;
  15580. FUNCTION_TABLE_vi[$32 & 31]($33);
  15581. }
  15582. $34 = HEAP32[(19416)>>2]|0;
  15583. _glBindBuffer(34962,($34|0));
  15584. $35 = HEAP32[4846]|0;
  15585. $36 = ($35*12)|0;
  15586. $37 = HEAP32[(19396)>>2]|0;
  15587. _glBufferSubData(34962,0,($36|0),($37|0));
  15588. $38 = HEAP32[(19420)>>2]|0;
  15589. _glBindBuffer(34962,($38|0));
  15590. $39 = HEAP32[4846]|0;
  15591. $40 = $39 << 3;
  15592. $41 = HEAP32[(19400)>>2]|0;
  15593. _glBufferSubData(34962,0,($40|0),($41|0));
  15594. $42 = HEAP32[(19424)>>2]|0;
  15595. _glBindBuffer(34962,($42|0));
  15596. $43 = HEAP32[4846]|0;
  15597. $44 = $43 << 2;
  15598. $45 = HEAP32[(19404)>>2]|0;
  15599. _glBufferSubData(34962,0,($44|0),($45|0));
  15600. }
  15601. $46 = HEAP32[4524]|0;
  15602. $47 = ($46|0)==(0);
  15603. if ($47) {
  15604. return;
  15605. }
  15606. $48 = HEAP32[4526]|0;
  15607. FUNCTION_TABLE_vi[$48 & 31](0);
  15608. return;
  15609. }
  15610. function _DrawDefaultBuffers() {
  15611. 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;
  15612. 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;
  15613. 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;
  15614. 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;
  15615. 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;
  15616. var $or$cond = 0, $or$cond3 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  15617. sp = STACKTOP;
  15618. STACKTOP = STACKTOP + 320|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(320|0);
  15619. $$byval_copy2 = sp + 256|0;
  15620. $modelview$byval_copy = sp + 192|0;
  15621. $0 = sp + 128|0;
  15622. $1 = sp + 64|0;
  15623. $2 = sp;
  15624. dest=$0; src=17964; 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));
  15625. dest=$1; src=18028; 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));
  15626. $3 = HEAP32[4909]|0;
  15627. $4 = ($3|0)!=(0);
  15628. $$ = $4 ? 2 : 1;
  15629. $$02932 = 0;
  15630. while(1) {
  15631. if ($4) {
  15632. 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));
  15633. 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));
  15634. _SetStereoView($$02932,$modelview$byval_copy,$$byval_copy2);
  15635. }
  15636. $8 = HEAP32[4822]|0;
  15637. $9 = ($8|0)>(0);
  15638. $10 = HEAP32[4834]|0;
  15639. $11 = ($10|0)>(0);
  15640. $or$cond = $9 | $11;
  15641. $12 = HEAP32[4846]|0;
  15642. $13 = ($12|0)>(0);
  15643. $or$cond3 = $or$cond | $13;
  15644. if ($or$cond3) {
  15645. $14 = HEAP32[4546]|0;
  15646. _glUseProgram(($14|0));
  15647. dest=$modelview$byval_copy; src=18028; 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));
  15648. dest=$$byval_copy2; src=17964; 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));
  15649. _MatrixMultiply($2,$modelview$byval_copy,$$byval_copy2);
  15650. $15 = HEAP32[(18212)>>2]|0;
  15651. 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));
  15652. $16 = (_MatrixToFloat($$byval_copy2)|0);
  15653. _glUniformMatrix4fv(($15|0),1,0,($16|0));
  15654. $17 = HEAP32[(18216)>>2]|0;
  15655. _glUniform4f(($17|0),1.0,1.0,1.0,1.0);
  15656. $18 = HEAP32[(18228)>>2]|0;
  15657. _glUniform1i(($18|0),0);
  15658. }
  15659. $19 = HEAP32[4822]|0;
  15660. $20 = ($19|0)>(0);
  15661. if ($20) {
  15662. $21 = HEAP32[4531]|0;
  15663. _glBindTexture(3553,($21|0));
  15664. $22 = HEAP32[4524]|0;
  15665. $23 = ($22|0)==(0);
  15666. if ($23) {
  15667. $26 = HEAP32[(19320)>>2]|0;
  15668. _glBindBuffer(34962,($26|0));
  15669. $27 = HEAP32[(18188)>>2]|0;
  15670. _glVertexAttribPointer(($27|0),3,5126,0,0,(0|0));
  15671. $28 = HEAP32[(18188)>>2]|0;
  15672. _glEnableVertexAttribArray(($28|0));
  15673. $29 = HEAP32[(19324)>>2]|0;
  15674. _glBindBuffer(34962,($29|0));
  15675. $30 = HEAP32[(18208)>>2]|0;
  15676. _glVertexAttribPointer(($30|0),4,5121,1,0,(0|0));
  15677. $31 = HEAP32[(18208)>>2]|0;
  15678. _glEnableVertexAttribArray(($31|0));
  15679. } else {
  15680. $24 = HEAP32[4526]|0;
  15681. $25 = HEAP32[(19316)>>2]|0;
  15682. FUNCTION_TABLE_vi[$24 & 31]($25);
  15683. }
  15684. $32 = HEAP32[4822]|0;
  15685. _glDrawArrays(1,0,($32|0));
  15686. $33 = HEAP32[4524]|0;
  15687. $34 = ($33|0)==(0);
  15688. if ($34) {
  15689. _glBindBuffer(34962,0);
  15690. }
  15691. _glBindTexture(3553,0);
  15692. }
  15693. $35 = HEAP32[4834]|0;
  15694. $36 = ($35|0)>(0);
  15695. if ($36) {
  15696. $37 = HEAP32[4531]|0;
  15697. _glBindTexture(3553,($37|0));
  15698. $38 = HEAP32[4524]|0;
  15699. $39 = ($38|0)==(0);
  15700. if ($39) {
  15701. $42 = HEAP32[(19368)>>2]|0;
  15702. _glBindBuffer(34962,($42|0));
  15703. $43 = HEAP32[(18188)>>2]|0;
  15704. _glVertexAttribPointer(($43|0),3,5126,0,0,(0|0));
  15705. $44 = HEAP32[(18188)>>2]|0;
  15706. _glEnableVertexAttribArray(($44|0));
  15707. $45 = HEAP32[(19372)>>2]|0;
  15708. _glBindBuffer(34962,($45|0));
  15709. $46 = HEAP32[(18208)>>2]|0;
  15710. _glVertexAttribPointer(($46|0),4,5121,1,0,(0|0));
  15711. $47 = HEAP32[(18208)>>2]|0;
  15712. _glEnableVertexAttribArray(($47|0));
  15713. } else {
  15714. $40 = HEAP32[4526]|0;
  15715. $41 = HEAP32[(19364)>>2]|0;
  15716. FUNCTION_TABLE_vi[$40 & 31]($41);
  15717. }
  15718. $48 = HEAP32[4834]|0;
  15719. _glDrawArrays(4,0,($48|0));
  15720. $49 = HEAP32[4524]|0;
  15721. $50 = ($49|0)==(0);
  15722. if ($50) {
  15723. _glBindBuffer(34962,0);
  15724. }
  15725. _glBindTexture(3553,0);
  15726. }
  15727. $51 = HEAP32[4846]|0;
  15728. $52 = ($51|0)>(0);
  15729. if ($52) {
  15730. $53 = HEAP32[4524]|0;
  15731. $54 = ($53|0)==(0);
  15732. if ($54) {
  15733. $57 = HEAP32[(19416)>>2]|0;
  15734. _glBindBuffer(34962,($57|0));
  15735. $58 = HEAP32[(18188)>>2]|0;
  15736. _glVertexAttribPointer(($58|0),3,5126,0,0,(0|0));
  15737. $59 = HEAP32[(18188)>>2]|0;
  15738. _glEnableVertexAttribArray(($59|0));
  15739. $60 = HEAP32[(19420)>>2]|0;
  15740. _glBindBuffer(34962,($60|0));
  15741. $61 = HEAP32[(18192)>>2]|0;
  15742. _glVertexAttribPointer(($61|0),2,5126,0,0,(0|0));
  15743. $62 = HEAP32[(18192)>>2]|0;
  15744. _glEnableVertexAttribArray(($62|0));
  15745. $63 = HEAP32[(19424)>>2]|0;
  15746. _glBindBuffer(34962,($63|0));
  15747. $64 = HEAP32[(18208)>>2]|0;
  15748. _glVertexAttribPointer(($64|0),4,5121,1,0,(0|0));
  15749. $65 = HEAP32[(18208)>>2]|0;
  15750. _glEnableVertexAttribArray(($65|0));
  15751. $66 = HEAP32[(19428)>>2]|0;
  15752. _glBindBuffer(34963,($66|0));
  15753. } else {
  15754. $55 = HEAP32[4526]|0;
  15755. $56 = HEAP32[(19412)>>2]|0;
  15756. FUNCTION_TABLE_vi[$55 & 31]($56);
  15757. }
  15758. $67 = HEAP32[4562]|0;
  15759. $68 = ($67|0)>(0);
  15760. if ($68) {
  15761. $$02830 = 0;$$031 = 0;
  15762. while(1) {
  15763. $71 = HEAP32[4561]|0;
  15764. $72 = (($71) + (($$031*144)|0)|0);
  15765. $73 = HEAP32[$72>>2]|0;
  15766. $74 = (($73|0) / 4)&-1;
  15767. $75 = ($74*6)|0;
  15768. $76 = (((($71) + (($$031*144)|0)|0)) + 8|0);
  15769. $77 = HEAP32[$76>>2]|0;
  15770. _glBindTexture(3553,($77|0));
  15771. $78 = $$02830 << 1;
  15772. $79 = $78;
  15773. _glDrawElements(4,($75|0),5123,($79|0));
  15774. $80 = HEAP32[4561]|0;
  15775. $81 = (($80) + (($$031*144)|0)|0);
  15776. $82 = HEAP32[$81>>2]|0;
  15777. $83 = (($82|0) / 4)&-1;
  15778. $84 = ($83*6)|0;
  15779. $85 = (($84) + ($$02830))|0;
  15780. $86 = (($$031) + 1)|0;
  15781. $87 = HEAP32[4562]|0;
  15782. $88 = ($86|0)<($87|0);
  15783. if ($88) {
  15784. $$02830 = $85;$$031 = $86;
  15785. } else {
  15786. break;
  15787. }
  15788. }
  15789. }
  15790. $69 = HEAP32[4524]|0;
  15791. $70 = ($69|0)==(0);
  15792. if ($70) {
  15793. _glBindBuffer(34962,0);
  15794. _glBindBuffer(34963,0);
  15795. }
  15796. _glBindTexture(3553,0);
  15797. }
  15798. $89 = HEAP32[4524]|0;
  15799. $90 = ($89|0)==(0);
  15800. if (!($90)) {
  15801. $91 = HEAP32[4526]|0;
  15802. FUNCTION_TABLE_vi[$91 & 31](0);
  15803. }
  15804. _glUseProgram(0);
  15805. $92 = (($$02932) + 1)|0;
  15806. $93 = ($92|0)<($$|0);
  15807. if ($93) {
  15808. $$02932 = $92;
  15809. } else {
  15810. break;
  15811. }
  15812. }
  15813. HEAP32[4562] = 1;
  15814. $5 = HEAP32[4531]|0;
  15815. $6 = HEAP32[4561]|0;
  15816. $7 = ((($6)) + 8|0);
  15817. HEAP32[$7>>2] = $5;
  15818. HEAP32[$6>>2] = 0;
  15819. HEAP32[4822] = 0;
  15820. HEAP32[(19296)>>2] = 0;
  15821. HEAP32[4834] = 0;
  15822. HEAP32[(19344)>>2] = 0;
  15823. HEAP32[4846] = 0;
  15824. HEAP32[(19388)>>2] = 0;
  15825. HEAP32[(19392)>>2] = 0;
  15826. HEAPF32[767] = -1.0;
  15827. dest=17964; 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));
  15828. dest=18028; 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));
  15829. STACKTOP = sp;return;
  15830. }
  15831. function _SetStereoView($0,$1,$2) {
  15832. $0 = $0|0;
  15833. $1 = $1|0;
  15834. $2 = $2|0;
  15835. 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;
  15836. sp = STACKTOP;
  15837. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  15838. $$byval_copy3 = sp + 192|0;
  15839. $$byval_copy = sp + 64|0;
  15840. $3 = sp;
  15841. $4 = sp + 128|0;
  15842. 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));
  15843. $5 = HEAP32[4820]|0;
  15844. $6 = Math_imul($5, $0)|0;
  15845. $7 = (($6|0) / 2)&-1;
  15846. $8 = (($5|0) / 2)&-1;
  15847. $9 = HEAP32[4821]|0;
  15848. _rlViewport($7,0,$8,$9);
  15849. $10 = (19868 + ($0<<6)|0);
  15850. 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));
  15851. 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));
  15852. _MatrixMultiply($4,$$byval_copy,$$byval_copy3);
  15853. $11 = (19740 + ($0<<6)|0);
  15854. 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));
  15855. 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));
  15856. _SetMatrixModelview($$byval_copy3);
  15857. 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));
  15858. _SetMatrixProjection($$byval_copy3);
  15859. STACKTOP = sp;return;
  15860. }
  15861. function _SetMatrixModelview($0) {
  15862. $0 = $0|0;
  15863. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  15864. sp = STACKTOP;
  15865. dest=18028; 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));
  15866. return;
  15867. }
  15868. function _SetMatrixProjection($0) {
  15869. $0 = $0|0;
  15870. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  15871. sp = STACKTOP;
  15872. dest=17964; 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));
  15873. return;
  15874. }
  15875. function _Begin3dMode($0) {
  15876. $0 = $0|0;
  15877. 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;
  15878. var $8 = 0.0, $9 = 0.0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  15879. sp = STACKTOP;
  15880. STACKTOP = STACKTOP + 160|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(160|0);
  15881. $$byval_copy3 = sp + 88|0;
  15882. $$byval_copy1 = sp + 76|0;
  15883. $$byval_copy = sp + 64|0;
  15884. $1 = sp;
  15885. _rlglDraw();
  15886. _rlMatrixMode(5889);
  15887. _rlPushMatrix();
  15888. _rlLoadIdentity();
  15889. $2 = HEAP32[4445]|0;
  15890. $3 = (+($2|0));
  15891. $4 = HEAP32[4444]|0;
  15892. $5 = (+($4|0));
  15893. $6 = $3 / $5;
  15894. $7 = ((($0)) + 36|0);
  15895. $8 = +HEAPF32[$7>>2];
  15896. $9 = $8 * 3.1415927410125732;
  15897. $10 = $9;
  15898. $11 = $10 / 360.0;
  15899. $12 = (+Math_tan((+$11)));
  15900. $13 = $12 * 0.01;
  15901. $14 = $6;
  15902. $15 = $13 * $14;
  15903. $16 = -$15;
  15904. $17 = -$13;
  15905. _rlFrustum($16,$15,$17,$13,0.01,1000.0);
  15906. _rlMatrixMode(5888);
  15907. _rlLoadIdentity();
  15908. $18 = ((($0)) + 12|0);
  15909. $19 = ((($0)) + 24|0);
  15910. ;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;
  15911. ;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;
  15912. ;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;
  15913. _MatrixLookAt($1,$$byval_copy,$$byval_copy1,$$byval_copy3);
  15914. 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));
  15915. (_MatrixToFloat($$byval_copy3)|0);
  15916. _rlMultMatrixf(19440);
  15917. _rlEnableDepthTest();
  15918. STACKTOP = sp;return;
  15919. }
  15920. function _rlPushMatrix() {
  15921. 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;
  15922. sp = STACKTOP;
  15923. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15924. $vararg_buffer = sp;
  15925. $0 = HEAP32[4999]|0;
  15926. $1 = ($0|0)==(15);
  15927. if ($1) {
  15928. HEAP32[$vararg_buffer>>2] = 16;
  15929. _TraceLog(1,9128,$vararg_buffer);
  15930. }
  15931. $2 = HEAP32[4999]|0;
  15932. $3 = (18256 + ($2<<6)|0);
  15933. $4 = HEAP32[4490]|0;
  15934. 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));
  15935. _rlLoadIdentity();
  15936. $5 = HEAP32[4999]|0;
  15937. $6 = (($5) + 1)|0;
  15938. HEAP32[4999] = $6;
  15939. $7 = HEAP32[4523]|0;
  15940. $8 = ($7|0)==(5888);
  15941. if (!($8)) {
  15942. STACKTOP = sp;return;
  15943. }
  15944. HEAP32[5000] = 1;
  15945. STACKTOP = sp;return;
  15946. }
  15947. function _rlFrustum($0,$1,$2,$3,$4,$5) {
  15948. $0 = +$0;
  15949. $1 = +$1;
  15950. $2 = +$2;
  15951. $3 = +$3;
  15952. $4 = +$4;
  15953. $5 = +$5;
  15954. var $$byval_copy = 0, $$byval_copy1 = 0, $6 = 0, $7 = 0, $8 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  15955. sp = STACKTOP;
  15956. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  15957. $$byval_copy1 = sp + 192|0;
  15958. $$byval_copy = sp + 128|0;
  15959. $6 = sp + 64|0;
  15960. $7 = sp;
  15961. _MatrixFrustum($6,$0,$1,$2,$3,$4,$5);
  15962. _MatrixTranspose($6);
  15963. $8 = HEAP32[4490]|0;
  15964. 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));
  15965. 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));
  15966. _MatrixMultiply($7,$$byval_copy,$$byval_copy1);
  15967. 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));
  15968. STACKTOP = sp;return;
  15969. }
  15970. function _rlEnableDepthTest() {
  15971. var label = 0, sp = 0;
  15972. sp = STACKTOP;
  15973. _glEnable(2929);
  15974. return;
  15975. }
  15976. function _End3dMode() {
  15977. var label = 0, sp = 0;
  15978. sp = STACKTOP;
  15979. _rlglDraw();
  15980. _rlMatrixMode(5889);
  15981. _rlPopMatrix();
  15982. _rlMatrixMode(5888);
  15983. _rlLoadIdentity();
  15984. _rlDisableDepthTest();
  15985. return;
  15986. }
  15987. function _rlPopMatrix() {
  15988. var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  15989. sp = STACKTOP;
  15990. $0 = HEAP32[4999]|0;
  15991. $1 = ($0|0)>(0);
  15992. if (!($1)) {
  15993. return;
  15994. }
  15995. $2 = HEAP32[4999]|0;
  15996. $3 = (($2) + -1)|0;
  15997. $4 = (18256 + ($3<<6)|0);
  15998. $5 = HEAP32[4490]|0;
  15999. _memmove(($5|0),($4|0),64)|0;
  16000. $6 = (($2) + -1)|0;
  16001. HEAP32[4999] = $6;
  16002. return;
  16003. }
  16004. function _rlDisableDepthTest() {
  16005. var label = 0, sp = 0;
  16006. sp = STACKTOP;
  16007. _glDisable(2929);
  16008. return;
  16009. }
  16010. function _GetFPS() {
  16011. var $0 = 0.0, $1 = 0.0, $2 = 0, label = 0, sp = 0;
  16012. sp = STACKTOP;
  16013. $0 = (+_GetFrameTime());
  16014. $1 = 1.0 / $0;
  16015. $2 = (~~(($1)));
  16016. return ($2|0);
  16017. }
  16018. function _GetFrameTime() {
  16019. var $0 = 0.0, $1 = 0.0, label = 0, sp = 0;
  16020. sp = STACKTOP;
  16021. $0 = +HEAPF64[2177];
  16022. $1 = $0;
  16023. return (+$1);
  16024. }
  16025. function _IsFileExtension($0,$1) {
  16026. $0 = $0|0;
  16027. $1 = $1|0;
  16028. var $$ = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  16029. sp = STACKTOP;
  16030. $2 = (_strrchr($0,46)|0);
  16031. $3 = ($2|0)==(0|0);
  16032. if ($3) {
  16033. return 0;
  16034. } else {
  16035. $4 = (_strcmp($2,$1)|0);
  16036. $5 = ($4|0)==(0);
  16037. $$ = $5&1;
  16038. return ($$|0);
  16039. }
  16040. return (0)|0;
  16041. }
  16042. function _rlTranslatef($0,$1,$2) {
  16043. $0 = +$0;
  16044. $1 = +$1;
  16045. $2 = +$2;
  16046. var $$byval_copy = 0, $$byval_copy1 = 0, $3 = 0, $4 = 0, $5 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16047. sp = STACKTOP;
  16048. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  16049. $$byval_copy1 = sp + 192|0;
  16050. $$byval_copy = sp + 128|0;
  16051. $3 = sp + 64|0;
  16052. $4 = sp;
  16053. _MatrixTranslate($3,$0,$1,$2);
  16054. _MatrixTranspose($3);
  16055. $5 = HEAP32[4490]|0;
  16056. 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));
  16057. 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));
  16058. _MatrixMultiply($4,$$byval_copy,$$byval_copy1);
  16059. 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));
  16060. STACKTOP = sp;return;
  16061. }
  16062. function _rlRotatef($0,$1,$2,$3) {
  16063. $0 = +$0;
  16064. $1 = +$1;
  16065. $2 = +$2;
  16066. $3 = +$3;
  16067. 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;
  16068. sp = STACKTOP;
  16069. STACKTOP = STACKTOP + 336|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(336|0);
  16070. $$byval_copy2 = sp + 272|0;
  16071. $$byval_copy1 = sp + 208|0;
  16072. $4 = sp + 144|0;
  16073. $5 = sp + 64|0;
  16074. $6 = sp + 80|0;
  16075. $7 = sp;
  16076. _MatrixIdentity($4);
  16077. HEAPF32[$5>>2] = $1;
  16078. $8 = ((($5)) + 4|0);
  16079. HEAPF32[$8>>2] = $2;
  16080. $9 = ((($5)) + 8|0);
  16081. HEAPF32[$9>>2] = $3;
  16082. _VectorNormalize($5);
  16083. $10 = $0 * 0.01745329238474369;
  16084. ;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;
  16085. _MatrixRotate($6,$$byval_copy2,$10);
  16086. 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));
  16087. _MatrixTranspose($4);
  16088. $11 = HEAP32[4490]|0;
  16089. 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));
  16090. 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));
  16091. _MatrixMultiply($7,$$byval_copy1,$$byval_copy2);
  16092. 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));
  16093. STACKTOP = sp;return;
  16094. }
  16095. function _rlBegin($0) {
  16096. $0 = $0|0;
  16097. var label = 0, sp = 0;
  16098. sp = STACKTOP;
  16099. HEAP32[4563] = $0;
  16100. return;
  16101. }
  16102. function _rlEnd() {
  16103. 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;
  16104. 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;
  16105. 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;
  16106. 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;
  16107. 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;
  16108. 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;
  16109. 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;
  16110. 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;
  16111. var $scevgep = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16112. sp = STACKTOP;
  16113. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  16114. $$byval_copy = sp;
  16115. $0 = HEAP32[5000]|0;
  16116. $1 = ($0|0)==(0);
  16117. if (!($1)) {
  16118. $2 = HEAP32[5001]|0;
  16119. $3 = ($2|0)>(0);
  16120. if ($3) {
  16121. $$03956 = 0;
  16122. while(1) {
  16123. $6 = HEAP32[4560]|0;
  16124. $7 = (($6) + (($$03956*12)|0)|0);
  16125. $8 = HEAP32[4490]|0;
  16126. 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));
  16127. _VectorTransform($7,$$byval_copy);
  16128. $9 = (($$03956) + 1)|0;
  16129. $5 = HEAP32[5001]|0;
  16130. $10 = ($9|0)<($5|0);
  16131. if ($10) {
  16132. $$03956 = $9;
  16133. } else {
  16134. break;
  16135. }
  16136. }
  16137. HEAP32[5000] = 0;
  16138. $4 = ($5|0)>(0);
  16139. if ($4) {
  16140. $$04154 = 0;
  16141. while(1) {
  16142. $11 = HEAP32[4560]|0;
  16143. $12 = (($11) + (($$04154*12)|0)|0);
  16144. $13 = +HEAPF32[$12>>2];
  16145. $14 = (((($11) + (($$04154*12)|0)|0)) + 4|0);
  16146. $15 = +HEAPF32[$14>>2];
  16147. $16 = (((($11) + (($$04154*12)|0)|0)) + 8|0);
  16148. $17 = +HEAPF32[$16>>2];
  16149. _rlVertex3f($13,$15,$17);
  16150. $18 = (($$04154) + 1)|0;
  16151. $19 = HEAP32[5001]|0;
  16152. $20 = ($18|0)<($19|0);
  16153. if ($20) {
  16154. $$04154 = $18;
  16155. } else {
  16156. break;
  16157. }
  16158. }
  16159. }
  16160. } else {
  16161. HEAP32[5000] = 0;
  16162. }
  16163. HEAP32[5001] = 0;
  16164. }
  16165. $21 = HEAP32[4563]|0;
  16166. switch ($21|0) {
  16167. case 1: {
  16168. $22 = HEAP32[4822]|0;
  16169. $23 = HEAP32[(19296)>>2]|0;
  16170. $24 = ($22|0)==($23|0);
  16171. if ($24) {
  16172. $148 = +HEAPF32[767];
  16173. $149 = $148 + 4.9999998736893758E-5;
  16174. HEAPF32[767] = $149;
  16175. STACKTOP = sp;return;
  16176. }
  16177. $25 = (($22) - ($23))|0;
  16178. $26 = ($25|0)>(0);
  16179. if ($26) {
  16180. $$04347 = 0;
  16181. } else {
  16182. $148 = +HEAPF32[767];
  16183. $149 = $148 + 4.9999998736893758E-5;
  16184. HEAPF32[767] = $149;
  16185. STACKTOP = sp;return;
  16186. }
  16187. while(1) {
  16188. $27 = HEAP32[(19308)>>2]|0;
  16189. $28 = HEAP32[(19296)>>2]|0;
  16190. $29 = $28 << 2;
  16191. $30 = (($29) + -4)|0;
  16192. $31 = (($27) + ($30)|0);
  16193. $32 = HEAP8[$31>>0]|0;
  16194. $33 = (($27) + ($29)|0);
  16195. HEAP8[$33>>0] = $32;
  16196. $34 = HEAP32[(19308)>>2]|0;
  16197. $35 = HEAP32[(19296)>>2]|0;
  16198. $36 = $35 << 2;
  16199. $37 = (($36) + -3)|0;
  16200. $38 = (($34) + ($37)|0);
  16201. $39 = HEAP8[$38>>0]|0;
  16202. $40 = $36 | 1;
  16203. $41 = (($34) + ($40)|0);
  16204. HEAP8[$41>>0] = $39;
  16205. $42 = HEAP32[(19308)>>2]|0;
  16206. $43 = HEAP32[(19296)>>2]|0;
  16207. $44 = $43 << 2;
  16208. $45 = (($44) + -2)|0;
  16209. $46 = (($42) + ($45)|0);
  16210. $47 = HEAP8[$46>>0]|0;
  16211. $48 = $44 | 2;
  16212. $49 = (($42) + ($48)|0);
  16213. HEAP8[$49>>0] = $47;
  16214. $50 = HEAP32[(19308)>>2]|0;
  16215. $51 = HEAP32[(19296)>>2]|0;
  16216. $52 = $51 << 2;
  16217. $53 = (($52) + -1)|0;
  16218. $54 = (($50) + ($53)|0);
  16219. $55 = HEAP8[$54>>0]|0;
  16220. $56 = $52 | 3;
  16221. $57 = (($50) + ($56)|0);
  16222. HEAP8[$57>>0] = $55;
  16223. $58 = HEAP32[(19296)>>2]|0;
  16224. $59 = (($58) + 1)|0;
  16225. HEAP32[(19296)>>2] = $59;
  16226. $60 = (($$04347) + 1)|0;
  16227. $exitcond = ($60|0)==($25|0);
  16228. if ($exitcond) {
  16229. break;
  16230. } else {
  16231. $$04347 = $60;
  16232. }
  16233. }
  16234. $148 = +HEAPF32[767];
  16235. $149 = $148 + 4.9999998736893758E-5;
  16236. HEAPF32[767] = $149;
  16237. STACKTOP = sp;return;
  16238. break;
  16239. }
  16240. case 4: {
  16241. $61 = HEAP32[4834]|0;
  16242. $62 = HEAP32[(19344)>>2]|0;
  16243. $63 = ($61|0)==($62|0);
  16244. if ($63) {
  16245. $148 = +HEAPF32[767];
  16246. $149 = $148 + 4.9999998736893758E-5;
  16247. HEAPF32[767] = $149;
  16248. STACKTOP = sp;return;
  16249. }
  16250. $64 = (($61) - ($62))|0;
  16251. $65 = ($64|0)>(0);
  16252. if ($65) {
  16253. $$04248 = 0;
  16254. } else {
  16255. $148 = +HEAPF32[767];
  16256. $149 = $148 + 4.9999998736893758E-5;
  16257. HEAPF32[767] = $149;
  16258. STACKTOP = sp;return;
  16259. }
  16260. while(1) {
  16261. $66 = HEAP32[(19356)>>2]|0;
  16262. $67 = HEAP32[(19344)>>2]|0;
  16263. $68 = $67 << 2;
  16264. $69 = (($68) + -4)|0;
  16265. $70 = (($66) + ($69)|0);
  16266. $71 = HEAP8[$70>>0]|0;
  16267. $72 = (($66) + ($68)|0);
  16268. HEAP8[$72>>0] = $71;
  16269. $73 = HEAP32[(19356)>>2]|0;
  16270. $74 = HEAP32[(19344)>>2]|0;
  16271. $75 = $74 << 2;
  16272. $76 = (($75) + -3)|0;
  16273. $77 = (($73) + ($76)|0);
  16274. $78 = HEAP8[$77>>0]|0;
  16275. $79 = $75 | 1;
  16276. $80 = (($73) + ($79)|0);
  16277. HEAP8[$80>>0] = $78;
  16278. $81 = HEAP32[(19356)>>2]|0;
  16279. $82 = HEAP32[(19344)>>2]|0;
  16280. $83 = $82 << 2;
  16281. $84 = (($83) + -2)|0;
  16282. $85 = (($81) + ($84)|0);
  16283. $86 = HEAP8[$85>>0]|0;
  16284. $87 = $83 | 2;
  16285. $88 = (($81) + ($87)|0);
  16286. HEAP8[$88>>0] = $86;
  16287. $89 = HEAP32[(19356)>>2]|0;
  16288. $90 = HEAP32[(19344)>>2]|0;
  16289. $91 = $90 << 2;
  16290. $92 = (($91) + -1)|0;
  16291. $93 = (($89) + ($92)|0);
  16292. $94 = HEAP8[$93>>0]|0;
  16293. $95 = $91 | 3;
  16294. $96 = (($89) + ($95)|0);
  16295. HEAP8[$96>>0] = $94;
  16296. $97 = HEAP32[(19344)>>2]|0;
  16297. $98 = (($97) + 1)|0;
  16298. HEAP32[(19344)>>2] = $98;
  16299. $99 = (($$04248) + 1)|0;
  16300. $exitcond60 = ($99|0)==($64|0);
  16301. if ($exitcond60) {
  16302. break;
  16303. } else {
  16304. $$04248 = $99;
  16305. }
  16306. }
  16307. $148 = +HEAPF32[767];
  16308. $149 = $148 + 4.9999998736893758E-5;
  16309. HEAPF32[767] = $149;
  16310. STACKTOP = sp;return;
  16311. break;
  16312. }
  16313. case 7: {
  16314. $100 = HEAP32[4846]|0;
  16315. $101 = HEAP32[(19392)>>2]|0;
  16316. $102 = ($100|0)==($101|0);
  16317. if (!($102)) {
  16318. $103 = (($100) - ($101))|0;
  16319. $104 = ($103|0)>(0);
  16320. if ($104) {
  16321. $$04052 = 0;
  16322. while(1) {
  16323. $105 = HEAP32[(19404)>>2]|0;
  16324. $106 = HEAP32[(19392)>>2]|0;
  16325. $107 = $106 << 2;
  16326. $108 = (($107) + -4)|0;
  16327. $109 = (($105) + ($108)|0);
  16328. $110 = HEAP8[$109>>0]|0;
  16329. $111 = (($105) + ($107)|0);
  16330. HEAP8[$111>>0] = $110;
  16331. $112 = HEAP32[(19404)>>2]|0;
  16332. $113 = HEAP32[(19392)>>2]|0;
  16333. $114 = $113 << 2;
  16334. $115 = (($114) + -3)|0;
  16335. $116 = (($112) + ($115)|0);
  16336. $117 = HEAP8[$116>>0]|0;
  16337. $118 = $114 | 1;
  16338. $119 = (($112) + ($118)|0);
  16339. HEAP8[$119>>0] = $117;
  16340. $120 = HEAP32[(19404)>>2]|0;
  16341. $121 = HEAP32[(19392)>>2]|0;
  16342. $122 = $121 << 2;
  16343. $123 = (($122) + -2)|0;
  16344. $124 = (($120) + ($123)|0);
  16345. $125 = HEAP8[$124>>0]|0;
  16346. $126 = $122 | 2;
  16347. $127 = (($120) + ($126)|0);
  16348. HEAP8[$127>>0] = $125;
  16349. $128 = HEAP32[(19404)>>2]|0;
  16350. $129 = HEAP32[(19392)>>2]|0;
  16351. $130 = $129 << 2;
  16352. $131 = (($130) + -1)|0;
  16353. $132 = (($128) + ($131)|0);
  16354. $133 = HEAP8[$132>>0]|0;
  16355. $134 = $130 | 3;
  16356. $135 = (($128) + ($134)|0);
  16357. HEAP8[$135>>0] = $133;
  16358. $136 = HEAP32[(19392)>>2]|0;
  16359. $137 = (($136) + 1)|0;
  16360. HEAP32[(19392)>>2] = $137;
  16361. $138 = (($$04052) + 1)|0;
  16362. $exitcond63 = ($138|0)==($103|0);
  16363. if ($exitcond63) {
  16364. break;
  16365. } else {
  16366. $$04052 = $138;
  16367. }
  16368. }
  16369. }
  16370. }
  16371. $139 = HEAP32[4846]|0;
  16372. $140 = HEAP32[(19388)>>2]|0;
  16373. $141 = ($139|0)>($140|0);
  16374. if (!($141)) {
  16375. $148 = +HEAPF32[767];
  16376. $149 = $148 + 4.9999998736893758E-5;
  16377. HEAPF32[767] = $149;
  16378. STACKTOP = sp;return;
  16379. }
  16380. $142 = HEAP32[(19400)>>2]|0;
  16381. $$promoted = HEAP32[(19388)>>2]|0;
  16382. $143 = $$promoted << 1;
  16383. $scevgep = (($142) + ($143<<2)|0);
  16384. $144 = (($139) - ($140))|0;
  16385. $145 = $144 << 3;
  16386. _memset(($scevgep|0),0,($145|0))|0;
  16387. $146 = (($139) + ($$promoted))|0;
  16388. $147 = (($146) - ($140))|0;
  16389. HEAP32[(19388)>>2] = $147;
  16390. $148 = +HEAPF32[767];
  16391. $149 = $148 + 4.9999998736893758E-5;
  16392. HEAPF32[767] = $149;
  16393. STACKTOP = sp;return;
  16394. break;
  16395. }
  16396. default: {
  16397. $148 = +HEAPF32[767];
  16398. $149 = $148 + 4.9999998736893758E-5;
  16399. HEAPF32[767] = $149;
  16400. STACKTOP = sp;return;
  16401. }
  16402. }
  16403. }
  16404. function _rlVertex3f($0,$1,$2) {
  16405. $0 = +$0;
  16406. $1 = +$1;
  16407. $2 = +$2;
  16408. 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;
  16409. 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;
  16410. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer3 = 0, label = 0, sp = 0;
  16411. sp = STACKTOP;
  16412. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  16413. $vararg_buffer3 = sp + 16|0;
  16414. $vararg_buffer1 = sp + 8|0;
  16415. $vararg_buffer = sp;
  16416. $3 = HEAP32[5000]|0;
  16417. $4 = ($3|0)==(0);
  16418. if (!($4)) {
  16419. $5 = HEAP32[4560]|0;
  16420. $6 = HEAP32[5001]|0;
  16421. $7 = (($5) + (($6*12)|0)|0);
  16422. HEAPF32[$7>>2] = $0;
  16423. $8 = (((($5) + (($6*12)|0)|0)) + 4|0);
  16424. HEAPF32[$8>>2] = $1;
  16425. $9 = (((($5) + (($6*12)|0)|0)) + 8|0);
  16426. HEAPF32[$9>>2] = $2;
  16427. $10 = (($6) + 1)|0;
  16428. HEAP32[5001] = $10;
  16429. STACKTOP = sp;return;
  16430. }
  16431. $11 = HEAP32[4563]|0;
  16432. switch ($11|0) {
  16433. case 1: {
  16434. $12 = HEAP32[4822]|0;
  16435. $13 = ($12|0)<(2048);
  16436. if ($13) {
  16437. $14 = HEAP32[(19300)>>2]|0;
  16438. $15 = ($12*3)|0;
  16439. $16 = (($14) + ($15<<2)|0);
  16440. HEAPF32[$16>>2] = $0;
  16441. $17 = (($15) + 1)|0;
  16442. $18 = (($14) + ($17<<2)|0);
  16443. HEAPF32[$18>>2] = $1;
  16444. $19 = (($15) + 2)|0;
  16445. $20 = (($14) + ($19<<2)|0);
  16446. HEAPF32[$20>>2] = $2;
  16447. $21 = (($12) + 1)|0;
  16448. HEAP32[4822] = $21;
  16449. STACKTOP = sp;return;
  16450. } else {
  16451. _TraceLog(1,9166,$vararg_buffer);
  16452. STACKTOP = sp;return;
  16453. }
  16454. break;
  16455. }
  16456. case 4: {
  16457. $22 = HEAP32[4834]|0;
  16458. $23 = ($22|0)<(6144);
  16459. if ($23) {
  16460. $24 = HEAP32[(19348)>>2]|0;
  16461. $25 = ($22*3)|0;
  16462. $26 = (($24) + ($25<<2)|0);
  16463. HEAPF32[$26>>2] = $0;
  16464. $27 = (($25) + 1)|0;
  16465. $28 = (($24) + ($27<<2)|0);
  16466. HEAPF32[$28>>2] = $1;
  16467. $29 = (($25) + 2)|0;
  16468. $30 = (($24) + ($29<<2)|0);
  16469. HEAPF32[$30>>2] = $2;
  16470. $31 = (($22) + 1)|0;
  16471. HEAP32[4834] = $31;
  16472. STACKTOP = sp;return;
  16473. } else {
  16474. _TraceLog(1,9191,$vararg_buffer1);
  16475. STACKTOP = sp;return;
  16476. }
  16477. break;
  16478. }
  16479. case 7: {
  16480. $32 = HEAP32[4846]|0;
  16481. $33 = ($32|0)<(4096);
  16482. if ($33) {
  16483. $34 = HEAP32[(19396)>>2]|0;
  16484. $35 = ($32*3)|0;
  16485. $36 = (($34) + ($35<<2)|0);
  16486. HEAPF32[$36>>2] = $0;
  16487. $37 = (($35) + 1)|0;
  16488. $38 = (($34) + ($37<<2)|0);
  16489. HEAPF32[$38>>2] = $1;
  16490. $39 = (($35) + 2)|0;
  16491. $40 = (($34) + ($39<<2)|0);
  16492. HEAPF32[$40>>2] = $2;
  16493. $41 = (($32) + 1)|0;
  16494. HEAP32[4846] = $41;
  16495. $42 = HEAP32[4561]|0;
  16496. $43 = HEAP32[4562]|0;
  16497. $44 = (($43) + -1)|0;
  16498. $45 = (($42) + (($44*144)|0)|0);
  16499. $46 = HEAP32[$45>>2]|0;
  16500. $47 = (($46) + 1)|0;
  16501. HEAP32[$45>>2] = $47;
  16502. STACKTOP = sp;return;
  16503. } else {
  16504. _TraceLog(1,9220,$vararg_buffer3);
  16505. STACKTOP = sp;return;
  16506. }
  16507. break;
  16508. }
  16509. default: {
  16510. STACKTOP = sp;return;
  16511. }
  16512. }
  16513. }
  16514. function _rlVertex2f($0,$1) {
  16515. $0 = +$0;
  16516. $1 = +$1;
  16517. var $2 = 0.0, label = 0, sp = 0;
  16518. sp = STACKTOP;
  16519. $2 = +HEAPF32[767];
  16520. _rlVertex3f($0,$1,$2);
  16521. return;
  16522. }
  16523. function _rlVertex2i($0,$1) {
  16524. $0 = $0|0;
  16525. $1 = $1|0;
  16526. var $2 = 0.0, $3 = 0.0, $4 = 0.0, label = 0, sp = 0;
  16527. sp = STACKTOP;
  16528. $2 = (+($0|0));
  16529. $3 = (+($1|0));
  16530. $4 = +HEAPF32[767];
  16531. _rlVertex3f($2,$3,$4);
  16532. return;
  16533. }
  16534. function _rlTexCoord2f($0,$1) {
  16535. $0 = +$0;
  16536. $1 = +$1;
  16537. var $10 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  16538. sp = STACKTOP;
  16539. $2 = HEAP32[4563]|0;
  16540. $3 = ($2|0)==(7);
  16541. if (!($3)) {
  16542. return;
  16543. }
  16544. $4 = HEAP32[(19400)>>2]|0;
  16545. $5 = HEAP32[(19388)>>2]|0;
  16546. $6 = $5 << 1;
  16547. $7 = (($4) + ($6<<2)|0);
  16548. HEAPF32[$7>>2] = $0;
  16549. $8 = $6 | 1;
  16550. $9 = (($4) + ($8<<2)|0);
  16551. HEAPF32[$9>>2] = $1;
  16552. $10 = (($5) + 1)|0;
  16553. HEAP32[(19388)>>2] = $10;
  16554. return;
  16555. }
  16556. function _rlNormal3f($0,$1,$2) {
  16557. $0 = +$0;
  16558. $1 = +$1;
  16559. $2 = +$2;
  16560. var label = 0, sp = 0;
  16561. sp = STACKTOP;
  16562. return;
  16563. }
  16564. function _rlColor4ub($0,$1,$2,$3) {
  16565. $0 = $0|0;
  16566. $1 = $1|0;
  16567. $2 = $2|0;
  16568. $3 = $3|0;
  16569. 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;
  16570. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  16571. sp = STACKTOP;
  16572. $4 = HEAP32[4563]|0;
  16573. switch ($4|0) {
  16574. case 1: {
  16575. $$sink37 = (19296);$$sink38 = (19308);
  16576. break;
  16577. }
  16578. case 4: {
  16579. $$sink37 = (19344);$$sink38 = (19356);
  16580. break;
  16581. }
  16582. case 7: {
  16583. $$sink37 = (19392);$$sink38 = (19404);
  16584. break;
  16585. }
  16586. default: {
  16587. return;
  16588. }
  16589. }
  16590. $5 = HEAP32[$$sink38>>2]|0;
  16591. $6 = HEAP32[$$sink37>>2]|0;
  16592. $7 = $6 << 2;
  16593. $8 = (($5) + ($7)|0);
  16594. HEAP8[$8>>0] = $0;
  16595. $9 = HEAP32[$$sink38>>2]|0;
  16596. $10 = HEAP32[$$sink37>>2]|0;
  16597. $11 = $10 << 2;
  16598. $12 = $11 | 1;
  16599. $13 = (($9) + ($12)|0);
  16600. HEAP8[$13>>0] = $1;
  16601. $14 = HEAP32[$$sink38>>2]|0;
  16602. $15 = HEAP32[$$sink37>>2]|0;
  16603. $16 = $15 << 2;
  16604. $17 = $16 | 2;
  16605. $18 = (($14) + ($17)|0);
  16606. HEAP8[$18>>0] = $2;
  16607. $19 = HEAP32[$$sink38>>2]|0;
  16608. $20 = HEAP32[$$sink37>>2]|0;
  16609. $21 = $20 << 2;
  16610. $22 = $21 | 3;
  16611. $23 = (($19) + ($22)|0);
  16612. HEAP8[$23>>0] = $3;
  16613. $24 = HEAP32[$$sink37>>2]|0;
  16614. $25 = (($24) + 1)|0;
  16615. HEAP32[$$sink37>>2] = $25;
  16616. return;
  16617. }
  16618. function _rlEnableTexture($0) {
  16619. $0 = $0|0;
  16620. 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;
  16621. sp = STACKTOP;
  16622. $1 = HEAP32[4561]|0;
  16623. $2 = HEAP32[4562]|0;
  16624. $3 = (($2) + -1)|0;
  16625. $4 = (((($1) + (($3*144)|0)|0)) + 8|0);
  16626. $5 = HEAP32[$4>>2]|0;
  16627. $6 = ($5|0)==($0|0);
  16628. if ($6) {
  16629. return;
  16630. }
  16631. $7 = (($1) + (($3*144)|0)|0);
  16632. $8 = HEAP32[$7>>2]|0;
  16633. $9 = ($8|0)>(0);
  16634. if ($9) {
  16635. $10 = (($2) + 1)|0;
  16636. HEAP32[4562] = $10;
  16637. }
  16638. $11 = HEAP32[4562]|0;
  16639. $12 = (($11) + -1)|0;
  16640. $13 = (((($1) + (($12*144)|0)|0)) + 8|0);
  16641. HEAP32[$13>>2] = $0;
  16642. $14 = (($1) + (($12*144)|0)|0);
  16643. HEAP32[$14>>2] = 0;
  16644. return;
  16645. }
  16646. function _rlDisableTexture() {
  16647. var $0 = 0, $1 = 0, label = 0, sp = 0;
  16648. sp = STACKTOP;
  16649. $0 = HEAP32[4846]|0;
  16650. $1 = ($0|0)>(4095);
  16651. if (!($1)) {
  16652. return;
  16653. }
  16654. _rlglDraw();
  16655. return;
  16656. }
  16657. function _rlDeleteVertexArrays($0) {
  16658. $0 = $0|0;
  16659. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  16660. sp = STACKTOP;
  16661. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  16662. $vararg_buffer = sp;
  16663. $1 = sp + 4|0;
  16664. HEAP32[$1>>2] = $0;
  16665. $2 = HEAP32[4524]|0;
  16666. $3 = ($2|0)==(0);
  16667. if ($3) {
  16668. STACKTOP = sp;return;
  16669. }
  16670. $4 = ($0|0)==(0);
  16671. if (!($4)) {
  16672. $5 = HEAP32[4527]|0;
  16673. FUNCTION_TABLE_vii[$5 & 63](1,$1);
  16674. }
  16675. $6 = HEAP32[$1>>2]|0;
  16676. HEAP32[$vararg_buffer>>2] = $6;
  16677. _TraceLog(0,9245,$vararg_buffer);
  16678. STACKTOP = sp;return;
  16679. }
  16680. function _rlDeleteBuffers($0) {
  16681. $0 = $0|0;
  16682. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  16683. sp = STACKTOP;
  16684. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  16685. $vararg_buffer = sp;
  16686. $1 = sp + 4|0;
  16687. HEAP32[$1>>2] = $0;
  16688. $2 = ($0|0)==(0);
  16689. if ($2) {
  16690. STACKTOP = sp;return;
  16691. }
  16692. _glDeleteBuffers(1,($1|0));
  16693. $3 = HEAP32[4524]|0;
  16694. $4 = ($3|0)==(0);
  16695. if (!($4)) {
  16696. STACKTOP = sp;return;
  16697. }
  16698. $5 = HEAP32[$1>>2]|0;
  16699. HEAP32[$vararg_buffer>>2] = $5;
  16700. _TraceLog(0,9293,$vararg_buffer);
  16701. STACKTOP = sp;return;
  16702. }
  16703. function _rlglLoadMesh($0,$1) {
  16704. $0 = $0|0;
  16705. $1 = $1|0;
  16706. 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;
  16707. 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;
  16708. 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;
  16709. 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;
  16710. var $82 = 0, $83 = 0, $84 = 0, $85 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer3 = 0, label = 0, sp = 0;
  16711. sp = STACKTOP;
  16712. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  16713. $vararg_buffer3 = sp + 16|0;
  16714. $vararg_buffer1 = sp + 8|0;
  16715. $vararg_buffer = sp;
  16716. $2 = sp + 48|0;
  16717. $3 = sp + 20|0;
  16718. $4 = ((($0)) + 36|0);
  16719. $5 = ((($0)) + 40|0);
  16720. $6 = ((($0)) + 44|0);
  16721. $7 = ((($0)) + 48|0);
  16722. $8 = ((($0)) + 52|0);
  16723. $9 = ((($0)) + 56|0);
  16724. $10 = ((($0)) + 60|0);
  16725. $11 = ((($0)) + 64|0);
  16726. $12 = ($1|0)!=(0);
  16727. $$ = $12 ? 35048 : 35044;
  16728. ;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;
  16729. HEAP32[$2>>2] = 0;
  16730. ;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;
  16731. $13 = HEAP32[4524]|0;
  16732. $14 = ($13|0)==(0);
  16733. if (!($14)) {
  16734. $15 = HEAP32[4525]|0;
  16735. FUNCTION_TABLE_vii[$15 & 63](1,$2);
  16736. $16 = HEAP32[4526]|0;
  16737. $17 = HEAP32[$2>>2]|0;
  16738. FUNCTION_TABLE_vi[$16 & 31]($17);
  16739. }
  16740. _glGenBuffers(1,($3|0));
  16741. $18 = HEAP32[$3>>2]|0;
  16742. _glBindBuffer(34962,($18|0));
  16743. $19 = HEAP32[$0>>2]|0;
  16744. $20 = ($19*12)|0;
  16745. $21 = ((($0)) + 8|0);
  16746. $22 = HEAP32[$21>>2]|0;
  16747. _glBufferData(34962,($20|0),($22|0),($$|0));
  16748. _glVertexAttribPointer(0,3,5126,0,0,(0|0));
  16749. _glEnableVertexAttribArray(0);
  16750. $23 = ((($3)) + 4|0);
  16751. _glGenBuffers(1,($23|0));
  16752. $24 = HEAP32[$23>>2]|0;
  16753. _glBindBuffer(34962,($24|0));
  16754. $25 = HEAP32[$0>>2]|0;
  16755. $26 = $25 << 3;
  16756. $27 = ((($0)) + 12|0);
  16757. $28 = HEAP32[$27>>2]|0;
  16758. _glBufferData(34962,($26|0),($28|0),($$|0));
  16759. _glVertexAttribPointer(1,2,5126,0,0,(0|0));
  16760. _glEnableVertexAttribArray(1);
  16761. $29 = ((($0)) + 20|0);
  16762. $30 = HEAP32[$29>>2]|0;
  16763. $31 = ($30|0)==(0|0);
  16764. if ($31) {
  16765. _glVertexAttrib3f(2,1.0,1.0,1.0);
  16766. _glDisableVertexAttribArray(2);
  16767. } else {
  16768. $32 = ((($3)) + 8|0);
  16769. _glGenBuffers(1,($32|0));
  16770. $33 = HEAP32[$32>>2]|0;
  16771. _glBindBuffer(34962,($33|0));
  16772. $34 = HEAP32[$0>>2]|0;
  16773. $35 = ($34*12)|0;
  16774. $36 = HEAP32[$29>>2]|0;
  16775. _glBufferData(34962,($35|0),($36|0),($$|0));
  16776. _glVertexAttribPointer(2,3,5126,0,0,(0|0));
  16777. _glEnableVertexAttribArray(2);
  16778. }
  16779. $37 = ((($0)) + 28|0);
  16780. $38 = HEAP32[$37>>2]|0;
  16781. $39 = ($38|0)==(0|0);
  16782. if ($39) {
  16783. _glVertexAttrib4f(3,1.0,1.0,1.0,1.0);
  16784. _glDisableVertexAttribArray(3);
  16785. } else {
  16786. $40 = ((($3)) + 12|0);
  16787. _glGenBuffers(1,($40|0));
  16788. $41 = HEAP32[$40>>2]|0;
  16789. _glBindBuffer(34962,($41|0));
  16790. $42 = HEAP32[$0>>2]|0;
  16791. $43 = $42 << 2;
  16792. $44 = HEAP32[$37>>2]|0;
  16793. _glBufferData(34962,($43|0),($44|0),($$|0));
  16794. _glVertexAttribPointer(3,4,5121,1,0,(0|0));
  16795. _glEnableVertexAttribArray(3);
  16796. }
  16797. $45 = ((($0)) + 24|0);
  16798. $46 = HEAP32[$45>>2]|0;
  16799. $47 = ($46|0)==(0|0);
  16800. if ($47) {
  16801. _glVertexAttrib3f(4,0.0,0.0,0.0);
  16802. _glDisableVertexAttribArray(4);
  16803. } else {
  16804. $48 = ((($3)) + 16|0);
  16805. _glGenBuffers(1,($48|0));
  16806. $49 = HEAP32[$48>>2]|0;
  16807. _glBindBuffer(34962,($49|0));
  16808. $50 = HEAP32[$0>>2]|0;
  16809. $51 = ($50*12)|0;
  16810. $52 = HEAP32[$45>>2]|0;
  16811. _glBufferData(34962,($51|0),($52|0),($$|0));
  16812. _glVertexAttribPointer(4,3,5126,0,0,(0|0));
  16813. _glEnableVertexAttribArray(4);
  16814. }
  16815. $53 = ((($0)) + 16|0);
  16816. $54 = HEAP32[$53>>2]|0;
  16817. $55 = ($54|0)==(0|0);
  16818. if ($55) {
  16819. _glVertexAttrib2f(5,0.0,0.0);
  16820. _glDisableVertexAttribArray(5);
  16821. } else {
  16822. $56 = ((($3)) + 20|0);
  16823. _glGenBuffers(1,($56|0));
  16824. $57 = HEAP32[$56>>2]|0;
  16825. _glBindBuffer(34962,($57|0));
  16826. $58 = HEAP32[$0>>2]|0;
  16827. $59 = $58 << 3;
  16828. $60 = HEAP32[$53>>2]|0;
  16829. _glBufferData(34962,($59|0),($60|0),($$|0));
  16830. _glVertexAttribPointer(5,2,5126,0,0,(0|0));
  16831. _glEnableVertexAttribArray(5);
  16832. }
  16833. $61 = ((($0)) + 32|0);
  16834. $62 = HEAP32[$61>>2]|0;
  16835. $63 = ($62|0)==(0|0);
  16836. if (!($63)) {
  16837. $64 = ((($3)) + 24|0);
  16838. _glGenBuffers(1,($64|0));
  16839. $65 = HEAP32[$64>>2]|0;
  16840. _glBindBuffer(34963,($65|0));
  16841. $66 = ((($0)) + 4|0);
  16842. $67 = HEAP32[$66>>2]|0;
  16843. $68 = ($67*6)|0;
  16844. $69 = HEAP32[$61>>2]|0;
  16845. _glBufferData(34963,($68|0),($69|0),35044);
  16846. }
  16847. $70 = HEAP32[$3>>2]|0;
  16848. HEAP32[$5>>2] = $70;
  16849. $71 = HEAP32[$23>>2]|0;
  16850. HEAP32[$6>>2] = $71;
  16851. $72 = ((($3)) + 8|0);
  16852. $73 = HEAP32[$72>>2]|0;
  16853. HEAP32[$7>>2] = $73;
  16854. $74 = ((($3)) + 12|0);
  16855. $75 = HEAP32[$74>>2]|0;
  16856. HEAP32[$8>>2] = $75;
  16857. $76 = ((($3)) + 16|0);
  16858. $77 = HEAP32[$76>>2]|0;
  16859. HEAP32[$9>>2] = $77;
  16860. $78 = ((($3)) + 20|0);
  16861. $79 = HEAP32[$78>>2]|0;
  16862. HEAP32[$10>>2] = $79;
  16863. $80 = ((($3)) + 24|0);
  16864. $81 = HEAP32[$80>>2]|0;
  16865. HEAP32[$11>>2] = $81;
  16866. $82 = HEAP32[4524]|0;
  16867. $83 = ($82|0)==(0);
  16868. if ($83) {
  16869. _TraceLog(0,9442,$vararg_buffer3);
  16870. STACKTOP = sp;return;
  16871. }
  16872. $84 = HEAP32[$2>>2]|0;
  16873. $85 = ($84|0)==(0);
  16874. if ($85) {
  16875. _TraceLog(2,9401,$vararg_buffer1);
  16876. STACKTOP = sp;return;
  16877. } else {
  16878. HEAP32[$4>>2] = $84;
  16879. HEAP32[$vararg_buffer>>2] = $84;
  16880. _TraceLog(0,9348,$vararg_buffer);
  16881. STACKTOP = sp;return;
  16882. }
  16883. }
  16884. function _rlglDrawMesh($0,$1,$2) {
  16885. $0 = $0|0;
  16886. $1 = $1|0;
  16887. $2 = $2|0;
  16888. 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;
  16889. 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;
  16890. 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;
  16891. 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;
  16892. 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;
  16893. 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;
  16894. 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;
  16895. 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;
  16896. 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;
  16897. var label = 0, sp = 0, src = 0, stop = 0;
  16898. sp = STACKTOP;
  16899. STACKTOP = STACKTOP + 384|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(384|0);
  16900. $$byval_copy5 = sp + 320|0;
  16901. $modelview$byval_copy4 = sp + 256|0;
  16902. $3 = sp + 192|0;
  16903. $4 = sp + 128|0;
  16904. $5 = sp + 64|0;
  16905. $6 = sp;
  16906. $7 = HEAP32[$1>>2]|0;
  16907. _glUseProgram(($7|0));
  16908. $8 = ((($1)) + 32|0);
  16909. $9 = HEAP32[$8>>2]|0;
  16910. $10 = ((($1)) + 116|0);
  16911. $11 = HEAP8[$10>>0]|0;
  16912. $12 = (+($11&255));
  16913. $13 = $12 / 255.0;
  16914. $14 = ((($1)) + 117|0);
  16915. $15 = HEAP8[$14>>0]|0;
  16916. $16 = (+($15&255));
  16917. $17 = $16 / 255.0;
  16918. $18 = ((($1)) + 118|0);
  16919. $19 = HEAP8[$18>>0]|0;
  16920. $20 = (+($19&255));
  16921. $21 = $20 / 255.0;
  16922. $22 = ((($1)) + 119|0);
  16923. $23 = HEAP8[$22>>0]|0;
  16924. $24 = (+($23&255));
  16925. $25 = $24 / 255.0;
  16926. _glUniform4f(($9|0),(+$13),(+$17),(+$21),(+$25));
  16927. $26 = ((($1)) + 36|0);
  16928. $27 = HEAP32[$26>>2]|0;
  16929. $28 = ($27|0)==(-1);
  16930. if (!($28)) {
  16931. $29 = ((($1)) + 120|0);
  16932. $30 = HEAP8[$29>>0]|0;
  16933. $31 = (+($30&255));
  16934. $32 = $31 / 255.0;
  16935. $33 = ((($1)) + 121|0);
  16936. $34 = HEAP8[$33>>0]|0;
  16937. $35 = (+($34&255));
  16938. $36 = $35 / 255.0;
  16939. $37 = ((($1)) + 122|0);
  16940. $38 = HEAP8[$37>>0]|0;
  16941. $39 = (+($38&255));
  16942. $40 = $39 / 255.0;
  16943. $41 = ((($1)) + 123|0);
  16944. $42 = HEAP8[$41>>0]|0;
  16945. $43 = (+($42&255));
  16946. $44 = $43 / 255.0;
  16947. _glUniform4f(($27|0),(+$32),(+$36),(+$40),(+$44));
  16948. }
  16949. $45 = ((($1)) + 40|0);
  16950. $46 = HEAP32[$45>>2]|0;
  16951. $47 = ($46|0)==(-1);
  16952. if (!($47)) {
  16953. $48 = ((($1)) + 124|0);
  16954. $49 = HEAP8[$48>>0]|0;
  16955. $50 = (+($49&255));
  16956. $51 = $50 / 255.0;
  16957. $52 = ((($1)) + 125|0);
  16958. $53 = HEAP8[$52>>0]|0;
  16959. $54 = (+($53&255));
  16960. $55 = $54 / 255.0;
  16961. $56 = ((($1)) + 126|0);
  16962. $57 = HEAP8[$56>>0]|0;
  16963. $58 = (+($57&255));
  16964. $59 = $58 / 255.0;
  16965. $60 = ((($1)) + 127|0);
  16966. $61 = HEAP8[$60>>0]|0;
  16967. $62 = (+($61&255));
  16968. $63 = $62 / 255.0;
  16969. _glUniform4f(($46|0),(+$51),(+$55),(+$59),(+$63));
  16970. }
  16971. dest=$3; src=18028; 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));
  16972. dest=$4; src=17964; 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));
  16973. 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));
  16974. dest=$$byval_copy5; src=18028; 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));
  16975. _MatrixMultiply($5,$modelview$byval_copy4,$$byval_copy5);
  16976. $64 = HEAP32[$1>>2]|0;
  16977. $65 = HEAP32[4532]|0;
  16978. $66 = ($64|0)==($65|0);
  16979. if (!($66)) {
  16980. $67 = (_glGetUniformLocation(($64|0),(9490|0))|0);
  16981. $68 = ($67|0)==(-1);
  16982. if (!($68)) {
  16983. 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));
  16984. _MatrixTranspose($modelview$byval_copy4);
  16985. _MatrixInvert($modelview$byval_copy4);
  16986. 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));
  16987. $69 = (_MatrixToFloat($$byval_copy5)|0);
  16988. _glUniformMatrix4fv(($67|0),1,0,($69|0));
  16989. }
  16990. $70 = HEAP32[$1>>2]|0;
  16991. $71 = (_glGetUniformLocation(($70|0),(9502|0))|0);
  16992. $72 = ($71|0)==(-1);
  16993. if (!($72)) {
  16994. $73 = ((($3)) + 8|0);
  16995. $74 = +HEAPF32[$73>>2];
  16996. $75 = ((($3)) + 24|0);
  16997. $76 = +HEAPF32[$75>>2];
  16998. $77 = ((($3)) + 40|0);
  16999. $78 = +HEAPF32[$77>>2];
  17000. _glUniform3f(($71|0),(+$74),(+$76),(+$78));
  17001. }
  17002. $79 = (_glGetUniformLocation(($70|0),(9510|0))|0);
  17003. $80 = ($79|0)==(-1);
  17004. if (!($80)) {
  17005. $81 = ((($1)) + 128|0);
  17006. $82 = +HEAPF32[$81>>2];
  17007. _glUniform1f(($79|0),(+$82));
  17008. }
  17009. }
  17010. _glActiveTexture(33984);
  17011. $83 = ((($1)) + 56|0);
  17012. $84 = HEAP32[$83>>2]|0;
  17013. _glBindTexture(3553,($84|0));
  17014. $85 = ((($1)) + 44|0);
  17015. $86 = HEAP32[$85>>2]|0;
  17016. _glUniform1i(($86|0),0);
  17017. $87 = ((($1)) + 76|0);
  17018. $88 = HEAP32[$87>>2]|0;
  17019. $89 = ($88|0)==(0);
  17020. if (!($89)) {
  17021. $90 = ((($1)) + 48|0);
  17022. $91 = HEAP32[$90>>2]|0;
  17023. $92 = ($91|0)==(-1);
  17024. if (!($92)) {
  17025. $93 = HEAP32[$1>>2]|0;
  17026. $94 = (_glGetUniformLocation(($93|0),(9521|0))|0);
  17027. _glUniform1i(($94|0),1);
  17028. _glActiveTexture(33985);
  17029. $95 = HEAP32[$87>>2]|0;
  17030. _glBindTexture(3553,($95|0));
  17031. $96 = HEAP32[$90>>2]|0;
  17032. _glUniform1i(($96|0),1);
  17033. }
  17034. }
  17035. $97 = ((($1)) + 96|0);
  17036. $98 = HEAP32[$97>>2]|0;
  17037. $99 = ($98|0)==(0);
  17038. if (!($99)) {
  17039. $100 = ((($1)) + 52|0);
  17040. $101 = HEAP32[$100>>2]|0;
  17041. $102 = ($101|0)==(-1);
  17042. if (!($102)) {
  17043. $103 = HEAP32[$1>>2]|0;
  17044. $104 = (_glGetUniformLocation(($103|0),(9531|0))|0);
  17045. _glUniform1i(($104|0),1);
  17046. _glActiveTexture(33986);
  17047. $105 = HEAP32[$97>>2]|0;
  17048. _glBindTexture(3553,($105|0));
  17049. $106 = HEAP32[$100>>2]|0;
  17050. _glUniform1i(($106|0),2);
  17051. }
  17052. }
  17053. $107 = HEAP32[4524]|0;
  17054. $108 = ($107|0)==(0);
  17055. if ($108) {
  17056. $112 = ((($0)) + 40|0);
  17057. $113 = HEAP32[$112>>2]|0;
  17058. _glBindBuffer(34962,($113|0));
  17059. $114 = ((($1)) + 4|0);
  17060. $115 = HEAP32[$114>>2]|0;
  17061. _glVertexAttribPointer(($115|0),3,5126,0,0,(0|0));
  17062. _glEnableVertexAttribArray(($115|0));
  17063. $116 = ((($0)) + 44|0);
  17064. $117 = HEAP32[$116>>2]|0;
  17065. _glBindBuffer(34962,($117|0));
  17066. $118 = ((($1)) + 8|0);
  17067. $119 = HEAP32[$118>>2]|0;
  17068. _glVertexAttribPointer(($119|0),2,5126,0,0,(0|0));
  17069. _glEnableVertexAttribArray(($119|0));
  17070. $120 = ((($1)) + 16|0);
  17071. $121 = HEAP32[$120>>2]|0;
  17072. $122 = ($121|0)==(-1);
  17073. if (!($122)) {
  17074. $123 = ((($0)) + 48|0);
  17075. $124 = HEAP32[$123>>2]|0;
  17076. _glBindBuffer(34962,($124|0));
  17077. $125 = HEAP32[$120>>2]|0;
  17078. _glVertexAttribPointer(($125|0),3,5126,0,0,(0|0));
  17079. $126 = HEAP32[$120>>2]|0;
  17080. _glEnableVertexAttribArray(($126|0));
  17081. }
  17082. $127 = ((($1)) + 24|0);
  17083. $128 = HEAP32[$127>>2]|0;
  17084. $129 = ($128|0)==(-1);
  17085. do {
  17086. if (!($129)) {
  17087. $130 = ((($0)) + 52|0);
  17088. $131 = HEAP32[$130>>2]|0;
  17089. $132 = ($131|0)==(0);
  17090. if ($132) {
  17091. _glVertexAttrib4f(($128|0),1.0,1.0,1.0,1.0);
  17092. $135 = HEAP32[$127>>2]|0;
  17093. _glDisableVertexAttribArray(($135|0));
  17094. break;
  17095. } else {
  17096. _glBindBuffer(34962,($131|0));
  17097. $133 = HEAP32[$127>>2]|0;
  17098. _glVertexAttribPointer(($133|0),4,5121,1,0,(0|0));
  17099. $134 = HEAP32[$127>>2]|0;
  17100. _glEnableVertexAttribArray(($134|0));
  17101. break;
  17102. }
  17103. }
  17104. } while(0);
  17105. $136 = ((($1)) + 20|0);
  17106. $137 = HEAP32[$136>>2]|0;
  17107. $138 = ($137|0)==(-1);
  17108. if (!($138)) {
  17109. $139 = ((($0)) + 56|0);
  17110. $140 = HEAP32[$139>>2]|0;
  17111. _glBindBuffer(34962,($140|0));
  17112. $141 = HEAP32[$136>>2]|0;
  17113. _glVertexAttribPointer(($141|0),3,5126,0,0,(0|0));
  17114. $142 = HEAP32[$136>>2]|0;
  17115. _glEnableVertexAttribArray(($142|0));
  17116. }
  17117. $143 = ((($1)) + 12|0);
  17118. $144 = HEAP32[$143>>2]|0;
  17119. $145 = ($144|0)==(-1);
  17120. if (!($145)) {
  17121. $146 = ((($0)) + 60|0);
  17122. $147 = HEAP32[$146>>2]|0;
  17123. _glBindBuffer(34962,($147|0));
  17124. $148 = HEAP32[$143>>2]|0;
  17125. _glVertexAttribPointer(($148|0),2,5126,0,0,(0|0));
  17126. $149 = HEAP32[$143>>2]|0;
  17127. _glEnableVertexAttribArray(($149|0));
  17128. }
  17129. $150 = ((($0)) + 32|0);
  17130. $151 = HEAP32[$150>>2]|0;
  17131. $152 = ($151|0)==(0|0);
  17132. if (!($152)) {
  17133. $153 = HEAP32[(19428)>>2]|0;
  17134. _glBindBuffer(34963,($153|0));
  17135. }
  17136. } else {
  17137. $109 = HEAP32[4526]|0;
  17138. $110 = ((($0)) + 36|0);
  17139. $111 = HEAP32[$110>>2]|0;
  17140. FUNCTION_TABLE_vi[$109 & 31]($111);
  17141. }
  17142. $154 = HEAP32[4909]|0;
  17143. $155 = ($154|0)!=(0);
  17144. $$ = $155 ? 2 : 1;
  17145. $156 = ((($1)) + 28|0);
  17146. $157 = ((($0)) + 32|0);
  17147. $158 = HEAP32[$0>>2]|0;
  17148. $159 = ((($0)) + 4|0);
  17149. $$020 = 0;
  17150. while(1) {
  17151. if ($155) {
  17152. 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));
  17153. 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));
  17154. _SetStereoView($$020,$modelview$byval_copy4,$$byval_copy5);
  17155. } else {
  17156. dest=18028; 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));
  17157. }
  17158. dest=$modelview$byval_copy4; src=18028; 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));
  17159. dest=$$byval_copy5; src=17964; 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));
  17160. _MatrixMultiply($6,$modelview$byval_copy4,$$byval_copy5);
  17161. $162 = HEAP32[$156>>2]|0;
  17162. 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));
  17163. $163 = (_MatrixToFloat($$byval_copy5)|0);
  17164. _glUniformMatrix4fv(($162|0),1,0,($163|0));
  17165. $164 = HEAP32[$157>>2]|0;
  17166. $165 = ($164|0)==(0|0);
  17167. if ($165) {
  17168. _glDrawArrays(4,0,($158|0));
  17169. } else {
  17170. $166 = HEAP32[$159>>2]|0;
  17171. $167 = ($166*3)|0;
  17172. _glDrawElements(4,($167|0),5123,(0|0));
  17173. }
  17174. $168 = (($$020) + 1)|0;
  17175. $169 = ($168|0)<($$|0);
  17176. if ($169) {
  17177. $$020 = $168;
  17178. } else {
  17179. break;
  17180. }
  17181. }
  17182. $160 = HEAP32[$87>>2]|0;
  17183. $161 = ($160|0)==(0);
  17184. if (!($161)) {
  17185. _glActiveTexture(33985);
  17186. _glBindTexture(3553,0);
  17187. }
  17188. $170 = HEAP32[$97>>2]|0;
  17189. $171 = ($170|0)==(0);
  17190. if (!($171)) {
  17191. _glActiveTexture(33986);
  17192. _glBindTexture(3553,0);
  17193. }
  17194. _glActiveTexture(33984);
  17195. _glBindTexture(3553,0);
  17196. $172 = HEAP32[4524]|0;
  17197. $173 = ($172|0)==(0);
  17198. if (!($173)) {
  17199. $174 = HEAP32[4526]|0;
  17200. FUNCTION_TABLE_vi[$174 & 31](0);
  17201. _glUseProgram(0);
  17202. dest=17964; 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));
  17203. dest=18028; 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));
  17204. STACKTOP = sp;return;
  17205. }
  17206. _glBindBuffer(34962,0);
  17207. $175 = ((($0)) + 32|0);
  17208. $176 = HEAP32[$175>>2]|0;
  17209. $177 = ($176|0)==(0|0);
  17210. if ($177) {
  17211. _glUseProgram(0);
  17212. dest=17964; 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));
  17213. dest=18028; 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));
  17214. STACKTOP = sp;return;
  17215. }
  17216. _glBindBuffer(34963,0);
  17217. _glUseProgram(0);
  17218. dest=17964; 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));
  17219. dest=18028; 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));
  17220. STACKTOP = sp;return;
  17221. }
  17222. function _rlglUnloadMesh($0) {
  17223. $0 = $0|0;
  17224. 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;
  17225. 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;
  17226. sp = STACKTOP;
  17227. $1 = ((($0)) + 8|0);
  17228. $2 = HEAP32[$1>>2]|0;
  17229. $3 = ($2|0)==(0|0);
  17230. if (!($3)) {
  17231. _free($2);
  17232. }
  17233. $4 = ((($0)) + 12|0);
  17234. $5 = HEAP32[$4>>2]|0;
  17235. $6 = ($5|0)==(0|0);
  17236. if (!($6)) {
  17237. _free($5);
  17238. }
  17239. $7 = ((($0)) + 20|0);
  17240. $8 = HEAP32[$7>>2]|0;
  17241. $9 = ($8|0)==(0|0);
  17242. if (!($9)) {
  17243. _free($8);
  17244. }
  17245. $10 = ((($0)) + 28|0);
  17246. $11 = HEAP32[$10>>2]|0;
  17247. $12 = ($11|0)==(0|0);
  17248. if (!($12)) {
  17249. _free($11);
  17250. }
  17251. $13 = ((($0)) + 24|0);
  17252. $14 = HEAP32[$13>>2]|0;
  17253. $15 = ($14|0)==(0|0);
  17254. if (!($15)) {
  17255. _free($14);
  17256. }
  17257. $16 = ((($0)) + 16|0);
  17258. $17 = HEAP32[$16>>2]|0;
  17259. $18 = ($17|0)==(0|0);
  17260. if (!($18)) {
  17261. _free($17);
  17262. }
  17263. $19 = ((($0)) + 32|0);
  17264. $20 = HEAP32[$19>>2]|0;
  17265. $21 = ($20|0)==(0|0);
  17266. if (!($21)) {
  17267. _free($20);
  17268. }
  17269. $22 = ((($0)) + 40|0);
  17270. $23 = HEAP32[$22>>2]|0;
  17271. _rlDeleteBuffers($23);
  17272. $24 = ((($0)) + 44|0);
  17273. $25 = HEAP32[$24>>2]|0;
  17274. _rlDeleteBuffers($25);
  17275. $26 = ((($0)) + 48|0);
  17276. $27 = HEAP32[$26>>2]|0;
  17277. _rlDeleteBuffers($27);
  17278. $28 = ((($0)) + 52|0);
  17279. $29 = HEAP32[$28>>2]|0;
  17280. _rlDeleteBuffers($29);
  17281. $30 = ((($0)) + 56|0);
  17282. $31 = HEAP32[$30>>2]|0;
  17283. _rlDeleteBuffers($31);
  17284. $32 = ((($0)) + 60|0);
  17285. $33 = HEAP32[$32>>2]|0;
  17286. _rlDeleteBuffers($33);
  17287. $34 = ((($0)) + 64|0);
  17288. $35 = HEAP32[$34>>2]|0;
  17289. _rlDeleteBuffers($35);
  17290. $36 = ((($0)) + 36|0);
  17291. $37 = HEAP32[$36>>2]|0;
  17292. _rlDeleteVertexArrays($37);
  17293. return;
  17294. }
  17295. function _GetDefaultTexture($0) {
  17296. $0 = $0|0;
  17297. 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;
  17298. sp = STACKTOP;
  17299. $1 = HEAP32[4531]|0;
  17300. HEAP32[$0>>2] = $1;
  17301. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  17302. HEAP32[$$sroa$4$0$$sroa_idx2>>2] = 1;
  17303. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  17304. HEAP32[$$sroa$5$0$$sroa_idx4>>2] = 1;
  17305. $$sroa$6$0$$sroa_idx6 = ((($0)) + 12|0);
  17306. HEAP32[$$sroa$6$0$$sroa_idx6>>2] = 1;
  17307. $$sroa$7$0$$sroa_idx8 = ((($0)) + 16|0);
  17308. HEAP32[$$sroa$7$0$$sroa_idx8>>2] = 7;
  17309. return;
  17310. }
  17311. function _GetDefaultShader($0) {
  17312. $0 = $0|0;
  17313. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  17314. sp = STACKTOP;
  17315. dest=$0; src=18128; 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));
  17316. return;
  17317. }
  17318. function _DrawRectangle($0,$1,$2,$3,$4) {
  17319. $0 = $0|0;
  17320. $1 = $1|0;
  17321. $2 = $2|0;
  17322. $3 = $3|0;
  17323. $4 = $4|0;
  17324. 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;
  17325. sp = STACKTOP;
  17326. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  17327. $$byval_copy2 = sp + 32|0;
  17328. $$byval_copy1 = sp + 24|0;
  17329. $$byval_copy = sp + 16|0;
  17330. $5 = sp + 8|0;
  17331. $6 = sp;
  17332. $7 = (+($0|0));
  17333. HEAPF32[$5>>2] = $7;
  17334. $8 = ((($5)) + 4|0);
  17335. $9 = (+($1|0));
  17336. HEAPF32[$8>>2] = $9;
  17337. $10 = (+($2|0));
  17338. HEAPF32[$6>>2] = $10;
  17339. $11 = ((($6)) + 4|0);
  17340. $12 = (+($3|0));
  17341. HEAPF32[$11>>2] = $12;
  17342. ;HEAP32[$$byval_copy>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[$5+4>>2]|0;
  17343. ;HEAP32[$$byval_copy1>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$6+4>>2]|0;
  17344. ;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;
  17345. _DrawRectangleV($$byval_copy,$$byval_copy1,$$byval_copy2);
  17346. STACKTOP = sp;return;
  17347. }
  17348. function _DrawRectangleV($0,$1,$2) {
  17349. $0 = $0|0;
  17350. $1 = $1|0;
  17351. $2 = $2|0;
  17352. 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;
  17353. 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;
  17354. 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;
  17355. 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;
  17356. sp = STACKTOP;
  17357. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  17358. $3 = sp;
  17359. $4 = (_rlGetVersion()|0);
  17360. $5 = ($4|0)==(1);
  17361. if ($5) {
  17362. _rlBegin(4);
  17363. $6 = HEAP8[$2>>0]|0;
  17364. $7 = ((($2)) + 1|0);
  17365. $8 = HEAP8[$7>>0]|0;
  17366. $9 = ((($2)) + 2|0);
  17367. $10 = HEAP8[$9>>0]|0;
  17368. $11 = ((($2)) + 3|0);
  17369. $12 = HEAP8[$11>>0]|0;
  17370. _rlColor4ub($6,$8,$10,$12);
  17371. $13 = +HEAPF32[$0>>2];
  17372. $14 = (~~(($13)));
  17373. $15 = ((($0)) + 4|0);
  17374. $16 = +HEAPF32[$15>>2];
  17375. $17 = (~~(($16)));
  17376. _rlVertex2i($14,$17);
  17377. $18 = ((($1)) + 4|0);
  17378. $19 = +HEAPF32[$18>>2];
  17379. $20 = $16 + $19;
  17380. $21 = (~~(($20)));
  17381. _rlVertex2i($14,$21);
  17382. $22 = +HEAPF32[$0>>2];
  17383. $23 = +HEAPF32[$1>>2];
  17384. $24 = $22 + $23;
  17385. $25 = (~~(($24)));
  17386. $26 = +HEAPF32[$15>>2];
  17387. $27 = +HEAPF32[$18>>2];
  17388. $28 = $26 + $27;
  17389. $29 = (~~(($28)));
  17390. _rlVertex2i($25,$29);
  17391. $30 = +HEAPF32[$0>>2];
  17392. $31 = (~~(($30)));
  17393. $32 = +HEAPF32[$15>>2];
  17394. $33 = (~~(($32)));
  17395. _rlVertex2i($31,$33);
  17396. $34 = +HEAPF32[$1>>2];
  17397. $35 = $30 + $34;
  17398. $36 = (~~(($35)));
  17399. $37 = +HEAPF32[$18>>2];
  17400. $38 = $32 + $37;
  17401. $39 = (~~(($38)));
  17402. _rlVertex2i($36,$39);
  17403. $40 = +HEAPF32[$0>>2];
  17404. $41 = +HEAPF32[$1>>2];
  17405. $42 = $40 + $41;
  17406. $43 = (~~(($42)));
  17407. $44 = +HEAPF32[$15>>2];
  17408. $45 = (~~(($44)));
  17409. _rlVertex2i($43,$45);
  17410. _rlEnd();
  17411. STACKTOP = sp;return;
  17412. }
  17413. $46 = (_rlGetVersion()|0);
  17414. $47 = ($46|0)==(2);
  17415. if (!($47)) {
  17416. $48 = (_rlGetVersion()|0);
  17417. $49 = ($48|0)==(3);
  17418. if (!($49)) {
  17419. $50 = (_rlGetVersion()|0);
  17420. $51 = ($50|0)==(4);
  17421. if (!($51)) {
  17422. STACKTOP = sp;return;
  17423. }
  17424. }
  17425. }
  17426. _GetDefaultTexture($3);
  17427. $52 = HEAP32[$3>>2]|0;
  17428. _rlEnableTexture($52);
  17429. _rlBegin(7);
  17430. $53 = HEAP8[$2>>0]|0;
  17431. $54 = ((($2)) + 1|0);
  17432. $55 = HEAP8[$54>>0]|0;
  17433. $56 = ((($2)) + 2|0);
  17434. $57 = HEAP8[$56>>0]|0;
  17435. $58 = ((($2)) + 3|0);
  17436. $59 = HEAP8[$58>>0]|0;
  17437. _rlColor4ub($53,$55,$57,$59);
  17438. _rlTexCoord2f(0.0,0.0);
  17439. $60 = +HEAPF32[$0>>2];
  17440. $61 = ((($0)) + 4|0);
  17441. $62 = +HEAPF32[$61>>2];
  17442. _rlVertex2f($60,$62);
  17443. _rlTexCoord2f(0.0,1.0);
  17444. $63 = ((($1)) + 4|0);
  17445. $64 = +HEAPF32[$63>>2];
  17446. $65 = $62 + $64;
  17447. _rlVertex2f($60,$65);
  17448. _rlTexCoord2f(1.0,1.0);
  17449. $66 = +HEAPF32[$0>>2];
  17450. $67 = +HEAPF32[$1>>2];
  17451. $68 = $66 + $67;
  17452. $69 = +HEAPF32[$61>>2];
  17453. $70 = +HEAPF32[$63>>2];
  17454. $71 = $69 + $70;
  17455. _rlVertex2f($68,$71);
  17456. _rlTexCoord2f(1.0,0.0);
  17457. $72 = +HEAPF32[$0>>2];
  17458. $73 = +HEAPF32[$1>>2];
  17459. $74 = $72 + $73;
  17460. $75 = +HEAPF32[$61>>2];
  17461. _rlVertex2f($74,$75);
  17462. _rlEnd();
  17463. _rlDisableTexture();
  17464. STACKTOP = sp;return;
  17465. }
  17466. function _DrawRectangleLines($0,$1,$2,$3,$4) {
  17467. $0 = $0|0;
  17468. $1 = $1|0;
  17469. $2 = $2|0;
  17470. $3 = $3|0;
  17471. $4 = $4|0;
  17472. var $$byval_copy3 = 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;
  17473. var $29 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17474. sp = STACKTOP;
  17475. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  17476. $$byval_copy3 = sp;
  17477. $5 = (_rlGetVersion()|0);
  17478. $6 = ($5|0)==(1);
  17479. if ($6) {
  17480. _rlBegin(1);
  17481. $7 = HEAP8[$4>>0]|0;
  17482. $8 = ((($4)) + 1|0);
  17483. $9 = HEAP8[$8>>0]|0;
  17484. $10 = ((($4)) + 2|0);
  17485. $11 = HEAP8[$10>>0]|0;
  17486. $12 = ((($4)) + 3|0);
  17487. $13 = HEAP8[$12>>0]|0;
  17488. _rlColor4ub($7,$9,$11,$13);
  17489. $14 = (($0) + 1)|0;
  17490. $15 = (($1) + 1)|0;
  17491. _rlVertex2i($14,$15);
  17492. $16 = (($2) + ($0))|0;
  17493. _rlVertex2i($16,$15);
  17494. _rlVertex2i($16,$15);
  17495. $17 = (($3) + ($1))|0;
  17496. _rlVertex2i($16,$17);
  17497. _rlVertex2i($16,$17);
  17498. _rlVertex2i($14,$17);
  17499. _rlVertex2i($14,$17);
  17500. _rlVertex2i($14,$15);
  17501. _rlEnd();
  17502. STACKTOP = sp;return;
  17503. }
  17504. $18 = (_rlGetVersion()|0);
  17505. $19 = ($18|0)==(2);
  17506. if (!($19)) {
  17507. $20 = (_rlGetVersion()|0);
  17508. $21 = ($20|0)==(3);
  17509. if (!($21)) {
  17510. $22 = (_rlGetVersion()|0);
  17511. $23 = ($22|0)==(4);
  17512. if (!($23)) {
  17513. STACKTOP = sp;return;
  17514. }
  17515. }
  17516. }
  17517. ;HEAP8[$$byval_copy3>>0]=HEAP8[$4>>0]|0;HEAP8[$$byval_copy3+1>>0]=HEAP8[$4+1>>0]|0;HEAP8[$$byval_copy3+2>>0]=HEAP8[$4+2>>0]|0;HEAP8[$$byval_copy3+3>>0]=HEAP8[$4+3>>0]|0;
  17518. _DrawRectangle($0,$1,$2,1,$$byval_copy3);
  17519. $24 = (($0) + -1)|0;
  17520. $25 = (($24) + ($2))|0;
  17521. $26 = (($1) + 1)|0;
  17522. $27 = (($3) + -2)|0;
  17523. ;HEAP8[$$byval_copy3>>0]=HEAP8[$4>>0]|0;HEAP8[$$byval_copy3+1>>0]=HEAP8[$4+1>>0]|0;HEAP8[$$byval_copy3+2>>0]=HEAP8[$4+2>>0]|0;HEAP8[$$byval_copy3+3>>0]=HEAP8[$4+3>>0]|0;
  17524. _DrawRectangle($25,$26,1,$27,$$byval_copy3);
  17525. $28 = (($1) + -1)|0;
  17526. $29 = (($28) + ($3))|0;
  17527. ;HEAP8[$$byval_copy3>>0]=HEAP8[$4>>0]|0;HEAP8[$$byval_copy3+1>>0]=HEAP8[$4+1>>0]|0;HEAP8[$$byval_copy3+2>>0]=HEAP8[$4+2>>0]|0;HEAP8[$$byval_copy3+3>>0]=HEAP8[$4+3>>0]|0;
  17528. _DrawRectangle($0,$29,$2,1,$$byval_copy3);
  17529. ;HEAP8[$$byval_copy3>>0]=HEAP8[$4>>0]|0;HEAP8[$$byval_copy3+1>>0]=HEAP8[$4+1>>0]|0;HEAP8[$$byval_copy3+2>>0]=HEAP8[$4+2>>0]|0;HEAP8[$$byval_copy3+3>>0]=HEAP8[$4+3>>0]|0;
  17530. _DrawRectangle($0,$26,1,$27,$$byval_copy3);
  17531. STACKTOP = sp;return;
  17532. }
  17533. function _stbi__err($0) {
  17534. $0 = $0|0;
  17535. var label = 0, sp = 0;
  17536. sp = STACKTOP;
  17537. HEAP32[5002] = $0;
  17538. return;
  17539. }
  17540. function _stbi_load_from_file($0,$1,$2,$3,$4) {
  17541. $0 = $0|0;
  17542. $1 = $1|0;
  17543. $2 = $2|0;
  17544. $3 = $3|0;
  17545. $4 = $4|0;
  17546. var $10 = 0, $11 = 0, $12 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17547. sp = STACKTOP;
  17548. STACKTOP = STACKTOP + 192|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(192|0);
  17549. $5 = sp;
  17550. _stbi__start_file($5,$0);
  17551. $6 = (_stbi__load_and_postprocess_8bit($5,$1,$2,$3,$4)|0);
  17552. $7 = ($6|0)==(0|0);
  17553. if ($7) {
  17554. STACKTOP = sp;return ($6|0);
  17555. }
  17556. $8 = ((($5)) + 172|0);
  17557. $9 = HEAP32[$8>>2]|0;
  17558. $10 = ((($5)) + 168|0);
  17559. $11 = HEAP32[$10>>2]|0;
  17560. $12 = (($11) - ($9))|0;
  17561. (_fseek($0,$12,1)|0);
  17562. STACKTOP = sp;return ($6|0);
  17563. }
  17564. function _stbi__start_file($0,$1) {
  17565. $0 = $0|0;
  17566. $1 = $1|0;
  17567. var label = 0, sp = 0;
  17568. sp = STACKTOP;
  17569. _stbi__start_callbacks($0,3184,$1);
  17570. return;
  17571. }
  17572. function _stbi__load_and_postprocess_8bit($0,$1,$2,$3,$4) {
  17573. $0 = $0|0;
  17574. $1 = $1|0;
  17575. $2 = $2|0;
  17576. $3 = $3|0;
  17577. $4 = $4|0;
  17578. 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;
  17579. 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;
  17580. var $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $exitcond79 = 0, $exitcond80 = 0, label = 0, sp = 0;
  17581. sp = STACKTOP;
  17582. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  17583. $5 = sp;
  17584. $6 = (_stbi__load_main($0,$1,$2,$3,$4,$5)|0);
  17585. $7 = ($6|0)==(0|0);
  17586. if ($7) {
  17587. $$0 = 0;
  17588. STACKTOP = sp;return ($$0|0);
  17589. }
  17590. $8 = HEAP32[$5>>2]|0;
  17591. switch ($8|0) {
  17592. case 8: {
  17593. $$070 = $6;
  17594. break;
  17595. }
  17596. case 16: {
  17597. label = 4;
  17598. break;
  17599. }
  17600. default: {
  17601. ___assert_fail((9543|0),(9569|0),1041,(9592|0));
  17602. // unreachable;
  17603. }
  17604. }
  17605. if ((label|0) == 4) {
  17606. $9 = HEAP32[$1>>2]|0;
  17607. $10 = HEAP32[$2>>2]|0;
  17608. $11 = ($4|0)==(0);
  17609. if ($11) {
  17610. $12 = HEAP32[$3>>2]|0;
  17611. $13 = $12;
  17612. } else {
  17613. $13 = $4;
  17614. }
  17615. $14 = (_stbi__convert_16_to_8($6,$9,$10,$13)|0);
  17616. HEAP32[$5>>2] = 8;
  17617. $$070 = $14;
  17618. }
  17619. $15 = HEAP32[5003]|0;
  17620. $16 = ($15|0)==(0);
  17621. if ($16) {
  17622. $$0 = $$070;
  17623. STACKTOP = sp;return ($$0|0);
  17624. }
  17625. $17 = HEAP32[$1>>2]|0;
  17626. $18 = HEAP32[$2>>2]|0;
  17627. $19 = ($4|0)==(0);
  17628. if ($19) {
  17629. $20 = HEAP32[$3>>2]|0;
  17630. $25 = $20;
  17631. } else {
  17632. $25 = $4;
  17633. }
  17634. $21 = $18 >> 1;
  17635. $22 = ($21|0)>(0);
  17636. if (!($22)) {
  17637. $$0 = $$070;
  17638. STACKTOP = sp;return ($$0|0);
  17639. }
  17640. $23 = ($17|0)>(0);
  17641. $24 = ($25|0)>(0);
  17642. $26 = (($18) + -1)|0;
  17643. $$07378 = 0;
  17644. while(1) {
  17645. if ($23) {
  17646. $27 = Math_imul($$07378, $17)|0;
  17647. $28 = (($26) - ($$07378))|0;
  17648. $29 = Math_imul($28, $17)|0;
  17649. $$07276 = 0;
  17650. while(1) {
  17651. if ($24) {
  17652. $30 = (($$07276) + ($27))|0;
  17653. $31 = Math_imul($30, $25)|0;
  17654. $32 = (($$07276) + ($29))|0;
  17655. $33 = Math_imul($32, $25)|0;
  17656. $$07175 = 0;
  17657. while(1) {
  17658. $34 = (($$07175) + ($31))|0;
  17659. $35 = (($$070) + ($34)|0);
  17660. $36 = HEAP8[$35>>0]|0;
  17661. $37 = (($$07175) + ($33))|0;
  17662. $38 = (($$070) + ($37)|0);
  17663. $39 = HEAP8[$38>>0]|0;
  17664. HEAP8[$35>>0] = $39;
  17665. HEAP8[$38>>0] = $36;
  17666. $40 = (($$07175) + 1)|0;
  17667. $exitcond = ($40|0)==($25|0);
  17668. if ($exitcond) {
  17669. break;
  17670. } else {
  17671. $$07175 = $40;
  17672. }
  17673. }
  17674. }
  17675. $41 = (($$07276) + 1)|0;
  17676. $exitcond79 = ($41|0)==($17|0);
  17677. if ($exitcond79) {
  17678. break;
  17679. } else {
  17680. $$07276 = $41;
  17681. }
  17682. }
  17683. }
  17684. $42 = (($$07378) + 1)|0;
  17685. $exitcond80 = ($42|0)==($21|0);
  17686. if ($exitcond80) {
  17687. $$0 = $$070;
  17688. break;
  17689. } else {
  17690. $$07378 = $42;
  17691. }
  17692. }
  17693. STACKTOP = sp;return ($$0|0);
  17694. }
  17695. function _stbi__load_main($0,$1,$2,$3,$4,$5) {
  17696. $0 = $0|0;
  17697. $1 = $1|0;
  17698. $2 = $2|0;
  17699. $3 = $3|0;
  17700. $4 = $4|0;
  17701. $5 = $5|0;
  17702. var $$0 = 0, $10 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17703. sp = STACKTOP;
  17704. HEAP32[$5>>2] = 8;
  17705. $6 = ((($5)) + 8|0);
  17706. HEAP32[$6>>2] = 0;
  17707. $7 = ((($5)) + 4|0);
  17708. HEAP32[$7>>2] = 0;
  17709. $8 = (_stbi__png_test($0)|0);
  17710. $9 = ($8|0)==(0);
  17711. if ($9) {
  17712. _stbi__err(9633);
  17713. $$0 = 0;
  17714. return ($$0|0);
  17715. } else {
  17716. $10 = (_stbi__png_load($0,$1,$2,$3,$4,$5)|0);
  17717. $$0 = $10;
  17718. return ($$0|0);
  17719. }
  17720. return (0)|0;
  17721. }
  17722. function _stbi__convert_16_to_8($0,$1,$2,$3) {
  17723. $0 = $0|0;
  17724. $1 = $1|0;
  17725. $2 = $2|0;
  17726. $3 = $3|0;
  17727. 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;
  17728. sp = STACKTOP;
  17729. $4 = Math_imul($2, $1)|0;
  17730. $5 = Math_imul($4, $3)|0;
  17731. $6 = (_stbi__malloc($5)|0);
  17732. $7 = ($6|0)==(0|0);
  17733. if ($7) {
  17734. _stbi__err(9624);
  17735. $$0 = 0;
  17736. return ($$0|0);
  17737. }
  17738. $8 = ($5|0)>(0);
  17739. if ($8) {
  17740. $$01819 = 0;
  17741. while(1) {
  17742. $9 = (($0) + ($$01819<<1)|0);
  17743. $10 = HEAP16[$9>>1]|0;
  17744. $11 = ($10&65535) >>> 8;
  17745. $12 = $11&255;
  17746. $13 = (($6) + ($$01819)|0);
  17747. HEAP8[$13>>0] = $12;
  17748. $14 = (($$01819) + 1)|0;
  17749. $exitcond = ($14|0)==($5|0);
  17750. if ($exitcond) {
  17751. break;
  17752. } else {
  17753. $$01819 = $14;
  17754. }
  17755. }
  17756. }
  17757. _free($0);
  17758. $$0 = $6;
  17759. return ($$0|0);
  17760. }
  17761. function _stbi__malloc($0) {
  17762. $0 = $0|0;
  17763. var $1 = 0, label = 0, sp = 0;
  17764. sp = STACKTOP;
  17765. $1 = (_malloc($0)|0);
  17766. return ($1|0);
  17767. }
  17768. function _stbi__png_test($0) {
  17769. $0 = $0|0;
  17770. var $1 = 0, label = 0, sp = 0;
  17771. sp = STACKTOP;
  17772. $1 = (_stbi__check_png_header($0)|0);
  17773. _stbi__rewind($0);
  17774. return ($1|0);
  17775. }
  17776. function _stbi__png_load($0,$1,$2,$3,$4,$5) {
  17777. $0 = $0|0;
  17778. $1 = $1|0;
  17779. $2 = $2|0;
  17780. $3 = $3|0;
  17781. $4 = $4|0;
  17782. $5 = $5|0;
  17783. var $6 = 0, $7 = 0, label = 0, sp = 0;
  17784. sp = STACKTOP;
  17785. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  17786. $6 = sp;
  17787. HEAP32[$6>>2] = $0;
  17788. $7 = (_stbi__do_png($6,$1,$2,$3,$4,$5)|0);
  17789. STACKTOP = sp;return ($7|0);
  17790. }
  17791. function _stbi__do_png($0,$1,$2,$3,$4,$5) {
  17792. $0 = $0|0;
  17793. $1 = $1|0;
  17794. $2 = $2|0;
  17795. $3 = $3|0;
  17796. $4 = $4|0;
  17797. $5 = $5|0;
  17798. 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;
  17799. 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;
  17800. var $9 = 0, label = 0, sp = 0;
  17801. sp = STACKTOP;
  17802. $6 = ($4>>>0)>(4);
  17803. if ($6) {
  17804. _stbi__err(9652);
  17805. $$045 = 0;
  17806. return ($$045|0);
  17807. }
  17808. $7 = (_stbi__parse_png_file($0,0,$4)|0);
  17809. $8 = ($7|0)==(0);
  17810. if ($8) {
  17811. $$2 = 0;
  17812. } else {
  17813. $9 = ((($0)) + 16|0);
  17814. $10 = HEAP32[$9>>2]|0;
  17815. $11 = ($10|0)>(8);
  17816. $$ = $11 ? $10 : 8;
  17817. HEAP32[$5>>2] = $$;
  17818. $12 = ((($0)) + 12|0);
  17819. $13 = HEAP32[$12>>2]|0;
  17820. HEAP32[$12>>2] = 0;
  17821. $14 = ($4|0)==(0);
  17822. if ($14) {
  17823. $$1 = $13;
  17824. } else {
  17825. $15 = HEAP32[$0>>2]|0;
  17826. $16 = ((($15)) + 12|0);
  17827. $17 = HEAP32[$16>>2]|0;
  17828. $18 = ($17|0)==($4|0);
  17829. if ($18) {
  17830. $$1 = $13;
  17831. } else {
  17832. $19 = HEAP32[$5>>2]|0;
  17833. $20 = ($19|0)==(8);
  17834. $21 = ((($15)) + 4|0);
  17835. $22 = HEAP32[$21>>2]|0;
  17836. $23 = HEAP32[$15>>2]|0;
  17837. if ($20) {
  17838. $24 = (_stbi__convert_format($13,$17,$4,$23,$22)|0);
  17839. $$0 = $24;
  17840. } else {
  17841. $25 = (_stbi__convert_format16($13,$17,$4,$23,$22)|0);
  17842. $$0 = $25;
  17843. }
  17844. $26 = HEAP32[$0>>2]|0;
  17845. $27 = ((($26)) + 12|0);
  17846. HEAP32[$27>>2] = $4;
  17847. $28 = ($$0|0)==(0|0);
  17848. if ($28) {
  17849. $$045 = 0;
  17850. return ($$045|0);
  17851. } else {
  17852. $$1 = $$0;
  17853. }
  17854. }
  17855. }
  17856. $29 = HEAP32[$0>>2]|0;
  17857. $30 = HEAP32[$29>>2]|0;
  17858. HEAP32[$1>>2] = $30;
  17859. $31 = ((($29)) + 4|0);
  17860. $32 = HEAP32[$31>>2]|0;
  17861. HEAP32[$2>>2] = $32;
  17862. $33 = ($3|0)==(0|0);
  17863. if ($33) {
  17864. $$2 = $$1;
  17865. } else {
  17866. $34 = ((($29)) + 8|0);
  17867. $35 = HEAP32[$34>>2]|0;
  17868. HEAP32[$3>>2] = $35;
  17869. $$2 = $$1;
  17870. }
  17871. }
  17872. $36 = ((($0)) + 12|0);
  17873. $37 = HEAP32[$36>>2]|0;
  17874. _free($37);
  17875. HEAP32[$36>>2] = 0;
  17876. $38 = ((($0)) + 8|0);
  17877. $39 = HEAP32[$38>>2]|0;
  17878. _free($39);
  17879. HEAP32[$38>>2] = 0;
  17880. $40 = ((($0)) + 4|0);
  17881. $41 = HEAP32[$40>>2]|0;
  17882. _free($41);
  17883. HEAP32[$40>>2] = 0;
  17884. $$045 = $$2;
  17885. return ($$045|0);
  17886. }
  17887. function _stbi__parse_png_file($0,$1,$2) {
  17888. $0 = $0|0;
  17889. $1 = $1|0;
  17890. $2 = $2|0;
  17891. 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;
  17892. 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;
  17893. 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;
  17894. 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;
  17895. 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;
  17896. 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;
  17897. 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;
  17898. 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;
  17899. 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;
  17900. 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;
  17901. 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;
  17902. 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;
  17903. 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;
  17904. sp = STACKTOP;
  17905. STACKTOP = STACKTOP + 1056|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1056|0);
  17906. $3 = sp + 32|0;
  17907. $4 = sp + 22|0;
  17908. $5 = sp + 16|0;
  17909. $6 = sp + 8|0;
  17910. $7 = sp;
  17911. $8 = HEAP32[$0>>2]|0;
  17912. $9 = ((($0)) + 8|0);
  17913. HEAP32[$9>>2] = 0;
  17914. $10 = ((($0)) + 4|0);
  17915. HEAP32[$10>>2] = 0;
  17916. $11 = ((($0)) + 12|0);
  17917. HEAP32[$11>>2] = 0;
  17918. $12 = (_stbi__check_png_header($8)|0);
  17919. $13 = ($12|0)==(0);
  17920. if ($13) {
  17921. $$7 = 0;
  17922. STACKTOP = sp;return ($$7|0);
  17923. }
  17924. $14 = ($1|0)==(1);
  17925. if ($14) {
  17926. $$7 = 1;
  17927. STACKTOP = sp;return ($$7|0);
  17928. }
  17929. $15 = ((($6)) + 4|0);
  17930. $16 = ((($8)) + 4|0);
  17931. $17 = ((($0)) + 16|0);
  17932. $18 = ((($8)) + 8|0);
  17933. $19 = ($1|0)==(2);
  17934. $20 = ((($8)) + 8|0);
  17935. $21 = ((($8)) + 8|0);
  17936. $22 = ((($0)) + 16|0);
  17937. $23 = ($1|0)==(2);
  17938. $24 = ($1|0)==(2);
  17939. $$0206 = 0;$$0211 = 0;$$0214 = 0;$$0217 = 0;$$0228 = 0;$$0231 = 0;$$0235 = 0;$$0241 = 1;$$0245 = 0;
  17940. L7: while(1) {
  17941. _stbi__get_chunk_header($6,$8);
  17942. $25 = HEAP32[$15>>2]|0;
  17943. $switch$split2D = ($25|0)<(1229472850);
  17944. L9: do {
  17945. if ($switch$split2D) {
  17946. $switch$split52D = ($25|0)<(1229209940);
  17947. if ($switch$split52D) {
  17948. switch ($25|0) {
  17949. case 1130840649: {
  17950. break;
  17951. }
  17952. default: {
  17953. label = 103;
  17954. break L9;
  17955. }
  17956. }
  17957. $26 = HEAP32[$6>>2]|0;
  17958. _stbi__skip($8,$26);
  17959. $$1212 = $$0211;$$1215 = $$0214;$$1229 = 1;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  17960. break;
  17961. }
  17962. $switch$split112D = ($25|0)<(1229278788);
  17963. if (!($switch$split112D)) {
  17964. switch ($25|0) {
  17965. case 1229278788: {
  17966. label = 85;
  17967. break L7;
  17968. break;
  17969. }
  17970. default: {
  17971. label = 103;
  17972. break L9;
  17973. }
  17974. }
  17975. }
  17976. switch ($25|0) {
  17977. case 1229209940: {
  17978. break;
  17979. }
  17980. default: {
  17981. label = 103;
  17982. break L9;
  17983. }
  17984. }
  17985. $130 = ($$0241|0)==(0);
  17986. if (!($130)) {
  17987. label = 70;
  17988. break L7;
  17989. }
  17990. $131 = ($$0206<<24>>24)==(0);
  17991. $132 = ($$0245|0)!=(0);
  17992. $or$cond = $132 | $131;
  17993. if (!($or$cond)) {
  17994. label = 72;
  17995. break L7;
  17996. }
  17997. if ($24) {
  17998. label = 74;
  17999. break L7;
  18000. }
  18001. $135 = HEAP32[$6>>2]|0;
  18002. $136 = (($135) + ($$0214))|0;
  18003. $137 = ($136|0)<($$0214|0);
  18004. if ($137) {
  18005. $$6$ph = 0;
  18006. break L7;
  18007. }
  18008. $138 = ($136>>>0)>($$0217>>>0);
  18009. if ($138) {
  18010. $139 = ($$0217|0)==(0);
  18011. $140 = ($135>>>0)>(4096);
  18012. $141 = $140 ? $135 : 4096;
  18013. $$$0217 = $139 ? $141 : $$0217;
  18014. $142 = HEAP32[$6>>2]|0;
  18015. $143 = (($142) + ($$0214))|0;
  18016. $$1218 = $$$0217;
  18017. while(1) {
  18018. $144 = ($143>>>0)>($$1218>>>0);
  18019. $145 = $$1218 << 1;
  18020. if ($144) {
  18021. $$1218 = $145;
  18022. } else {
  18023. break;
  18024. }
  18025. }
  18026. $146 = HEAP32[$10>>2]|0;
  18027. $147 = (_realloc($146,$$1218)|0);
  18028. $148 = ($147|0)==(0|0);
  18029. if ($148) {
  18030. label = 81;
  18031. break L7;
  18032. }
  18033. HEAP32[$10>>2] = $147;
  18034. $$2219 = $$1218;
  18035. } else {
  18036. $$2219 = $$0217;
  18037. }
  18038. $149 = HEAP32[$10>>2]|0;
  18039. $150 = (($149) + ($$0214)|0);
  18040. $151 = HEAP32[$6>>2]|0;
  18041. $152 = (_stbi__getn($8,$150,$151)|0);
  18042. $153 = ($152|0)==(0);
  18043. if ($153) {
  18044. label = 83;
  18045. break L7;
  18046. }
  18047. $154 = HEAP32[$6>>2]|0;
  18048. $155 = (($154) + ($$0214))|0;
  18049. $$1212 = $$0211;$$1215 = $155;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$2219;
  18050. } else {
  18051. $switch$split82D = ($25|0)<(1347179589);
  18052. if ($switch$split82D) {
  18053. switch ($25|0) {
  18054. case 1229472850: {
  18055. break;
  18056. }
  18057. default: {
  18058. label = 103;
  18059. break L9;
  18060. }
  18061. }
  18062. $27 = ($$0241|0)==(0);
  18063. if ($27) {
  18064. label = 7;
  18065. break L7;
  18066. }
  18067. $28 = HEAP32[$6>>2]|0;
  18068. $29 = ($28|0)==(13);
  18069. if (!($29)) {
  18070. label = 9;
  18071. break L7;
  18072. }
  18073. $30 = (_stbi__get32be($8)|0);
  18074. HEAP32[$8>>2] = $30;
  18075. $31 = ($30>>>0)>(16777216);
  18076. if ($31) {
  18077. label = 11;
  18078. break L7;
  18079. }
  18080. $32 = (_stbi__get32be($8)|0);
  18081. HEAP32[$16>>2] = $32;
  18082. $33 = ($32>>>0)>(16777216);
  18083. if ($33) {
  18084. label = 13;
  18085. break L7;
  18086. }
  18087. $34 = (_stbi__get8($8)|0);
  18088. $35 = $34&255;
  18089. HEAP32[$17>>2] = $35;
  18090. switch ($34<<24>>24) {
  18091. case 16: case 8: case 4: case 2: case 1: {
  18092. break;
  18093. }
  18094. default: {
  18095. label = 15;
  18096. break L7;
  18097. }
  18098. }
  18099. $36 = (_stbi__get8($8)|0);
  18100. $37 = $36&255;
  18101. $38 = ($36&255)>(6);
  18102. if ($38) {
  18103. label = 17;
  18104. break L7;
  18105. }
  18106. $39 = ($36<<24>>24)==(3);
  18107. if ($39) {
  18108. $40 = HEAP32[$17>>2]|0;
  18109. $41 = ($40|0)==(16);
  18110. if ($41) {
  18111. label = 20;
  18112. break L7;
  18113. } else {
  18114. $$1207 = 3;
  18115. }
  18116. } else {
  18117. $42 = $37 & 1;
  18118. $43 = ($42|0)==(0);
  18119. if ($43) {
  18120. $$1207 = $$0206;
  18121. } else {
  18122. label = 22;
  18123. break L7;
  18124. }
  18125. }
  18126. $44 = (_stbi__get8($8)|0);
  18127. $45 = ($44<<24>>24)==(0);
  18128. if (!($45)) {
  18129. label = 24;
  18130. break L7;
  18131. }
  18132. $46 = (_stbi__get8($8)|0);
  18133. $47 = ($46<<24>>24)==(0);
  18134. if (!($47)) {
  18135. label = 26;
  18136. break L7;
  18137. }
  18138. $48 = (_stbi__get8($8)|0);
  18139. $49 = $48&255;
  18140. $50 = ($48&255)>(1);
  18141. if ($50) {
  18142. label = 28;
  18143. break L7;
  18144. }
  18145. $51 = HEAP32[$8>>2]|0;
  18146. $52 = ($51|0)==(0);
  18147. if ($52) {
  18148. label = 31;
  18149. break L7;
  18150. }
  18151. $53 = HEAP32[$16>>2]|0;
  18152. $54 = ($53|0)==(0);
  18153. if ($54) {
  18154. label = 31;
  18155. break L7;
  18156. }
  18157. $55 = ($$1207<<24>>24)==(0);
  18158. $56 = (1073741824 / ($51>>>0))&-1;
  18159. if (!($55)) {
  18160. HEAP32[$20>>2] = 1;
  18161. $63 = $56 >>> 2;
  18162. $64 = ($63>>>0)<($53>>>0);
  18163. if ($64) {
  18164. label = 37;
  18165. break L7;
  18166. } else {
  18167. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $37;$$2237 = $49;$$2243 = 0;$$3209 = $$1207;$$3220 = $$0217;
  18168. break;
  18169. }
  18170. }
  18171. $57 = $37 & 2;
  18172. $58 = $57 | 1;
  18173. $59 = $37 >>> 2;
  18174. $$lobit = $59 & 1;
  18175. $60 = (($58) + ($$lobit))|0;
  18176. HEAP32[$18>>2] = $60;
  18177. $61 = (($56>>>0) / ($60>>>0))&-1;
  18178. $62 = ($61>>>0)<($53>>>0);
  18179. if ($62) {
  18180. label = 34;
  18181. break L7;
  18182. }
  18183. if ($19) {
  18184. $$6$ph = 1;
  18185. break L7;
  18186. } else {
  18187. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $37;$$2237 = $49;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  18188. break;
  18189. }
  18190. }
  18191. $switch$split142D = ($25|0)<(1951551059);
  18192. if ($switch$split142D) {
  18193. switch ($25|0) {
  18194. case 1347179589: {
  18195. break;
  18196. }
  18197. default: {
  18198. label = 103;
  18199. break L9;
  18200. }
  18201. }
  18202. $65 = ($$0241|0)==(0);
  18203. if (!($65)) {
  18204. label = 39;
  18205. break L7;
  18206. }
  18207. $66 = HEAP32[$6>>2]|0;
  18208. $67 = ($66>>>0)>(768);
  18209. if ($67) {
  18210. label = 41;
  18211. break L7;
  18212. }
  18213. $68 = (($66>>>0) / 3)&-1;
  18214. $69 = ($68*3)|0;
  18215. $70 = ($69|0)==($66|0);
  18216. if (!($70)) {
  18217. label = 44;
  18218. break L7;
  18219. }
  18220. $71 = ($66>>>0)>(2);
  18221. if ($71) {
  18222. $$0226593 = 0;
  18223. } else {
  18224. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $68;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = $$0206;$$3220 = $$0217;
  18225. break;
  18226. }
  18227. while(1) {
  18228. $72 = (_stbi__get8($8)|0);
  18229. $73 = $$0226593 << 2;
  18230. $74 = (($3) + ($73)|0);
  18231. HEAP8[$74>>0] = $72;
  18232. $75 = (_stbi__get8($8)|0);
  18233. $76 = $73 | 1;
  18234. $77 = (($3) + ($76)|0);
  18235. HEAP8[$77>>0] = $75;
  18236. $78 = (_stbi__get8($8)|0);
  18237. $79 = $73 | 2;
  18238. $80 = (($3) + ($79)|0);
  18239. HEAP8[$80>>0] = $78;
  18240. $81 = $73 | 3;
  18241. $82 = (($3) + ($81)|0);
  18242. HEAP8[$82>>0] = -1;
  18243. $83 = (($$0226593) + 1)|0;
  18244. $84 = ($83>>>0)<($68>>>0);
  18245. if ($84) {
  18246. $$0226593 = $83;
  18247. } else {
  18248. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $68;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  18249. break L9;
  18250. }
  18251. }
  18252. }
  18253. switch ($25|0) {
  18254. case 1951551059: {
  18255. break;
  18256. }
  18257. default: {
  18258. label = 103;
  18259. break L9;
  18260. }
  18261. }
  18262. $85 = ($$0241|0)==(0);
  18263. if (!($85)) {
  18264. label = 47;
  18265. break L7;
  18266. }
  18267. $86 = HEAP32[$10>>2]|0;
  18268. $87 = ($86|0)==(0|0);
  18269. if (!($87)) {
  18270. label = 49;
  18271. break L7;
  18272. }
  18273. $88 = ($$0206<<24>>24)==(0);
  18274. if (!($88)) {
  18275. if ($23) {
  18276. label = 52;
  18277. break L7;
  18278. }
  18279. $90 = ($$0245|0)==(0);
  18280. if ($90) {
  18281. label = 54;
  18282. break L7;
  18283. }
  18284. $91 = HEAP32[$6>>2]|0;
  18285. $92 = ($91>>>0)>($$0245>>>0);
  18286. if ($92) {
  18287. label = 58;
  18288. break L7;
  18289. }
  18290. $93 = HEAP32[$6>>2]|0;
  18291. $94 = ($93|0)==(0);
  18292. if ($94) {
  18293. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 4;$$3220 = $$0217;
  18294. break;
  18295. }
  18296. $95 = HEAP32[$6>>2]|0;
  18297. $$1227588 = 0;
  18298. while(1) {
  18299. $96 = (_stbi__get8($8)|0);
  18300. $97 = $$1227588 << 2;
  18301. $98 = $97 | 3;
  18302. $99 = (($3) + ($98)|0);
  18303. HEAP8[$99>>0] = $96;
  18304. $100 = (($$1227588) + 1)|0;
  18305. $101 = ($100>>>0)<($95>>>0);
  18306. if ($101) {
  18307. $$1227588 = $100;
  18308. } else {
  18309. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = 4;$$3220 = $$0217;
  18310. break L9;
  18311. }
  18312. }
  18313. }
  18314. $102 = HEAP32[$21>>2]|0;
  18315. $103 = $102 & 1;
  18316. $104 = ($103|0)==(0);
  18317. if ($104) {
  18318. label = 61;
  18319. break L7;
  18320. }
  18321. $105 = HEAP32[$6>>2]|0;
  18322. $106 = $102 << 1;
  18323. $107 = ($105|0)==($106|0);
  18324. if (!($107)) {
  18325. label = 63;
  18326. break L7;
  18327. }
  18328. $108 = HEAP32[$22>>2]|0;
  18329. $109 = ($108|0)==(16);
  18330. $110 = HEAP32[$21>>2]|0;
  18331. $111 = ($110|0)>(0);
  18332. if ($109) {
  18333. if ($111) {
  18334. $$0239591 = 0;
  18335. } else {
  18336. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  18337. break;
  18338. }
  18339. while(1) {
  18340. $112 = (_stbi__get16be($8)|0);
  18341. $113 = $112&65535;
  18342. $114 = (($5) + ($$0239591<<1)|0);
  18343. HEAP16[$114>>1] = $113;
  18344. $115 = (($$0239591) + 1)|0;
  18345. $116 = HEAP32[$21>>2]|0;
  18346. $117 = ($115|0)<($116|0);
  18347. if ($117) {
  18348. $$0239591 = $115;
  18349. } else {
  18350. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  18351. break;
  18352. }
  18353. }
  18354. } else {
  18355. if ($111) {
  18356. $$1240589 = 0;
  18357. } else {
  18358. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  18359. break;
  18360. }
  18361. while(1) {
  18362. $118 = (_stbi__get16be($8)|0);
  18363. $119 = $118 & 255;
  18364. $120 = HEAP32[$22>>2]|0;
  18365. $121 = (9968 + ($120)|0);
  18366. $122 = HEAP8[$121>>0]|0;
  18367. $123 = $122&255;
  18368. $124 = Math_imul($123, $119)|0;
  18369. $125 = $124&255;
  18370. $126 = (($4) + ($$1240589)|0);
  18371. HEAP8[$126>>0] = $125;
  18372. $127 = (($$1240589) + 1)|0;
  18373. $128 = HEAP32[$21>>2]|0;
  18374. $129 = ($127|0)<($128|0);
  18375. if ($129) {
  18376. $$1240589 = $127;
  18377. } else {
  18378. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  18379. break;
  18380. }
  18381. }
  18382. }
  18383. }
  18384. } while(0);
  18385. if ((label|0) == 103) {
  18386. label = 0;
  18387. $202 = ($$0241|0)==(0);
  18388. if (!($202)) {
  18389. label = 104;
  18390. break;
  18391. }
  18392. $203 = $25 & 536870912;
  18393. $204 = ($203|0)==(0);
  18394. if ($204) {
  18395. label = 106;
  18396. break;
  18397. }
  18398. $213 = HEAP32[$6>>2]|0;
  18399. _stbi__skip($8,$213);
  18400. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = $$0206;$$3220 = $$0217;
  18401. }
  18402. (_stbi__get32be($8)|0);
  18403. $$0206 = $$3209;$$0211 = $$1212;$$0214 = $$1215;$$0217 = $$3220;$$0228 = $$1229;$$0231 = $$2233;$$0235 = $$2237;$$0241 = $$2243;$$0245 = $$1246;
  18404. }
  18405. switch (label|0) {
  18406. case 7: {
  18407. _stbi__err(9742);
  18408. $$6$ph = 0;
  18409. break;
  18410. }
  18411. case 9: {
  18412. _stbi__err(9756);
  18413. $$6$ph = 0;
  18414. break;
  18415. }
  18416. case 11: {
  18417. _stbi__err(9769);
  18418. $$6$ph = 0;
  18419. break;
  18420. }
  18421. case 13: {
  18422. _stbi__err(9769);
  18423. $$6$ph = 0;
  18424. break;
  18425. }
  18426. case 15: {
  18427. _stbi__err(9779);
  18428. $$6$ph = 0;
  18429. break;
  18430. }
  18431. case 17: {
  18432. _stbi__err(9799);
  18433. $$6$ph = 0;
  18434. break;
  18435. }
  18436. case 20: {
  18437. _stbi__err(9799);
  18438. $$6$ph = 0;
  18439. break;
  18440. }
  18441. case 22: {
  18442. _stbi__err(9799);
  18443. $$6$ph = 0;
  18444. break;
  18445. }
  18446. case 24: {
  18447. _stbi__err(9809);
  18448. $$6$ph = 0;
  18449. break;
  18450. }
  18451. case 26: {
  18452. _stbi__err(9825);
  18453. $$6$ph = 0;
  18454. break;
  18455. }
  18456. case 28: {
  18457. _stbi__err(9843);
  18458. $$6$ph = 0;
  18459. break;
  18460. }
  18461. case 31: {
  18462. _stbi__err(9864);
  18463. $$6$ph = 0;
  18464. break;
  18465. }
  18466. case 34: {
  18467. _stbi__err(9769);
  18468. $$6$ph = 0;
  18469. break;
  18470. }
  18471. case 37: {
  18472. _stbi__err(9769);
  18473. $$6$ph = 0;
  18474. break;
  18475. }
  18476. case 39: {
  18477. _stbi__err(9878);
  18478. $$6$ph = 0;
  18479. break;
  18480. }
  18481. case 41: {
  18482. _stbi__err(9893);
  18483. $$6$ph = 0;
  18484. break;
  18485. }
  18486. case 44: {
  18487. _stbi__err(9893);
  18488. $$6$ph = 0;
  18489. break;
  18490. }
  18491. case 47: {
  18492. _stbi__err(9878);
  18493. $$6$ph = 0;
  18494. break;
  18495. }
  18496. case 49: {
  18497. _stbi__err(9906);
  18498. $$6$ph = 0;
  18499. break;
  18500. }
  18501. case 52: {
  18502. $89 = ((($8)) + 8|0);
  18503. HEAP32[$89>>2] = 4;
  18504. $$6$ph = 1;
  18505. break;
  18506. }
  18507. case 54: {
  18508. _stbi__err(9922);
  18509. $$6$ph = 0;
  18510. break;
  18511. }
  18512. case 58: {
  18513. _stbi__err(9939);
  18514. $$6$ph = 0;
  18515. break;
  18516. }
  18517. case 61: {
  18518. _stbi__err(9952);
  18519. $$6$ph = 0;
  18520. break;
  18521. }
  18522. case 63: {
  18523. _stbi__err(9939);
  18524. $$6$ph = 0;
  18525. break;
  18526. }
  18527. case 70: {
  18528. _stbi__err(9878);
  18529. $$6$ph = 0;
  18530. break;
  18531. }
  18532. case 72: {
  18533. _stbi__err(9977);
  18534. $$6$ph = 0;
  18535. break;
  18536. }
  18537. case 74: {
  18538. $133 = $$0206&255;
  18539. $134 = ((($8)) + 8|0);
  18540. HEAP32[$134>>2] = $133;
  18541. $$6$ph = 1;
  18542. break;
  18543. }
  18544. case 81: {
  18545. _stbi__err(9624);
  18546. $$6$ph = 0;
  18547. break;
  18548. }
  18549. case 83: {
  18550. _stbi__err(9985);
  18551. $$6$ph = 0;
  18552. break;
  18553. }
  18554. case 85: {
  18555. $156 = ($$0241|0)==(0);
  18556. do {
  18557. if ($156) {
  18558. $157 = ($1|0)==(0);
  18559. if ($157) {
  18560. $158 = HEAP32[$10>>2]|0;
  18561. $159 = ($158|0)==(0|0);
  18562. if ($159) {
  18563. _stbi__err(9995);
  18564. $$4 = 0;
  18565. break;
  18566. }
  18567. $160 = HEAP32[$8>>2]|0;
  18568. $161 = ((($0)) + 16|0);
  18569. $162 = HEAP32[$161>>2]|0;
  18570. $163 = Math_imul($162, $160)|0;
  18571. $164 = (($163) + 7)|0;
  18572. $165 = $164 >>> 3;
  18573. $166 = ((($8)) + 4|0);
  18574. $167 = HEAP32[$166>>2]|0;
  18575. $168 = ((($8)) + 8|0);
  18576. $169 = HEAP32[$168>>2]|0;
  18577. $170 = Math_imul($169, $167)|0;
  18578. $171 = Math_imul($170, $165)|0;
  18579. $172 = (($171) + ($167))|0;
  18580. HEAP32[$7>>2] = $172;
  18581. $173 = ($$0228|0)!=(0);
  18582. $174 = $173 ^ 1;
  18583. $175 = $174&1;
  18584. $176 = (_stbi_zlib_decode_malloc_guesssize_headerflag($158,$$0214,$172,$7,$175)|0);
  18585. HEAP32[$9>>2] = $176;
  18586. $177 = ($176|0)==(0|0);
  18587. if ($177) {
  18588. $$4 = 0;
  18589. } else {
  18590. $178 = HEAP32[$10>>2]|0;
  18591. _free($178);
  18592. HEAP32[$10>>2] = 0;
  18593. $179 = HEAP32[$168>>2]|0;
  18594. $180 = (($179) + 1)|0;
  18595. $notlhs = ($180|0)!=($2|0);
  18596. $notrhs = ($2|0)==(3);
  18597. $or$cond5$not = $notrhs | $notlhs;
  18598. $181 = ($$0206<<24>>24)!=(0);
  18599. $or$cond7 = $181 | $or$cond5$not;
  18600. $182 = ($$0211<<24>>24)==(0);
  18601. $or$cond248 = $182 & $or$cond7;
  18602. $$254 = $or$cond248 ? $179 : $180;
  18603. $183 = ((($8)) + 12|0);
  18604. HEAP32[$183>>2] = $$254;
  18605. $184 = HEAP32[$9>>2]|0;
  18606. $185 = HEAP32[$7>>2]|0;
  18607. $186 = HEAP32[$161>>2]|0;
  18608. $187 = (_stbi__create_png_image($0,$184,$185,$$254,$186,$$0231,$$0235)|0);
  18609. $188 = ($187|0)==(0);
  18610. if ($188) {
  18611. $$4 = 0;
  18612. } else {
  18613. do {
  18614. if (!($182)) {
  18615. $189 = HEAP32[$161>>2]|0;
  18616. $190 = ($189|0)==(16);
  18617. if ($190) {
  18618. $191 = HEAP32[$183>>2]|0;
  18619. _stbi__compute_transparency16($0,$5,$191);
  18620. break;
  18621. } else {
  18622. $192 = HEAP32[$183>>2]|0;
  18623. _stbi__compute_transparency($0,$4,$192);
  18624. break;
  18625. }
  18626. }
  18627. } while(0);
  18628. $193 = HEAP32[5004]|0;
  18629. $194 = ($193|0)!=(0);
  18630. $or$cond11 = $173 & $194;
  18631. if ($or$cond11) {
  18632. $195 = HEAP32[$183>>2]|0;
  18633. $196 = ($195|0)>(2);
  18634. if ($196) {
  18635. _stbi__de_iphone($0);
  18636. }
  18637. }
  18638. if ($181) {
  18639. $197 = $$0206&255;
  18640. HEAP32[$168>>2] = $197;
  18641. $198 = ($2|0)>(2);
  18642. $$ = $198 ? $2 : $197;
  18643. HEAP32[$183>>2] = $$;
  18644. $199 = (_stbi__expand_png_palette($0,$3,$$)|0);
  18645. $200 = ($199|0)==(0);
  18646. if ($200) {
  18647. $$4 = 0;
  18648. break;
  18649. }
  18650. }
  18651. $201 = HEAP32[$9>>2]|0;
  18652. _free($201);
  18653. HEAP32[$9>>2] = 0;
  18654. $$4 = 1;
  18655. }
  18656. }
  18657. } else {
  18658. $$4 = 1;
  18659. }
  18660. } else {
  18661. _stbi__err(9878);
  18662. $$4 = 0;
  18663. }
  18664. } while(0);
  18665. $$6$ph = $$4;
  18666. break;
  18667. }
  18668. case 104: {
  18669. _stbi__err(9878);
  18670. $$6$ph = 0;
  18671. break;
  18672. }
  18673. case 106: {
  18674. $205 = $25 >>> 24;
  18675. $206 = $205&255;
  18676. HEAP8[10003] = $206;
  18677. $207 = HEAP32[$15>>2]|0;
  18678. $208 = $207 >>> 16;
  18679. $209 = $208&255;
  18680. HEAP8[(10004)>>0] = $209;
  18681. $210 = $207 >>> 8;
  18682. $211 = $210&255;
  18683. HEAP8[(10005)>>0] = $211;
  18684. $212 = $207&255;
  18685. HEAP8[(10006)>>0] = $212;
  18686. _stbi__err(10003);
  18687. $$6$ph = 0;
  18688. break;
  18689. }
  18690. }
  18691. $$7 = $$6$ph;
  18692. STACKTOP = sp;return ($$7|0);
  18693. }
  18694. function _stbi__convert_format($0,$1,$2,$3,$4) {
  18695. $0 = $0|0;
  18696. $1 = $1|0;
  18697. $2 = $2|0;
  18698. $3 = $3|0;
  18699. $4 = $4|0;
  18700. 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;
  18701. 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;
  18702. 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;
  18703. 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;
  18704. 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;
  18705. 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;
  18706. 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;
  18707. 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;
  18708. 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;
  18709. 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;
  18710. var sp = 0;
  18711. sp = STACKTOP;
  18712. $5 = ($2|0)==($1|0);
  18713. if ($5) {
  18714. $$0163 = $0;
  18715. return ($$0163|0);
  18716. }
  18717. $$off = (($2) + -1)|0;
  18718. $6 = ($$off>>>0)<(4);
  18719. if (!($6)) {
  18720. ___assert_fail((9665|0),(9569|0),1477,(9721|0));
  18721. // unreachable;
  18722. }
  18723. $7 = (_stbi__malloc_mad3($2,$3,$4)|0);
  18724. $8 = ($7|0)==(0|0);
  18725. if ($8) {
  18726. _free($0);
  18727. _stbi__err(9624);
  18728. $$0163 = 0;
  18729. return ($$0163|0);
  18730. }
  18731. $9 = ($4|0)>(0);
  18732. L11: do {
  18733. if ($9) {
  18734. $10 = $1 << 3;
  18735. $11 = (($10) + ($2))|0;
  18736. $$0165254 = (($3) + -1)|0;
  18737. $12 = ($$0165254|0)>(-1);
  18738. $$1166249 = (($3) + -1)|0;
  18739. $13 = ($$1166249|0)>(-1);
  18740. $$2167244 = (($3) + -1)|0;
  18741. $14 = ($$2167244|0)>(-1);
  18742. $$3168239 = (($3) + -1)|0;
  18743. $15 = ($$3168239|0)>(-1);
  18744. $$4169234 = (($3) + -1)|0;
  18745. $16 = ($$4169234|0)>(-1);
  18746. $$5170229 = (($3) + -1)|0;
  18747. $17 = ($$5170229|0)>(-1);
  18748. $$6171224 = (($3) + -1)|0;
  18749. $18 = ($$6171224|0)>(-1);
  18750. $$7172219 = (($3) + -1)|0;
  18751. $19 = ($$7172219|0)>(-1);
  18752. $$8173214 = (($3) + -1)|0;
  18753. $20 = ($$8173214|0)>(-1);
  18754. $$9174209 = (($3) + -1)|0;
  18755. $21 = ($$9174209|0)>(-1);
  18756. $$10175204 = (($3) + -1)|0;
  18757. $22 = ($$10175204|0)>(-1);
  18758. $$11176200 = (($3) + -1)|0;
  18759. $23 = ($$11176200|0)>(-1);
  18760. $$0164259 = 0;
  18761. L13: while(1) {
  18762. $24 = Math_imul($$0164259, $3)|0;
  18763. $25 = Math_imul($24, $1)|0;
  18764. $26 = (($0) + ($25)|0);
  18765. $27 = Math_imul($24, $2)|0;
  18766. $28 = (($7) + ($27)|0);
  18767. do {
  18768. switch ($11|0) {
  18769. case 10: {
  18770. if ($12) {
  18771. $$0151255 = $26;$$0165257 = $$0165254;$$0256 = $28;
  18772. while(1) {
  18773. $29 = HEAP8[$$0151255>>0]|0;
  18774. HEAP8[$$0256>>0] = $29;
  18775. $30 = ((($$0256)) + 1|0);
  18776. HEAP8[$30>>0] = -1;
  18777. $31 = ((($$0151255)) + 1|0);
  18778. $32 = ((($$0256)) + 2|0);
  18779. $$0165 = (($$0165257) + -1)|0;
  18780. $33 = ($$0165|0)>(-1);
  18781. if ($33) {
  18782. $$0151255 = $31;$$0165257 = $$0165;$$0256 = $32;
  18783. } else {
  18784. break;
  18785. }
  18786. }
  18787. }
  18788. break;
  18789. }
  18790. case 11: {
  18791. if ($13) {
  18792. $$1152250 = $26;$$1166252 = $$1166249;$$1251 = $28;
  18793. while(1) {
  18794. $34 = HEAP8[$$1152250>>0]|0;
  18795. $35 = ((($$1251)) + 2|0);
  18796. HEAP8[$35>>0] = $34;
  18797. $36 = ((($$1251)) + 1|0);
  18798. HEAP8[$36>>0] = $34;
  18799. HEAP8[$$1251>>0] = $34;
  18800. $37 = ((($$1152250)) + 1|0);
  18801. $38 = ((($$1251)) + 3|0);
  18802. $$1166 = (($$1166252) + -1)|0;
  18803. $39 = ($$1166|0)>(-1);
  18804. if ($39) {
  18805. $$1152250 = $37;$$1166252 = $$1166;$$1251 = $38;
  18806. } else {
  18807. break;
  18808. }
  18809. }
  18810. }
  18811. break;
  18812. }
  18813. case 12: {
  18814. if ($14) {
  18815. $$2153245 = $26;$$2167247 = $$2167244;$$2246 = $28;
  18816. while(1) {
  18817. $40 = HEAP8[$$2153245>>0]|0;
  18818. $41 = ((($$2246)) + 2|0);
  18819. HEAP8[$41>>0] = $40;
  18820. $42 = ((($$2246)) + 1|0);
  18821. HEAP8[$42>>0] = $40;
  18822. HEAP8[$$2246>>0] = $40;
  18823. $43 = ((($$2246)) + 3|0);
  18824. HEAP8[$43>>0] = -1;
  18825. $44 = ((($$2153245)) + 1|0);
  18826. $45 = ((($$2246)) + 4|0);
  18827. $$2167 = (($$2167247) + -1)|0;
  18828. $46 = ($$2167|0)>(-1);
  18829. if ($46) {
  18830. $$2153245 = $44;$$2167247 = $$2167;$$2246 = $45;
  18831. } else {
  18832. break;
  18833. }
  18834. }
  18835. }
  18836. break;
  18837. }
  18838. case 17: {
  18839. if ($15) {
  18840. $$3154240 = $26;$$3168242 = $$3168239;$$3241 = $28;
  18841. while(1) {
  18842. $47 = HEAP8[$$3154240>>0]|0;
  18843. HEAP8[$$3241>>0] = $47;
  18844. $48 = ((($$3154240)) + 2|0);
  18845. $49 = ((($$3241)) + 1|0);
  18846. $$3168 = (($$3168242) + -1)|0;
  18847. $50 = ($$3168|0)>(-1);
  18848. if ($50) {
  18849. $$3154240 = $48;$$3168242 = $$3168;$$3241 = $49;
  18850. } else {
  18851. break;
  18852. }
  18853. }
  18854. }
  18855. break;
  18856. }
  18857. case 19: {
  18858. if ($16) {
  18859. $$4155235 = $26;$$4169237 = $$4169234;$$4236 = $28;
  18860. while(1) {
  18861. $51 = HEAP8[$$4155235>>0]|0;
  18862. $52 = ((($$4236)) + 2|0);
  18863. HEAP8[$52>>0] = $51;
  18864. $53 = ((($$4236)) + 1|0);
  18865. HEAP8[$53>>0] = $51;
  18866. HEAP8[$$4236>>0] = $51;
  18867. $54 = ((($$4155235)) + 2|0);
  18868. $55 = ((($$4236)) + 3|0);
  18869. $$4169 = (($$4169237) + -1)|0;
  18870. $56 = ($$4169|0)>(-1);
  18871. if ($56) {
  18872. $$4155235 = $54;$$4169237 = $$4169;$$4236 = $55;
  18873. } else {
  18874. break;
  18875. }
  18876. }
  18877. }
  18878. break;
  18879. }
  18880. case 20: {
  18881. if ($17) {
  18882. $$5156230 = $26;$$5170232 = $$5170229;$$5231 = $28;
  18883. while(1) {
  18884. $57 = HEAP8[$$5156230>>0]|0;
  18885. $58 = ((($$5231)) + 2|0);
  18886. HEAP8[$58>>0] = $57;
  18887. $59 = ((($$5231)) + 1|0);
  18888. HEAP8[$59>>0] = $57;
  18889. HEAP8[$$5231>>0] = $57;
  18890. $60 = ((($$5156230)) + 1|0);
  18891. $61 = HEAP8[$60>>0]|0;
  18892. $62 = ((($$5231)) + 3|0);
  18893. HEAP8[$62>>0] = $61;
  18894. $63 = ((($$5156230)) + 2|0);
  18895. $64 = ((($$5231)) + 4|0);
  18896. $$5170 = (($$5170232) + -1)|0;
  18897. $65 = ($$5170|0)>(-1);
  18898. if ($65) {
  18899. $$5156230 = $63;$$5170232 = $$5170;$$5231 = $64;
  18900. } else {
  18901. break;
  18902. }
  18903. }
  18904. }
  18905. break;
  18906. }
  18907. case 28: {
  18908. if ($18) {
  18909. $$6157225 = $26;$$6171227 = $$6171224;$$6226 = $28;
  18910. while(1) {
  18911. $66 = HEAP8[$$6157225>>0]|0;
  18912. HEAP8[$$6226>>0] = $66;
  18913. $67 = ((($$6157225)) + 1|0);
  18914. $68 = HEAP8[$67>>0]|0;
  18915. $69 = ((($$6226)) + 1|0);
  18916. HEAP8[$69>>0] = $68;
  18917. $70 = ((($$6157225)) + 2|0);
  18918. $71 = HEAP8[$70>>0]|0;
  18919. $72 = ((($$6226)) + 2|0);
  18920. HEAP8[$72>>0] = $71;
  18921. $73 = ((($$6226)) + 3|0);
  18922. HEAP8[$73>>0] = -1;
  18923. $74 = ((($$6157225)) + 3|0);
  18924. $75 = ((($$6226)) + 4|0);
  18925. $$6171 = (($$6171227) + -1)|0;
  18926. $76 = ($$6171|0)>(-1);
  18927. if ($76) {
  18928. $$6157225 = $74;$$6171227 = $$6171;$$6226 = $75;
  18929. } else {
  18930. break;
  18931. }
  18932. }
  18933. }
  18934. break;
  18935. }
  18936. case 25: {
  18937. if ($19) {
  18938. $$7158220 = $26;$$7172222 = $$7172219;$$7221 = $28;
  18939. while(1) {
  18940. $77 = HEAP8[$$7158220>>0]|0;
  18941. $78 = $77&255;
  18942. $79 = ((($$7158220)) + 1|0);
  18943. $80 = HEAP8[$79>>0]|0;
  18944. $81 = $80&255;
  18945. $82 = ((($$7158220)) + 2|0);
  18946. $83 = HEAP8[$82>>0]|0;
  18947. $84 = $83&255;
  18948. $85 = (_stbi__compute_y($78,$81,$84)|0);
  18949. HEAP8[$$7221>>0] = $85;
  18950. $86 = ((($$7158220)) + 3|0);
  18951. $87 = ((($$7221)) + 1|0);
  18952. $$7172 = (($$7172222) + -1)|0;
  18953. $88 = ($$7172|0)>(-1);
  18954. if ($88) {
  18955. $$7158220 = $86;$$7172222 = $$7172;$$7221 = $87;
  18956. } else {
  18957. break;
  18958. }
  18959. }
  18960. }
  18961. break;
  18962. }
  18963. case 26: {
  18964. if ($20) {
  18965. $$8159215 = $26;$$8173217 = $$8173214;$$8216 = $28;
  18966. while(1) {
  18967. $89 = HEAP8[$$8159215>>0]|0;
  18968. $90 = $89&255;
  18969. $91 = ((($$8159215)) + 1|0);
  18970. $92 = HEAP8[$91>>0]|0;
  18971. $93 = $92&255;
  18972. $94 = ((($$8159215)) + 2|0);
  18973. $95 = HEAP8[$94>>0]|0;
  18974. $96 = $95&255;
  18975. $97 = (_stbi__compute_y($90,$93,$96)|0);
  18976. HEAP8[$$8216>>0] = $97;
  18977. $98 = ((($$8216)) + 1|0);
  18978. HEAP8[$98>>0] = -1;
  18979. $99 = ((($$8159215)) + 3|0);
  18980. $100 = ((($$8216)) + 2|0);
  18981. $$8173 = (($$8173217) + -1)|0;
  18982. $101 = ($$8173|0)>(-1);
  18983. if ($101) {
  18984. $$8159215 = $99;$$8173217 = $$8173;$$8216 = $100;
  18985. } else {
  18986. break;
  18987. }
  18988. }
  18989. }
  18990. break;
  18991. }
  18992. case 33: {
  18993. if ($21) {
  18994. $$9160210 = $26;$$9174212 = $$9174209;$$9211 = $28;
  18995. while(1) {
  18996. $102 = HEAP8[$$9160210>>0]|0;
  18997. $103 = $102&255;
  18998. $104 = ((($$9160210)) + 1|0);
  18999. $105 = HEAP8[$104>>0]|0;
  19000. $106 = $105&255;
  19001. $107 = ((($$9160210)) + 2|0);
  19002. $108 = HEAP8[$107>>0]|0;
  19003. $109 = $108&255;
  19004. $110 = (_stbi__compute_y($103,$106,$109)|0);
  19005. HEAP8[$$9211>>0] = $110;
  19006. $111 = ((($$9160210)) + 4|0);
  19007. $112 = ((($$9211)) + 1|0);
  19008. $$9174 = (($$9174212) + -1)|0;
  19009. $113 = ($$9174|0)>(-1);
  19010. if ($113) {
  19011. $$9160210 = $111;$$9174212 = $$9174;$$9211 = $112;
  19012. } else {
  19013. break;
  19014. }
  19015. }
  19016. }
  19017. break;
  19018. }
  19019. case 34: {
  19020. if ($22) {
  19021. $$10161205 = $26;$$10175207 = $$10175204;$$10206 = $28;
  19022. while(1) {
  19023. $114 = HEAP8[$$10161205>>0]|0;
  19024. $115 = $114&255;
  19025. $116 = ((($$10161205)) + 1|0);
  19026. $117 = HEAP8[$116>>0]|0;
  19027. $118 = $117&255;
  19028. $119 = ((($$10161205)) + 2|0);
  19029. $120 = HEAP8[$119>>0]|0;
  19030. $121 = $120&255;
  19031. $122 = (_stbi__compute_y($115,$118,$121)|0);
  19032. HEAP8[$$10206>>0] = $122;
  19033. $123 = ((($$10161205)) + 3|0);
  19034. $124 = HEAP8[$123>>0]|0;
  19035. $125 = ((($$10206)) + 1|0);
  19036. HEAP8[$125>>0] = $124;
  19037. $126 = ((($$10161205)) + 4|0);
  19038. $127 = ((($$10206)) + 2|0);
  19039. $$10175 = (($$10175207) + -1)|0;
  19040. $128 = ($$10175|0)>(-1);
  19041. if ($128) {
  19042. $$10161205 = $126;$$10175207 = $$10175;$$10206 = $127;
  19043. } else {
  19044. break;
  19045. }
  19046. }
  19047. }
  19048. break;
  19049. }
  19050. case 35: {
  19051. if ($23) {
  19052. $$11162201 = $26;$$11176203 = $$11176200;$$11202 = $28;
  19053. while(1) {
  19054. $129 = HEAP8[$$11162201>>0]|0;
  19055. HEAP8[$$11202>>0] = $129;
  19056. $130 = ((($$11162201)) + 1|0);
  19057. $131 = HEAP8[$130>>0]|0;
  19058. $132 = ((($$11202)) + 1|0);
  19059. HEAP8[$132>>0] = $131;
  19060. $133 = ((($$11162201)) + 2|0);
  19061. $134 = HEAP8[$133>>0]|0;
  19062. $135 = ((($$11202)) + 2|0);
  19063. HEAP8[$135>>0] = $134;
  19064. $136 = ((($$11162201)) + 4|0);
  19065. $137 = ((($$11202)) + 3|0);
  19066. $$11176 = (($$11176203) + -1)|0;
  19067. $138 = ($$11176|0)>(-1);
  19068. if ($138) {
  19069. $$11162201 = $136;$$11176203 = $$11176;$$11202 = $137;
  19070. } else {
  19071. break;
  19072. }
  19073. }
  19074. }
  19075. break;
  19076. }
  19077. default: {
  19078. break L13;
  19079. }
  19080. }
  19081. } while(0);
  19082. $139 = (($$0164259) + 1)|0;
  19083. $140 = ($139|0)<($4|0);
  19084. if ($140) {
  19085. $$0164259 = $139;
  19086. } else {
  19087. break L11;
  19088. }
  19089. }
  19090. ___assert_fail((9719|0),(9569|0),1506,(9721|0));
  19091. // unreachable;
  19092. }
  19093. } while(0);
  19094. _free($0);
  19095. $$0163 = $7;
  19096. return ($$0163|0);
  19097. }
  19098. function _stbi__convert_format16($0,$1,$2,$3,$4) {
  19099. $0 = $0|0;
  19100. $1 = $1|0;
  19101. $2 = $2|0;
  19102. $3 = $3|0;
  19103. $4 = $4|0;
  19104. 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;
  19105. 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;
  19106. 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;
  19107. 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;
  19108. 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;
  19109. 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;
  19110. 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;
  19111. 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;
  19112. 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;
  19113. 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;
  19114. var $98 = 0, $99 = 0, label = 0, sp = 0;
  19115. sp = STACKTOP;
  19116. $5 = ($2|0)==($1|0);
  19117. if ($5) {
  19118. $$0163 = $0;
  19119. return ($$0163|0);
  19120. }
  19121. $$off = (($2) + -1)|0;
  19122. $6 = ($$off>>>0)<(4);
  19123. if (!($6)) {
  19124. ___assert_fail((9665|0),(9569|0),1526,(9696|0));
  19125. // unreachable;
  19126. }
  19127. $7 = $2 << 1;
  19128. $8 = Math_imul($7, $3)|0;
  19129. $9 = Math_imul($8, $4)|0;
  19130. $10 = (_stbi__malloc($9)|0);
  19131. $11 = ($10|0)==(0|0);
  19132. if ($11) {
  19133. _free($0);
  19134. _stbi__err(9624);
  19135. $$0163 = 0;
  19136. return ($$0163|0);
  19137. }
  19138. $12 = ($4|0)>(0);
  19139. L11: do {
  19140. if ($12) {
  19141. $13 = $1 << 3;
  19142. $14 = (($13) + ($2))|0;
  19143. $$0165254 = (($3) + -1)|0;
  19144. $15 = ($$0165254|0)>(-1);
  19145. $$1166249 = (($3) + -1)|0;
  19146. $16 = ($$1166249|0)>(-1);
  19147. $$2167244 = (($3) + -1)|0;
  19148. $17 = ($$2167244|0)>(-1);
  19149. $$3168239 = (($3) + -1)|0;
  19150. $18 = ($$3168239|0)>(-1);
  19151. $$4169234 = (($3) + -1)|0;
  19152. $19 = ($$4169234|0)>(-1);
  19153. $$5170229 = (($3) + -1)|0;
  19154. $20 = ($$5170229|0)>(-1);
  19155. $$6171224 = (($3) + -1)|0;
  19156. $21 = ($$6171224|0)>(-1);
  19157. $$7172219 = (($3) + -1)|0;
  19158. $22 = ($$7172219|0)>(-1);
  19159. $$8173214 = (($3) + -1)|0;
  19160. $23 = ($$8173214|0)>(-1);
  19161. $$9174209 = (($3) + -1)|0;
  19162. $24 = ($$9174209|0)>(-1);
  19163. $$10175204 = (($3) + -1)|0;
  19164. $25 = ($$10175204|0)>(-1);
  19165. $$11176200 = (($3) + -1)|0;
  19166. $26 = ($$11176200|0)>(-1);
  19167. $$0164259 = 0;
  19168. L13: while(1) {
  19169. $27 = Math_imul($$0164259, $3)|0;
  19170. $28 = Math_imul($27, $1)|0;
  19171. $29 = (($0) + ($28<<1)|0);
  19172. $30 = Math_imul($27, $2)|0;
  19173. $31 = (($10) + ($30<<1)|0);
  19174. do {
  19175. switch ($14|0) {
  19176. case 10: {
  19177. if ($15) {
  19178. $$0151255 = $29;$$0165257 = $$0165254;$$0256 = $31;
  19179. while(1) {
  19180. $32 = HEAP16[$$0151255>>1]|0;
  19181. HEAP16[$$0256>>1] = $32;
  19182. $33 = ((($$0256)) + 2|0);
  19183. HEAP16[$33>>1] = -1;
  19184. $34 = ((($$0151255)) + 2|0);
  19185. $35 = ((($$0256)) + 4|0);
  19186. $$0165 = (($$0165257) + -1)|0;
  19187. $36 = ($$0165|0)>(-1);
  19188. if ($36) {
  19189. $$0151255 = $34;$$0165257 = $$0165;$$0256 = $35;
  19190. } else {
  19191. break;
  19192. }
  19193. }
  19194. }
  19195. break;
  19196. }
  19197. case 11: {
  19198. if ($16) {
  19199. $$1152250 = $29;$$1166252 = $$1166249;$$1251 = $31;
  19200. while(1) {
  19201. $37 = HEAP16[$$1152250>>1]|0;
  19202. $38 = ((($$1251)) + 4|0);
  19203. HEAP16[$38>>1] = $37;
  19204. $39 = ((($$1251)) + 2|0);
  19205. HEAP16[$39>>1] = $37;
  19206. HEAP16[$$1251>>1] = $37;
  19207. $40 = ((($$1152250)) + 2|0);
  19208. $41 = ((($$1251)) + 6|0);
  19209. $$1166 = (($$1166252) + -1)|0;
  19210. $42 = ($$1166|0)>(-1);
  19211. if ($42) {
  19212. $$1152250 = $40;$$1166252 = $$1166;$$1251 = $41;
  19213. } else {
  19214. break;
  19215. }
  19216. }
  19217. }
  19218. break;
  19219. }
  19220. case 12: {
  19221. if ($17) {
  19222. $$2153245 = $29;$$2167247 = $$2167244;$$2246 = $31;
  19223. while(1) {
  19224. $43 = HEAP16[$$2153245>>1]|0;
  19225. $44 = ((($$2246)) + 4|0);
  19226. HEAP16[$44>>1] = $43;
  19227. $45 = ((($$2246)) + 2|0);
  19228. HEAP16[$45>>1] = $43;
  19229. HEAP16[$$2246>>1] = $43;
  19230. $46 = ((($$2246)) + 6|0);
  19231. HEAP16[$46>>1] = -1;
  19232. $47 = ((($$2153245)) + 2|0);
  19233. $48 = ((($$2246)) + 8|0);
  19234. $$2167 = (($$2167247) + -1)|0;
  19235. $49 = ($$2167|0)>(-1);
  19236. if ($49) {
  19237. $$2153245 = $47;$$2167247 = $$2167;$$2246 = $48;
  19238. } else {
  19239. break;
  19240. }
  19241. }
  19242. }
  19243. break;
  19244. }
  19245. case 17: {
  19246. if ($18) {
  19247. $$3154240 = $29;$$3168242 = $$3168239;$$3241 = $31;
  19248. while(1) {
  19249. $50 = HEAP16[$$3154240>>1]|0;
  19250. HEAP16[$$3241>>1] = $50;
  19251. $51 = ((($$3154240)) + 4|0);
  19252. $52 = ((($$3241)) + 2|0);
  19253. $$3168 = (($$3168242) + -1)|0;
  19254. $53 = ($$3168|0)>(-1);
  19255. if ($53) {
  19256. $$3154240 = $51;$$3168242 = $$3168;$$3241 = $52;
  19257. } else {
  19258. break;
  19259. }
  19260. }
  19261. }
  19262. break;
  19263. }
  19264. case 19: {
  19265. if ($19) {
  19266. $$4155235 = $29;$$4169237 = $$4169234;$$4236 = $31;
  19267. while(1) {
  19268. $54 = HEAP16[$$4155235>>1]|0;
  19269. $55 = ((($$4236)) + 4|0);
  19270. HEAP16[$55>>1] = $54;
  19271. $56 = ((($$4236)) + 2|0);
  19272. HEAP16[$56>>1] = $54;
  19273. HEAP16[$$4236>>1] = $54;
  19274. $57 = ((($$4155235)) + 4|0);
  19275. $58 = ((($$4236)) + 6|0);
  19276. $$4169 = (($$4169237) + -1)|0;
  19277. $59 = ($$4169|0)>(-1);
  19278. if ($59) {
  19279. $$4155235 = $57;$$4169237 = $$4169;$$4236 = $58;
  19280. } else {
  19281. break;
  19282. }
  19283. }
  19284. }
  19285. break;
  19286. }
  19287. case 20: {
  19288. if ($20) {
  19289. $$5156230 = $29;$$5170232 = $$5170229;$$5231 = $31;
  19290. while(1) {
  19291. $60 = HEAP16[$$5156230>>1]|0;
  19292. $61 = ((($$5231)) + 4|0);
  19293. HEAP16[$61>>1] = $60;
  19294. $62 = ((($$5231)) + 2|0);
  19295. HEAP16[$62>>1] = $60;
  19296. HEAP16[$$5231>>1] = $60;
  19297. $63 = ((($$5156230)) + 2|0);
  19298. $64 = HEAP16[$63>>1]|0;
  19299. $65 = ((($$5231)) + 6|0);
  19300. HEAP16[$65>>1] = $64;
  19301. $66 = ((($$5156230)) + 4|0);
  19302. $67 = ((($$5231)) + 8|0);
  19303. $$5170 = (($$5170232) + -1)|0;
  19304. $68 = ($$5170|0)>(-1);
  19305. if ($68) {
  19306. $$5156230 = $66;$$5170232 = $$5170;$$5231 = $67;
  19307. } else {
  19308. break;
  19309. }
  19310. }
  19311. }
  19312. break;
  19313. }
  19314. case 28: {
  19315. if ($21) {
  19316. $$6157225 = $29;$$6171227 = $$6171224;$$6226 = $31;
  19317. while(1) {
  19318. $69 = HEAP16[$$6157225>>1]|0;
  19319. HEAP16[$$6226>>1] = $69;
  19320. $70 = ((($$6157225)) + 2|0);
  19321. $71 = HEAP16[$70>>1]|0;
  19322. $72 = ((($$6226)) + 2|0);
  19323. HEAP16[$72>>1] = $71;
  19324. $73 = ((($$6157225)) + 4|0);
  19325. $74 = HEAP16[$73>>1]|0;
  19326. $75 = ((($$6226)) + 4|0);
  19327. HEAP16[$75>>1] = $74;
  19328. $76 = ((($$6226)) + 6|0);
  19329. HEAP16[$76>>1] = -1;
  19330. $77 = ((($$6157225)) + 6|0);
  19331. $78 = ((($$6226)) + 8|0);
  19332. $$6171 = (($$6171227) + -1)|0;
  19333. $79 = ($$6171|0)>(-1);
  19334. if ($79) {
  19335. $$6157225 = $77;$$6171227 = $$6171;$$6226 = $78;
  19336. } else {
  19337. break;
  19338. }
  19339. }
  19340. }
  19341. break;
  19342. }
  19343. case 25: {
  19344. if ($22) {
  19345. $$7158220 = $29;$$7172222 = $$7172219;$$7221 = $31;
  19346. while(1) {
  19347. $80 = HEAP16[$$7158220>>1]|0;
  19348. $81 = $80&65535;
  19349. $82 = ((($$7158220)) + 2|0);
  19350. $83 = HEAP16[$82>>1]|0;
  19351. $84 = $83&65535;
  19352. $85 = ((($$7158220)) + 4|0);
  19353. $86 = HEAP16[$85>>1]|0;
  19354. $87 = $86&65535;
  19355. $88 = (_stbi__compute_y_16($81,$84,$87)|0);
  19356. HEAP16[$$7221>>1] = $88;
  19357. $89 = ((($$7158220)) + 6|0);
  19358. $90 = ((($$7221)) + 2|0);
  19359. $$7172 = (($$7172222) + -1)|0;
  19360. $91 = ($$7172|0)>(-1);
  19361. if ($91) {
  19362. $$7158220 = $89;$$7172222 = $$7172;$$7221 = $90;
  19363. } else {
  19364. break;
  19365. }
  19366. }
  19367. }
  19368. break;
  19369. }
  19370. case 26: {
  19371. if ($23) {
  19372. $$8159215 = $29;$$8173217 = $$8173214;$$8216 = $31;
  19373. while(1) {
  19374. $92 = HEAP16[$$8159215>>1]|0;
  19375. $93 = $92&65535;
  19376. $94 = ((($$8159215)) + 2|0);
  19377. $95 = HEAP16[$94>>1]|0;
  19378. $96 = $95&65535;
  19379. $97 = ((($$8159215)) + 4|0);
  19380. $98 = HEAP16[$97>>1]|0;
  19381. $99 = $98&65535;
  19382. $100 = (_stbi__compute_y_16($93,$96,$99)|0);
  19383. HEAP16[$$8216>>1] = $100;
  19384. $101 = ((($$8216)) + 2|0);
  19385. HEAP16[$101>>1] = -1;
  19386. $102 = ((($$8159215)) + 6|0);
  19387. $103 = ((($$8216)) + 4|0);
  19388. $$8173 = (($$8173217) + -1)|0;
  19389. $104 = ($$8173|0)>(-1);
  19390. if ($104) {
  19391. $$8159215 = $102;$$8173217 = $$8173;$$8216 = $103;
  19392. } else {
  19393. break;
  19394. }
  19395. }
  19396. }
  19397. break;
  19398. }
  19399. case 33: {
  19400. if ($24) {
  19401. $$9160210 = $29;$$9174212 = $$9174209;$$9211 = $31;
  19402. while(1) {
  19403. $105 = HEAP16[$$9160210>>1]|0;
  19404. $106 = $105&65535;
  19405. $107 = ((($$9160210)) + 2|0);
  19406. $108 = HEAP16[$107>>1]|0;
  19407. $109 = $108&65535;
  19408. $110 = ((($$9160210)) + 4|0);
  19409. $111 = HEAP16[$110>>1]|0;
  19410. $112 = $111&65535;
  19411. $113 = (_stbi__compute_y_16($106,$109,$112)|0);
  19412. HEAP16[$$9211>>1] = $113;
  19413. $114 = ((($$9160210)) + 8|0);
  19414. $115 = ((($$9211)) + 2|0);
  19415. $$9174 = (($$9174212) + -1)|0;
  19416. $116 = ($$9174|0)>(-1);
  19417. if ($116) {
  19418. $$9160210 = $114;$$9174212 = $$9174;$$9211 = $115;
  19419. } else {
  19420. break;
  19421. }
  19422. }
  19423. }
  19424. break;
  19425. }
  19426. case 34: {
  19427. if ($25) {
  19428. $$10161205 = $29;$$10175207 = $$10175204;$$10206 = $31;
  19429. while(1) {
  19430. $117 = HEAP16[$$10161205>>1]|0;
  19431. $118 = $117&65535;
  19432. $119 = ((($$10161205)) + 2|0);
  19433. $120 = HEAP16[$119>>1]|0;
  19434. $121 = $120&65535;
  19435. $122 = ((($$10161205)) + 4|0);
  19436. $123 = HEAP16[$122>>1]|0;
  19437. $124 = $123&65535;
  19438. $125 = (_stbi__compute_y_16($118,$121,$124)|0);
  19439. HEAP16[$$10206>>1] = $125;
  19440. $126 = ((($$10161205)) + 6|0);
  19441. $127 = HEAP16[$126>>1]|0;
  19442. $128 = ((($$10206)) + 2|0);
  19443. HEAP16[$128>>1] = $127;
  19444. $129 = ((($$10161205)) + 8|0);
  19445. $130 = ((($$10206)) + 4|0);
  19446. $$10175 = (($$10175207) + -1)|0;
  19447. $131 = ($$10175|0)>(-1);
  19448. if ($131) {
  19449. $$10161205 = $129;$$10175207 = $$10175;$$10206 = $130;
  19450. } else {
  19451. break;
  19452. }
  19453. }
  19454. }
  19455. break;
  19456. }
  19457. case 35: {
  19458. if ($26) {
  19459. $$11162201 = $29;$$11176203 = $$11176200;$$11202 = $31;
  19460. while(1) {
  19461. $132 = HEAP16[$$11162201>>1]|0;
  19462. HEAP16[$$11202>>1] = $132;
  19463. $133 = ((($$11162201)) + 2|0);
  19464. $134 = HEAP16[$133>>1]|0;
  19465. $135 = ((($$11202)) + 2|0);
  19466. HEAP16[$135>>1] = $134;
  19467. $136 = ((($$11162201)) + 4|0);
  19468. $137 = HEAP16[$136>>1]|0;
  19469. $138 = ((($$11202)) + 4|0);
  19470. HEAP16[$138>>1] = $137;
  19471. $139 = ((($$11162201)) + 8|0);
  19472. $140 = ((($$11202)) + 6|0);
  19473. $$11176 = (($$11176203) + -1)|0;
  19474. $141 = ($$11176|0)>(-1);
  19475. if ($141) {
  19476. $$11162201 = $139;$$11176203 = $$11176;$$11202 = $140;
  19477. } else {
  19478. break;
  19479. }
  19480. }
  19481. }
  19482. break;
  19483. }
  19484. default: {
  19485. break L13;
  19486. }
  19487. }
  19488. } while(0);
  19489. $142 = (($$0164259) + 1)|0;
  19490. $143 = ($142|0)<($4|0);
  19491. if ($143) {
  19492. $$0164259 = $142;
  19493. } else {
  19494. break L11;
  19495. }
  19496. }
  19497. ___assert_fail((9719|0),(9569|0),1555,(9696|0));
  19498. // unreachable;
  19499. }
  19500. } while(0);
  19501. _free($0);
  19502. $$0163 = $10;
  19503. return ($$0163|0);
  19504. }
  19505. function _stbi__compute_y_16($0,$1,$2) {
  19506. $0 = $0|0;
  19507. $1 = $1|0;
  19508. $2 = $2|0;
  19509. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  19510. sp = STACKTOP;
  19511. $3 = ($0*77)|0;
  19512. $4 = ($1*150)|0;
  19513. $5 = (($4) + ($3))|0;
  19514. $6 = ($2*29)|0;
  19515. $7 = (($5) + ($6))|0;
  19516. $8 = $7 >>> 8;
  19517. $9 = $8&65535;
  19518. return ($9|0);
  19519. }
  19520. function _stbi__malloc_mad3($0,$1,$2) {
  19521. $0 = $0|0;
  19522. $1 = $1|0;
  19523. $2 = $2|0;
  19524. var $$0 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  19525. sp = STACKTOP;
  19526. $3 = (_stbi__mad3sizes_valid($0,$1,$2)|0);
  19527. $4 = ($3|0)==(0);
  19528. if ($4) {
  19529. $$0 = 0;
  19530. return ($$0|0);
  19531. }
  19532. $5 = Math_imul($1, $0)|0;
  19533. $6 = Math_imul($5, $2)|0;
  19534. $7 = (_stbi__malloc($6)|0);
  19535. $$0 = $7;
  19536. return ($$0|0);
  19537. }
  19538. function _stbi__compute_y($0,$1,$2) {
  19539. $0 = $0|0;
  19540. $1 = $1|0;
  19541. $2 = $2|0;
  19542. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  19543. sp = STACKTOP;
  19544. $3 = ($0*77)|0;
  19545. $4 = ($1*150)|0;
  19546. $5 = (($4) + ($3))|0;
  19547. $6 = ($2*29)|0;
  19548. $7 = (($5) + ($6))|0;
  19549. $8 = $7 >>> 8;
  19550. $9 = $8&255;
  19551. return ($9|0);
  19552. }
  19553. function _stbi__mad3sizes_valid($0,$1,$2) {
  19554. $0 = $0|0;
  19555. $1 = $1|0;
  19556. $2 = $2|0;
  19557. 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;
  19558. sp = STACKTOP;
  19559. $3 = (_stbi__mul2sizes_valid($0,$1)|0);
  19560. $4 = ($3|0)==(0);
  19561. if ($4) {
  19562. $12 = 0;
  19563. } else {
  19564. $5 = Math_imul($1, $0)|0;
  19565. $6 = (_stbi__mul2sizes_valid($5,$2)|0);
  19566. $7 = ($6|0)==(0);
  19567. if ($7) {
  19568. $12 = 0;
  19569. } else {
  19570. $8 = Math_imul($5, $2)|0;
  19571. $9 = (_stbi__addsizes_valid($8)|0);
  19572. $10 = ($9|0)!=(0);
  19573. $12 = $10;
  19574. }
  19575. }
  19576. $11 = $12&1;
  19577. return ($11|0);
  19578. }
  19579. function _stbi__mul2sizes_valid($0,$1) {
  19580. $0 = $0|0;
  19581. $1 = $1|0;
  19582. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  19583. sp = STACKTOP;
  19584. $2 = $1 | $0;
  19585. $3 = ($2|0)<(0);
  19586. if ($3) {
  19587. $$0 = 0;
  19588. } else {
  19589. $4 = ($1|0)==(0);
  19590. if ($4) {
  19591. $$0 = 1;
  19592. } else {
  19593. $5 = (2147483647 / ($1|0))&-1;
  19594. $6 = ($5|0)>=($0|0);
  19595. $7 = $6&1;
  19596. $$0 = $7;
  19597. }
  19598. }
  19599. return ($$0|0);
  19600. }
  19601. function _stbi__addsizes_valid($0) {
  19602. $0 = $0|0;
  19603. var label = 0, sp = 0;
  19604. sp = STACKTOP;
  19605. return 1;
  19606. }
  19607. function _stbi__check_png_header($0) {
  19608. $0 = $0|0;
  19609. 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;
  19610. sp = STACKTOP;
  19611. $1 = (_stbi__get8($0)|0);
  19612. $2 = ($1<<24>>24)==(-119);
  19613. if ($2) {
  19614. $3 = (_stbi__get8($0)|0);
  19615. $4 = ($3<<24>>24)==(80);
  19616. if ($4) {
  19617. $5 = (_stbi__get8($0)|0);
  19618. $6 = ($5<<24>>24)==(78);
  19619. if ($6) {
  19620. $7 = (_stbi__get8($0)|0);
  19621. $8 = ($7<<24>>24)==(71);
  19622. if ($8) {
  19623. $9 = (_stbi__get8($0)|0);
  19624. $10 = ($9<<24>>24)==(13);
  19625. if ($10) {
  19626. $11 = (_stbi__get8($0)|0);
  19627. $12 = ($11<<24>>24)==(10);
  19628. if ($12) {
  19629. $13 = (_stbi__get8($0)|0);
  19630. $14 = ($13<<24>>24)==(26);
  19631. if ($14) {
  19632. $15 = (_stbi__get8($0)|0);
  19633. $16 = ($15<<24>>24)==(10);
  19634. if ($16) {
  19635. $$05 = 1;
  19636. return ($$05|0);
  19637. }
  19638. }
  19639. }
  19640. }
  19641. }
  19642. }
  19643. }
  19644. }
  19645. _stbi__err(10980);
  19646. $$05 = 0;
  19647. return ($$05|0);
  19648. }
  19649. function _stbi__get_chunk_header($0,$1) {
  19650. $0 = $0|0;
  19651. $1 = $1|0;
  19652. var $$sroa$4$0$$sroa_idx2 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  19653. sp = STACKTOP;
  19654. $2 = (_stbi__get32be($1)|0);
  19655. $3 = (_stbi__get32be($1)|0);
  19656. HEAP32[$0>>2] = $2;
  19657. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  19658. HEAP32[$$sroa$4$0$$sroa_idx2>>2] = $3;
  19659. return;
  19660. }
  19661. function _stbi__skip($0,$1) {
  19662. $0 = $0|0;
  19663. $1 = $1|0;
  19664. 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;
  19665. var $8 = 0, $9 = 0, label = 0, sp = 0;
  19666. sp = STACKTOP;
  19667. $2 = ($1|0)<(0);
  19668. if ($2) {
  19669. $3 = ((($0)) + 172|0);
  19670. $4 = HEAP32[$3>>2]|0;
  19671. $5 = ((($0)) + 168|0);
  19672. HEAP32[$5>>2] = $4;
  19673. return;
  19674. }
  19675. $6 = ((($0)) + 16|0);
  19676. $7 = HEAP32[$6>>2]|0;
  19677. $8 = ($7|0)==(0|0);
  19678. if (!($8)) {
  19679. $9 = ((($0)) + 172|0);
  19680. $10 = HEAP32[$9>>2]|0;
  19681. $11 = ((($0)) + 168|0);
  19682. $12 = HEAP32[$11>>2]|0;
  19683. $13 = $10;
  19684. $14 = (($13) - ($12))|0;
  19685. $15 = ($14|0)<($1|0);
  19686. if ($15) {
  19687. HEAP32[$11>>2] = $10;
  19688. $16 = ((($0)) + 20|0);
  19689. $17 = HEAP32[$16>>2]|0;
  19690. $18 = ((($0)) + 28|0);
  19691. $19 = HEAP32[$18>>2]|0;
  19692. $20 = (($1) - ($14))|0;
  19693. FUNCTION_TABLE_vii[$17 & 63]($19,$20);
  19694. return;
  19695. }
  19696. }
  19697. $21 = ((($0)) + 168|0);
  19698. $22 = HEAP32[$21>>2]|0;
  19699. $23 = (($22) + ($1)|0);
  19700. HEAP32[$21>>2] = $23;
  19701. return;
  19702. }
  19703. function _stbi__get32be($0) {
  19704. $0 = $0|0;
  19705. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  19706. sp = STACKTOP;
  19707. $1 = (_stbi__get16be($0)|0);
  19708. $2 = $1 << 16;
  19709. $3 = (_stbi__get16be($0)|0);
  19710. $4 = (($2) + ($3))|0;
  19711. return ($4|0);
  19712. }
  19713. function _stbi__get8($0) {
  19714. $0 = $0|0;
  19715. 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;
  19716. sp = STACKTOP;
  19717. $1 = ((($0)) + 168|0);
  19718. $2 = HEAP32[$1>>2]|0;
  19719. $3 = ((($0)) + 172|0);
  19720. $4 = HEAP32[$3>>2]|0;
  19721. $5 = ($2>>>0)<($4>>>0);
  19722. do {
  19723. if ($5) {
  19724. $$sink6 = $2;
  19725. } else {
  19726. $6 = ((($0)) + 32|0);
  19727. $7 = HEAP32[$6>>2]|0;
  19728. $8 = ($7|0)==(0);
  19729. if ($8) {
  19730. $$0 = 0;
  19731. return ($$0|0);
  19732. } else {
  19733. _stbi__refill_buffer($0);
  19734. $9 = HEAP32[$1>>2]|0;
  19735. $$sink6 = $9;
  19736. break;
  19737. }
  19738. }
  19739. } while(0);
  19740. $10 = ((($$sink6)) + 1|0);
  19741. HEAP32[$1>>2] = $10;
  19742. $11 = HEAP8[$$sink6>>0]|0;
  19743. $$0 = $11;
  19744. return ($$0|0);
  19745. }
  19746. function _stbi__get16be($0) {
  19747. $0 = $0|0;
  19748. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  19749. sp = STACKTOP;
  19750. $1 = (_stbi__get8($0)|0);
  19751. $2 = $1&255;
  19752. $3 = $2 << 8;
  19753. $4 = (_stbi__get8($0)|0);
  19754. $5 = $4&255;
  19755. $6 = $3 | $5;
  19756. return ($6|0);
  19757. }
  19758. function _stbi__getn($0,$1,$2) {
  19759. $0 = $0|0;
  19760. $1 = $1|0;
  19761. $2 = $2|0;
  19762. 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;
  19763. var $29 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  19764. sp = STACKTOP;
  19765. $3 = ((($0)) + 16|0);
  19766. $4 = HEAP32[$3>>2]|0;
  19767. $5 = ($4|0)==(0|0);
  19768. if (!($5)) {
  19769. $6 = ((($0)) + 172|0);
  19770. $7 = HEAP32[$6>>2]|0;
  19771. $8 = ((($0)) + 168|0);
  19772. $9 = HEAP32[$8>>2]|0;
  19773. $10 = $9;
  19774. $11 = (($7) - ($10))|0;
  19775. $12 = ($11|0)<($2|0);
  19776. if ($12) {
  19777. _memcpy(($1|0),($9|0),($11|0))|0;
  19778. $13 = HEAP32[$3>>2]|0;
  19779. $14 = ((($0)) + 28|0);
  19780. $15 = HEAP32[$14>>2]|0;
  19781. $16 = (($1) + ($11)|0);
  19782. $17 = (($2) - ($11))|0;
  19783. $18 = (FUNCTION_TABLE_iiii[$13 & 15]($15,$16,$17)|0);
  19784. $19 = ($18|0)==($17|0);
  19785. $20 = $19&1;
  19786. $21 = HEAP32[$6>>2]|0;
  19787. HEAP32[$8>>2] = $21;
  19788. $$1 = $20;
  19789. return ($$1|0);
  19790. }
  19791. }
  19792. $22 = ((($0)) + 168|0);
  19793. $23 = HEAP32[$22>>2]|0;
  19794. $24 = (($23) + ($2)|0);
  19795. $25 = ((($0)) + 172|0);
  19796. $26 = HEAP32[$25>>2]|0;
  19797. $27 = ($24>>>0)>($26>>>0);
  19798. if ($27) {
  19799. $$1 = 0;
  19800. return ($$1|0);
  19801. }
  19802. _memcpy(($1|0),($23|0),($2|0))|0;
  19803. $28 = HEAP32[$22>>2]|0;
  19804. $29 = (($28) + ($2)|0);
  19805. HEAP32[$22>>2] = $29;
  19806. $$1 = 1;
  19807. return ($$1|0);
  19808. }
  19809. function _stbi_zlib_decode_malloc_guesssize_headerflag($0,$1,$2,$3,$4) {
  19810. $0 = $0|0;
  19811. $1 = $1|0;
  19812. $2 = $2|0;
  19813. $3 = $3|0;
  19814. $4 = $4|0;
  19815. 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;
  19816. sp = STACKTOP;
  19817. STACKTOP = STACKTOP + 4080|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(4080|0);
  19818. $5 = sp;
  19819. $6 = (_stbi__malloc($2)|0);
  19820. $7 = ($6|0)==(0|0);
  19821. do {
  19822. if ($7) {
  19823. $$0 = 0;
  19824. } else {
  19825. HEAP32[$5>>2] = $0;
  19826. $8 = (($0) + ($1)|0);
  19827. $9 = ((($5)) + 4|0);
  19828. HEAP32[$9>>2] = $8;
  19829. $10 = (_stbi__do_zlib($5,$6,$2,1,$4)|0);
  19830. $11 = ($10|0)==(0);
  19831. $12 = ((($5)) + 20|0);
  19832. $13 = HEAP32[$12>>2]|0;
  19833. if ($11) {
  19834. _free($13);
  19835. $$0 = 0;
  19836. break;
  19837. }
  19838. $14 = ($3|0)==(0|0);
  19839. if ($14) {
  19840. $$0 = $13;
  19841. } else {
  19842. $15 = ((($5)) + 16|0);
  19843. $16 = HEAP32[$15>>2]|0;
  19844. $17 = $13;
  19845. $18 = (($16) - ($17))|0;
  19846. HEAP32[$3>>2] = $18;
  19847. $$0 = $13;
  19848. }
  19849. }
  19850. } while(0);
  19851. STACKTOP = sp;return ($$0|0);
  19852. }
  19853. function _stbi__create_png_image($0,$1,$2,$3,$4,$5,$6) {
  19854. $0 = $0|0;
  19855. $1 = $1|0;
  19856. $2 = $2|0;
  19857. $3 = $3|0;
  19858. $4 = $4|0;
  19859. $5 = $5|0;
  19860. $6 = $6|0;
  19861. 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;
  19862. 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;
  19863. 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;
  19864. 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;
  19865. var $80 = 0, $81 = 0, $82 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  19866. sp = STACKTOP;
  19867. $7 = ($4|0)==(16);
  19868. $8 = $7 ? 2 : 1;
  19869. $9 = Math_imul($8, $3)|0;
  19870. $10 = ($6|0)==(0);
  19871. $11 = HEAP32[$0>>2]|0;
  19872. $12 = HEAP32[$11>>2]|0;
  19873. $13 = ((($11)) + 4|0);
  19874. $14 = HEAP32[$13>>2]|0;
  19875. if ($10) {
  19876. $15 = (_stbi__create_png_image_raw($0,$1,$2,$3,$12,$14,$4,$5)|0);
  19877. $$4 = $15;
  19878. return ($$4|0);
  19879. }
  19880. $16 = (_stbi__malloc_mad3($12,$14,$9)|0);
  19881. $17 = ((($0)) + 12|0);
  19882. $18 = ((($0)) + 12|0);
  19883. $$0103117 = 0;$$095119 = $1;$$099118 = $2;
  19884. while(1) {
  19885. $19 = HEAP32[$0>>2]|0;
  19886. $20 = HEAP32[$19>>2]|0;
  19887. $21 = (3072 + ($$0103117<<2)|0);
  19888. $22 = HEAP32[$21>>2]|0;
  19889. $23 = (3100 + ($$0103117<<2)|0);
  19890. $24 = HEAP32[$23>>2]|0;
  19891. $25 = (($20) + -1)|0;
  19892. $26 = (($25) - ($22))|0;
  19893. $27 = (($26) + ($24))|0;
  19894. $28 = (($27>>>0) / ($24>>>0))&-1;
  19895. $29 = ((($19)) + 4|0);
  19896. $30 = HEAP32[$29>>2]|0;
  19897. $31 = (3128 + ($$0103117<<2)|0);
  19898. $32 = HEAP32[$31>>2]|0;
  19899. $33 = (3156 + ($$0103117<<2)|0);
  19900. $34 = HEAP32[$33>>2]|0;
  19901. $35 = (($30) + -1)|0;
  19902. $36 = (($35) - ($32))|0;
  19903. $37 = (($36) + ($34))|0;
  19904. $38 = (($37>>>0) / ($34>>>0))&-1;
  19905. $39 = ($24>>>0)<=($27>>>0);
  19906. $40 = ($34>>>0)<=($37>>>0);
  19907. $or$cond = $39 & $40;
  19908. if ($or$cond) {
  19909. $41 = ((($19)) + 8|0);
  19910. $42 = HEAP32[$41>>2]|0;
  19911. $43 = Math_imul($28, $4)|0;
  19912. $44 = Math_imul($43, $42)|0;
  19913. $45 = (($44) + 7)|0;
  19914. $46 = $45 >> 3;
  19915. $47 = (($46) + 1)|0;
  19916. $48 = Math_imul($47, $38)|0;
  19917. $49 = (_stbi__create_png_image_raw($0,$$095119,$$099118,$3,$28,$38,$4,$5)|0);
  19918. $50 = ($49|0)==(0);
  19919. if ($50) {
  19920. label = 13;
  19921. break;
  19922. }
  19923. $51 = ($38|0)>(0);
  19924. if ($51) {
  19925. $52 = ($28|0)>(0);
  19926. $$0106116 = 0;
  19927. while(1) {
  19928. if ($52) {
  19929. $53 = HEAP32[$33>>2]|0;
  19930. $54 = Math_imul($53, $$0106116)|0;
  19931. $55 = HEAP32[$31>>2]|0;
  19932. $56 = (($54) + ($55))|0;
  19933. $57 = HEAP32[$23>>2]|0;
  19934. $58 = HEAP32[$21>>2]|0;
  19935. $59 = Math_imul($56, $9)|0;
  19936. $60 = Math_imul($$0106116, $28)|0;
  19937. $$0107115 = 0;
  19938. while(1) {
  19939. $61 = Math_imul($57, $$0107115)|0;
  19940. $62 = (($61) + ($58))|0;
  19941. $63 = HEAP32[$0>>2]|0;
  19942. $64 = HEAP32[$63>>2]|0;
  19943. $65 = Math_imul($59, $64)|0;
  19944. $66 = (($16) + ($65)|0);
  19945. $67 = Math_imul($62, $9)|0;
  19946. $68 = (($66) + ($67)|0);
  19947. $69 = HEAP32[$18>>2]|0;
  19948. $70 = (($$0107115) + ($60))|0;
  19949. $71 = Math_imul($70, $9)|0;
  19950. $72 = (($69) + ($71)|0);
  19951. _memcpy(($68|0),($72|0),($9|0))|0;
  19952. $73 = (($$0107115) + 1)|0;
  19953. $74 = ($73|0)<($28|0);
  19954. if ($74) {
  19955. $$0107115 = $73;
  19956. } else {
  19957. break;
  19958. }
  19959. }
  19960. }
  19961. $75 = (($$0106116) + 1)|0;
  19962. $76 = ($75|0)<($38|0);
  19963. if ($76) {
  19964. $$0106116 = $75;
  19965. } else {
  19966. break;
  19967. }
  19968. }
  19969. }
  19970. $77 = HEAP32[$17>>2]|0;
  19971. _free($77);
  19972. $78 = (($$095119) + ($48)|0);
  19973. $79 = (($$099118) - ($48))|0;
  19974. $$3102$ph = $79;$$398$ph = $78;
  19975. } else {
  19976. $$3102$ph = $$099118;$$398$ph = $$095119;
  19977. }
  19978. $80 = (($$0103117) + 1)|0;
  19979. $81 = ($80|0)<(7);
  19980. if ($81) {
  19981. $$0103117 = $80;$$095119 = $$398$ph;$$099118 = $$3102$ph;
  19982. } else {
  19983. label = 15;
  19984. break;
  19985. }
  19986. }
  19987. if ((label|0) == 13) {
  19988. _free($16);
  19989. $$4 = 0;
  19990. return ($$4|0);
  19991. }
  19992. else if ((label|0) == 15) {
  19993. $82 = ((($0)) + 12|0);
  19994. HEAP32[$82>>2] = $16;
  19995. $$4 = 1;
  19996. return ($$4|0);
  19997. }
  19998. return (0)|0;
  19999. }
  20000. function _stbi__compute_transparency16($0,$1,$2) {
  20001. $0 = $0|0;
  20002. $1 = $1|0;
  20003. $2 = $2|0;
  20004. 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;
  20005. 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;
  20006. sp = STACKTOP;
  20007. $3 = HEAP32[$0>>2]|0;
  20008. $4 = HEAP32[$3>>2]|0;
  20009. $5 = ((($3)) + 4|0);
  20010. $6 = HEAP32[$5>>2]|0;
  20011. $7 = Math_imul($6, $4)|0;
  20012. $8 = ((($0)) + 12|0);
  20013. $9 = HEAP32[$8>>2]|0;
  20014. switch ($2|0) {
  20015. case 2: {
  20016. $13 = ($7|0)==(0);
  20017. if ($13) {
  20018. return;
  20019. } else {
  20020. $$0323 = 0;$$04 = $9;
  20021. }
  20022. while(1) {
  20023. $14 = HEAP16[$$04>>1]|0;
  20024. $15 = HEAP16[$1>>1]|0;
  20025. $not$ = ($14<<16>>16)!=($15<<16>>16);
  20026. $16 = $not$ << 31 >> 31;
  20027. $17 = ((($$04)) + 2|0);
  20028. HEAP16[$17>>1] = $16;
  20029. $18 = ((($$04)) + 4|0);
  20030. $19 = (($$0323) + 1)|0;
  20031. $exitcond = ($19|0)==($7|0);
  20032. if ($exitcond) {
  20033. break;
  20034. } else {
  20035. $$0323 = $19;$$04 = $18;
  20036. }
  20037. }
  20038. return;
  20039. break;
  20040. }
  20041. case 4: {
  20042. $10 = ($7|0)==(0);
  20043. if ($10) {
  20044. return;
  20045. }
  20046. $11 = ((($1)) + 2|0);
  20047. $12 = ((($1)) + 4|0);
  20048. $$1335 = 0;$$16 = $9;
  20049. while(1) {
  20050. $20 = HEAP16[$$16>>1]|0;
  20051. $21 = HEAP16[$1>>1]|0;
  20052. $22 = ($20<<16>>16)==($21<<16>>16);
  20053. if ($22) {
  20054. $23 = ((($$16)) + 2|0);
  20055. $24 = HEAP16[$23>>1]|0;
  20056. $25 = HEAP16[$11>>1]|0;
  20057. $26 = ($24<<16>>16)==($25<<16>>16);
  20058. if ($26) {
  20059. $27 = ((($$16)) + 4|0);
  20060. $28 = HEAP16[$27>>1]|0;
  20061. $29 = HEAP16[$12>>1]|0;
  20062. $30 = ($28<<16>>16)==($29<<16>>16);
  20063. if ($30) {
  20064. $31 = ((($$16)) + 6|0);
  20065. HEAP16[$31>>1] = 0;
  20066. }
  20067. }
  20068. }
  20069. $32 = ((($$16)) + 8|0);
  20070. $33 = (($$1335) + 1)|0;
  20071. $exitcond9 = ($33|0)==($7|0);
  20072. if ($exitcond9) {
  20073. break;
  20074. } else {
  20075. $$1335 = $33;$$16 = $32;
  20076. }
  20077. }
  20078. return;
  20079. break;
  20080. }
  20081. default: {
  20082. ___assert_fail((10062|0),(9569|0),4569,(10114|0));
  20083. // unreachable;
  20084. }
  20085. }
  20086. }
  20087. function _stbi__compute_transparency($0,$1,$2) {
  20088. $0 = $0|0;
  20089. $1 = $1|0;
  20090. $2 = $2|0;
  20091. 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;
  20092. 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;
  20093. sp = STACKTOP;
  20094. $3 = HEAP32[$0>>2]|0;
  20095. $4 = HEAP32[$3>>2]|0;
  20096. $5 = ((($3)) + 4|0);
  20097. $6 = HEAP32[$5>>2]|0;
  20098. $7 = Math_imul($6, $4)|0;
  20099. $8 = ((($0)) + 12|0);
  20100. $9 = HEAP32[$8>>2]|0;
  20101. switch ($2|0) {
  20102. case 2: {
  20103. $13 = ($7|0)==(0);
  20104. if ($13) {
  20105. return;
  20106. } else {
  20107. $$0323 = 0;$$04 = $9;
  20108. }
  20109. while(1) {
  20110. $14 = HEAP8[$$04>>0]|0;
  20111. $15 = HEAP8[$1>>0]|0;
  20112. $not$ = ($14<<24>>24)!=($15<<24>>24);
  20113. $16 = $not$ << 31 >> 31;
  20114. $17 = ((($$04)) + 1|0);
  20115. HEAP8[$17>>0] = $16;
  20116. $18 = ((($$04)) + 2|0);
  20117. $19 = (($$0323) + 1)|0;
  20118. $exitcond = ($19|0)==($7|0);
  20119. if ($exitcond) {
  20120. break;
  20121. } else {
  20122. $$0323 = $19;$$04 = $18;
  20123. }
  20124. }
  20125. return;
  20126. break;
  20127. }
  20128. case 4: {
  20129. $10 = ($7|0)==(0);
  20130. if ($10) {
  20131. return;
  20132. }
  20133. $11 = ((($1)) + 1|0);
  20134. $12 = ((($1)) + 2|0);
  20135. $$1335 = 0;$$16 = $9;
  20136. while(1) {
  20137. $20 = HEAP8[$$16>>0]|0;
  20138. $21 = HEAP8[$1>>0]|0;
  20139. $22 = ($20<<24>>24)==($21<<24>>24);
  20140. if ($22) {
  20141. $23 = ((($$16)) + 1|0);
  20142. $24 = HEAP8[$23>>0]|0;
  20143. $25 = HEAP8[$11>>0]|0;
  20144. $26 = ($24<<24>>24)==($25<<24>>24);
  20145. if ($26) {
  20146. $27 = ((($$16)) + 2|0);
  20147. $28 = HEAP8[$27>>0]|0;
  20148. $29 = HEAP8[$12>>0]|0;
  20149. $30 = ($28<<24>>24)==($29<<24>>24);
  20150. if ($30) {
  20151. $31 = ((($$16)) + 3|0);
  20152. HEAP8[$31>>0] = 0;
  20153. }
  20154. }
  20155. }
  20156. $32 = ((($$16)) + 4|0);
  20157. $33 = (($$1335) + 1)|0;
  20158. $exitcond9 = ($33|0)==($7|0);
  20159. if ($exitcond9) {
  20160. break;
  20161. } else {
  20162. $$1335 = $33;$$16 = $32;
  20163. }
  20164. }
  20165. return;
  20166. break;
  20167. }
  20168. default: {
  20169. ___assert_fail((10062|0),(9569|0),4544,(10087|0));
  20170. // unreachable;
  20171. }
  20172. }
  20173. }
  20174. function _stbi__de_iphone($0) {
  20175. $0 = $0|0;
  20176. 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;
  20177. 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;
  20178. 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;
  20179. sp = STACKTOP;
  20180. $1 = HEAP32[$0>>2]|0;
  20181. $2 = HEAP32[$1>>2]|0;
  20182. $3 = ((($1)) + 4|0);
  20183. $4 = HEAP32[$3>>2]|0;
  20184. $5 = Math_imul($4, $2)|0;
  20185. $6 = ((($0)) + 12|0);
  20186. $7 = HEAP32[$6>>2]|0;
  20187. $8 = ((($1)) + 12|0);
  20188. $9 = HEAP32[$8>>2]|0;
  20189. switch ($9|0) {
  20190. case 3: {
  20191. $10 = ($5|0)==(0);
  20192. if ($10) {
  20193. return;
  20194. } else {
  20195. $$05158 = $7;$$059 = 0;
  20196. }
  20197. while(1) {
  20198. $11 = HEAP8[$$05158>>0]|0;
  20199. $12 = ((($$05158)) + 2|0);
  20200. $13 = HEAP8[$12>>0]|0;
  20201. HEAP8[$$05158>>0] = $13;
  20202. HEAP8[$12>>0] = $11;
  20203. $14 = ((($$05158)) + 3|0);
  20204. $15 = (($$059) + 1)|0;
  20205. $exitcond = ($15|0)==($5|0);
  20206. if ($exitcond) {
  20207. break;
  20208. } else {
  20209. $$05158 = $14;$$059 = $15;
  20210. }
  20211. }
  20212. return;
  20213. break;
  20214. }
  20215. case 4: {
  20216. $16 = HEAP32[5005]|0;
  20217. $17 = ($16|0)==(0);
  20218. $18 = ($5|0)!=(0);
  20219. if ($17) {
  20220. if ($18) {
  20221. $$25360 = $7;$$261 = 0;
  20222. } else {
  20223. return;
  20224. }
  20225. while(1) {
  20226. $42 = HEAP8[$$25360>>0]|0;
  20227. $43 = ((($$25360)) + 2|0);
  20228. $44 = HEAP8[$43>>0]|0;
  20229. HEAP8[$$25360>>0] = $44;
  20230. HEAP8[$43>>0] = $42;
  20231. $45 = ((($$25360)) + 4|0);
  20232. $46 = (($$261) + 1)|0;
  20233. $exitcond68 = ($46|0)==($5|0);
  20234. if ($exitcond68) {
  20235. break;
  20236. } else {
  20237. $$25360 = $45;$$261 = $46;
  20238. }
  20239. }
  20240. return;
  20241. }
  20242. if ($18) {
  20243. $$15263 = $7;$$164 = 0;
  20244. } else {
  20245. return;
  20246. }
  20247. while(1) {
  20248. $19 = ((($$15263)) + 3|0);
  20249. $20 = HEAP8[$19>>0]|0;
  20250. $21 = HEAP8[$$15263>>0]|0;
  20251. $22 = ($20<<24>>24)==(0);
  20252. $23 = ((($$15263)) + 2|0);
  20253. $24 = HEAP8[$23>>0]|0;
  20254. if ($22) {
  20255. HEAP8[$$15263>>0] = $24;
  20256. $$sink = $21;
  20257. } else {
  20258. $25 = $24&255;
  20259. $26 = ($25*255)|0;
  20260. $27 = $20&255;
  20261. $28 = (($26>>>0) / ($27>>>0))&-1;
  20262. $29 = $28&255;
  20263. HEAP8[$$15263>>0] = $29;
  20264. $30 = ((($$15263)) + 1|0);
  20265. $31 = HEAP8[$30>>0]|0;
  20266. $32 = $31&255;
  20267. $33 = ($32*255)|0;
  20268. $34 = (($33>>>0) / ($27>>>0))&-1;
  20269. $35 = $34&255;
  20270. HEAP8[$30>>0] = $35;
  20271. $36 = $21&255;
  20272. $37 = ($36*255)|0;
  20273. $38 = (($37>>>0) / ($27>>>0))&-1;
  20274. $39 = $38&255;
  20275. $$sink = $39;
  20276. }
  20277. HEAP8[$23>>0] = $$sink;
  20278. $40 = ((($$15263)) + 4|0);
  20279. $41 = (($$164) + 1)|0;
  20280. $exitcond69 = ($41|0)==($5|0);
  20281. if ($exitcond69) {
  20282. break;
  20283. } else {
  20284. $$15263 = $40;$$164 = $41;
  20285. }
  20286. }
  20287. return;
  20288. break;
  20289. }
  20290. default: {
  20291. ___assert_fail((10028|0),(9569|0),4650,(10046|0));
  20292. // unreachable;
  20293. }
  20294. }
  20295. }
  20296. function _stbi__expand_png_palette($0,$1,$2) {
  20297. $0 = $0|0;
  20298. $1 = $1|0;
  20299. $2 = $2|0;
  20300. 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;
  20301. 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;
  20302. 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;
  20303. sp = STACKTOP;
  20304. $3 = HEAP32[$0>>2]|0;
  20305. $4 = HEAP32[$3>>2]|0;
  20306. $5 = ((($3)) + 4|0);
  20307. $6 = HEAP32[$5>>2]|0;
  20308. $7 = Math_imul($6, $4)|0;
  20309. $8 = ((($0)) + 12|0);
  20310. $9 = HEAP32[$8>>2]|0;
  20311. $10 = (_stbi__malloc_mad2($7,$2)|0);
  20312. $11 = ($10|0)==(0|0);
  20313. if ($11) {
  20314. _stbi__err(9624);
  20315. $$0 = 0;
  20316. return ($$0|0);
  20317. }
  20318. $12 = ($2|0)==(3);
  20319. $13 = ($7|0)!=(0);
  20320. if ($12) {
  20321. if ($13) {
  20322. $$0574 = 0;$$0583 = $10;
  20323. while(1) {
  20324. $14 = (($9) + ($$0574)|0);
  20325. $15 = HEAP8[$14>>0]|0;
  20326. $16 = $15&255;
  20327. $17 = $16 << 2;
  20328. $18 = (($1) + ($17)|0);
  20329. $19 = HEAP8[$18>>0]|0;
  20330. HEAP8[$$0583>>0] = $19;
  20331. $20 = $17 | 1;
  20332. $21 = (($1) + ($20)|0);
  20333. $22 = HEAP8[$21>>0]|0;
  20334. $23 = ((($$0583)) + 1|0);
  20335. HEAP8[$23>>0] = $22;
  20336. $24 = $17 | 2;
  20337. $25 = (($1) + ($24)|0);
  20338. $26 = HEAP8[$25>>0]|0;
  20339. $27 = ((($$0583)) + 2|0);
  20340. HEAP8[$27>>0] = $26;
  20341. $28 = ((($$0583)) + 3|0);
  20342. $29 = (($$0574) + 1)|0;
  20343. $exitcond = ($29|0)==($7|0);
  20344. if ($exitcond) {
  20345. break;
  20346. } else {
  20347. $$0574 = $29;$$0583 = $28;
  20348. }
  20349. }
  20350. }
  20351. } else {
  20352. if ($13) {
  20353. $$1595 = $10;$$16 = 0;
  20354. while(1) {
  20355. $30 = (($9) + ($$16)|0);
  20356. $31 = HEAP8[$30>>0]|0;
  20357. $32 = $31&255;
  20358. $33 = $32 << 2;
  20359. $34 = (($1) + ($33)|0);
  20360. $35 = HEAP8[$34>>0]|0;
  20361. HEAP8[$$1595>>0] = $35;
  20362. $36 = $33 | 1;
  20363. $37 = (($1) + ($36)|0);
  20364. $38 = HEAP8[$37>>0]|0;
  20365. $39 = ((($$1595)) + 1|0);
  20366. HEAP8[$39>>0] = $38;
  20367. $40 = $33 | 2;
  20368. $41 = (($1) + ($40)|0);
  20369. $42 = HEAP8[$41>>0]|0;
  20370. $43 = ((($$1595)) + 2|0);
  20371. HEAP8[$43>>0] = $42;
  20372. $44 = $33 | 3;
  20373. $45 = (($1) + ($44)|0);
  20374. $46 = HEAP8[$45>>0]|0;
  20375. $47 = ((($$1595)) + 3|0);
  20376. HEAP8[$47>>0] = $46;
  20377. $48 = ((($$1595)) + 4|0);
  20378. $49 = (($$16) + 1)|0;
  20379. $exitcond9 = ($49|0)==($7|0);
  20380. if ($exitcond9) {
  20381. break;
  20382. } else {
  20383. $$1595 = $48;$$16 = $49;
  20384. }
  20385. }
  20386. }
  20387. }
  20388. $50 = HEAP32[$8>>2]|0;
  20389. _free($50);
  20390. HEAP32[$8>>2] = $10;
  20391. $$0 = 1;
  20392. return ($$0|0);
  20393. }
  20394. function _stbi__malloc_mad2($0,$1) {
  20395. $0 = $0|0;
  20396. $1 = $1|0;
  20397. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  20398. sp = STACKTOP;
  20399. $2 = (_stbi__mad2sizes_valid($0,$1)|0);
  20400. $3 = ($2|0)==(0);
  20401. if ($3) {
  20402. $$0 = 0;
  20403. return ($$0|0);
  20404. }
  20405. $4 = Math_imul($1, $0)|0;
  20406. $5 = (_stbi__malloc($4)|0);
  20407. $$0 = $5;
  20408. return ($$0|0);
  20409. }
  20410. function _stbi__mad2sizes_valid($0,$1) {
  20411. $0 = $0|0;
  20412. $1 = $1|0;
  20413. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  20414. sp = STACKTOP;
  20415. $2 = (_stbi__mul2sizes_valid($0,$1)|0);
  20416. $3 = ($2|0)==(0);
  20417. if ($3) {
  20418. $8 = 0;
  20419. $7 = $8&1;
  20420. return ($7|0);
  20421. }
  20422. $4 = Math_imul($1, $0)|0;
  20423. $5 = (_stbi__addsizes_valid($4)|0);
  20424. $6 = ($5|0)!=(0);
  20425. $8 = $6;
  20426. $7 = $8&1;
  20427. return ($7|0);
  20428. }
  20429. function _stbi__create_png_image_raw($0,$1,$2,$3,$4,$5,$6,$7) {
  20430. $0 = $0|0;
  20431. $1 = $1|0;
  20432. $2 = $2|0;
  20433. $3 = $3|0;
  20434. $4 = $4|0;
  20435. $5 = $5|0;
  20436. $6 = $6|0;
  20437. $7 = $7|0;
  20438. 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;
  20439. 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;
  20440. 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;
  20441. 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;
  20442. 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;
  20443. 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;
  20444. 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;
  20445. 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;
  20446. 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;
  20447. 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;
  20448. 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;
  20449. 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;
  20450. 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;
  20451. 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;
  20452. 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;
  20453. 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;
  20454. 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;
  20455. 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;
  20456. 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;
  20457. 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;
  20458. 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;
  20459. 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;
  20460. 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;
  20461. 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;
  20462. 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;
  20463. 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;
  20464. 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;
  20465. 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;
  20466. 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;
  20467. 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;
  20468. 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;
  20469. 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;
  20470. 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;
  20471. 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;
  20472. 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;
  20473. 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;
  20474. 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;
  20475. 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;
  20476. sp = STACKTOP;
  20477. $8 = ($6|0)==(16);
  20478. $9 = $8 ? 2 : 1;
  20479. $10 = HEAP32[$0>>2]|0;
  20480. $11 = Math_imul($4, $3)|0;
  20481. $12 = Math_imul($9, $11)|0;
  20482. $13 = ((($10)) + 8|0);
  20483. $14 = HEAP32[$13>>2]|0;
  20484. $15 = Math_imul($9, $3)|0;
  20485. $16 = Math_imul($14, $9)|0;
  20486. $17 = ($14|0)==($3|0);
  20487. $18 = (($14) + 1)|0;
  20488. $19 = ($18|0)==($3|0);
  20489. $or$cond = $17 | $19;
  20490. if (!($or$cond)) {
  20491. ___assert_fail((10143|0),(9569|0),4294,(10184|0));
  20492. // unreachable;
  20493. }
  20494. $20 = (_stbi__malloc_mad3($4,$5,$15)|0);
  20495. $21 = ((($0)) + 12|0);
  20496. HEAP32[$21>>2] = $20;
  20497. $22 = ($20|0)==(0|0);
  20498. if ($22) {
  20499. _stbi__err(9624);
  20500. $$2 = 0;
  20501. return ($$2|0);
  20502. }
  20503. $23 = Math_imul($14, $4)|0;
  20504. $24 = Math_imul($23, $6)|0;
  20505. $25 = (($24) + 7)|0;
  20506. $26 = $25 >>> 3;
  20507. $27 = (($26) + 1)|0;
  20508. $28 = Math_imul($27, $5)|0;
  20509. $29 = HEAP32[$10>>2]|0;
  20510. $30 = ($29|0)==($4|0);
  20511. if ($30) {
  20512. $31 = ((($10)) + 4|0);
  20513. $32 = HEAP32[$31>>2]|0;
  20514. $33 = ($32|0)==($5|0);
  20515. if ($33) {
  20516. $34 = ($28|0)==($2|0);
  20517. if (!($34)) {
  20518. _stbi__err(10211);
  20519. $$2 = 0;
  20520. return ($$2|0);
  20521. }
  20522. } else {
  20523. label = 9;
  20524. }
  20525. } else {
  20526. label = 9;
  20527. }
  20528. if ((label|0) == 9) {
  20529. $35 = ($28>>>0)>($2>>>0);
  20530. if ($35) {
  20531. _stbi__err(10211);
  20532. $$2 = 0;
  20533. return ($$2|0);
  20534. }
  20535. }
  20536. $36 = ($5|0)==(0);
  20537. L18: do {
  20538. if (!($36)) {
  20539. $37 = ($6|0)<(8);
  20540. $38 = ($26>>>0)>($4>>>0);
  20541. $39 = (($11) - ($26))|0;
  20542. $40 = (0 - ($12))|0;
  20543. $41 = ($6|0)==(8);
  20544. $brmerge = $37 | $17;
  20545. $42 = ($4|0)==(0);
  20546. $$0614793 = (($4) + -1)|0;
  20547. $43 = ($$0614793|0)==(0);
  20548. $$1615785 = (($4) + -1)|0;
  20549. $44 = ($$1615785|0)==(0);
  20550. $$2616776 = (($4) + -1)|0;
  20551. $45 = ($$2616776|0)==(0);
  20552. $$3617767 = (($4) + -1)|0;
  20553. $46 = ($$3617767|0)==(0);
  20554. $$4618758 = (($4) + -1)|0;
  20555. $47 = ($$4618758|0)==(0);
  20556. $$5619750 = (($4) + -1)|0;
  20557. $48 = ($$5619750|0)==(0);
  20558. $$6620742 = (($4) + -1)|0;
  20559. $49 = ($$6620742|0)==(0);
  20560. $$not = $8 ^ 1;
  20561. $brmerge894 = $42 | $$not;
  20562. $$0577817 = $1;$$0608816 = $4;$$0611815 = $16;$$0623814 = 0;
  20563. while(1) {
  20564. $50 = HEAP32[$21>>2]|0;
  20565. $51 = Math_imul($$0623814, $12)|0;
  20566. $52 = (($50) + ($51)|0);
  20567. $53 = ((($$0577817)) + 1|0);
  20568. $54 = HEAP8[$$0577817>>0]|0;
  20569. $55 = $54&255;
  20570. $56 = ($54&255)>(4);
  20571. if ($56) {
  20572. label = 105;
  20573. break;
  20574. }
  20575. if ($37) {
  20576. if ($38) {
  20577. label = 16;
  20578. break;
  20579. }
  20580. $57 = (($52) + ($39)|0);
  20581. $$0597 = $57;$$1609 = $26;$$1612 = 1;
  20582. } else {
  20583. $$0597 = $52;$$1609 = $$0608816;$$1612 = $$0611815;
  20584. }
  20585. $58 = (($$0597) + ($40)|0);
  20586. $59 = ($$0623814|0)==(0);
  20587. if ($59) {
  20588. $60 = (10250 + ($55)|0);
  20589. $61 = HEAP8[$60>>0]|0;
  20590. $62 = $61&255;
  20591. $$0588 = $62;
  20592. } else {
  20593. $$0588 = $55;
  20594. }
  20595. $63 = ($$1612|0)>(0);
  20596. L30: do {
  20597. if ($63) {
  20598. $trunc638 = $$0588&255;
  20599. $$0625734 = 0;
  20600. while(1) {
  20601. switch ($trunc638<<24>>24) {
  20602. case 0: {
  20603. $64 = (($53) + ($$0625734)|0);
  20604. $65 = HEAP8[$64>>0]|0;
  20605. $$sink = $65;
  20606. label = 30;
  20607. break;
  20608. }
  20609. case 1: {
  20610. $66 = (($53) + ($$0625734)|0);
  20611. $67 = HEAP8[$66>>0]|0;
  20612. $$sink = $67;
  20613. label = 30;
  20614. break;
  20615. }
  20616. case 2: {
  20617. $68 = (($53) + ($$0625734)|0);
  20618. $69 = HEAP8[$68>>0]|0;
  20619. $70 = $69&255;
  20620. $71 = (($58) + ($$0625734)|0);
  20621. $72 = HEAP8[$71>>0]|0;
  20622. $73 = $72&255;
  20623. $74 = (($73) + ($70))|0;
  20624. $75 = $74&255;
  20625. $$sink = $75;
  20626. label = 30;
  20627. break;
  20628. }
  20629. case 3: {
  20630. $76 = (($53) + ($$0625734)|0);
  20631. $77 = HEAP8[$76>>0]|0;
  20632. $78 = $77&255;
  20633. $79 = (($58) + ($$0625734)|0);
  20634. $80 = HEAP8[$79>>0]|0;
  20635. $81 = $80&255;
  20636. $82 = $81 >>> 1;
  20637. $83 = (($82) + ($78))|0;
  20638. $84 = $83&255;
  20639. $$sink = $84;
  20640. label = 30;
  20641. break;
  20642. }
  20643. case 4: {
  20644. $85 = (($53) + ($$0625734)|0);
  20645. $86 = HEAP8[$85>>0]|0;
  20646. $87 = $86&255;
  20647. $88 = (($58) + ($$0625734)|0);
  20648. $89 = HEAP8[$88>>0]|0;
  20649. $90 = $89&255;
  20650. $91 = (_stbi__paeth(0,$90,0)|0);
  20651. $92 = (($91) + ($87))|0;
  20652. $93 = $92&255;
  20653. $$sink = $93;
  20654. label = 30;
  20655. break;
  20656. }
  20657. case 5: {
  20658. $94 = (($53) + ($$0625734)|0);
  20659. $95 = HEAP8[$94>>0]|0;
  20660. $$sink = $95;
  20661. label = 30;
  20662. break;
  20663. }
  20664. case 6: {
  20665. $96 = (($53) + ($$0625734)|0);
  20666. $97 = HEAP8[$96>>0]|0;
  20667. $$sink = $97;
  20668. label = 30;
  20669. break;
  20670. }
  20671. default: {
  20672. }
  20673. }
  20674. if ((label|0) == 30) {
  20675. label = 0;
  20676. $$sink1 = (($$0597) + ($$0625734)|0);
  20677. HEAP8[$$sink1>>0] = $$sink;
  20678. }
  20679. $98 = (($$0625734) + 1)|0;
  20680. $exitcond864 = ($98|0)==($$1612|0);
  20681. if ($exitcond864) {
  20682. break L30;
  20683. } else {
  20684. $$0625734 = $98;
  20685. }
  20686. }
  20687. }
  20688. } while(0);
  20689. do {
  20690. if ($41) {
  20691. if (!($17)) {
  20692. $99 = (($$0597) + ($14)|0);
  20693. HEAP8[$99>>0] = -1;
  20694. }
  20695. $100 = (($53) + ($14)|0);
  20696. $$1578 = $100;$$sink641 = $3;
  20697. } else {
  20698. if (!($8)) {
  20699. $105 = ((($$0577817)) + 2|0);
  20700. $$1578 = $105;$$sink641 = 1;
  20701. break;
  20702. }
  20703. if (!($17)) {
  20704. $101 = (($$1612) + 1)|0;
  20705. $102 = (($$0597) + ($101)|0);
  20706. $103 = (($$0597) + ($$1612)|0);
  20707. HEAP8[$103>>0] = -1;
  20708. HEAP8[$102>>0] = -1;
  20709. }
  20710. $104 = (($53) + ($$1612)|0);
  20711. $$1578 = $104;$$sink641 = $15;
  20712. }
  20713. } while(0);
  20714. $106 = (($$0597) + ($$sink641)|0);
  20715. $107 = (($58) + ($$sink641)|0);
  20716. if ($brmerge) {
  20717. $108 = (($$1609) + -1)|0;
  20718. $109 = Math_imul($108, $$1612)|0;
  20719. $trunc637 = $$0588&255;
  20720. switch ($trunc637<<24>>24) {
  20721. case 0: {
  20722. _memcpy(($106|0),($$1578|0),($109|0))|0;
  20723. break;
  20724. }
  20725. case 1: {
  20726. $115 = ($109|0)>(0);
  20727. if ($115) {
  20728. $$1626812 = 0;
  20729. while(1) {
  20730. $116 = (($$1578) + ($$1626812)|0);
  20731. $117 = HEAP8[$116>>0]|0;
  20732. $118 = $117&255;
  20733. $119 = (($$1626812) - ($$1612))|0;
  20734. $120 = (($106) + ($119)|0);
  20735. $121 = HEAP8[$120>>0]|0;
  20736. $122 = $121&255;
  20737. $123 = (($122) + ($118))|0;
  20738. $124 = $123&255;
  20739. $125 = (($106) + ($$1626812)|0);
  20740. HEAP8[$125>>0] = $124;
  20741. $126 = (($$1626812) + 1)|0;
  20742. $exitcond886 = ($126|0)==($109|0);
  20743. if ($exitcond886) {
  20744. break;
  20745. } else {
  20746. $$1626812 = $126;
  20747. }
  20748. }
  20749. }
  20750. break;
  20751. }
  20752. case 2: {
  20753. $114 = ($109|0)>(0);
  20754. if ($114) {
  20755. $$2627810 = 0;
  20756. while(1) {
  20757. $127 = (($$1578) + ($$2627810)|0);
  20758. $128 = HEAP8[$127>>0]|0;
  20759. $129 = $128&255;
  20760. $130 = (($107) + ($$2627810)|0);
  20761. $131 = HEAP8[$130>>0]|0;
  20762. $132 = $131&255;
  20763. $133 = (($132) + ($129))|0;
  20764. $134 = $133&255;
  20765. $135 = (($106) + ($$2627810)|0);
  20766. HEAP8[$135>>0] = $134;
  20767. $136 = (($$2627810) + 1)|0;
  20768. $exitcond885 = ($136|0)==($109|0);
  20769. if ($exitcond885) {
  20770. break;
  20771. } else {
  20772. $$2627810 = $136;
  20773. }
  20774. }
  20775. }
  20776. break;
  20777. }
  20778. case 3: {
  20779. $113 = ($109|0)>(0);
  20780. if ($113) {
  20781. $$3628808 = 0;
  20782. while(1) {
  20783. $137 = (($$1578) + ($$3628808)|0);
  20784. $138 = HEAP8[$137>>0]|0;
  20785. $139 = $138&255;
  20786. $140 = (($107) + ($$3628808)|0);
  20787. $141 = HEAP8[$140>>0]|0;
  20788. $142 = $141&255;
  20789. $143 = (($$3628808) - ($$1612))|0;
  20790. $144 = (($106) + ($143)|0);
  20791. $145 = HEAP8[$144>>0]|0;
  20792. $146 = $145&255;
  20793. $147 = (($146) + ($142))|0;
  20794. $148 = $147 >>> 1;
  20795. $149 = (($148) + ($139))|0;
  20796. $150 = $149&255;
  20797. $151 = (($106) + ($$3628808)|0);
  20798. HEAP8[$151>>0] = $150;
  20799. $152 = (($$3628808) + 1)|0;
  20800. $exitcond884 = ($152|0)==($109|0);
  20801. if ($exitcond884) {
  20802. break;
  20803. } else {
  20804. $$3628808 = $152;
  20805. }
  20806. }
  20807. }
  20808. break;
  20809. }
  20810. case 4: {
  20811. $112 = ($109|0)>(0);
  20812. if ($112) {
  20813. $$4629806 = 0;
  20814. while(1) {
  20815. $153 = (($$1578) + ($$4629806)|0);
  20816. $154 = HEAP8[$153>>0]|0;
  20817. $155 = $154&255;
  20818. $156 = (($$4629806) - ($$1612))|0;
  20819. $157 = (($106) + ($156)|0);
  20820. $158 = HEAP8[$157>>0]|0;
  20821. $159 = $158&255;
  20822. $160 = (($107) + ($$4629806)|0);
  20823. $161 = HEAP8[$160>>0]|0;
  20824. $162 = $161&255;
  20825. $163 = (($107) + ($156)|0);
  20826. $164 = HEAP8[$163>>0]|0;
  20827. $165 = $164&255;
  20828. $166 = (_stbi__paeth($159,$162,$165)|0);
  20829. $167 = (($166) + ($155))|0;
  20830. $168 = $167&255;
  20831. $169 = (($106) + ($$4629806)|0);
  20832. HEAP8[$169>>0] = $168;
  20833. $170 = (($$4629806) + 1)|0;
  20834. $exitcond883 = ($170|0)==($109|0);
  20835. if ($exitcond883) {
  20836. break;
  20837. } else {
  20838. $$4629806 = $170;
  20839. }
  20840. }
  20841. }
  20842. break;
  20843. }
  20844. case 5: {
  20845. $111 = ($109|0)>(0);
  20846. if ($111) {
  20847. $$5630804 = 0;
  20848. while(1) {
  20849. $171 = (($$1578) + ($$5630804)|0);
  20850. $172 = HEAP8[$171>>0]|0;
  20851. $173 = $172&255;
  20852. $174 = (($$5630804) - ($$1612))|0;
  20853. $175 = (($106) + ($174)|0);
  20854. $176 = HEAP8[$175>>0]|0;
  20855. $177 = $176&255;
  20856. $178 = $177 >>> 1;
  20857. $179 = (($178) + ($173))|0;
  20858. $180 = $179&255;
  20859. $181 = (($106) + ($$5630804)|0);
  20860. HEAP8[$181>>0] = $180;
  20861. $182 = (($$5630804) + 1)|0;
  20862. $exitcond882 = ($182|0)==($109|0);
  20863. if ($exitcond882) {
  20864. break;
  20865. } else {
  20866. $$5630804 = $182;
  20867. }
  20868. }
  20869. }
  20870. break;
  20871. }
  20872. case 6: {
  20873. $110 = ($109|0)>(0);
  20874. if ($110) {
  20875. $$6631802 = 0;
  20876. while(1) {
  20877. $183 = (($$1578) + ($$6631802)|0);
  20878. $184 = HEAP8[$183>>0]|0;
  20879. $185 = $184&255;
  20880. $186 = (($$6631802) - ($$1612))|0;
  20881. $187 = (($106) + ($186)|0);
  20882. $188 = HEAP8[$187>>0]|0;
  20883. $189 = $188&255;
  20884. $190 = (_stbi__paeth($189,0,0)|0);
  20885. $191 = (($190) + ($185))|0;
  20886. $192 = $191&255;
  20887. $193 = (($106) + ($$6631802)|0);
  20888. HEAP8[$193>>0] = $192;
  20889. $194 = (($$6631802) + 1)|0;
  20890. $exitcond881 = ($194|0)==($109|0);
  20891. if ($exitcond881) {
  20892. break;
  20893. } else {
  20894. $$6631802 = $194;
  20895. }
  20896. }
  20897. }
  20898. break;
  20899. }
  20900. default: {
  20901. }
  20902. }
  20903. $195 = (($$1578) + ($109)|0);
  20904. $$11$ph = $195;
  20905. } else {
  20906. if (!($19)) {
  20907. label = 58;
  20908. break;
  20909. }
  20910. $trunc = $$0588&255;
  20911. switch ($trunc<<24>>24) {
  20912. case 0: {
  20913. if ($43) {
  20914. $$9586 = $$1578;
  20915. } else {
  20916. $208 = ($$1612|0)>(0);
  20917. $209 = Math_imul($$6620742, $$1612)|0;
  20918. $$0614796 = $$0614793;$$2579795 = $$1578;$$2599794 = $106;
  20919. while(1) {
  20920. if ($208) {
  20921. $$7632790 = 0;
  20922. while(1) {
  20923. $210 = (($$2579795) + ($$7632790)|0);
  20924. $211 = HEAP8[$210>>0]|0;
  20925. $212 = (($$2599794) + ($$7632790)|0);
  20926. HEAP8[$212>>0] = $211;
  20927. $213 = (($$7632790) + 1)|0;
  20928. $exitcond877 = ($213|0)==($$1612|0);
  20929. if ($exitcond877) {
  20930. break;
  20931. } else {
  20932. $$7632790 = $213;
  20933. }
  20934. }
  20935. }
  20936. $214 = (($$2599794) + ($$1612)|0);
  20937. HEAP8[$214>>0] = -1;
  20938. $215 = (($$2579795) + ($$1612)|0);
  20939. $216 = (($$2599794) + ($15)|0);
  20940. $$0614 = (($$0614796) + -1)|0;
  20941. $217 = ($$0614|0)==(0);
  20942. if ($217) {
  20943. break;
  20944. } else {
  20945. $$0614796 = $$0614;$$2579795 = $215;$$2599794 = $216;
  20946. }
  20947. }
  20948. $scevgep879 = (($$1578) + ($209)|0);
  20949. $$9586 = $scevgep879;
  20950. }
  20951. break;
  20952. }
  20953. case 1: {
  20954. if ($44) {
  20955. $$9586 = $$1578;
  20956. } else {
  20957. $206 = ($$1612|0)>(0);
  20958. $207 = Math_imul($$6620742, $$1612)|0;
  20959. $$1615788 = $$1615785;$$3580787 = $$1578;$$3600786 = $106;
  20960. while(1) {
  20961. if ($206) {
  20962. $$8633782 = 0;
  20963. while(1) {
  20964. $218 = (($$3580787) + ($$8633782)|0);
  20965. $219 = HEAP8[$218>>0]|0;
  20966. $220 = $219&255;
  20967. $221 = (($$8633782) - ($15))|0;
  20968. $222 = (($$3600786) + ($221)|0);
  20969. $223 = HEAP8[$222>>0]|0;
  20970. $224 = $223&255;
  20971. $225 = (($224) + ($220))|0;
  20972. $226 = $225&255;
  20973. $227 = (($$3600786) + ($$8633782)|0);
  20974. HEAP8[$227>>0] = $226;
  20975. $228 = (($$8633782) + 1)|0;
  20976. $exitcond875 = ($228|0)==($$1612|0);
  20977. if ($exitcond875) {
  20978. break;
  20979. } else {
  20980. $$8633782 = $228;
  20981. }
  20982. }
  20983. }
  20984. $229 = (($$3600786) + ($$1612)|0);
  20985. HEAP8[$229>>0] = -1;
  20986. $230 = (($$3580787) + ($$1612)|0);
  20987. $231 = (($$3600786) + ($15)|0);
  20988. $$1615 = (($$1615788) + -1)|0;
  20989. $232 = ($$1615|0)==(0);
  20990. if ($232) {
  20991. break;
  20992. } else {
  20993. $$1615788 = $$1615;$$3580787 = $230;$$3600786 = $231;
  20994. }
  20995. }
  20996. $scevgep876 = (($$1578) + ($207)|0);
  20997. $$9586 = $scevgep876;
  20998. }
  20999. break;
  21000. }
  21001. case 2: {
  21002. if ($45) {
  21003. $$9586 = $$1578;
  21004. } else {
  21005. $204 = ($$1612|0)>(0);
  21006. $205 = Math_imul($$6620742, $$1612)|0;
  21007. $$2616780 = $$2616776;$$3592778 = $107;$$4581779 = $$1578;$$4601777 = $106;
  21008. while(1) {
  21009. if ($204) {
  21010. $$9634773 = 0;
  21011. while(1) {
  21012. $233 = (($$4581779) + ($$9634773)|0);
  21013. $234 = HEAP8[$233>>0]|0;
  21014. $235 = $234&255;
  21015. $236 = (($$3592778) + ($$9634773)|0);
  21016. $237 = HEAP8[$236>>0]|0;
  21017. $238 = $237&255;
  21018. $239 = (($238) + ($235))|0;
  21019. $240 = $239&255;
  21020. $241 = (($$4601777) + ($$9634773)|0);
  21021. HEAP8[$241>>0] = $240;
  21022. $242 = (($$9634773) + 1)|0;
  21023. $exitcond873 = ($242|0)==($$1612|0);
  21024. if ($exitcond873) {
  21025. break;
  21026. } else {
  21027. $$9634773 = $242;
  21028. }
  21029. }
  21030. }
  21031. $243 = (($$4601777) + ($$1612)|0);
  21032. HEAP8[$243>>0] = -1;
  21033. $244 = (($$4581779) + ($$1612)|0);
  21034. $245 = (($$4601777) + ($15)|0);
  21035. $246 = (($$3592778) + ($15)|0);
  21036. $$2616 = (($$2616780) + -1)|0;
  21037. $247 = ($$2616|0)==(0);
  21038. if ($247) {
  21039. break;
  21040. } else {
  21041. $$2616780 = $$2616;$$3592778 = $246;$$4581779 = $244;$$4601777 = $245;
  21042. }
  21043. }
  21044. $scevgep874 = (($$1578) + ($205)|0);
  21045. $$9586 = $scevgep874;
  21046. }
  21047. break;
  21048. }
  21049. case 3: {
  21050. if ($46) {
  21051. $$9586 = $$1578;
  21052. } else {
  21053. $202 = ($$1612|0)>(0);
  21054. $203 = Math_imul($$6620742, $$1612)|0;
  21055. $$3617771 = $$3617767;$$4593769 = $107;$$5582770 = $$1578;$$5602768 = $106;
  21056. while(1) {
  21057. if ($202) {
  21058. $$10635764 = 0;
  21059. while(1) {
  21060. $248 = (($$5582770) + ($$10635764)|0);
  21061. $249 = HEAP8[$248>>0]|0;
  21062. $250 = $249&255;
  21063. $251 = (($$4593769) + ($$10635764)|0);
  21064. $252 = HEAP8[$251>>0]|0;
  21065. $253 = $252&255;
  21066. $254 = (($$10635764) - ($15))|0;
  21067. $255 = (($$5602768) + ($254)|0);
  21068. $256 = HEAP8[$255>>0]|0;
  21069. $257 = $256&255;
  21070. $258 = (($257) + ($253))|0;
  21071. $259 = $258 >>> 1;
  21072. $260 = (($259) + ($250))|0;
  21073. $261 = $260&255;
  21074. $262 = (($$5602768) + ($$10635764)|0);
  21075. HEAP8[$262>>0] = $261;
  21076. $263 = (($$10635764) + 1)|0;
  21077. $exitcond871 = ($263|0)==($$1612|0);
  21078. if ($exitcond871) {
  21079. break;
  21080. } else {
  21081. $$10635764 = $263;
  21082. }
  21083. }
  21084. }
  21085. $264 = (($$5602768) + ($$1612)|0);
  21086. HEAP8[$264>>0] = -1;
  21087. $265 = (($$5582770) + ($$1612)|0);
  21088. $266 = (($$5602768) + ($15)|0);
  21089. $267 = (($$4593769) + ($15)|0);
  21090. $$3617 = (($$3617771) + -1)|0;
  21091. $268 = ($$3617|0)==(0);
  21092. if ($268) {
  21093. break;
  21094. } else {
  21095. $$3617771 = $$3617;$$4593769 = $267;$$5582770 = $265;$$5602768 = $266;
  21096. }
  21097. }
  21098. $scevgep872 = (($$1578) + ($203)|0);
  21099. $$9586 = $scevgep872;
  21100. }
  21101. break;
  21102. }
  21103. case 4: {
  21104. if ($47) {
  21105. $$9586 = $$1578;
  21106. } else {
  21107. $200 = ($$1612|0)>(0);
  21108. $201 = Math_imul($$6620742, $$1612)|0;
  21109. $$4618762 = $$4618758;$$5594760 = $107;$$6583761 = $$1578;$$6603759 = $106;
  21110. while(1) {
  21111. if ($200) {
  21112. $$11636755 = 0;
  21113. while(1) {
  21114. $269 = (($$6583761) + ($$11636755)|0);
  21115. $270 = HEAP8[$269>>0]|0;
  21116. $271 = $270&255;
  21117. $272 = (($$11636755) - ($15))|0;
  21118. $273 = (($$6603759) + ($272)|0);
  21119. $274 = HEAP8[$273>>0]|0;
  21120. $275 = $274&255;
  21121. $276 = (($$5594760) + ($$11636755)|0);
  21122. $277 = HEAP8[$276>>0]|0;
  21123. $278 = $277&255;
  21124. $279 = (($$5594760) + ($272)|0);
  21125. $280 = HEAP8[$279>>0]|0;
  21126. $281 = $280&255;
  21127. $282 = (_stbi__paeth($275,$278,$281)|0);
  21128. $283 = (($282) + ($271))|0;
  21129. $284 = $283&255;
  21130. $285 = (($$6603759) + ($$11636755)|0);
  21131. HEAP8[$285>>0] = $284;
  21132. $286 = (($$11636755) + 1)|0;
  21133. $exitcond869 = ($286|0)==($$1612|0);
  21134. if ($exitcond869) {
  21135. break;
  21136. } else {
  21137. $$11636755 = $286;
  21138. }
  21139. }
  21140. }
  21141. $287 = (($$6603759) + ($$1612)|0);
  21142. HEAP8[$287>>0] = -1;
  21143. $288 = (($$6583761) + ($$1612)|0);
  21144. $289 = (($$6603759) + ($15)|0);
  21145. $290 = (($$5594760) + ($15)|0);
  21146. $$4618 = (($$4618762) + -1)|0;
  21147. $291 = ($$4618|0)==(0);
  21148. if ($291) {
  21149. break;
  21150. } else {
  21151. $$4618762 = $$4618;$$5594760 = $290;$$6583761 = $288;$$6603759 = $289;
  21152. }
  21153. }
  21154. $scevgep870 = (($$1578) + ($201)|0);
  21155. $$9586 = $scevgep870;
  21156. }
  21157. break;
  21158. }
  21159. case 5: {
  21160. if ($48) {
  21161. $$9586 = $$1578;
  21162. } else {
  21163. $198 = ($$1612|0)>(0);
  21164. $199 = Math_imul($$6620742, $$1612)|0;
  21165. $$5619753 = $$5619750;$$7584752 = $$1578;$$7604751 = $106;
  21166. while(1) {
  21167. if ($198) {
  21168. $$12747 = 0;
  21169. while(1) {
  21170. $292 = (($$7584752) + ($$12747)|0);
  21171. $293 = HEAP8[$292>>0]|0;
  21172. $294 = $293&255;
  21173. $295 = (($$12747) - ($15))|0;
  21174. $296 = (($$7604751) + ($295)|0);
  21175. $297 = HEAP8[$296>>0]|0;
  21176. $298 = $297&255;
  21177. $299 = $298 >>> 1;
  21178. $300 = (($299) + ($294))|0;
  21179. $301 = $300&255;
  21180. $302 = (($$7604751) + ($$12747)|0);
  21181. HEAP8[$302>>0] = $301;
  21182. $303 = (($$12747) + 1)|0;
  21183. $exitcond867 = ($303|0)==($$1612|0);
  21184. if ($exitcond867) {
  21185. break;
  21186. } else {
  21187. $$12747 = $303;
  21188. }
  21189. }
  21190. }
  21191. $304 = (($$7604751) + ($$1612)|0);
  21192. HEAP8[$304>>0] = -1;
  21193. $305 = (($$7584752) + ($$1612)|0);
  21194. $306 = (($$7604751) + ($15)|0);
  21195. $$5619 = (($$5619753) + -1)|0;
  21196. $307 = ($$5619|0)==(0);
  21197. if ($307) {
  21198. break;
  21199. } else {
  21200. $$5619753 = $$5619;$$7584752 = $305;$$7604751 = $306;
  21201. }
  21202. }
  21203. $scevgep868 = (($$1578) + ($199)|0);
  21204. $$9586 = $scevgep868;
  21205. }
  21206. break;
  21207. }
  21208. case 6: {
  21209. if ($49) {
  21210. $$9586 = $$1578;
  21211. } else {
  21212. $196 = ($$1612|0)>(0);
  21213. $197 = Math_imul($$6620742, $$1612)|0;
  21214. $$6620745 = $$6620742;$$8585744 = $$1578;$$8605743 = $106;
  21215. while(1) {
  21216. if ($196) {
  21217. $$13739 = 0;
  21218. while(1) {
  21219. $308 = (($$8585744) + ($$13739)|0);
  21220. $309 = HEAP8[$308>>0]|0;
  21221. $310 = $309&255;
  21222. $311 = (($$13739) - ($15))|0;
  21223. $312 = (($$8605743) + ($311)|0);
  21224. $313 = HEAP8[$312>>0]|0;
  21225. $314 = $313&255;
  21226. $315 = (_stbi__paeth($314,0,0)|0);
  21227. $316 = (($315) + ($310))|0;
  21228. $317 = $316&255;
  21229. $318 = (($$8605743) + ($$13739)|0);
  21230. HEAP8[$318>>0] = $317;
  21231. $319 = (($$13739) + 1)|0;
  21232. $exitcond865 = ($319|0)==($$1612|0);
  21233. if ($exitcond865) {
  21234. break;
  21235. } else {
  21236. $$13739 = $319;
  21237. }
  21238. }
  21239. }
  21240. $320 = (($$8605743) + ($$1612)|0);
  21241. HEAP8[$320>>0] = -1;
  21242. $321 = (($$8585744) + ($$1612)|0);
  21243. $322 = (($$8605743) + ($15)|0);
  21244. $$6620 = (($$6620745) + -1)|0;
  21245. $323 = ($$6620|0)==(0);
  21246. if ($323) {
  21247. break;
  21248. } else {
  21249. $$6620745 = $$6620;$$8585744 = $321;$$8605743 = $322;
  21250. }
  21251. }
  21252. $scevgep866 = (($$1578) + ($197)|0);
  21253. $$9586 = $scevgep866;
  21254. }
  21255. break;
  21256. }
  21257. default: {
  21258. $$9586 = $$1578;
  21259. }
  21260. }
  21261. if ($brmerge894) {
  21262. $$11$ph = $$9586;
  21263. } else {
  21264. $324 = HEAP32[$21>>2]|0;
  21265. $325 = (($324) + ($51)|0);
  21266. $326 = (($$1612) + 1)|0;
  21267. $$7621798 = 0;$$9606799 = $325;
  21268. while(1) {
  21269. $327 = (($$9606799) + ($326)|0);
  21270. HEAP8[$327>>0] = -1;
  21271. $328 = (($$7621798) + 1)|0;
  21272. $329 = (($$9606799) + ($15)|0);
  21273. $exitcond880 = ($328|0)==($4|0);
  21274. if ($exitcond880) {
  21275. $$11$ph = $$9586;
  21276. break;
  21277. } else {
  21278. $$7621798 = $328;$$9606799 = $329;
  21279. }
  21280. }
  21281. }
  21282. }
  21283. $330 = (($$0623814) + 1)|0;
  21284. $331 = ($330>>>0)<($5>>>0);
  21285. if ($331) {
  21286. $$0577817 = $$11$ph;$$0608816 = $$1609;$$0611815 = $$1612;$$0623814 = $330;
  21287. } else {
  21288. break L18;
  21289. }
  21290. }
  21291. if ((label|0) == 16) {
  21292. ___assert_fail((10229|0),(9569|0),4315,(10184|0));
  21293. // unreachable;
  21294. }
  21295. else if ((label|0) == 58) {
  21296. ___assert_fail((10255|0),(9569|0),4377,(10184|0));
  21297. // unreachable;
  21298. }
  21299. else if ((label|0) == 105) {
  21300. _stbi__err(10272);
  21301. $$2 = 0;
  21302. return ($$2|0);
  21303. }
  21304. }
  21305. } while(0);
  21306. $332 = ($6|0)<(8);
  21307. if (!($332)) {
  21308. if (!($8)) {
  21309. $$2 = 1;
  21310. return ($$2|0);
  21311. }
  21312. $601 = Math_imul($4, $3)|0;
  21313. $602 = Math_imul($601, $5)|0;
  21314. $603 = ($602|0)==(0);
  21315. if ($603) {
  21316. $$2 = 1;
  21317. return ($$2|0);
  21318. }
  21319. $604 = HEAP32[$21>>2]|0;
  21320. $$0731 = $604;$$8622729 = 0;
  21321. while(1) {
  21322. $605 = HEAP8[$$0731>>0]|0;
  21323. $606 = $605&255;
  21324. $607 = $606 << 8;
  21325. $608 = ((($$0731)) + 1|0);
  21326. $609 = HEAP8[$608>>0]|0;
  21327. $610 = $609&255;
  21328. $611 = $607 | $610;
  21329. $612 = $611&65535;
  21330. HEAP16[$$0731>>1] = $612;
  21331. $613 = (($$8622729) + 1)|0;
  21332. $614 = ((($$0731)) + 2|0);
  21333. $exitcond = ($613|0)==($602|0);
  21334. if ($exitcond) {
  21335. $$2 = 1;
  21336. break;
  21337. } else {
  21338. $$0731 = $614;$$8622729 = $613;
  21339. }
  21340. }
  21341. return ($$2|0);
  21342. }
  21343. $333 = ($5|0)==(0);
  21344. if ($333) {
  21345. $$2 = 1;
  21346. return ($$2|0);
  21347. }
  21348. $334 = (0 - ($26))|0;
  21349. $335 = ($7|0)==(0);
  21350. $336 = (9968 + ($6)|0);
  21351. $$0568724 = (($4) + -1)|0;
  21352. $337 = ($$0568724|0)>(-1);
  21353. $$1721 = (($4) + -1)|0;
  21354. $338 = ($$1721|0)>(-1);
  21355. $339 = ($23|0)>(1);
  21356. $340 = ($23|0)>(3);
  21357. $341 = ($23|0)>(7);
  21358. $342 = (($23) + -8)|0;
  21359. $343 = $342 >>> 3;
  21360. $344 = $343 << 3;
  21361. $345 = (($344) + 8)|0;
  21362. $346 = (($342) - ($344))|0;
  21363. $347 = (($343) + ($11))|0;
  21364. $348 = (($347) + 1)|0;
  21365. $349 = (($348) - ($26))|0;
  21366. $350 = (($23) + -4)|0;
  21367. $351 = $350 >>> 2;
  21368. $352 = $351 << 2;
  21369. $353 = (($352) + 4)|0;
  21370. $354 = (($350) - ($352))|0;
  21371. $355 = (($351) + ($11))|0;
  21372. $356 = (($355) + 1)|0;
  21373. $357 = (($356) - ($26))|0;
  21374. $358 = (($23) + -2)|0;
  21375. $359 = $358 >>> 1;
  21376. $360 = $359 << 1;
  21377. $361 = (($360) + 2)|0;
  21378. $362 = (($358) - ($360))|0;
  21379. $363 = (($359) + ($11))|0;
  21380. $364 = (($363) + 1)|0;
  21381. $365 = (($364) - ($26))|0;
  21382. $$1624727 = 0;$indvars$iv = $345;$indvars$iv848 = $349;$indvars$iv851 = $353;$indvars$iv854 = $357;$indvars$iv857 = $361;$indvars$iv860 = $365;
  21383. L174: while(1) {
  21384. $366 = HEAP32[$21>>2]|0;
  21385. $367 = Math_imul($$1624727, $12)|0;
  21386. $368 = (($366) + ($367)|0);
  21387. $369 = (($368) + ($11)|0);
  21388. $370 = (($369) + ($334)|0);
  21389. if ($335) {
  21390. $371 = HEAP8[$336>>0]|0;
  21391. $372 = $371&255;
  21392. $377 = $372;
  21393. } else {
  21394. $377 = 1;
  21395. }
  21396. switch ($6|0) {
  21397. case 4: {
  21398. if ($339) {
  21399. $scevgep859 = (($366) + ($indvars$iv857)|0);
  21400. $$0571715 = $370;$$0574714 = $368;$$14713 = $23;
  21401. while(1) {
  21402. $373 = HEAP8[$$0571715>>0]|0;
  21403. $374 = $373&255;
  21404. $375 = $374 >>> 4;
  21405. $376 = Math_imul($375, $377)|0;
  21406. $378 = $376&255;
  21407. $379 = ((($$0574714)) + 1|0);
  21408. HEAP8[$$0574714>>0] = $378;
  21409. $380 = HEAP8[$$0571715>>0]|0;
  21410. $381 = $380 & 15;
  21411. $382 = $381&255;
  21412. $383 = Math_imul($382, $377)|0;
  21413. $384 = $383&255;
  21414. $385 = ((($$0574714)) + 2|0);
  21415. HEAP8[$379>>0] = $384;
  21416. $386 = (($$14713) + -2)|0;
  21417. $387 = ((($$0571715)) + 1|0);
  21418. $388 = ($386|0)>(1);
  21419. if ($388) {
  21420. $$0571715 = $387;$$0574714 = $385;$$14713 = $386;
  21421. } else {
  21422. break;
  21423. }
  21424. }
  21425. $scevgep862 = (($366) + ($indvars$iv860)|0);
  21426. $$0571$lcssa = $scevgep862;$$0574$lcssa = $scevgep859;$$14$lcssa = $362;
  21427. } else {
  21428. $$0571$lcssa = $370;$$0574$lcssa = $368;$$14$lcssa = $23;
  21429. }
  21430. $389 = ($$14$lcssa|0)==(1);
  21431. if ($389) {
  21432. $390 = HEAP8[$$0571$lcssa>>0]|0;
  21433. $391 = $390&255;
  21434. $392 = $391 >>> 4;
  21435. $393 = Math_imul($392, $377)|0;
  21436. $394 = $393&255;
  21437. HEAP8[$$0574$lcssa>>0] = $394;
  21438. }
  21439. break;
  21440. }
  21441. case 2: {
  21442. if ($340) {
  21443. $scevgep853 = (($366) + ($indvars$iv851)|0);
  21444. $$15705 = $23;$$1572707 = $370;$$1575706 = $368;
  21445. while(1) {
  21446. $395 = HEAP8[$$1572707>>0]|0;
  21447. $396 = $395&255;
  21448. $397 = $396 >>> 6;
  21449. $398 = Math_imul($397, $377)|0;
  21450. $399 = $398&255;
  21451. $400 = ((($$1575706)) + 1|0);
  21452. HEAP8[$$1575706>>0] = $399;
  21453. $401 = HEAP8[$$1572707>>0]|0;
  21454. $402 = $401&255;
  21455. $403 = $402 >>> 4;
  21456. $404 = $403 & 3;
  21457. $405 = Math_imul($404, $377)|0;
  21458. $406 = $405&255;
  21459. $407 = ((($$1575706)) + 2|0);
  21460. HEAP8[$400>>0] = $406;
  21461. $408 = HEAP8[$$1572707>>0]|0;
  21462. $409 = $408&255;
  21463. $410 = $409 >>> 2;
  21464. $411 = $410 & 3;
  21465. $412 = Math_imul($411, $377)|0;
  21466. $413 = $412&255;
  21467. $414 = ((($$1575706)) + 3|0);
  21468. HEAP8[$407>>0] = $413;
  21469. $415 = HEAP8[$$1572707>>0]|0;
  21470. $416 = $415 & 3;
  21471. $417 = $416&255;
  21472. $418 = Math_imul($417, $377)|0;
  21473. $419 = $418&255;
  21474. $420 = ((($$1575706)) + 4|0);
  21475. HEAP8[$414>>0] = $419;
  21476. $421 = (($$15705) + -4)|0;
  21477. $422 = ((($$1572707)) + 1|0);
  21478. $423 = ($421|0)>(3);
  21479. if ($423) {
  21480. $$15705 = $421;$$1572707 = $422;$$1575706 = $420;
  21481. } else {
  21482. break;
  21483. }
  21484. }
  21485. $scevgep856 = (($366) + ($indvars$iv854)|0);
  21486. $$15$lcssa = $354;$$1572$lcssa = $scevgep856;$$1575$lcssa = $scevgep853;
  21487. } else {
  21488. $$15$lcssa = $23;$$1572$lcssa = $370;$$1575$lcssa = $368;
  21489. }
  21490. $424 = ($$15$lcssa|0)>(0);
  21491. if ($424) {
  21492. $425 = HEAP8[$$1572$lcssa>>0]|0;
  21493. $426 = $425&255;
  21494. $427 = $426 >>> 6;
  21495. $428 = Math_imul($427, $377)|0;
  21496. $429 = $428&255;
  21497. HEAP8[$$1575$lcssa>>0] = $429;
  21498. $430 = ($$15$lcssa|0)==(1);
  21499. if (!($430)) {
  21500. $431 = ((($$1575$lcssa)) + 1|0);
  21501. $432 = HEAP8[$$1572$lcssa>>0]|0;
  21502. $433 = $432&255;
  21503. $434 = $433 >>> 4;
  21504. $435 = $434 & 3;
  21505. $436 = Math_imul($435, $377)|0;
  21506. $437 = $436&255;
  21507. HEAP8[$431>>0] = $437;
  21508. $438 = ($$15$lcssa|0)>(2);
  21509. if ($438) {
  21510. $439 = ((($$1575$lcssa)) + 2|0);
  21511. $440 = HEAP8[$$1572$lcssa>>0]|0;
  21512. $441 = $440&255;
  21513. $442 = $441 >>> 2;
  21514. $443 = $442 & 3;
  21515. $444 = Math_imul($443, $377)|0;
  21516. $445 = $444&255;
  21517. HEAP8[$439>>0] = $445;
  21518. }
  21519. }
  21520. }
  21521. break;
  21522. }
  21523. case 1: {
  21524. if ($341) {
  21525. $scevgep = (($366) + ($indvars$iv)|0);
  21526. $$16700 = $23;$$2573702 = $370;$$4701 = $368;
  21527. while(1) {
  21528. $446 = HEAP8[$$2573702>>0]|0;
  21529. $447 = $446&255;
  21530. $448 = $447 >>> 7;
  21531. $449 = (0 - ($448))|0;
  21532. $450 = $377 & $449;
  21533. $451 = $450&255;
  21534. $452 = ((($$4701)) + 1|0);
  21535. HEAP8[$$4701>>0] = $451;
  21536. $453 = HEAP8[$$2573702>>0]|0;
  21537. $454 = $453&255;
  21538. $455 = $454 >>> 6;
  21539. $456 = $455 & 1;
  21540. $457 = (0 - ($456))|0;
  21541. $458 = $377 & $457;
  21542. $459 = $458&255;
  21543. $460 = ((($$4701)) + 2|0);
  21544. HEAP8[$452>>0] = $459;
  21545. $461 = HEAP8[$$2573702>>0]|0;
  21546. $462 = $461&255;
  21547. $463 = $462 >>> 5;
  21548. $464 = $463 & 1;
  21549. $465 = (0 - ($464))|0;
  21550. $466 = $377 & $465;
  21551. $467 = $466&255;
  21552. $468 = ((($$4701)) + 3|0);
  21553. HEAP8[$460>>0] = $467;
  21554. $469 = HEAP8[$$2573702>>0]|0;
  21555. $470 = $469&255;
  21556. $471 = $470 >>> 4;
  21557. $472 = $471 & 1;
  21558. $473 = (0 - ($472))|0;
  21559. $474 = $377 & $473;
  21560. $475 = $474&255;
  21561. $476 = ((($$4701)) + 4|0);
  21562. HEAP8[$468>>0] = $475;
  21563. $477 = HEAP8[$$2573702>>0]|0;
  21564. $478 = $477&255;
  21565. $479 = $478 >>> 3;
  21566. $480 = $479 & 1;
  21567. $481 = (0 - ($480))|0;
  21568. $482 = $377 & $481;
  21569. $483 = $482&255;
  21570. $484 = ((($$4701)) + 5|0);
  21571. HEAP8[$476>>0] = $483;
  21572. $485 = HEAP8[$$2573702>>0]|0;
  21573. $486 = $485&255;
  21574. $487 = $486 >>> 2;
  21575. $488 = $487 & 1;
  21576. $489 = (0 - ($488))|0;
  21577. $490 = $377 & $489;
  21578. $491 = $490&255;
  21579. $492 = ((($$4701)) + 6|0);
  21580. HEAP8[$484>>0] = $491;
  21581. $493 = HEAP8[$$2573702>>0]|0;
  21582. $494 = $493&255;
  21583. $495 = $494 >>> 1;
  21584. $496 = $495 & 1;
  21585. $497 = (0 - ($496))|0;
  21586. $498 = $377 & $497;
  21587. $499 = $498&255;
  21588. $500 = ((($$4701)) + 7|0);
  21589. HEAP8[$492>>0] = $499;
  21590. $501 = HEAP8[$$2573702>>0]|0;
  21591. $502 = $501 & 1;
  21592. $503 = $502&255;
  21593. $504 = (0 - ($503))|0;
  21594. $505 = $377 & $504;
  21595. $506 = $505&255;
  21596. $507 = ((($$4701)) + 8|0);
  21597. HEAP8[$500>>0] = $506;
  21598. $508 = (($$16700) + -8)|0;
  21599. $509 = ((($$2573702)) + 1|0);
  21600. $510 = ($508|0)>(7);
  21601. if ($510) {
  21602. $$16700 = $508;$$2573702 = $509;$$4701 = $507;
  21603. } else {
  21604. break;
  21605. }
  21606. }
  21607. $scevgep850 = (($366) + ($indvars$iv848)|0);
  21608. $$16$lcssa = $346;$$2573$lcssa = $scevgep850;$$4$lcssa = $scevgep;
  21609. } else {
  21610. $$16$lcssa = $23;$$2573$lcssa = $370;$$4$lcssa = $368;
  21611. }
  21612. $511 = ($$16$lcssa|0)>(0);
  21613. if ($511) {
  21614. $512 = HEAP8[$$2573$lcssa>>0]|0;
  21615. $513 = $512&255;
  21616. $514 = $513 >>> 7;
  21617. $515 = (0 - ($514))|0;
  21618. $516 = $377 & $515;
  21619. $517 = $516&255;
  21620. HEAP8[$$4$lcssa>>0] = $517;
  21621. $518 = ($$16$lcssa|0)==(1);
  21622. if (!($518)) {
  21623. $519 = ((($$4$lcssa)) + 1|0);
  21624. $520 = HEAP8[$$2573$lcssa>>0]|0;
  21625. $521 = $520&255;
  21626. $522 = $521 >>> 6;
  21627. $523 = $522 & 1;
  21628. $524 = (0 - ($523))|0;
  21629. $525 = $377 & $524;
  21630. $526 = $525&255;
  21631. HEAP8[$519>>0] = $526;
  21632. $527 = ($$16$lcssa|0)>(2);
  21633. if ($527) {
  21634. $528 = ((($$4$lcssa)) + 2|0);
  21635. $529 = HEAP8[$$2573$lcssa>>0]|0;
  21636. $530 = $529&255;
  21637. $531 = $530 >>> 5;
  21638. $532 = $531 & 1;
  21639. $533 = (0 - ($532))|0;
  21640. $534 = $377 & $533;
  21641. $535 = $534&255;
  21642. HEAP8[$528>>0] = $535;
  21643. $536 = ($$16$lcssa|0)==(3);
  21644. if (!($536)) {
  21645. $537 = ((($$4$lcssa)) + 3|0);
  21646. $538 = HEAP8[$$2573$lcssa>>0]|0;
  21647. $539 = $538&255;
  21648. $540 = $539 >>> 4;
  21649. $541 = $540 & 1;
  21650. $542 = (0 - ($541))|0;
  21651. $543 = $377 & $542;
  21652. $544 = $543&255;
  21653. HEAP8[$537>>0] = $544;
  21654. $545 = ($$16$lcssa|0)>(4);
  21655. if ($545) {
  21656. $546 = ((($$4$lcssa)) + 4|0);
  21657. $547 = HEAP8[$$2573$lcssa>>0]|0;
  21658. $548 = $547&255;
  21659. $549 = $548 >>> 3;
  21660. $550 = $549 & 1;
  21661. $551 = (0 - ($550))|0;
  21662. $552 = $377 & $551;
  21663. $553 = $552&255;
  21664. HEAP8[$546>>0] = $553;
  21665. $554 = ($$16$lcssa|0)==(5);
  21666. if (!($554)) {
  21667. $555 = ((($$4$lcssa)) + 5|0);
  21668. $556 = HEAP8[$$2573$lcssa>>0]|0;
  21669. $557 = $556&255;
  21670. $558 = $557 >>> 2;
  21671. $559 = $558 & 1;
  21672. $560 = (0 - ($559))|0;
  21673. $561 = $377 & $560;
  21674. $562 = $561&255;
  21675. HEAP8[$555>>0] = $562;
  21676. $563 = ($$16$lcssa|0)>(6);
  21677. if ($563) {
  21678. $564 = ((($$4$lcssa)) + 6|0);
  21679. $565 = HEAP8[$$2573$lcssa>>0]|0;
  21680. $566 = $565&255;
  21681. $567 = $566 >>> 1;
  21682. $568 = $567 & 1;
  21683. $569 = (0 - ($568))|0;
  21684. $570 = $377 & $569;
  21685. $571 = $570&255;
  21686. HEAP8[$564>>0] = $571;
  21687. }
  21688. }
  21689. }
  21690. }
  21691. }
  21692. }
  21693. }
  21694. break;
  21695. }
  21696. default: {
  21697. }
  21698. }
  21699. L213: do {
  21700. if (!($17)) {
  21701. $572 = HEAP32[$21>>2]|0;
  21702. $573 = (($572) + ($367)|0);
  21703. switch ($14|0) {
  21704. case 1: {
  21705. if ($337) {
  21706. $$0568725 = $$0568724;
  21707. } else {
  21708. break L213;
  21709. }
  21710. while(1) {
  21711. $574 = $$0568725 << 1;
  21712. $575 = $574 | 1;
  21713. $576 = (($573) + ($575)|0);
  21714. HEAP8[$576>>0] = -1;
  21715. $577 = (($573) + ($$0568725)|0);
  21716. $578 = HEAP8[$577>>0]|0;
  21717. $579 = (($573) + ($574)|0);
  21718. HEAP8[$579>>0] = $578;
  21719. $$0568 = (($$0568725) + -1)|0;
  21720. $580 = ($$0568|0)>(-1);
  21721. if ($580) {
  21722. $$0568725 = $$0568;
  21723. } else {
  21724. break;
  21725. }
  21726. }
  21727. break;
  21728. }
  21729. case 3: {
  21730. if ($338) {
  21731. $$1722 = $$1721;
  21732. } else {
  21733. break L213;
  21734. }
  21735. while(1) {
  21736. $581 = $$1722 << 2;
  21737. $582 = $581 | 3;
  21738. $583 = (($573) + ($582)|0);
  21739. HEAP8[$583>>0] = -1;
  21740. $584 = ($$1722*3)|0;
  21741. $585 = (($584) + 2)|0;
  21742. $586 = (($573) + ($585)|0);
  21743. $587 = HEAP8[$586>>0]|0;
  21744. $588 = $581 | 2;
  21745. $589 = (($573) + ($588)|0);
  21746. HEAP8[$589>>0] = $587;
  21747. $590 = (($584) + 1)|0;
  21748. $591 = (($573) + ($590)|0);
  21749. $592 = HEAP8[$591>>0]|0;
  21750. $593 = $581 | 1;
  21751. $594 = (($573) + ($593)|0);
  21752. HEAP8[$594>>0] = $592;
  21753. $595 = (($573) + ($584)|0);
  21754. $596 = HEAP8[$595>>0]|0;
  21755. $597 = (($573) + ($581)|0);
  21756. HEAP8[$597>>0] = $596;
  21757. $$1 = (($$1722) + -1)|0;
  21758. $598 = ($$1|0)>(-1);
  21759. if ($598) {
  21760. $$1722 = $$1;
  21761. } else {
  21762. break;
  21763. }
  21764. }
  21765. break;
  21766. }
  21767. default: {
  21768. label = 144;
  21769. break L174;
  21770. }
  21771. }
  21772. }
  21773. } while(0);
  21774. $599 = (($$1624727) + 1)|0;
  21775. $600 = ($599>>>0)<($5>>>0);
  21776. $indvars$iv$next = (($indvars$iv) + ($12))|0;
  21777. $indvars$iv$next849 = (($indvars$iv848) + ($12))|0;
  21778. $indvars$iv$next852 = (($indvars$iv851) + ($12))|0;
  21779. $indvars$iv$next855 = (($indvars$iv854) + ($12))|0;
  21780. $indvars$iv$next858 = (($indvars$iv857) + ($12))|0;
  21781. $indvars$iv$next861 = (($indvars$iv860) + ($12))|0;
  21782. if ($600) {
  21783. $$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;
  21784. } else {
  21785. $$2 = 1;
  21786. label = 151;
  21787. break;
  21788. }
  21789. }
  21790. if ((label|0) == 144) {
  21791. ___assert_fail((10287|0),(9569|0),4466,(10184|0));
  21792. // unreachable;
  21793. }
  21794. else if ((label|0) == 151) {
  21795. return ($$2|0);
  21796. }
  21797. return (0)|0;
  21798. }
  21799. function _stbi__paeth($0,$1,$2) {
  21800. $0 = $0|0;
  21801. $1 = $1|0;
  21802. $2 = $2|0;
  21803. 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;
  21804. var label = 0, sp = 0;
  21805. sp = STACKTOP;
  21806. $3 = (($1) + ($0))|0;
  21807. $4 = (($3) - ($2))|0;
  21808. $5 = (($4) - ($0))|0;
  21809. $ispos = ($5|0)>(-1);
  21810. $neg = (0 - ($5))|0;
  21811. $6 = $ispos ? $5 : $neg;
  21812. $7 = (($4) - ($1))|0;
  21813. $ispos26 = ($7|0)>(-1);
  21814. $neg27 = (0 - ($7))|0;
  21815. $8 = $ispos26 ? $7 : $neg27;
  21816. $9 = (($4) - ($2))|0;
  21817. $ispos28 = ($9|0)>(-1);
  21818. $neg29 = (0 - ($9))|0;
  21819. $10 = $ispos28 ? $9 : $neg29;
  21820. $11 = ($6|0)>($8|0);
  21821. $12 = ($6|0)>($10|0);
  21822. $or$cond = $11 | $12;
  21823. $13 = ($8|0)>($10|0);
  21824. $$ = $13 ? $2 : $1;
  21825. $$0 = $or$cond ? $$ : $0;
  21826. return ($$0|0);
  21827. }
  21828. function _stbi__do_zlib($0,$1,$2,$3,$4) {
  21829. $0 = $0|0;
  21830. $1 = $1|0;
  21831. $2 = $2|0;
  21832. $3 = $3|0;
  21833. $4 = $4|0;
  21834. var $10 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  21835. sp = STACKTOP;
  21836. $5 = ((($0)) + 20|0);
  21837. HEAP32[$5>>2] = $1;
  21838. $6 = ((($0)) + 16|0);
  21839. HEAP32[$6>>2] = $1;
  21840. $7 = (($1) + ($2)|0);
  21841. $8 = ((($0)) + 24|0);
  21842. HEAP32[$8>>2] = $7;
  21843. $9 = ((($0)) + 28|0);
  21844. HEAP32[$9>>2] = $3;
  21845. $10 = (_stbi__parse_zlib($0,$4)|0);
  21846. return ($10|0);
  21847. }
  21848. function _stbi__parse_zlib($0,$1) {
  21849. $0 = $0|0;
  21850. $1 = $1|0;
  21851. 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;
  21852. var $9 = 0, label = 0, sp = 0;
  21853. sp = STACKTOP;
  21854. $2 = ($1|0)==(0);
  21855. if (!($2)) {
  21856. $3 = (_stbi__parse_zlib_header($0)|0);
  21857. $4 = ($3|0)==(0);
  21858. if ($4) {
  21859. $$0 = 0;
  21860. return ($$0|0);
  21861. }
  21862. }
  21863. $5 = ((($0)) + 8|0);
  21864. HEAP32[$5>>2] = 0;
  21865. $6 = ((($0)) + 12|0);
  21866. HEAP32[$6>>2] = 0;
  21867. $7 = ((($0)) + 32|0);
  21868. $8 = ((($0)) + 2052|0);
  21869. L5: while(1) {
  21870. $9 = (_stbi__zreceive($0,1)|0);
  21871. $10 = (_stbi__zreceive($0,2)|0);
  21872. switch ($10|0) {
  21873. case 3: {
  21874. $$0 = 0;
  21875. label = 11;
  21876. break L5;
  21877. break;
  21878. }
  21879. case 0: {
  21880. $11 = (_stbi__parse_uncompressed_block($0)|0);
  21881. $12 = ($11|0)==(0);
  21882. if ($12) {
  21883. $$0 = 0;
  21884. label = 11;
  21885. break L5;
  21886. }
  21887. break;
  21888. }
  21889. case 1: {
  21890. $13 = (_stbi__zbuild_huffman($7,10298,288)|0);
  21891. $14 = ($13|0)==(0);
  21892. if ($14) {
  21893. $$0 = 0;
  21894. label = 11;
  21895. break L5;
  21896. }
  21897. $15 = (_stbi__zbuild_huffman($8,10586,32)|0);
  21898. $16 = ($15|0)==(0);
  21899. if ($16) {
  21900. $$0 = 0;
  21901. label = 11;
  21902. break L5;
  21903. } else {
  21904. label = 9;
  21905. }
  21906. break;
  21907. }
  21908. default: {
  21909. $17 = (_stbi__compute_huffman_codes($0)|0);
  21910. $18 = ($17|0)==(0);
  21911. if ($18) {
  21912. $$0 = 0;
  21913. label = 11;
  21914. break L5;
  21915. } else {
  21916. label = 9;
  21917. }
  21918. }
  21919. }
  21920. if ((label|0) == 9) {
  21921. label = 0;
  21922. $19 = (_stbi__parse_huffman_block($0)|0);
  21923. $20 = ($19|0)==(0);
  21924. if ($20) {
  21925. $$0 = 0;
  21926. label = 11;
  21927. break;
  21928. }
  21929. }
  21930. $21 = ($9|0)==(0);
  21931. if (!($21)) {
  21932. $$0 = 1;
  21933. label = 11;
  21934. break;
  21935. }
  21936. }
  21937. if ((label|0) == 11) {
  21938. return ($$0|0);
  21939. }
  21940. return (0)|0;
  21941. }
  21942. function _stbi__parse_zlib_header($0) {
  21943. $0 = $0|0;
  21944. 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;
  21945. sp = STACKTOP;
  21946. $1 = (_stbi__zget8($0)|0);
  21947. $2 = $1&255;
  21948. $3 = $2 & 15;
  21949. $4 = (_stbi__zget8($0)|0);
  21950. $5 = $4&255;
  21951. $6 = $2 << 8;
  21952. $7 = $6 | $5;
  21953. $8 = (($7>>>0) % 31)&-1;
  21954. $9 = ($8|0)==(0);
  21955. if (!($9)) {
  21956. _stbi__err(10933);
  21957. $$0 = 0;
  21958. return ($$0|0);
  21959. }
  21960. $10 = $5 & 32;
  21961. $11 = ($10|0)==(0);
  21962. if (!($11)) {
  21963. _stbi__err(10949);
  21964. $$0 = 0;
  21965. return ($$0|0);
  21966. }
  21967. $12 = ($3|0)==(8);
  21968. if ($12) {
  21969. $$0 = 1;
  21970. return ($$0|0);
  21971. }
  21972. _stbi__err(10964);
  21973. $$0 = 0;
  21974. return ($$0|0);
  21975. }
  21976. function _stbi__zreceive($0,$1) {
  21977. $0 = $0|0;
  21978. $1 = $1|0;
  21979. 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;
  21980. sp = STACKTOP;
  21981. $2 = ((($0)) + 8|0);
  21982. $3 = HEAP32[$2>>2]|0;
  21983. $4 = ($3|0)<($1|0);
  21984. if ($4) {
  21985. _stbi__fill_bits($0);
  21986. }
  21987. $5 = ((($0)) + 12|0);
  21988. $6 = HEAP32[$5>>2]|0;
  21989. $7 = 1 << $1;
  21990. $8 = (($7) + -1)|0;
  21991. $9 = $6 & $8;
  21992. $10 = $6 >>> $1;
  21993. HEAP32[$5>>2] = $10;
  21994. $11 = HEAP32[$2>>2]|0;
  21995. $12 = (($11) - ($1))|0;
  21996. HEAP32[$2>>2] = $12;
  21997. return ($9|0);
  21998. }
  21999. function _stbi__parse_uncompressed_block($0) {
  22000. $0 = $0|0;
  22001. 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;
  22002. 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;
  22003. 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;
  22004. 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;
  22005. sp = STACKTOP;
  22006. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  22007. $1 = sp;
  22008. $2 = ((($0)) + 8|0);
  22009. $3 = HEAP32[$2>>2]|0;
  22010. $4 = $3 & 7;
  22011. $5 = ($4|0)==(0);
  22012. if ($5) {
  22013. $$ph = $3;
  22014. } else {
  22015. (_stbi__zreceive($0,$4)|0);
  22016. $$pr = HEAP32[$2>>2]|0;
  22017. $$ph = $$pr;
  22018. }
  22019. $6 = ($$ph|0)>(0);
  22020. if ($6) {
  22021. $7 = ((($0)) + 12|0);
  22022. $$promoted = HEAP32[$7>>2]|0;
  22023. $8 = $$ph ^ -1;
  22024. $9 = ($8|0)>(-9);
  22025. $smax = $9 ? $8 : -9;
  22026. $10 = (($$ph) + ($smax))|0;
  22027. $11 = (($10) + 8)|0;
  22028. $12 = $11 >>> 3;
  22029. $13 = (($12) + 1)|0;
  22030. $14 = $12 << 3;
  22031. $$037 = 0;$16 = $$promoted;
  22032. while(1) {
  22033. $15 = $16&255;
  22034. $17 = (($$037) + 1)|0;
  22035. $18 = (($1) + ($$037)|0);
  22036. HEAP8[$18>>0] = $15;
  22037. $19 = $16 >>> 8;
  22038. $exitcond47 = ($17|0)==($13|0);
  22039. if ($exitcond47) {
  22040. break;
  22041. } else {
  22042. $$037 = $17;$16 = $19;
  22043. }
  22044. }
  22045. $20 = (($$ph) + -8)|0;
  22046. $21 = (($20) - ($14))|0;
  22047. HEAP32[$7>>2] = $19;
  22048. HEAP32[$2>>2] = $21;
  22049. $$0$lcssa = $13;$$lcssa = $21;
  22050. } else {
  22051. $$0$lcssa = 0;$$lcssa = $$ph;
  22052. }
  22053. $22 = ($$lcssa|0)==(0);
  22054. if (!($22)) {
  22055. ___assert_fail((10855|0),(9569|0),4033,(10872|0));
  22056. // unreachable;
  22057. }
  22058. $23 = ($$0$lcssa|0)<(4);
  22059. if ($23) {
  22060. $$136 = $$0$lcssa;
  22061. while(1) {
  22062. $24 = (_stbi__zget8($0)|0);
  22063. $25 = (($$136) + 1)|0;
  22064. $26 = (($1) + ($$136)|0);
  22065. HEAP8[$26>>0] = $24;
  22066. $exitcond = ($25|0)==(4);
  22067. if ($exitcond) {
  22068. break;
  22069. } else {
  22070. $$136 = $25;
  22071. }
  22072. }
  22073. }
  22074. $27 = ((($1)) + 1|0);
  22075. $28 = HEAP8[$27>>0]|0;
  22076. $29 = $28&255;
  22077. $30 = $29 << 8;
  22078. $31 = HEAP8[$1>>0]|0;
  22079. $32 = $31&255;
  22080. $33 = $30 | $32;
  22081. $34 = ((($1)) + 3|0);
  22082. $35 = HEAP8[$34>>0]|0;
  22083. $36 = $35&255;
  22084. $37 = $36 << 8;
  22085. $38 = ((($1)) + 2|0);
  22086. $39 = HEAP8[$38>>0]|0;
  22087. $40 = $39&255;
  22088. $41 = $37 | $40;
  22089. $42 = $33 ^ 65535;
  22090. $43 = ($41|0)==($42|0);
  22091. if (!($43)) {
  22092. _stbi__err(10903);
  22093. $$034 = 0;
  22094. STACKTOP = sp;return ($$034|0);
  22095. }
  22096. $44 = HEAP32[$0>>2]|0;
  22097. $45 = (($44) + ($33)|0);
  22098. $46 = ((($0)) + 4|0);
  22099. $47 = HEAP32[$46>>2]|0;
  22100. $48 = ($45>>>0)>($47>>>0);
  22101. if ($48) {
  22102. _stbi__err(10916);
  22103. $$034 = 0;
  22104. STACKTOP = sp;return ($$034|0);
  22105. }
  22106. $49 = ((($0)) + 16|0);
  22107. $50 = HEAP32[$49>>2]|0;
  22108. $51 = (($50) + ($33)|0);
  22109. $52 = ((($0)) + 24|0);
  22110. $53 = HEAP32[$52>>2]|0;
  22111. $54 = ($51>>>0)>($53>>>0);
  22112. if ($54) {
  22113. $55 = (_stbi__zexpand($0,$50,$33)|0);
  22114. $56 = ($55|0)==(0);
  22115. if ($56) {
  22116. $$034 = 0;
  22117. STACKTOP = sp;return ($$034|0);
  22118. }
  22119. }
  22120. $57 = HEAP32[$49>>2]|0;
  22121. $58 = HEAP32[$0>>2]|0;
  22122. _memcpy(($57|0),($58|0),($33|0))|0;
  22123. $59 = HEAP32[$0>>2]|0;
  22124. $60 = (($59) + ($33)|0);
  22125. HEAP32[$0>>2] = $60;
  22126. $61 = HEAP32[$49>>2]|0;
  22127. $62 = (($61) + ($33)|0);
  22128. HEAP32[$49>>2] = $62;
  22129. $$034 = 1;
  22130. STACKTOP = sp;return ($$034|0);
  22131. }
  22132. function _stbi__zbuild_huffman($0,$1,$2) {
  22133. $0 = $0|0;
  22134. $1 = $1|0;
  22135. $2 = $2|0;
  22136. 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;
  22137. 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;
  22138. 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;
  22139. 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;
  22140. 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;
  22141. 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;
  22142. sp = STACKTOP;
  22143. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  22144. $3 = sp + 72|0;
  22145. $4 = sp;
  22146. dest=$4; stop=dest+68|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  22147. _memset(($0|0),0,1024)|0;
  22148. $5 = ($2|0)>(0);
  22149. if ($5) {
  22150. $$07688 = 0;
  22151. while(1) {
  22152. $6 = (($1) + ($$07688)|0);
  22153. $7 = HEAP8[$6>>0]|0;
  22154. $8 = $7&255;
  22155. $9 = (($4) + ($8<<2)|0);
  22156. $10 = HEAP32[$9>>2]|0;
  22157. $11 = (($10) + 1)|0;
  22158. HEAP32[$9>>2] = $11;
  22159. $12 = (($$07688) + 1)|0;
  22160. $exitcond91 = ($12|0)==($2|0);
  22161. if ($exitcond91) {
  22162. break;
  22163. } else {
  22164. $$07688 = $12;
  22165. }
  22166. }
  22167. }
  22168. HEAP32[$4>>2] = 0;
  22169. $16 = ((($4)) + 4|0);
  22170. $17 = HEAP32[$16>>2]|0;
  22171. $18 = ($17|0)>(2);
  22172. if (!($18)) {
  22173. $13 = ((($4)) + 8|0);
  22174. $14 = HEAP32[$13>>2]|0;
  22175. $15 = ($14|0)>(4);
  22176. if (!($15)) {
  22177. $69 = ((($4)) + 12|0);
  22178. $70 = HEAP32[$69>>2]|0;
  22179. $71 = ($70|0)>(8);
  22180. if (!($71)) {
  22181. $72 = ((($4)) + 16|0);
  22182. $73 = HEAP32[$72>>2]|0;
  22183. $74 = ($73|0)>(16);
  22184. if (!($74)) {
  22185. $75 = ((($4)) + 20|0);
  22186. $76 = HEAP32[$75>>2]|0;
  22187. $77 = ($76|0)>(32);
  22188. if (!($77)) {
  22189. $78 = ((($4)) + 24|0);
  22190. $79 = HEAP32[$78>>2]|0;
  22191. $80 = ($79|0)>(64);
  22192. if (!($80)) {
  22193. $81 = ((($4)) + 28|0);
  22194. $82 = HEAP32[$81>>2]|0;
  22195. $83 = ($82|0)>(128);
  22196. if (!($83)) {
  22197. $84 = ((($4)) + 32|0);
  22198. $85 = HEAP32[$84>>2]|0;
  22199. $86 = ($85|0)>(256);
  22200. if (!($86)) {
  22201. $87 = ((($4)) + 36|0);
  22202. $88 = HEAP32[$87>>2]|0;
  22203. $89 = ($88|0)>(512);
  22204. if (!($89)) {
  22205. $90 = ((($4)) + 40|0);
  22206. $91 = HEAP32[$90>>2]|0;
  22207. $92 = ($91|0)>(1024);
  22208. if (!($92)) {
  22209. $93 = ((($4)) + 44|0);
  22210. $94 = HEAP32[$93>>2]|0;
  22211. $95 = ($94|0)>(2048);
  22212. if (!($95)) {
  22213. $96 = ((($4)) + 48|0);
  22214. $97 = HEAP32[$96>>2]|0;
  22215. $98 = ($97|0)>(4096);
  22216. if (!($98)) {
  22217. $99 = ((($4)) + 52|0);
  22218. $100 = HEAP32[$99>>2]|0;
  22219. $101 = ($100|0)>(8192);
  22220. if (!($101)) {
  22221. $102 = ((($4)) + 56|0);
  22222. $103 = HEAP32[$102>>2]|0;
  22223. $104 = ($103|0)>(16384);
  22224. if (!($104)) {
  22225. $105 = ((($4)) + 60|0);
  22226. $106 = HEAP32[$105>>2]|0;
  22227. $107 = ($106|0)>(32768);
  22228. if (!($107)) {
  22229. $$07785 = 0;$$07884 = 0;$$286 = 1;
  22230. while(1) {
  22231. $19 = (($3) + ($$286<<2)|0);
  22232. HEAP32[$19>>2] = $$07884;
  22233. $20 = $$07884&65535;
  22234. $21 = (((($0)) + 1024|0) + ($$286<<1)|0);
  22235. HEAP16[$21>>1] = $20;
  22236. $22 = $$07785&65535;
  22237. $23 = (((($0)) + 1124|0) + ($$286<<1)|0);
  22238. HEAP16[$23>>1] = $22;
  22239. $24 = (($4) + ($$286<<2)|0);
  22240. $25 = HEAP32[$24>>2]|0;
  22241. $26 = (($25) + ($$07884))|0;
  22242. $27 = ($25|0)!=(0);
  22243. $28 = 1 << $$286;
  22244. $29 = ($26|0)>($28|0);
  22245. $or$cond = $27 & $29;
  22246. if ($or$cond) {
  22247. label = 7;
  22248. break;
  22249. }
  22250. $30 = (16 - ($$286))|0;
  22251. $31 = $26 << $30;
  22252. $32 = (((($0)) + 1056|0) + ($$286<<2)|0);
  22253. HEAP32[$32>>2] = $31;
  22254. $33 = $26 << 1;
  22255. $34 = (($25) + ($$07785))|0;
  22256. $35 = (($$286) + 1)|0;
  22257. $36 = ($35|0)<(16);
  22258. if ($36) {
  22259. $$07785 = $34;$$07884 = $33;$$286 = $35;
  22260. } else {
  22261. break;
  22262. }
  22263. }
  22264. if ((label|0) == 7) {
  22265. _stbi__err(10793);
  22266. $$075 = 0;
  22267. STACKTOP = sp;return ($$075|0);
  22268. }
  22269. $37 = ((($0)) + 1120|0);
  22270. HEAP32[$37>>2] = 65536;
  22271. $38 = ($2|0)>(0);
  22272. if ($38) {
  22273. $$382 = 0;
  22274. } else {
  22275. $$075 = 1;
  22276. STACKTOP = sp;return ($$075|0);
  22277. }
  22278. while(1) {
  22279. $39 = (($1) + ($$382)|0);
  22280. $40 = HEAP8[$39>>0]|0;
  22281. $41 = $40&255;
  22282. $42 = ($40<<24>>24)==(0);
  22283. if (!($42)) {
  22284. $43 = (($3) + ($41<<2)|0);
  22285. $44 = HEAP32[$43>>2]|0;
  22286. $45 = (((($0)) + 1024|0) + ($41<<1)|0);
  22287. $46 = HEAP16[$45>>1]|0;
  22288. $47 = $46&65535;
  22289. $48 = (($44) - ($47))|0;
  22290. $49 = (((($0)) + 1124|0) + ($41<<1)|0);
  22291. $50 = HEAP16[$49>>1]|0;
  22292. $51 = $50&65535;
  22293. $52 = (($48) + ($51))|0;
  22294. $53 = $41 << 9;
  22295. $54 = $53 | $$382;
  22296. $55 = $54&65535;
  22297. $56 = (((($0)) + 1156|0) + ($52)|0);
  22298. HEAP8[$56>>0] = $40;
  22299. $57 = $$382&65535;
  22300. $58 = (((($0)) + 1444|0) + ($52<<1)|0);
  22301. HEAP16[$58>>1] = $57;
  22302. $59 = ($40&255)<(10);
  22303. do {
  22304. if ($59) {
  22305. $60 = (_stbi__bit_reverse($44,$41)|0);
  22306. $61 = ($60|0)<(512);
  22307. if (!($61)) {
  22308. break;
  22309. }
  22310. $62 = 1 << $41;
  22311. $$081 = $60;
  22312. while(1) {
  22313. $63 = (($0) + ($$081<<1)|0);
  22314. HEAP16[$63>>1] = $55;
  22315. $64 = (($$081) + ($62))|0;
  22316. $65 = ($64|0)<(512);
  22317. if ($65) {
  22318. $$081 = $64;
  22319. } else {
  22320. break;
  22321. }
  22322. }
  22323. }
  22324. } while(0);
  22325. $66 = HEAP32[$43>>2]|0;
  22326. $67 = (($66) + 1)|0;
  22327. HEAP32[$43>>2] = $67;
  22328. }
  22329. $68 = (($$382) + 1)|0;
  22330. $exitcond = ($68|0)==($2|0);
  22331. if ($exitcond) {
  22332. $$075 = 1;
  22333. break;
  22334. } else {
  22335. $$382 = $68;
  22336. }
  22337. }
  22338. STACKTOP = sp;return ($$075|0);
  22339. }
  22340. }
  22341. }
  22342. }
  22343. }
  22344. }
  22345. }
  22346. }
  22347. }
  22348. }
  22349. }
  22350. }
  22351. }
  22352. }
  22353. }
  22354. _stbi__err(10845);
  22355. $$075 = 0;
  22356. STACKTOP = sp;return ($$075|0);
  22357. }
  22358. function _stbi__compute_huffman_codes($0) {
  22359. $0 = $0|0;
  22360. 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;
  22361. 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;
  22362. 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;
  22363. var label = 0, sp = 0, stop = 0;
  22364. sp = STACKTOP;
  22365. STACKTOP = STACKTOP + 2496|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(2496|0);
  22366. $1 = sp;
  22367. $2 = sp + 2039|0;
  22368. $3 = sp + 2020|0;
  22369. $4 = (_stbi__zreceive($0,5)|0);
  22370. $5 = (($4) + 257)|0;
  22371. $6 = (_stbi__zreceive($0,5)|0);
  22372. $7 = (($6) + 1)|0;
  22373. $8 = (_stbi__zreceive($0,4)|0);
  22374. $9 = (($8) + 4)|0;
  22375. $10 = (($7) + ($5))|0;
  22376. dest=$3; stop=dest+19|0; do { HEAP8[dest>>0]=0|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  22377. $11 = ($9|0)>(0);
  22378. if ($11) {
  22379. $$06579 = 0;
  22380. while(1) {
  22381. $12 = (_stbi__zreceive($0,3)|0);
  22382. $13 = $12&255;
  22383. $14 = (11639 + ($$06579)|0);
  22384. $15 = HEAP8[$14>>0]|0;
  22385. $16 = $15&255;
  22386. $17 = (($3) + ($16)|0);
  22387. HEAP8[$17>>0] = $13;
  22388. $18 = (($$06579) + 1)|0;
  22389. $exitcond = ($18|0)==($9|0);
  22390. if ($exitcond) {
  22391. break;
  22392. } else {
  22393. $$06579 = $18;
  22394. }
  22395. }
  22396. }
  22397. $19 = (_stbi__zbuild_huffman($1,$3,19)|0);
  22398. $20 = ($19|0)==(0);
  22399. if ($20) {
  22400. $$4 = 0;
  22401. STACKTOP = sp;return ($$4|0);
  22402. }
  22403. $21 = ($10|0)>(0);
  22404. L8: do {
  22405. if ($21) {
  22406. $$06678 = 0;
  22407. L9: while(1) {
  22408. $22 = (_stbi__zhuffman_decode($0,$1)|0);
  22409. $23 = ($22>>>0)>(18);
  22410. if ($23) {
  22411. label = 6;
  22412. break;
  22413. }
  22414. $24 = ($22|0)<(16);
  22415. if ($24) {
  22416. $25 = $22&255;
  22417. $26 = (($$06678) + 1)|0;
  22418. $27 = (($2) + ($$06678)|0);
  22419. HEAP8[$27>>0] = $25;
  22420. $$066$be = $26;
  22421. } else {
  22422. switch ($22|0) {
  22423. case 16: {
  22424. $28 = (_stbi__zreceive($0,2)|0);
  22425. $29 = ($$06678|0)==(0);
  22426. if ($29) {
  22427. label = 11;
  22428. break L9;
  22429. }
  22430. $30 = (($28) + 3)|0;
  22431. $31 = (($$06678) + -1)|0;
  22432. $32 = (($2) + ($31)|0);
  22433. $33 = HEAP8[$32>>0]|0;
  22434. $$0 = $33;$$061 = $30;
  22435. break;
  22436. }
  22437. case 17: {
  22438. $34 = (_stbi__zreceive($0,3)|0);
  22439. $35 = (($34) + 3)|0;
  22440. $$0 = 0;$$061 = $35;
  22441. break;
  22442. }
  22443. case 18: {
  22444. $36 = (_stbi__zreceive($0,7)|0);
  22445. $37 = (($36) + 11)|0;
  22446. $$0 = 0;$$061 = $37;
  22447. break;
  22448. }
  22449. default: {
  22450. label = 14;
  22451. break L9;
  22452. }
  22453. }
  22454. $38 = (($10) - ($$06678))|0;
  22455. $39 = ($38|0)<($$061|0);
  22456. if ($39) {
  22457. label = 17;
  22458. break;
  22459. }
  22460. $40 = (($2) + ($$06678)|0);
  22461. _memset(($40|0),($$0|0),($$061|0))|0;
  22462. $41 = (($$061) + ($$06678))|0;
  22463. $$066$be = $41;
  22464. }
  22465. $42 = ($10|0)>($$066$be|0);
  22466. if ($42) {
  22467. $$06678 = $$066$be;
  22468. } else {
  22469. $$066$lcssa = $$066$be;
  22470. break L8;
  22471. }
  22472. }
  22473. if ((label|0) == 6) {
  22474. _stbi__err(10793);
  22475. $$4 = 0;
  22476. STACKTOP = sp;return ($$4|0);
  22477. }
  22478. else if ((label|0) == 11) {
  22479. _stbi__err(10793);
  22480. $$4 = 0;
  22481. STACKTOP = sp;return ($$4|0);
  22482. }
  22483. else if ((label|0) == 14) {
  22484. ___assert_fail((10809|0),(9569|0),4006,(10817|0));
  22485. // unreachable;
  22486. }
  22487. else if ((label|0) == 17) {
  22488. _stbi__err(10793);
  22489. $$4 = 0;
  22490. STACKTOP = sp;return ($$4|0);
  22491. }
  22492. } else {
  22493. $$066$lcssa = 0;
  22494. }
  22495. } while(0);
  22496. $43 = ($10|0)==($$066$lcssa|0);
  22497. if (!($43)) {
  22498. _stbi__err(10793);
  22499. $$4 = 0;
  22500. STACKTOP = sp;return ($$4|0);
  22501. }
  22502. $44 = ((($0)) + 32|0);
  22503. $45 = (_stbi__zbuild_huffman($44,$2,$5)|0);
  22504. $46 = ($45|0)==(0);
  22505. if ($46) {
  22506. $$4 = 0;
  22507. STACKTOP = sp;return ($$4|0);
  22508. }
  22509. $47 = ((($0)) + 2052|0);
  22510. $48 = (($2) + ($5)|0);
  22511. $49 = (_stbi__zbuild_huffman($47,$48,$7)|0);
  22512. $not$ = ($49|0)!=(0);
  22513. $$ = $not$&1;
  22514. $$4 = $$;
  22515. STACKTOP = sp;return ($$4|0);
  22516. }
  22517. function _stbi__parse_huffman_block($0) {
  22518. $0 = $0|0;
  22519. 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;
  22520. 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;
  22521. 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;
  22522. var $56 = 0, $57 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $scevgep = 0, $scevgep92 = 0, label = 0, sp = 0;
  22523. sp = STACKTOP;
  22524. $1 = ((($0)) + 16|0);
  22525. $2 = HEAP32[$1>>2]|0;
  22526. $3 = ((($0)) + 32|0);
  22527. $4 = ((($0)) + 24|0);
  22528. $5 = ((($0)) + 2052|0);
  22529. $6 = ((($0)) + 20|0);
  22530. $7 = ((($0)) + 24|0);
  22531. $$070 = $2;
  22532. while(1) {
  22533. $10 = (_stbi__zhuffman_decode($0,$3)|0);
  22534. $11 = ($10|0)<(256);
  22535. if ($11) {
  22536. $12 = ($10|0)<(0);
  22537. if ($12) {
  22538. label = 6;
  22539. break;
  22540. }
  22541. $13 = HEAP32[$4>>2]|0;
  22542. $14 = ($$070>>>0)<($13>>>0);
  22543. if ($14) {
  22544. $$171 = $$070;
  22545. } else {
  22546. $15 = (_stbi__zexpand($0,$$070,1)|0);
  22547. $16 = ($15|0)==(0);
  22548. if ($16) {
  22549. $$3$ph = 0;
  22550. label = 28;
  22551. break;
  22552. }
  22553. $17 = HEAP32[$1>>2]|0;
  22554. $$171 = $17;
  22555. }
  22556. $18 = $10&255;
  22557. $19 = ((($$171)) + 1|0);
  22558. HEAP8[$$171>>0] = $18;
  22559. $$070 = $19;
  22560. continue;
  22561. }
  22562. $20 = ($10|0)==(256);
  22563. if ($20) {
  22564. label = 12;
  22565. break;
  22566. }
  22567. $21 = (($10) + -257)|0;
  22568. $22 = (3332 + ($21<<2)|0);
  22569. $23 = HEAP32[$22>>2]|0;
  22570. $24 = (($10) + -265)|0;
  22571. $25 = ($24>>>0)<(20);
  22572. if ($25) {
  22573. $26 = (3208 + ($21<<2)|0);
  22574. $27 = HEAP32[$26>>2]|0;
  22575. $28 = (_stbi__zreceive($0,$27)|0);
  22576. $29 = (($28) + ($23))|0;
  22577. $$064 = $29;
  22578. } else {
  22579. $$064 = $23;
  22580. }
  22581. $30 = (_stbi__zhuffman_decode($0,$5)|0);
  22582. $31 = ($30|0)<(0);
  22583. if ($31) {
  22584. label = 16;
  22585. break;
  22586. }
  22587. $32 = (3584 + ($30<<2)|0);
  22588. $33 = HEAP32[$32>>2]|0;
  22589. $34 = (($30) + -4)|0;
  22590. $35 = ($34>>>0)<(26);
  22591. if ($35) {
  22592. $36 = (3456 + ($30<<2)|0);
  22593. $37 = HEAP32[$36>>2]|0;
  22594. $38 = (_stbi__zreceive($0,$37)|0);
  22595. $39 = (($38) + ($33))|0;
  22596. $$063 = $39;
  22597. } else {
  22598. $$063 = $33;
  22599. }
  22600. $40 = HEAP32[$6>>2]|0;
  22601. $41 = $$070;
  22602. $42 = (($41) - ($40))|0;
  22603. $43 = ($42|0)<($$063|0);
  22604. if ($43) {
  22605. label = 20;
  22606. break;
  22607. }
  22608. $44 = (($$070) + ($$064)|0);
  22609. $45 = HEAP32[$7>>2]|0;
  22610. $46 = ($44>>>0)>($45>>>0);
  22611. if ($46) {
  22612. $47 = (_stbi__zexpand($0,$$070,$$064)|0);
  22613. $48 = ($47|0)==(0);
  22614. if ($48) {
  22615. $$3$ph = 0;
  22616. label = 28;
  22617. break;
  22618. }
  22619. $49 = HEAP32[$1>>2]|0;
  22620. $$272 = $49;
  22621. } else {
  22622. $$272 = $$070;
  22623. }
  22624. $50 = (0 - ($$063))|0;
  22625. $9 = (($$272) + ($50)|0);
  22626. $51 = ($$063|0)==(1);
  22627. $52 = ($$064|0)!=(0);
  22628. if ($51) {
  22629. if (!($52)) {
  22630. $$070 = $$272;
  22631. continue;
  22632. }
  22633. $8 = HEAP8[$9>>0]|0;
  22634. _memset(($$272|0),($8|0),($$064|0))|0;
  22635. $scevgep92 = (($$272) + ($$064)|0);
  22636. $$070 = $scevgep92;
  22637. continue;
  22638. }
  22639. if ($52) {
  22640. $$067 = $9;$$266 = $$064;$$5 = $$272;
  22641. } else {
  22642. $$070 = $$272;
  22643. continue;
  22644. }
  22645. while(1) {
  22646. $53 = ((($$067)) + 1|0);
  22647. $54 = HEAP8[$$067>>0]|0;
  22648. $55 = ((($$5)) + 1|0);
  22649. HEAP8[$$5>>0] = $54;
  22650. $56 = (($$266) + -1)|0;
  22651. $57 = ($56|0)==(0);
  22652. if ($57) {
  22653. break;
  22654. } else {
  22655. $$067 = $53;$$266 = $56;$$5 = $55;
  22656. }
  22657. }
  22658. $scevgep = (($$272) + ($$064)|0);
  22659. $$070 = $scevgep;
  22660. }
  22661. if ((label|0) == 6) {
  22662. _stbi__err(10618);
  22663. $$3$ph = 0;
  22664. return ($$3$ph|0);
  22665. }
  22666. else if ((label|0) == 12) {
  22667. HEAP32[$1>>2] = $$070;
  22668. $$3$ph = 1;
  22669. return ($$3$ph|0);
  22670. }
  22671. else if ((label|0) == 16) {
  22672. _stbi__err(10618);
  22673. $$3$ph = 0;
  22674. return ($$3$ph|0);
  22675. }
  22676. else if ((label|0) == 20) {
  22677. _stbi__err(10635);
  22678. $$3$ph = 0;
  22679. return ($$3$ph|0);
  22680. }
  22681. else if ((label|0) == 28) {
  22682. return ($$3$ph|0);
  22683. }
  22684. return (0)|0;
  22685. }
  22686. function _stbi__zhuffman_decode($0,$1) {
  22687. $0 = $0|0;
  22688. $1 = $1|0;
  22689. 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;
  22690. sp = STACKTOP;
  22691. $2 = ((($0)) + 8|0);
  22692. $3 = HEAP32[$2>>2]|0;
  22693. $4 = ($3|0)<(16);
  22694. if ($4) {
  22695. _stbi__fill_bits($0);
  22696. }
  22697. $5 = ((($0)) + 12|0);
  22698. $6 = HEAP32[$5>>2]|0;
  22699. $7 = $6 & 511;
  22700. $8 = (($1) + ($7<<1)|0);
  22701. $9 = HEAP16[$8>>1]|0;
  22702. $10 = $9&65535;
  22703. $11 = ($9<<16>>16)==(0);
  22704. if ($11) {
  22705. $17 = (_stbi__zhuffman_decode_slowpath($0,$1)|0);
  22706. $$0 = $17;
  22707. return ($$0|0);
  22708. } else {
  22709. $12 = $10 >>> 9;
  22710. $13 = $6 >>> $12;
  22711. HEAP32[$5>>2] = $13;
  22712. $14 = HEAP32[$2>>2]|0;
  22713. $15 = (($14) - ($12))|0;
  22714. HEAP32[$2>>2] = $15;
  22715. $16 = $10 & 511;
  22716. $$0 = $16;
  22717. return ($$0|0);
  22718. }
  22719. return (0)|0;
  22720. }
  22721. function _stbi__zexpand($0,$1,$2) {
  22722. $0 = $0|0;
  22723. $1 = $1|0;
  22724. $2 = $2|0;
  22725. 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;
  22726. var $9 = 0, label = 0, sp = 0;
  22727. sp = STACKTOP;
  22728. $3 = ((($0)) + 16|0);
  22729. HEAP32[$3>>2] = $1;
  22730. $4 = ((($0)) + 28|0);
  22731. $5 = HEAP32[$4>>2]|0;
  22732. $6 = ($5|0)==(0);
  22733. if ($6) {
  22734. _stbi__err(10644);
  22735. $$0 = 0;
  22736. return ($$0|0);
  22737. }
  22738. $7 = ((($0)) + 20|0);
  22739. $8 = HEAP32[$7>>2]|0;
  22740. $9 = $1;
  22741. $10 = $8;
  22742. $11 = (($9) - ($10))|0;
  22743. $12 = ((($0)) + 24|0);
  22744. $13 = HEAP32[$12>>2]|0;
  22745. $14 = (($13) - ($10))|0;
  22746. $15 = (($11) + ($2))|0;
  22747. $$029 = $14;
  22748. while(1) {
  22749. $16 = ($15|0)>($$029|0);
  22750. $17 = $$029 << 1;
  22751. if ($16) {
  22752. $$029 = $17;
  22753. } else {
  22754. break;
  22755. }
  22756. }
  22757. $18 = (_realloc($8,$$029)|0);
  22758. $19 = ($18|0)==(0|0);
  22759. if ($19) {
  22760. _stbi__err(9624);
  22761. $$0 = 0;
  22762. return ($$0|0);
  22763. } else {
  22764. HEAP32[$7>>2] = $18;
  22765. $20 = (($18) + ($11)|0);
  22766. HEAP32[$3>>2] = $20;
  22767. $21 = (($18) + ($$029)|0);
  22768. HEAP32[$12>>2] = $21;
  22769. $$0 = 1;
  22770. return ($$0|0);
  22771. }
  22772. return (0)|0;
  22773. }
  22774. function _stbi__fill_bits($0) {
  22775. $0 = $0|0;
  22776. 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;
  22777. sp = STACKTOP;
  22778. $1 = ((($0)) + 12|0);
  22779. $2 = ((($0)) + 8|0);
  22780. while(1) {
  22781. $3 = HEAP32[$1>>2]|0;
  22782. $4 = HEAP32[$2>>2]|0;
  22783. $5 = 1 << $4;
  22784. $6 = ($3>>>0)<($5>>>0);
  22785. if (!($6)) {
  22786. label = 3;
  22787. break;
  22788. }
  22789. $7 = (_stbi__zget8($0)|0);
  22790. $8 = $7&255;
  22791. $9 = HEAP32[$2>>2]|0;
  22792. $10 = $8 << $9;
  22793. $11 = HEAP32[$1>>2]|0;
  22794. $12 = $11 | $10;
  22795. HEAP32[$1>>2] = $12;
  22796. $13 = (($9) + 8)|0;
  22797. HEAP32[$2>>2] = $13;
  22798. $14 = ($13|0)<(25);
  22799. if (!($14)) {
  22800. label = 5;
  22801. break;
  22802. }
  22803. }
  22804. if ((label|0) == 3) {
  22805. ___assert_fail((10740|0),(9569|0),3848,(10777|0));
  22806. // unreachable;
  22807. }
  22808. else if ((label|0) == 5) {
  22809. return;
  22810. }
  22811. }
  22812. function _stbi__zhuffman_decode_slowpath($0,$1) {
  22813. $0 = $0|0;
  22814. $1 = $1|0;
  22815. 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;
  22816. 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;
  22817. sp = STACKTOP;
  22818. $2 = ((($0)) + 12|0);
  22819. $3 = HEAP32[$2>>2]|0;
  22820. $4 = (_stbi__bit_reverse($3,16)|0);
  22821. $$025 = 10;
  22822. while(1) {
  22823. $5 = (((($1)) + 1056|0) + ($$025<<2)|0);
  22824. $6 = HEAP32[$5>>2]|0;
  22825. $7 = ($4|0)<($6|0);
  22826. $8 = (($$025) + 1)|0;
  22827. if ($7) {
  22828. break;
  22829. } else {
  22830. $$025 = $8;
  22831. }
  22832. }
  22833. $9 = ($$025|0)==(16);
  22834. if ($9) {
  22835. $$0 = -1;
  22836. return ($$0|0);
  22837. }
  22838. $10 = (16 - ($$025))|0;
  22839. $11 = $4 >> $10;
  22840. $12 = (((($1)) + 1024|0) + ($$025<<1)|0);
  22841. $13 = HEAP16[$12>>1]|0;
  22842. $14 = $13&65535;
  22843. $15 = (($11) - ($14))|0;
  22844. $16 = (((($1)) + 1124|0) + ($$025<<1)|0);
  22845. $17 = HEAP16[$16>>1]|0;
  22846. $18 = $17&65535;
  22847. $19 = (($15) + ($18))|0;
  22848. $20 = (((($1)) + 1156|0) + ($19)|0);
  22849. $21 = HEAP8[$20>>0]|0;
  22850. $22 = $21&255;
  22851. $23 = ($22|0)==($$025|0);
  22852. if (!($23)) {
  22853. ___assert_fail((10664|0),(9569|0),3876,(10680|0));
  22854. // unreachable;
  22855. }
  22856. $24 = HEAP32[$2>>2]|0;
  22857. $25 = $24 >>> $$025;
  22858. HEAP32[$2>>2] = $25;
  22859. $26 = ((($0)) + 8|0);
  22860. $27 = HEAP32[$26>>2]|0;
  22861. $28 = (($27) - ($$025))|0;
  22862. HEAP32[$26>>2] = $28;
  22863. $29 = (((($1)) + 1444|0) + ($19<<1)|0);
  22864. $30 = HEAP16[$29>>1]|0;
  22865. $31 = $30&65535;
  22866. $$0 = $31;
  22867. return ($$0|0);
  22868. }
  22869. function _stbi__bit_reverse($0,$1) {
  22870. $0 = $0|0;
  22871. $1 = $1|0;
  22872. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  22873. sp = STACKTOP;
  22874. $2 = ($1|0)<(17);
  22875. if ($2) {
  22876. $3 = (_stbi__bitreverse16($0)|0);
  22877. $4 = (16 - ($1))|0;
  22878. $5 = $3 >> $4;
  22879. return ($5|0);
  22880. } else {
  22881. ___assert_fail((10711|0),(9569|0),3766,(10722|0));
  22882. // unreachable;
  22883. }
  22884. return (0)|0;
  22885. }
  22886. function _stbi__bitreverse16($0) {
  22887. $0 = $0|0;
  22888. 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;
  22889. var sp = 0;
  22890. sp = STACKTOP;
  22891. $1 = $0 >>> 1;
  22892. $2 = $1 & 21845;
  22893. $3 = $0 << 1;
  22894. $4 = $3 & 43690;
  22895. $5 = $2 | $4;
  22896. $6 = $5 >>> 2;
  22897. $7 = $6 & 13107;
  22898. $8 = $5 << 2;
  22899. $9 = $8 & 52428;
  22900. $10 = $7 | $9;
  22901. $11 = $10 >>> 4;
  22902. $12 = $11 & 3855;
  22903. $13 = $10 << 4;
  22904. $14 = $13 & 61680;
  22905. $15 = $12 | $14;
  22906. $16 = $15 >>> 8;
  22907. $17 = $15 << 8;
  22908. $18 = $17 & 65280;
  22909. $19 = $18 | $16;
  22910. return ($19|0);
  22911. }
  22912. function _stbi__zget8($0) {
  22913. $0 = $0|0;
  22914. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  22915. sp = STACKTOP;
  22916. $1 = HEAP32[$0>>2]|0;
  22917. $2 = ((($0)) + 4|0);
  22918. $3 = HEAP32[$2>>2]|0;
  22919. $4 = ($1>>>0)<($3>>>0);
  22920. if (!($4)) {
  22921. $$0 = 0;
  22922. return ($$0|0);
  22923. }
  22924. $5 = ((($1)) + 1|0);
  22925. HEAP32[$0>>2] = $5;
  22926. $6 = HEAP8[$1>>0]|0;
  22927. $$0 = $6;
  22928. return ($$0|0);
  22929. }
  22930. function _stbi__refill_buffer($0) {
  22931. $0 = $0|0;
  22932. 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;
  22933. sp = STACKTOP;
  22934. $1 = ((($0)) + 16|0);
  22935. $2 = HEAP32[$1>>2]|0;
  22936. $3 = ((($0)) + 28|0);
  22937. $4 = HEAP32[$3>>2]|0;
  22938. $5 = ((($0)) + 40|0);
  22939. $6 = ((($0)) + 36|0);
  22940. $7 = HEAP32[$6>>2]|0;
  22941. $8 = (FUNCTION_TABLE_iiii[$2 & 15]($4,$5,$7)|0);
  22942. $9 = ($8|0)==(0);
  22943. if ($9) {
  22944. $10 = ((($0)) + 32|0);
  22945. HEAP32[$10>>2] = 0;
  22946. $11 = ((($0)) + 168|0);
  22947. HEAP32[$11>>2] = $5;
  22948. $12 = ((($0)) + 41|0);
  22949. $13 = ((($0)) + 172|0);
  22950. HEAP32[$13>>2] = $12;
  22951. HEAP8[$5>>0] = 0;
  22952. return;
  22953. } else {
  22954. $14 = ((($0)) + 168|0);
  22955. HEAP32[$14>>2] = $5;
  22956. $15 = (((($0)) + 40|0) + ($8)|0);
  22957. $16 = ((($0)) + 172|0);
  22958. HEAP32[$16>>2] = $15;
  22959. return;
  22960. }
  22961. }
  22962. function _stbi__rewind($0) {
  22963. $0 = $0|0;
  22964. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  22965. sp = STACKTOP;
  22966. $1 = ((($0)) + 176|0);
  22967. $2 = HEAP32[$1>>2]|0;
  22968. $3 = ((($0)) + 168|0);
  22969. HEAP32[$3>>2] = $2;
  22970. $4 = ((($0)) + 180|0);
  22971. $5 = HEAP32[$4>>2]|0;
  22972. $6 = ((($0)) + 172|0);
  22973. HEAP32[$6>>2] = $5;
  22974. return;
  22975. }
  22976. function _stbi__start_callbacks($0,$1,$2) {
  22977. $0 = $0|0;
  22978. $1 = $1|0;
  22979. $2 = $2|0;
  22980. var $10 = 0, $11 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  22981. sp = STACKTOP;
  22982. $3 = ((($0)) + 16|0);
  22983. ;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;
  22984. $4 = ((($0)) + 28|0);
  22985. HEAP32[$4>>2] = $2;
  22986. $5 = ((($0)) + 36|0);
  22987. HEAP32[$5>>2] = 128;
  22988. $6 = ((($0)) + 32|0);
  22989. HEAP32[$6>>2] = 1;
  22990. $7 = ((($0)) + 40|0);
  22991. $8 = ((($0)) + 176|0);
  22992. HEAP32[$8>>2] = $7;
  22993. _stbi__refill_buffer($0);
  22994. $9 = ((($0)) + 172|0);
  22995. $10 = HEAP32[$9>>2]|0;
  22996. $11 = ((($0)) + 180|0);
  22997. HEAP32[$11>>2] = $10;
  22998. return;
  22999. }
  23000. function _stbi__stdio_read($0,$1,$2) {
  23001. $0 = $0|0;
  23002. $1 = $1|0;
  23003. $2 = $2|0;
  23004. var $3 = 0, label = 0, sp = 0;
  23005. sp = STACKTOP;
  23006. $3 = (_fread($1,1,$2,$0)|0);
  23007. return ($3|0);
  23008. }
  23009. function _stbi__stdio_skip($0,$1) {
  23010. $0 = $0|0;
  23011. $1 = $1|0;
  23012. var label = 0, sp = 0;
  23013. sp = STACKTOP;
  23014. (_fseek($0,$1,1)|0);
  23015. return;
  23016. }
  23017. function _stbi__stdio_eof($0) {
  23018. $0 = $0|0;
  23019. var $1 = 0, label = 0, sp = 0;
  23020. sp = STACKTOP;
  23021. $1 = (_feof($0)|0);
  23022. return ($1|0);
  23023. }
  23024. function _LoadImage($0,$1) {
  23025. $0 = $0|0;
  23026. $1 = $1|0;
  23027. var $$sink = 0, $$sroa$0$0 = 0, $$sroa$0$0$copyload = 0, $$sroa$0$1 = 0, $$sroa$0$144 = 0, $$sroa$10$0 = 0, $$sroa$10$0$$sroa_idx19 = 0, $$sroa$10$0$$sroa_idx20 = 0, $$sroa$10$0$copyload = 0, $$sroa$10$1 = 0, $$sroa$10$140 = 0, $$sroa$10$141 = 0, $$sroa$13$0 = 0, $$sroa$13$0$$sroa_idx23 = 0, $$sroa$13$0$$sroa_idx24 = 0, $$sroa$13$0$copyload = 0, $$sroa$13$1 = 0, $$sroa$13$146 = 0, $$sroa$13$147 = 0, $$sroa$15$0 = 0;
  23028. var $$sroa$15$0$$sroa_idx27 = 0, $$sroa$15$0$$sroa_idx28 = 0, $$sroa$15$0$copyload = 0, $$sroa$15$1 = 0, $$sroa$15$2 = 0, $$sroa$15$248 = 0, $$sroa$15$249 = 0, $$sroa$7$0 = 0, $$sroa$7$0$$sroa_idx15 = 0, $$sroa$7$0$$sroa_idx16 = 0, $$sroa$7$0$copyload = 0, $$sroa$7$1 = 0, $$sroa$7$142 = 0, $$sroa$7$143 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0;
  23029. var $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0;
  23030. var $vararg_buffer1 = 0, $vararg_buffer4 = 0, $vararg_buffer9 = 0, $vararg_ptr7 = 0, $vararg_ptr8 = 0, label = 0, sp = 0;
  23031. sp = STACKTOP;
  23032. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  23033. $vararg_buffer9 = sp + 32|0;
  23034. $vararg_buffer4 = sp + 16|0;
  23035. $vararg_buffer1 = sp + 8|0;
  23036. $vararg_buffer = sp;
  23037. $2 = sp + 48|0;
  23038. $3 = sp + 44|0;
  23039. $4 = sp + 40|0;
  23040. $5 = sp + 36|0;
  23041. $6 = (_IsFileExtension($1,10992)|0);
  23042. $7 = ($6|0)==(0);
  23043. do {
  23044. if ($7) {
  23045. $19 = (_IsFileExtension($1,11045)|0);
  23046. $20 = ($19|0)==(0);
  23047. if ($20) {
  23048. HEAP32[$vararg_buffer1>>2] = $1;
  23049. _TraceLog(2,11050,$vararg_buffer1);
  23050. $$sroa$10$141 = 0;$$sroa$13$147 = 0;$$sroa$15$249 = 0;$$sroa$7$143 = 0;
  23051. break;
  23052. }
  23053. HEAP32[$3>>2] = 0;
  23054. HEAP32[$4>>2] = 0;
  23055. HEAP32[$5>>2] = 0;
  23056. $21 = (_fopen($1,11184)|0);
  23057. $22 = (_stbi_load_from_file($21,$3,$4,$5,0)|0);
  23058. (_fclose($21)|0);
  23059. $23 = HEAP32[$3>>2]|0;
  23060. $24 = HEAP32[$4>>2]|0;
  23061. $25 = HEAP32[$5>>2]|0;
  23062. switch ($25|0) {
  23063. case 1: {
  23064. $$sink = 1;
  23065. label = 11;
  23066. break;
  23067. }
  23068. case 2: {
  23069. $$sink = 2;
  23070. label = 11;
  23071. break;
  23072. }
  23073. case 3: {
  23074. $$sink = 4;
  23075. label = 11;
  23076. break;
  23077. }
  23078. case 4: {
  23079. $$sink = 7;
  23080. label = 11;
  23081. break;
  23082. }
  23083. default: {
  23084. $$sroa$15$1 = 0;
  23085. }
  23086. }
  23087. if ((label|0) == 11) {
  23088. $$sroa$15$1 = $$sink;
  23089. }
  23090. $$sroa$0$1 = $22;$$sroa$10$1 = $24;$$sroa$13$1 = 1;$$sroa$15$2 = $$sroa$15$1;$$sroa$7$1 = $23;
  23091. label = 14;
  23092. } else {
  23093. $8 = (_LoadResource($1,0)|0);
  23094. $9 = HEAP32[$8>>2]|0;
  23095. $10 = ($9|0)==(1);
  23096. if ($10) {
  23097. $11 = ((($8)) + 20|0);
  23098. $12 = HEAP32[$11>>2]|0;
  23099. $13 = ((($8)) + 4|0);
  23100. $14 = HEAP32[$13>>2]|0;
  23101. $15 = ((($8)) + 8|0);
  23102. $16 = HEAP32[$15>>2]|0;
  23103. $17 = ((($8)) + 12|0);
  23104. $18 = HEAP32[$17>>2]|0;
  23105. _LoadImagePro($2,$12,$14,$16,$18);
  23106. $$sroa$0$0$copyload = HEAP32[$2>>2]|0;
  23107. $$sroa$7$0$$sroa_idx15 = ((($2)) + 4|0);
  23108. $$sroa$7$0$copyload = HEAP32[$$sroa$7$0$$sroa_idx15>>2]|0;
  23109. $$sroa$10$0$$sroa_idx19 = ((($2)) + 8|0);
  23110. $$sroa$10$0$copyload = HEAP32[$$sroa$10$0$$sroa_idx19>>2]|0;
  23111. $$sroa$13$0$$sroa_idx23 = ((($2)) + 12|0);
  23112. $$sroa$13$0$copyload = HEAP32[$$sroa$13$0$$sroa_idx23>>2]|0;
  23113. $$sroa$15$0$$sroa_idx27 = ((($2)) + 16|0);
  23114. $$sroa$15$0$copyload = HEAP32[$$sroa$15$0$$sroa_idx27>>2]|0;
  23115. $$sroa$0$0 = $$sroa$0$0$copyload;$$sroa$10$0 = $$sroa$10$0$copyload;$$sroa$13$0 = $$sroa$13$0$copyload;$$sroa$15$0 = $$sroa$15$0$copyload;$$sroa$7$0 = $$sroa$7$0$copyload;
  23116. } else {
  23117. HEAP32[$vararg_buffer>>2] = $1;
  23118. _TraceLog(2,10998,$vararg_buffer);
  23119. $$sroa$0$0 = 0;$$sroa$10$0 = 0;$$sroa$13$0 = 0;$$sroa$15$0 = 0;$$sroa$7$0 = 0;
  23120. }
  23121. _UnloadResource($8);
  23122. $$sroa$0$1 = $$sroa$0$0;$$sroa$10$1 = $$sroa$10$0;$$sroa$13$1 = $$sroa$13$0;$$sroa$15$2 = $$sroa$15$0;$$sroa$7$1 = $$sroa$7$0;
  23123. label = 14;
  23124. }
  23125. } while(0);
  23126. if ((label|0) == 14) {
  23127. $26 = ($$sroa$0$1|0)==(0|0);
  23128. if ($26) {
  23129. $$sroa$10$141 = $$sroa$10$1;$$sroa$13$147 = $$sroa$13$1;$$sroa$15$249 = $$sroa$15$2;$$sroa$7$143 = $$sroa$7$1;
  23130. } else {
  23131. HEAP32[$vararg_buffer4>>2] = $1;
  23132. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  23133. HEAP32[$vararg_ptr7>>2] = $$sroa$7$1;
  23134. $vararg_ptr8 = ((($vararg_buffer4)) + 8|0);
  23135. HEAP32[$vararg_ptr8>>2] = $$sroa$10$1;
  23136. _TraceLog(0,11086,$vararg_buffer4);
  23137. $$sroa$0$144 = $$sroa$0$1;$$sroa$10$140 = $$sroa$10$1;$$sroa$13$146 = $$sroa$13$1;$$sroa$15$248 = $$sroa$15$2;$$sroa$7$142 = $$sroa$7$1;
  23138. HEAP32[$0>>2] = $$sroa$0$144;
  23139. $$sroa$7$0$$sroa_idx16 = ((($0)) + 4|0);
  23140. HEAP32[$$sroa$7$0$$sroa_idx16>>2] = $$sroa$7$142;
  23141. $$sroa$10$0$$sroa_idx20 = ((($0)) + 8|0);
  23142. HEAP32[$$sroa$10$0$$sroa_idx20>>2] = $$sroa$10$140;
  23143. $$sroa$13$0$$sroa_idx24 = ((($0)) + 12|0);
  23144. HEAP32[$$sroa$13$0$$sroa_idx24>>2] = $$sroa$13$146;
  23145. $$sroa$15$0$$sroa_idx28 = ((($0)) + 16|0);
  23146. HEAP32[$$sroa$15$0$$sroa_idx28>>2] = $$sroa$15$248;
  23147. STACKTOP = sp;return;
  23148. }
  23149. }
  23150. HEAP32[$vararg_buffer9>>2] = $1;
  23151. _TraceLog(2,11125,$vararg_buffer9);
  23152. $$sroa$0$144 = 0;$$sroa$10$140 = $$sroa$10$141;$$sroa$13$146 = $$sroa$13$147;$$sroa$15$248 = $$sroa$15$249;$$sroa$7$142 = $$sroa$7$143;
  23153. HEAP32[$0>>2] = $$sroa$0$144;
  23154. $$sroa$7$0$$sroa_idx16 = ((($0)) + 4|0);
  23155. HEAP32[$$sroa$7$0$$sroa_idx16>>2] = $$sroa$7$142;
  23156. $$sroa$10$0$$sroa_idx20 = ((($0)) + 8|0);
  23157. HEAP32[$$sroa$10$0$$sroa_idx20>>2] = $$sroa$10$140;
  23158. $$sroa$13$0$$sroa_idx24 = ((($0)) + 12|0);
  23159. HEAP32[$$sroa$13$0$$sroa_idx24>>2] = $$sroa$13$146;
  23160. $$sroa$15$0$$sroa_idx28 = ((($0)) + 16|0);
  23161. HEAP32[$$sroa$15$0$$sroa_idx28>>2] = $$sroa$15$248;
  23162. STACKTOP = sp;return;
  23163. }
  23164. function _LoadResource($0,$1) {
  23165. $0 = $0|0;
  23166. $1 = $1|0;
  23167. 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;
  23168. 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;
  23169. 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;
  23170. 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;
  23171. 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;
  23172. sp = STACKTOP;
  23173. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  23174. $vararg_buffer8 = sp + 24|0;
  23175. $vararg_buffer4 = sp + 16|0;
  23176. $vararg_buffer1 = sp + 8|0;
  23177. $vararg_buffer = sp;
  23178. $2 = sp + 64|0;
  23179. $3 = sp + 32|0;
  23180. $4 = (_fopen($0,11184)|0);
  23181. $5 = ($4|0)==(0|0);
  23182. if ($5) {
  23183. HEAP32[$vararg_buffer>>2] = $0;
  23184. _TraceLog(2,11187,$vararg_buffer);
  23185. $$2 = 0;
  23186. STACKTOP = sp;return ($$2|0);
  23187. }
  23188. (_fread($2,1,1,$4)|0);
  23189. $6 = ((($2)) + 1|0);
  23190. (_fread($6,1,1,$4)|0);
  23191. $7 = ((($2)) + 2|0);
  23192. (_fread($7,1,1,$4)|0);
  23193. $8 = ((($2)) + 3|0);
  23194. (_fread($8,1,1,$4)|0);
  23195. $9 = ((($2)) + 4|0);
  23196. (_fread($9,2,1,$4)|0);
  23197. $10 = ((($2)) + 6|0);
  23198. (_fread($10,2,1,$4)|0);
  23199. $11 = HEAP8[$2>>0]|0;
  23200. $12 = ($11<<24>>24)==(114);
  23201. $13 = HEAP8[$6>>0]|0;
  23202. $14 = ($13<<24>>24)==(82);
  23203. $or$cond = $12 | $14;
  23204. $15 = HEAP8[$7>>0]|0;
  23205. $16 = ($15<<24>>24)==(69);
  23206. $or$cond60 = $or$cond | $16;
  23207. $17 = HEAP8[$8>>0]|0;
  23208. $18 = ($17<<24>>24)==(83);
  23209. $or$cond62 = $or$cond60 | $18;
  23210. if ($or$cond62) {
  23211. $19 = HEAP16[$10>>1]|0;
  23212. $20 = ($19<<16>>16)==(0);
  23213. if ($20) {
  23214. $$0$lcssa = 0;
  23215. } else {
  23216. $21 = ((($3)) + 7|0);
  23217. $22 = HEAP16[$10>>1]|0;
  23218. $23 = $22&65535;
  23219. $24 = ((($3)) + 8|0);
  23220. $25 = ((($3)) + 4|0);
  23221. $26 = ((($3)) + 16|0);
  23222. $27 = ((($3)) + 20|0);
  23223. $28 = ((($3)) + 24|0);
  23224. $29 = ((($3)) + 28|0);
  23225. $30 = ((($3)) + 8|0);
  23226. $31 = ((($3)) + 5|0);
  23227. $32 = ((($3)) + 12|0);
  23228. $$05665 = 0;
  23229. while(1) {
  23230. (_fread($3,32,1,$4)|0);
  23231. $36 = HEAP8[$21>>0]|0;
  23232. $37 = $36&255;
  23233. $38 = ($37*24)|0;
  23234. $39 = (_malloc($38)|0);
  23235. $40 = HEAP32[$3>>2]|0;
  23236. $41 = ($40|0)==($1|0);
  23237. if ($41) {
  23238. $42 = HEAP8[$21>>0]|0;
  23239. $43 = ($42<<24>>24)==(0);
  23240. if (!($43)) {
  23241. $$05764 = 0;
  23242. while(1) {
  23243. $44 = HEAP8[$25>>0]|0;
  23244. $45 = $44&255;
  23245. $46 = (($39) + (($$05764*24)|0)|0);
  23246. HEAP32[$46>>2] = $45;
  23247. $47 = HEAP32[$26>>2]|0;
  23248. $48 = (((($39) + (($$05764*24)|0)|0)) + 4|0);
  23249. HEAP32[$48>>2] = $47;
  23250. $49 = HEAP32[$27>>2]|0;
  23251. $50 = (((($39) + (($$05764*24)|0)|0)) + 8|0);
  23252. HEAP32[$50>>2] = $49;
  23253. $51 = HEAP32[$28>>2]|0;
  23254. $52 = (((($39) + (($$05764*24)|0)|0)) + 12|0);
  23255. HEAP32[$52>>2] = $51;
  23256. $53 = HEAP32[$29>>2]|0;
  23257. $54 = (((($39) + (($$05764*24)|0)|0)) + 16|0);
  23258. HEAP32[$54>>2] = $53;
  23259. $55 = HEAP32[$30>>2]|0;
  23260. $56 = (_malloc($55)|0);
  23261. (_fread($56,$55,1,$4)|0);
  23262. $57 = HEAP8[$31>>0]|0;
  23263. $58 = ($57<<24>>24)==(1);
  23264. if ($58) {
  23265. $59 = HEAP32[$30>>2]|0;
  23266. $60 = HEAP32[$32>>2]|0;
  23267. $61 = (_DecompressData($56,$59,$60)|0);
  23268. $62 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  23269. HEAP32[$62>>2] = $61;
  23270. _free($56);
  23271. } else {
  23272. $63 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  23273. HEAP32[$63>>2] = $56;
  23274. }
  23275. $64 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  23276. $65 = HEAP32[$64>>2]|0;
  23277. $66 = ($65|0)==(0|0);
  23278. if (!($66)) {
  23279. $67 = HEAP32[$3>>2]|0;
  23280. HEAP32[$vararg_buffer4>>2] = $0;
  23281. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  23282. HEAP32[$vararg_ptr7>>2] = $67;
  23283. _TraceLog(0,11284,$vararg_buffer4);
  23284. }
  23285. (_fread($3,32,1,$4)|0);
  23286. $68 = (($$05764) + 1)|0;
  23287. $69 = HEAP8[$21>>0]|0;
  23288. $70 = $69&255;
  23289. $71 = ($68|0)<($70|0);
  23290. if ($71) {
  23291. $$05764 = $68;
  23292. } else {
  23293. break;
  23294. }
  23295. }
  23296. }
  23297. } else {
  23298. $72 = HEAP32[$24>>2]|0;
  23299. (_fseek($4,$72,1)|0);
  23300. }
  23301. $73 = (($$05665) + 1)|0;
  23302. $74 = ($73|0)<($23|0);
  23303. if ($74) {
  23304. $$05665 = $73;
  23305. } else {
  23306. $$0$lcssa = $39;
  23307. break;
  23308. }
  23309. }
  23310. }
  23311. $33 = ((($$0$lcssa)) + 20|0);
  23312. $34 = HEAP32[$33>>2]|0;
  23313. $35 = ($34|0)==(0|0);
  23314. if ($35) {
  23315. HEAP32[$vararg_buffer8>>2] = $0;
  23316. $vararg_ptr11 = ((($vararg_buffer8)) + 4|0);
  23317. HEAP32[$vararg_ptr11>>2] = $1;
  23318. _TraceLog(2,11330,$vararg_buffer8);
  23319. $$1 = $$0$lcssa;
  23320. } else {
  23321. $$1 = $$0$lcssa;
  23322. }
  23323. } else {
  23324. HEAP32[$vararg_buffer1>>2] = $0;
  23325. _TraceLog(2,11238,$vararg_buffer1);
  23326. $$1 = 0;
  23327. }
  23328. (_fclose($4)|0);
  23329. $$2 = $$1;
  23330. STACKTOP = sp;return ($$2|0);
  23331. }
  23332. function _LoadImagePro($0,$1,$2,$3,$4) {
  23333. $0 = $0|0;
  23334. $1 = $1|0;
  23335. $2 = $2|0;
  23336. $3 = $3|0;
  23337. $4 = $4|0;
  23338. var $$byval_copy = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  23339. sp = STACKTOP;
  23340. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  23341. $$byval_copy = sp + 20|0;
  23342. $5 = sp;
  23343. HEAP32[$5>>2] = $1;
  23344. $6 = ((($5)) + 4|0);
  23345. HEAP32[$6>>2] = $2;
  23346. $7 = ((($5)) + 8|0);
  23347. HEAP32[$7>>2] = $3;
  23348. $8 = ((($5)) + 12|0);
  23349. HEAP32[$8>>2] = 1;
  23350. $9 = ((($5)) + 16|0);
  23351. HEAP32[$9>>2] = $4;
  23352. ;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;
  23353. _ImageCopy($0,$$byval_copy);
  23354. STACKTOP = sp;return;
  23355. }
  23356. function _UnloadResource($0) {
  23357. $0 = $0|0;
  23358. var $1 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  23359. sp = STACKTOP;
  23360. $1 = ((($0)) + 20|0);
  23361. $2 = HEAP32[$1>>2]|0;
  23362. $3 = ($2|0)==(0|0);
  23363. if ($3) {
  23364. return;
  23365. }
  23366. _free($2);
  23367. return;
  23368. }
  23369. function _ImageCopy($0,$1) {
  23370. $0 = $0|0;
  23371. $1 = $1|0;
  23372. var $$0 = 0, $$sroa$6$0 = 0, $$sroa$6$0$$sroa_idx10 = 0, $$sroa$7$0 = 0, $$sroa$7$0$$sroa_idx12 = 0, $$sroa$8$0 = 0, $$sroa$8$0$$sroa_idx14 = 0, $$sroa$9$0 = 0, $$sroa$9$0$$sroa_idx16 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0;
  23373. var $20 = 0, $21 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  23374. sp = STACKTOP;
  23375. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  23376. $vararg_buffer = sp;
  23377. $2 = ((($1)) + 4|0);
  23378. $3 = HEAP32[$2>>2]|0;
  23379. $4 = ((($1)) + 8|0);
  23380. $5 = HEAP32[$4>>2]|0;
  23381. $6 = Math_imul($5, $3)|0;
  23382. $7 = ((($1)) + 16|0);
  23383. $8 = HEAP32[$7>>2]|0;
  23384. switch ($8|0) {
  23385. case 17: case 14: case 11: case 10: case 1: {
  23386. $$0 = $6;
  23387. break;
  23388. }
  23389. case 6: case 5: case 3: case 2: {
  23390. $9 = $6 << 1;
  23391. $$0 = $9;
  23392. break;
  23393. }
  23394. case 4: {
  23395. $10 = ($6*3)|0;
  23396. $$0 = $10;
  23397. break;
  23398. }
  23399. case 7: {
  23400. $11 = $6 << 2;
  23401. $$0 = $11;
  23402. break;
  23403. }
  23404. case 16: case 15: case 13: case 12: case 9: case 8: {
  23405. $12 = (($6|0) / 2)&-1;
  23406. $$0 = $12;
  23407. break;
  23408. }
  23409. case 18: {
  23410. $13 = (($6|0) / 4)&-1;
  23411. $$0 = $13;
  23412. break;
  23413. }
  23414. default: {
  23415. _TraceLog(2,11156,$vararg_buffer);
  23416. $$0 = $6;
  23417. }
  23418. }
  23419. $14 = (_malloc($$0)|0);
  23420. $15 = ($14|0)==(0|0);
  23421. if ($15) {
  23422. $$sroa$6$0 = 0;$$sroa$7$0 = 0;$$sroa$8$0 = 0;$$sroa$9$0 = 0;
  23423. } else {
  23424. $16 = HEAP32[$1>>2]|0;
  23425. _memcpy(($14|0),($16|0),($$0|0))|0;
  23426. $17 = HEAP32[$2>>2]|0;
  23427. $18 = HEAP32[$4>>2]|0;
  23428. $19 = ((($1)) + 12|0);
  23429. $20 = HEAP32[$19>>2]|0;
  23430. $21 = HEAP32[$7>>2]|0;
  23431. $$sroa$6$0 = $17;$$sroa$7$0 = $18;$$sroa$8$0 = $20;$$sroa$9$0 = $21;
  23432. }
  23433. HEAP32[$0>>2] = $14;
  23434. $$sroa$6$0$$sroa_idx10 = ((($0)) + 4|0);
  23435. HEAP32[$$sroa$6$0$$sroa_idx10>>2] = $$sroa$6$0;
  23436. $$sroa$7$0$$sroa_idx12 = ((($0)) + 8|0);
  23437. HEAP32[$$sroa$7$0$$sroa_idx12>>2] = $$sroa$7$0;
  23438. $$sroa$8$0$$sroa_idx14 = ((($0)) + 12|0);
  23439. HEAP32[$$sroa$8$0$$sroa_idx14>>2] = $$sroa$8$0;
  23440. $$sroa$9$0$$sroa_idx16 = ((($0)) + 16|0);
  23441. HEAP32[$$sroa$9$0$$sroa_idx16>>2] = $$sroa$9$0;
  23442. STACKTOP = sp;return;
  23443. }
  23444. function _DecompressData($0,$1,$2) {
  23445. $0 = $0|0;
  23446. $1 = $1|0;
  23447. $2 = $2|0;
  23448. 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;
  23449. sp = STACKTOP;
  23450. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  23451. $vararg_buffer10 = sp + 40|0;
  23452. $vararg_buffer7 = sp + 32|0;
  23453. $vararg_buffer5 = sp + 24|0;
  23454. $vararg_buffer3 = sp + 16|0;
  23455. $vararg_buffer1 = sp + 8|0;
  23456. $vararg_buffer = sp;
  23457. $3 = (_malloc($2)|0);
  23458. $4 = ($3|0)==(0|0);
  23459. if ($4) {
  23460. _TraceLog(2,11380,$vararg_buffer);
  23461. STACKTOP = sp;return ($3|0);
  23462. }
  23463. $5 = (_tinfl_decompress_mem_to_mem($3,$2,$0,$1,1)|0);
  23464. $6 = ($5|0)==(-1);
  23465. if ($6) {
  23466. _TraceLog(2,11419,$vararg_buffer1);
  23467. _free($3);
  23468. }
  23469. $7 = ($5|0)==($2|0);
  23470. if (!($7)) {
  23471. _TraceLog(2,11445,$vararg_buffer3);
  23472. HEAP32[$vararg_buffer5>>2] = $2;
  23473. _TraceLog(2,11508,$vararg_buffer5);
  23474. HEAP32[$vararg_buffer7>>2] = $5;
  23475. _TraceLog(2,11543,$vararg_buffer7);
  23476. }
  23477. HEAP32[$vararg_buffer10>>2] = $1;
  23478. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  23479. HEAP32[$vararg_ptr13>>2] = $5;
  23480. _TraceLog(0,11578,$vararg_buffer10);
  23481. STACKTOP = sp;return ($3|0);
  23482. }
  23483. function _tinfl_decompress_mem_to_mem($0,$1,$2,$3,$4) {
  23484. $0 = $0|0;
  23485. $1 = $1|0;
  23486. $2 = $2|0;
  23487. $3 = $3|0;
  23488. $4 = $4|0;
  23489. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  23490. sp = STACKTOP;
  23491. STACKTOP = STACKTOP + 11008|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(11008|0);
  23492. $5 = sp + 11000|0;
  23493. $6 = sp;
  23494. $7 = sp + 8|0;
  23495. HEAP32[$5>>2] = $1;
  23496. HEAP32[$6>>2] = $3;
  23497. HEAP32[$7>>2] = 0;
  23498. $8 = $4 & -7;
  23499. $9 = $8 | 4;
  23500. $10 = (_tinfl_decompress($7,$2,$6,$0,$0,$5,$9)|0);
  23501. $11 = ($10|0)!=(0);
  23502. $12 = HEAP32[$5>>2]|0;
  23503. $13 = $11 ? -1 : $12;
  23504. STACKTOP = sp;return ($13|0);
  23505. }
  23506. function _tinfl_decompress($0,$1,$2,$3,$4,$5,$6) {
  23507. $0 = $0|0;
  23508. $1 = $1|0;
  23509. $2 = $2|0;
  23510. $3 = $3|0;
  23511. $4 = $4|0;
  23512. $5 = $5|0;
  23513. $6 = $6|0;
  23514. 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;
  23515. 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;
  23516. 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;
  23517. 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;
  23518. 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;
  23519. 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;
  23520. 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;
  23521. 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;
  23522. 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;
  23523. 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;
  23524. 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;
  23525. 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;
  23526. 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;
  23527. 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;
  23528. 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;
  23529. 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;
  23530. 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;
  23531. 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;
  23532. 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;
  23533. 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;
  23534. 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;
  23535. 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;
  23536. 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;
  23537. 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;
  23538. 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;
  23539. 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;
  23540. 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;
  23541. 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;
  23542. 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;
  23543. 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;
  23544. 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;
  23545. 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;
  23546. 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;
  23547. 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;
  23548. 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;
  23549. 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;
  23550. 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;
  23551. 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;
  23552. 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;
  23553. 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;
  23554. 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;
  23555. 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;
  23556. 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;
  23557. 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;
  23558. 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;
  23559. 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;
  23560. 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;
  23561. 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;
  23562. 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;
  23563. 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;
  23564. 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;
  23565. 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;
  23566. 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;
  23567. 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;
  23568. 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;
  23569. 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;
  23570. 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;
  23571. 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;
  23572. 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;
  23573. 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;
  23574. 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;
  23575. 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;
  23576. 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;
  23577. 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;
  23578. 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;
  23579. 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;
  23580. 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;
  23581. 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;
  23582. 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;
  23583. 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;
  23584. 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;
  23585. 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;
  23586. 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;
  23587. 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;
  23588. 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;
  23589. 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;
  23590. 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;
  23591. 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;
  23592. 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;
  23593. 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;
  23594. 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;
  23595. 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;
  23596. 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;
  23597. 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;
  23598. 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;
  23599. 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;
  23600. 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;
  23601. 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;
  23602. 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;
  23603. 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;
  23604. 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;
  23605. 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;
  23606. 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;
  23607. 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;
  23608. 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;
  23609. 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;
  23610. 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;
  23611. sp = STACKTOP;
  23612. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  23613. $7 = sp + 64|0;
  23614. $8 = sp;
  23615. $9 = HEAP32[$2>>2]|0;
  23616. $10 = (($1) + ($9)|0);
  23617. $11 = HEAP32[$5>>2]|0;
  23618. $12 = (($4) + ($11)|0);
  23619. $13 = $6 & 4;
  23620. $14 = ($13|0)!=(0);
  23621. $15 = $4;
  23622. $16 = $3;
  23623. $17 = $16 ^ -1;
  23624. $18 = (($15) + ($17))|0;
  23625. $19 = (($18) + ($11))|0;
  23626. $$1753 = $14 ? -1 : $19;
  23627. $20 = (($$1753) + 1)|0;
  23628. $21 = $20 & $$1753;
  23629. $22 = ($21|0)!=(0);
  23630. $23 = ($4>>>0)<($3>>>0);
  23631. $or$cond1702 = $23 | $22;
  23632. if ($or$cond1702) {
  23633. HEAP32[$5>>2] = 0;
  23634. HEAP32[$2>>2] = 0;
  23635. $$0951 = -3;
  23636. STACKTOP = sp;return ($$0951|0);
  23637. }
  23638. $24 = ((($0)) + 4|0);
  23639. $25 = HEAP32[$24>>2]|0;
  23640. $26 = ((($0)) + 56|0);
  23641. $27 = HEAP32[$26>>2]|0;
  23642. $28 = ((($0)) + 32|0);
  23643. $29 = HEAP32[$28>>2]|0;
  23644. $30 = ((($0)) + 36|0);
  23645. $31 = HEAP32[$30>>2]|0;
  23646. $32 = ((($0)) + 40|0);
  23647. $33 = HEAP32[$32>>2]|0;
  23648. $34 = ((($0)) + 60|0);
  23649. $35 = HEAP32[$34>>2]|0;
  23650. $36 = HEAP32[$0>>2]|0;
  23651. L5: do {
  23652. switch ($36|0) {
  23653. case 0: {
  23654. $37 = ((($0)) + 12|0);
  23655. HEAP32[$37>>2] = 0;
  23656. $38 = ((($0)) + 8|0);
  23657. HEAP32[$38>>2] = 0;
  23658. $39 = ((($0)) + 28|0);
  23659. HEAP32[$39>>2] = 1;
  23660. $40 = ((($0)) + 16|0);
  23661. HEAP32[$40>>2] = 1;
  23662. $41 = $6 & 1;
  23663. $42 = ($41|0)==(0);
  23664. if ($42) {
  23665. $$01416 = $35;$$01607 = $4;$$41511 = $1;$$5 = 0;$$51102 = 0;$$51208 = 0;$$51314 = 0;$$5996 = 0;
  23666. label = 14;
  23667. } else {
  23668. $43 = ($9|0)<(1);
  23669. if ($43) {
  23670. $$01097 = 0;$$01203 = 0;$$01309 = 0;$$0987 = 0;$$0991 = 0;
  23671. label = 6;
  23672. } else {
  23673. $$11098$ph = 0;$$11204$ph = 0;$$11310$ph = 0;$$1988$ph = 0;$$1992$ph = 0;
  23674. label = 8;
  23675. }
  23676. }
  23677. break;
  23678. }
  23679. case 1: {
  23680. $46 = ($9|0)>(0);
  23681. if ($46) {
  23682. $$11098$ph = $31;$$11204$ph = $33;$$11310$ph = $27;$$1988$ph = $25;$$1992$ph = $29;
  23683. label = 8;
  23684. } else {
  23685. $$01097 = $31;$$01203 = $33;$$01309 = $27;$$0987 = $25;$$0991 = $29;
  23686. label = 6;
  23687. }
  23688. break;
  23689. }
  23690. case 2: {
  23691. $53 = ($9|0)>(0);
  23692. if ($53) {
  23693. $$31206$ph = $33;$$31312$ph = $27;$$3990$ph = $25;$$3994$ph = $29;$$sink1705 = $1;
  23694. label = 12;
  23695. } else {
  23696. $$11508 = $1;$$21099 = $31;$$21205 = $33;$$21311 = $27;$$2989 = $25;$$2993 = $29;
  23697. label = 10;
  23698. }
  23699. break;
  23700. }
  23701. case 36: {
  23702. $$0960 = -1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 36;
  23703. label = 243;
  23704. break;
  23705. }
  23706. case 3: {
  23707. $75 = ($9|0)>(0);
  23708. if ($75) {
  23709. $$31419$ph = $35;$$31610$ph = $4;$$8$ph = $25;$$81105$ph = $31;$$81211$ph = $33;$$81317$ph = $27;$$8999$ph = $29;$$sink1710 = $1;
  23710. label = 18;
  23711. } else {
  23712. $$21418 = $35;$$21609 = $4;$$61513 = $1;$$7 = $25;$$71104 = $31;$$71210 = $33;$$71316 = $27;$$7998 = $29;
  23713. label = 16;
  23714. }
  23715. break;
  23716. }
  23717. case 5: {
  23718. $90 = ($9|0)>(0);
  23719. if ($90) {
  23720. $91 = ((($1)) + 1|0);
  23721. $92 = HEAP8[$1>>0]|0;
  23722. $93 = $92&255;
  23723. $$01412 = $93;$$111518 = $91;
  23724. } else {
  23725. $88 = $6 & 2;
  23726. $89 = ($88|0)==(0);
  23727. if ($89) {
  23728. $$01412 = 0;$$111518 = $1;
  23729. } else {
  23730. $$0960 = 1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 5;
  23731. label = 243;
  23732. break L5;
  23733. }
  23734. }
  23735. $94 = $$01412 << $25;
  23736. $95 = $94 | $27;
  23737. $96 = (($25) + 8)|0;
  23738. $$121519 = $$111518;$$13 = $96;$$131004 = $29;$$131216 = $33;$$131322 = $95;$$81424 = $35;$$81615 = $4;
  23739. label = 25;
  23740. break;
  23741. }
  23742. case 6: {
  23743. $106 = ($9|0)>(0);
  23744. if ($106) {
  23745. $$121428$ph = $35;$$121619$ph = $4;$$161113$ph = $31;$$17$ph = $25;$$171008$ph = $29;$$171220$ph = $33;$$171326$ph = $27;$$sink1713 = $1;
  23746. label = 32;
  23747. } else {
  23748. $$111427 = $35;$$111618 = $4;$$151112 = $31;$$151522 = $1;$$16 = $25;$$161007 = $29;$$161219 = $33;$$161325 = $27;
  23749. label = 30;
  23750. }
  23751. break;
  23752. }
  23753. case 7: {
  23754. $120 = ($9|0)>(0);
  23755. if ($120) {
  23756. $121 = ((($1)) + 1|0);
  23757. $122 = HEAP8[$1>>0]|0;
  23758. $$151431 = $35;$$151622 = $4;$$191116 = $31;$$191526 = $121;$$20 = $25;$$201011 = $29;$$201223 = $33;$$201329 = $27;$$sink12 = $122;
  23759. label = 39;
  23760. } else {
  23761. $$141430 = $35;$$141621 = $4;$$181115 = $31;$$181525 = $1;$$19 = $25;$$191010 = $29;$$191222 = $33;$$191328 = $27;
  23762. label = 36;
  23763. }
  23764. break;
  23765. }
  23766. case 39: {
  23767. $$171433 = $35;$$171624 = $4;$$211118 = $31;$$211528 = $1;$$22 = $25;$$221013 = $29;$$221225 = $33;$$221331 = $27;
  23768. label = 43;
  23769. break;
  23770. }
  23771. case 51: {
  23772. $152 = ($9|0)>(0);
  23773. if ($152) {
  23774. $$211437$ph = $35;$$211628$ph = $4;$$251122$ph = $31;$$26$ph = $25;$$261017$ph = $29;$$261229$ph = $33;$$261335$ph = $27;$$sink1716 = $1;
  23775. label = 49;
  23776. } else {
  23777. $$201436 = $35;$$201627 = $4;$$241121 = $31;$$241531 = $1;$$25 = $25;$$251016 = $29;$$251228 = $33;$$251334 = $27;
  23778. label = 47;
  23779. }
  23780. break;
  23781. }
  23782. case 52: {
  23783. $$231439 = $35;$$231630 = $4;$$271018 = $29;$$271124 = $31;$$271534 = $1;$$28 = $25;$$281231 = $33;$$281337 = $27;
  23784. label = 52;
  23785. break;
  23786. }
  23787. case 9: {
  23788. $$251441 = $35;$$251632 = $4;$$291020 = $29;$$291126 = $31;$$291536 = $1;$$30 = $25;$$301233 = $33;$$301339 = $27;
  23789. label = 55;
  23790. break;
  23791. }
  23792. case 38: {
  23793. $$261442 = $35;$$261633 = $4;$$301021 = $29;$$301127 = $31;$$301537 = $1;$$31 = $25;$$311234 = $33;$$311340 = $27;
  23794. label = 56;
  23795. break;
  23796. }
  23797. case 40: {
  23798. $$271443 = $35;$$271634 = $4;$$311022 = $29;$$311128 = $31;$$311538 = $1;$$32 = $25;$$321235 = $33;$$321341 = $27;
  23799. label = 58;
  23800. break;
  23801. }
  23802. case 10: {
  23803. $$281444 = $35;$$281635 = $4;$$321023 = $29;$$321129 = $31;$$321539 = $1;$$33 = $25;$$331236 = $33;$$331342 = $27;
  23804. label = 60;
  23805. break;
  23806. }
  23807. case 11: {
  23808. $193 = ($9|0)>(0);
  23809. if ($193) {
  23810. $$321448$ph = $35;$$321639$ph = $4;$$361027$ph = $29;$$361133$ph = $31;$$37$ph = $25;$$371240$ph = $33;$$371346$ph = $27;$$sink1719 = $1;
  23811. label = 66;
  23812. } else {
  23813. $$311447 = $35;$$311638 = $4;$$351026 = $29;$$351132 = $31;$$351542 = $1;$$36 = $25;$$361239 = $33;$$361345 = $27;
  23814. label = 64;
  23815. }
  23816. break;
  23817. }
  23818. case 14: {
  23819. $224 = ($9|0)>(0);
  23820. if ($224) {
  23821. $$371453$ph = $35;$$371644$ph = $4;$$411032$ph = $29;$$411138$ph = $31;$$42$ph = $25;$$421245$ph = $33;$$421351$ph = $27;$$sink1722 = $1;
  23822. label = 75;
  23823. } else {
  23824. $$361452 = $35;$$361643 = $4;$$401031 = $29;$$401137 = $31;$$401547 = $1;$$41 = $25;$$411244 = $33;$$411350 = $27;
  23825. label = 73;
  23826. }
  23827. break;
  23828. }
  23829. case 35: {
  23830. $$401456 = $35;$$401647 = $4;$$441035 = $29;$$441141 = $31;$$441551 = $1;$$45 = $25;$$451248 = $33;$$451354 = $27;
  23831. label = 86;
  23832. break;
  23833. }
  23834. case 16: {
  23835. $452 = ($9|0)>(0);
  23836. if ($452) {
  23837. $$441460$ph = $35;$$441651$ph = $4;$$481039$ph = $29;$$481145$ph = $31;$$49$ph = $25;$$491252$ph = $33;$$491358$ph = $27;$$sink1729 = $1;
  23838. label = 116;
  23839. } else {
  23840. $$431459 = $35;$$431650 = $4;$$471038 = $29;$$471144 = $31;$$471554 = $1;$$48 = $25;$$481251 = $33;$$481357 = $27;
  23841. label = 114;
  23842. }
  23843. break;
  23844. }
  23845. case 17: {
  23846. $$461462 = $35;$$461653 = $4;$$491040 = $29;$$501147 = $31;$$501557 = $1;$$51 = $25;$$511254 = $33;$$511360 = $27;
  23847. label = 125;
  23848. break;
  23849. }
  23850. case 18: {
  23851. $503 = ($9|0)>(0);
  23852. if ($503) {
  23853. $$491465$ph = $35;$$491656$ph = $4;$$521043$ph = $29;$$531150$ph = $31;$$54$ph = $25;$$541257$ph = $33;$$541363$ph = $27;$$sink1732 = $1;
  23854. label = 130;
  23855. } else {
  23856. $$481464 = $35;$$481655 = $4;$$511042 = $29;$$521149 = $31;$$521559 = $1;$$53 = $25;$$531256 = $33;$$531362 = $27;
  23857. label = 128;
  23858. }
  23859. break;
  23860. }
  23861. case 21: {
  23862. $$511467 = $35;$$511658 = $4;$$541045 = $29;$$551152 = $31;$$551562 = $1;$$56 = $25;$$561259 = $33;$$561365 = $27;
  23863. label = 136;
  23864. break;
  23865. }
  23866. case 23: {
  23867. $572 = ($9|0)>(0);
  23868. if ($572) {
  23869. $$571473$ph = $35;$$571664$ph = $4;$$601051$ph = $29;$$611158$ph = $31;$$62$ph = $25;$$621265$ph = $33;$$621371$ph = $27;$$sink1736 = $1;
  23870. label = 153;
  23871. } else {
  23872. $$561472 = $35;$$561663 = $4;$$591050 = $29;$$601157 = $31;$$601567 = $1;$$61 = $25;$$611264 = $33;$$611370 = $27;
  23873. label = 151;
  23874. }
  23875. break;
  23876. }
  23877. case 24: {
  23878. $$591475 = $35;$$591666 = $4;$$621053 = $29;$$621159 = $31;$$631570 = $1;$$64 = $25;$$641267 = $33;$$641373 = $27;
  23879. label = 160;
  23880. break;
  23881. }
  23882. case 25: {
  23883. $696 = ($9|0)>(0);
  23884. if ($696) {
  23885. $$631479$ph = $35;$$641671$ph = $4;$$661057$ph = $29;$$671164$ph = $31;$$681271$ph = $33;$$71$ph = $25;$$711380$ph = $27;$$sink1739 = $1;
  23886. label = 182;
  23887. } else {
  23888. $$621478 = $35;$$631670 = $4;$$651056 = $29;$$661163 = $31;$$671270 = $33;$$691576 = $1;$$70 = $25;$$701379 = $27;
  23889. label = 180;
  23890. }
  23891. break;
  23892. }
  23893. case 26: {
  23894. $737 = ($9|0)>(0);
  23895. if ($737) {
  23896. $$681484$ph = $35;$$691676$ph = $4;$$711062$ph = $29;$$721169$ph = $31;$$731276$ph = $33;$$76$ph = $25;$$761385$ph = $27;$$sink1743 = $1;
  23897. label = 195;
  23898. } else {
  23899. $$671483 = $35;$$681675 = $4;$$701061 = $29;$$711168 = $31;$$721275 = $33;$$741581 = $1;$$75 = $25;$$751384 = $27;
  23900. label = 193;
  23901. }
  23902. break;
  23903. }
  23904. case 27: {
  23905. $784 = ($9|0)>(0);
  23906. if ($784) {
  23907. $$721488$ph = $35;$$731680$ph = $4;$$741065$ph = $29;$$761173$ph = $31;$$761279$ph = $33;$$80$ph = $25;$$801389$ph = $27;$$sink1746 = $1;
  23908. label = 206;
  23909. } else {
  23910. $$711487 = $35;$$721679 = $4;$$731064 = $29;$$751172 = $31;$$751278 = $33;$$781585 = $1;$$79 = $25;$$791388 = $27;
  23911. label = 204;
  23912. }
  23913. break;
  23914. }
  23915. case 37: {
  23916. $$731489 = $35;$$761683 = $4;$$771068 = $29;$$791176 = $31;$$791282 = $33;$$821589 = $1;$$83 = $25;$$831392 = $27;
  23917. label = 210;
  23918. break;
  23919. }
  23920. case 53: {
  23921. $$751491 = $35;$$781685 = $4;$$791070 = $29;$$811178 = $31;$$811284 = $33;$$841591 = $1;$$85 = $25;$$851394 = $27;
  23922. label = 213;
  23923. break;
  23924. }
  23925. case 32: {
  23926. $842 = ($9|0)>(0);
  23927. if ($842) {
  23928. $843 = ((($1)) + 1|0);
  23929. $844 = HEAP8[$1>>0]|0;
  23930. $845 = $844&255;
  23931. $$0949 = $845;$$881595 = $843;
  23932. } else {
  23933. $840 = $6 & 2;
  23934. $841 = ($840|0)==(0);
  23935. if ($841) {
  23936. $$0949 = 0;$$881595 = $1;
  23937. } else {
  23938. $$0960 = 1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 32;
  23939. label = 243;
  23940. break L5;
  23941. }
  23942. }
  23943. $846 = $$0949 << $25;
  23944. $847 = $846 | $27;
  23945. $848 = (($25) + 8)|0;
  23946. $$801496 = $35;$$841075 = $29;$$841691 = $4;$$861289 = $33;$$891596 = $$881595;$$90 = $848;$$901399 = $847;
  23947. label = 226;
  23948. break;
  23949. }
  23950. case 41: {
  23951. $858 = ($9|0)>(0);
  23952. if ($858) {
  23953. $$841500$ph = $35;$$881079$ph = $29;$$881695$ph = $4;$$901187$ph = $31;$$901293$ph = $33;$$94$ph = $25;$$941403$ph = $27;$$sink1750 = $1;
  23954. label = 233;
  23955. } else {
  23956. $$831499 = $35;$$871078 = $29;$$871694 = $4;$$891186 = $31;$$891292 = $33;$$921599 = $1;$$93 = $25;$$931402 = $27;
  23957. label = 231;
  23958. }
  23959. break;
  23960. }
  23961. case 42: {
  23962. $871 = ($9|0)>(0);
  23963. if ($871) {
  23964. $872 = ((($1)) + 1|0);
  23965. $873 = HEAP8[$1>>0]|0;
  23966. $874 = $873&255;
  23967. $$0948 = $874;$$871503 = $35;$$911082 = $29;$$911698 = $4;$$931190 = $31;$$931296 = $33;$$961603 = $872;$$97 = $25;$$971406 = $27;
  23968. label = 241;
  23969. } else {
  23970. $$861502 = $35;$$901081 = $29;$$901697 = $4;$$921189 = $31;$$921295 = $33;$$951602 = $1;$$96 = $25;$$961405 = $27;
  23971. label = 237;
  23972. }
  23973. break;
  23974. }
  23975. case 34: {
  23976. $$881504 = $35;$$921083 = $29;$$921699 = $4;$$941191 = $31;$$941297 = $33;$$971604 = $1;$$98 = $25;$$981407 = $27;
  23977. label = 242;
  23978. break;
  23979. }
  23980. default: {
  23981. $$100 = $25;$$1001409 = $27;$$1961 = -1;$$901506 = $35;$$941085 = $29;$$941701 = $4;$$961193 = $31;$$961299 = $33;$$991606 = $1;
  23982. label = 244;
  23983. }
  23984. }
  23985. } while(0);
  23986. if ((label|0) == 6) {
  23987. $44 = $6 & 2;
  23988. $45 = ($44|0)==(0);
  23989. if ($45) {
  23990. $$01507 = $1;$$11098 = $$01097;$$11204 = $$01203;$$11310 = $$01309;$$1988 = $$0987;$$1992 = $$0991;$$sink3$shrunk = 0;
  23991. label = 9;
  23992. } else {
  23993. $$0960 = 1;$$891505 = $35;$$931084 = $$0991;$$931700 = $4;$$951192 = $$01097;$$951298 = $$01203;$$981605 = $1;$$99 = $$0987;$$991408 = $$01309;$$sink30 = 1;
  23994. label = 243;
  23995. }
  23996. }
  23997. else if ((label|0) == 8) {
  23998. $47 = ((($1)) + 1|0);
  23999. $48 = HEAP8[$1>>0]|0;
  24000. $$01507 = $47;$$11098 = $$11098$ph;$$11204 = $$11204$ph;$$11310 = $$11310$ph;$$1988 = $$1988$ph;$$1992 = $$1992$ph;$$sink3$shrunk = $48;
  24001. label = 9;
  24002. }
  24003. if ((label|0) == 9) {
  24004. $$sink3 = $$sink3$shrunk&255;
  24005. $49 = ((($0)) + 8|0);
  24006. HEAP32[$49>>2] = $$sink3;
  24007. $50 = ($$01507>>>0)<($10>>>0);
  24008. if ($50) {
  24009. $$31206$ph = $$11204;$$31312$ph = $$11310;$$3990$ph = $$1988;$$3994$ph = $$1992;$$sink1705 = $$01507;
  24010. label = 12;
  24011. } else {
  24012. $$11508 = $$01507;$$21099 = $$11098;$$21205 = $$11204;$$21311 = $$11310;$$2989 = $$1988;$$2993 = $$1992;
  24013. label = 10;
  24014. }
  24015. }
  24016. if ((label|0) == 10) {
  24017. $51 = $6 & 2;
  24018. $52 = ($51|0)==(0);
  24019. if ($52) {
  24020. $$21509 = $$11508;$$31206 = $$21205;$$31312 = $$21311;$$3990 = $$2989;$$3994 = $$2993;$$sink9$shrunk = 0;
  24021. label = 13;
  24022. } else {
  24023. $$0960 = 1;$$891505 = $35;$$931084 = $$2993;$$931700 = $4;$$951192 = $$21099;$$951298 = $$21205;$$981605 = $$11508;$$99 = $$2989;$$991408 = $$21311;$$sink30 = 2;
  24024. label = 243;
  24025. }
  24026. }
  24027. else if ((label|0) == 12) {
  24028. $54 = ((($$sink1705)) + 1|0);
  24029. $55 = HEAP8[$$sink1705>>0]|0;
  24030. $$21509 = $54;$$31206 = $$31206$ph;$$31312 = $$31312$ph;$$3990 = $$3990$ph;$$3994 = $$3994$ph;$$sink9$shrunk = $55;
  24031. label = 13;
  24032. }
  24033. if ((label|0) == 13) {
  24034. $$sink9 = $$sink9$shrunk&255;
  24035. $56 = ((($0)) + 12|0);
  24036. HEAP32[$56>>2] = $$sink9;
  24037. $57 = ((($0)) + 8|0);
  24038. $58 = HEAP32[$57>>2]|0;
  24039. $59 = $58 << 8;
  24040. $60 = $59 | $$sink9;
  24041. $61 = (($60>>>0) % 31)&-1;
  24042. $62 = $$sink9 & 32;
  24043. $63 = $61 | $62;
  24044. $64 = $58 & 15;
  24045. $65 = ($64|0)!=(8);
  24046. $not$ = ($63|0)!=(0);
  24047. $$1754 = $65 | $not$;
  24048. $66 = $58 >>> 4;
  24049. $67 = 256 << $66;
  24050. $68 = ($67>>>0)>(32768);
  24051. $69 = ($20>>>0)<($67>>>0);
  24052. $$ = $68 | $69;
  24053. $not$1755 = $14 ^ 1;
  24054. $70 = $$ & $not$1755;
  24055. $$31100$v = $70 | $$1754;
  24056. if ($$31100$v) {
  24057. $$0960 = -1;$$891505 = $35;$$931084 = $$3994;$$931700 = $4;$$951192 = 1;$$951298 = $$31206;$$981605 = $$21509;$$99 = $$3990;$$991408 = $$31312;$$sink30 = 36;
  24058. label = 243;
  24059. } else {
  24060. $$01416 = $35;$$01607 = $4;$$41511 = $$21509;$$5 = $$3990;$$51102 = 0;$$51208 = $$31206;$$51314 = $$31312;$$5996 = $$3994;
  24061. label = 14;
  24062. }
  24063. }
  24064. L46: while(1) {
  24065. switch (label|0) {
  24066. case 14: {
  24067. label = 0;
  24068. $71 = ($$5>>>0)<(3);
  24069. if ($71) {
  24070. $$11417 = $$01416;$$11608 = $$01607;$$51512 = $$41511;$$6 = $$5;$$61103 = $$51102;$$61209 = $$51208;$$61315 = $$51314;$$6997 = $$5996;
  24071. label = 15;
  24072. } else {
  24073. $$41420 = $$01416;$$41611 = $$01607;$$81515 = $$41511;$$9 = $$5;$$91000 = $$5996;$$91106 = $$51102;$$91212 = $$51208;$$91318 = $$51314;
  24074. label = 20;
  24075. }
  24076. break;
  24077. }
  24078. case 16: {
  24079. label = 0;
  24080. $73 = $6 & 2;
  24081. $74 = ($73|0)==(0);
  24082. if ($74) {
  24083. $$01413$shrunk = 0;$$31419 = $$21418;$$31610 = $$21609;$$71514 = $$61513;$$8 = $$7;$$81105 = $$71104;$$81211 = $$71210;$$81317 = $$71316;$$8999 = $$7998;
  24084. label = 19;
  24085. } else {
  24086. $$0960 = 1;$$891505 = $$21418;$$931084 = $$7998;$$931700 = $$21609;$$951192 = $$71104;$$951298 = $$71210;$$981605 = $$61513;$$99 = $$7;$$991408 = $$71316;$$sink30 = 3;
  24087. label = 243;
  24088. continue L46;
  24089. }
  24090. break;
  24091. }
  24092. case 18: {
  24093. label = 0;
  24094. $76 = ((($$sink1710)) + 1|0);
  24095. $77 = HEAP8[$$sink1710>>0]|0;
  24096. $$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;
  24097. label = 19;
  24098. break;
  24099. }
  24100. case 25: {
  24101. label = 0;
  24102. $97 = $$13 & 7;
  24103. $98 = $$131322 >>> $97;
  24104. $99 = (($$13) - ($97))|0;
  24105. $$131110 = 0;$$131520 = $$121519;$$14 = $99;$$141005 = $$131004;$$141217 = $$131216;$$141323 = $98;$$91425 = $$81424;$$91616 = $$81615;
  24106. label = 26;
  24107. break;
  24108. }
  24109. case 30: {
  24110. label = 0;
  24111. $104 = $6 & 2;
  24112. $105 = ($104|0)==(0);
  24113. if ($105) {
  24114. $$01411$shrunk = 0;$$121428 = $$111427;$$121619 = $$111618;$$161113 = $$151112;$$161523 = $$151522;$$17 = $$16;$$171008 = $$161007;$$171220 = $$161219;$$171326 = $$161325;
  24115. label = 33;
  24116. } else {
  24117. $$0960 = 1;$$891505 = $$111427;$$931084 = $$161007;$$931700 = $$111618;$$951192 = $$151112;$$951298 = $$161219;$$981605 = $$151522;$$99 = $$16;$$991408 = $$161325;$$sink30 = 6;
  24118. label = 243;
  24119. continue L46;
  24120. }
  24121. break;
  24122. }
  24123. case 32: {
  24124. label = 0;
  24125. $107 = ((($$sink1713)) + 1|0);
  24126. $108 = HEAP8[$$sink1713>>0]|0;
  24127. $$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;
  24128. label = 33;
  24129. break;
  24130. }
  24131. case 36: {
  24132. label = 0;
  24133. $118 = $6 & 2;
  24134. $119 = ($118|0)==(0);
  24135. if ($119) {
  24136. $$151431 = $$141430;$$151622 = $$141621;$$191116 = $$181115;$$191526 = $$181525;$$20 = $$19;$$201011 = $$191010;$$201223 = $$191222;$$201329 = $$191328;$$sink12 = 0;
  24137. label = 39;
  24138. continue L46;
  24139. } else {
  24140. $$0960 = 1;$$891505 = $$141430;$$931084 = $$191010;$$931700 = $$141621;$$951192 = $$181115;$$951298 = $$191222;$$981605 = $$181525;$$99 = $$19;$$991408 = $$191328;$$sink30 = 7;
  24141. label = 243;
  24142. continue L46;
  24143. }
  24144. break;
  24145. }
  24146. case 39: {
  24147. label = 0;
  24148. $$sink13 = (((($0)) + 10528|0) + ($$191116)|0);
  24149. HEAP8[$$sink13>>0] = $$sink12;
  24150. $$161432 = $$151431;$$161623 = $$151622;$$201117 = $$191116;$$201527 = $$191526;$$21 = $$20;$$211012 = $$201011;$$211224 = $$201223;$$211330 = $$201329;
  24151. label = 41;
  24152. break;
  24153. }
  24154. case 43: {
  24155. label = 0;
  24156. $$0960 = -1;$$891505 = $$171433;$$931084 = $$221013;$$931700 = $$171624;$$951192 = $$211118;$$951298 = $$221225;$$981605 = $$211528;$$99 = $$22;$$991408 = $$221331;$$sink30 = 39;
  24157. label = 243;
  24158. continue L46;
  24159. break;
  24160. }
  24161. case 47: {
  24162. label = 0;
  24163. $150 = $6 & 2;
  24164. $151 = ($150|0)==(0);
  24165. if ($151) {
  24166. $$01410$shrunk = 0;$$211437 = $$201436;$$211628 = $$201627;$$251122 = $$241121;$$251532 = $$241531;$$26 = $$25;$$261017 = $$251016;$$261229 = $$251228;$$261335 = $$251334;
  24167. label = 50;
  24168. } else {
  24169. $$0960 = 1;$$891505 = $$201436;$$931084 = $$251016;$$931700 = $$201627;$$951192 = $$241121;$$951298 = $$251228;$$981605 = $$241531;$$99 = $$25;$$991408 = $$251334;$$sink30 = 51;
  24170. label = 243;
  24171. continue L46;
  24172. }
  24173. break;
  24174. }
  24175. case 49: {
  24176. label = 0;
  24177. $153 = ((($$sink1716)) + 1|0);
  24178. $154 = HEAP8[$$sink1716>>0]|0;
  24179. $$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;
  24180. label = 50;
  24181. break;
  24182. }
  24183. case 52: {
  24184. label = 0;
  24185. $162 = ($$231630>>>0)<($12>>>0);
  24186. if (!($162)) {
  24187. $$0960 = 2;$$891505 = $$231439;$$931084 = $$271018;$$931700 = $$231630;$$951192 = $$271124;$$951298 = $$281231;$$981605 = $$271534;$$99 = $$28;$$991408 = $$281337;$$sink30 = 52;
  24188. label = 243;
  24189. continue L46;
  24190. }
  24191. $163 = $$271018&255;
  24192. $164 = ((($$231630)) + 1|0);
  24193. HEAP8[$$231630>>0] = $163;
  24194. $165 = (($$271124) + -1)|0;
  24195. $$181434 = $$231439;$$181625 = $164;$$221119 = $165;$$221529 = $$271534;$$23 = $$28;$$231014 = $$271018;$$231226 = $$281231;$$231332 = $$281337;
  24196. label = 44;
  24197. break;
  24198. }
  24199. case 55: {
  24200. label = 0;
  24201. $167 = ($$251632>>>0)<($12>>>0);
  24202. if ($167) {
  24203. $$261442 = $$251441;$$261633 = $$251632;$$301021 = $$291020;$$301127 = $$291126;$$301537 = $$291536;$$31 = $$30;$$311234 = $$301233;$$311340 = $$301339;
  24204. label = 56;
  24205. continue L46;
  24206. } else {
  24207. $$0960 = 2;$$891505 = $$251441;$$931084 = $$291020;$$931700 = $$251632;$$951192 = $$291126;$$951298 = $$301233;$$981605 = $$291536;$$99 = $$30;$$991408 = $$301339;$$sink30 = 9;
  24208. label = 243;
  24209. continue L46;
  24210. }
  24211. break;
  24212. }
  24213. case 56: {
  24214. label = 0;
  24215. $168 = ($$301537>>>0)<($10>>>0);
  24216. if ($168) {
  24217. $171 = $12;
  24218. $172 = $$261633;
  24219. $173 = (($171) - ($172))|0;
  24220. $174 = $10;
  24221. $175 = $$301537;
  24222. $176 = (($174) - ($175))|0;
  24223. $177 = ($173>>>0)<($176>>>0);
  24224. $$sink17 = $177 ? $12 : $10;
  24225. $$sink16 = $177 ? $$261633 : $$301537;
  24226. $178 = $$sink17;
  24227. $179 = $$sink16;
  24228. $180 = (($178) - ($179))|0;
  24229. $181 = ($180>>>0)<($$301127>>>0);
  24230. $$$301127 = $181 ? $180 : $$301127;
  24231. _memcpy(($$261633|0),($$301537|0),($$$301127|0))|0;
  24232. $182 = (($$301537) + ($$$301127)|0);
  24233. $183 = (($$261633) + ($$$301127)|0);
  24234. $184 = (($$301127) - ($$$301127))|0;
  24235. $$241440 = $$261442;$$241631 = $183;$$281019 = $$301021;$$281125 = $184;$$281535 = $182;$$29 = $$31;$$291232 = $$311234;$$291338 = $$311340;
  24236. label = 54;
  24237. break;
  24238. } else {
  24239. $169 = $6 & 2;
  24240. $170 = ($169|0)==(0);
  24241. if ($170) {
  24242. $$271443 = $$261442;$$271634 = $$261633;$$311022 = $$301021;$$311128 = $$301127;$$311538 = $$301537;$$32 = $$31;$$321235 = $$311234;$$321341 = $$311340;
  24243. label = 58;
  24244. continue L46;
  24245. } else {
  24246. $$0960 = 1;$$891505 = $$261442;$$931084 = $$301021;$$931700 = $$261633;$$951192 = $$301127;$$951298 = $$311234;$$981605 = $$301537;$$99 = $$31;$$991408 = $$311340;$$sink30 = 38;
  24247. label = 243;
  24248. continue L46;
  24249. }
  24250. }
  24251. break;
  24252. }
  24253. case 58: {
  24254. label = 0;
  24255. $$0960 = -1;$$891505 = $$271443;$$931084 = $$311022;$$931700 = $$271634;$$951192 = $$311128;$$951298 = $$321235;$$981605 = $$311538;$$99 = $$32;$$991408 = $$321341;$$sink30 = 40;
  24256. label = 243;
  24257. continue L46;
  24258. break;
  24259. }
  24260. case 60: {
  24261. label = 0;
  24262. $$0960 = -1;$$891505 = $$281444;$$931084 = $$321023;$$931700 = $$281635;$$951192 = $$321129;$$951298 = $$331236;$$981605 = $$321539;$$99 = $$33;$$991408 = $$331342;$$sink30 = 10;
  24263. label = 243;
  24264. continue L46;
  24265. break;
  24266. }
  24267. case 64: {
  24268. label = 0;
  24269. $191 = $6 & 2;
  24270. $192 = ($191|0)==(0);
  24271. if ($192) {
  24272. $$01300$shrunk = 0;$$321448 = $$311447;$$321639 = $$311638;$$361027 = $$351026;$$361133 = $$351132;$$361543 = $$351542;$$37 = $$36;$$371240 = $$361239;$$371346 = $$361345;
  24273. label = 67;
  24274. } else {
  24275. $$0960 = 1;$$891505 = $$311447;$$931084 = $$351026;$$931700 = $$311638;$$951192 = $$351132;$$951298 = $$361239;$$981605 = $$351542;$$99 = $$36;$$991408 = $$361345;$$sink30 = 11;
  24276. label = 243;
  24277. continue L46;
  24278. }
  24279. break;
  24280. }
  24281. case 66: {
  24282. label = 0;
  24283. $194 = ((($$sink1719)) + 1|0);
  24284. $195 = HEAP8[$$sink1719>>0]|0;
  24285. $$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;
  24286. label = 67;
  24287. break;
  24288. }
  24289. case 73: {
  24290. label = 0;
  24291. $222 = $6 & 2;
  24292. $223 = ($222|0)==(0);
  24293. if ($223) {
  24294. $$01202$shrunk = 0;$$371453 = $$361452;$$371644 = $$361643;$$411032 = $$401031;$$411138 = $$401137;$$411548 = $$401547;$$42 = $$41;$$421245 = $$411244;$$421351 = $$411350;
  24295. label = 76;
  24296. } else {
  24297. $$0960 = 1;$$891505 = $$361452;$$931084 = $$401031;$$931700 = $$361643;$$951192 = $$401137;$$951298 = $$411244;$$981605 = $$401547;$$99 = $$41;$$991408 = $$411350;$$sink30 = 14;
  24298. label = 243;
  24299. continue L46;
  24300. }
  24301. break;
  24302. }
  24303. case 75: {
  24304. label = 0;
  24305. $225 = ((($$sink1722)) + 1|0);
  24306. $226 = HEAP8[$$sink1722>>0]|0;
  24307. $$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;
  24308. label = 76;
  24309. break;
  24310. }
  24311. case 86: {
  24312. label = 0;
  24313. $$0960 = -1;$$891505 = $$401456;$$931084 = $$441035;$$931700 = $$401647;$$951192 = $$441141;$$951298 = $$451248;$$981605 = $$441551;$$99 = $$45;$$991408 = $$451354;$$sink30 = 35;
  24314. label = 243;
  24315. continue L46;
  24316. break;
  24317. }
  24318. case 114: {
  24319. label = 0;
  24320. $450 = $6 & 2;
  24321. $451 = ($450|0)==(0);
  24322. if ($451) {
  24323. $$0980$shrunk = 0;$$441460 = $$431459;$$441651 = $$431650;$$481039 = $$471038;$$481145 = $$471144;$$481555 = $$471554;$$49 = $$48;$$491252 = $$481251;$$491358 = $$481357;
  24324. label = 117;
  24325. } else {
  24326. $$0960 = 1;$$891505 = $$431459;$$931084 = $$471038;$$931700 = $$431650;$$951192 = $$471144;$$951298 = $$481251;$$981605 = $$471554;$$99 = $$48;$$991408 = $$481357;$$sink30 = 16;
  24327. label = 243;
  24328. continue L46;
  24329. }
  24330. break;
  24331. }
  24332. case 116: {
  24333. label = 0;
  24334. $453 = ((($$sink1729)) + 1|0);
  24335. $454 = HEAP8[$$sink1729>>0]|0;
  24336. $$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;
  24337. label = 117;
  24338. break;
  24339. }
  24340. case 125: {
  24341. label = 0;
  24342. $$0960 = -1;$$891505 = $$461462;$$931084 = $$491040;$$931700 = $$461653;$$951192 = $$501147;$$951298 = $$511254;$$981605 = $$501557;$$99 = $$51;$$991408 = $$511360;$$sink30 = 17;
  24343. label = 243;
  24344. continue L46;
  24345. break;
  24346. }
  24347. case 128: {
  24348. label = 0;
  24349. $501 = $6 & 2;
  24350. $502 = ($501|0)==(0);
  24351. if ($502) {
  24352. $$0979$shrunk = 0;$$491465 = $$481464;$$491656 = $$481655;$$521043 = $$511042;$$531150 = $$521149;$$531560 = $$521559;$$54 = $$53;$$541257 = $$531256;$$541363 = $$531362;
  24353. label = 131;
  24354. } else {
  24355. $$0960 = 1;$$891505 = $$481464;$$931084 = $$511042;$$931700 = $$481655;$$951192 = $$521149;$$951298 = $$531256;$$981605 = $$521559;$$99 = $$53;$$991408 = $$531362;$$sink30 = 18;
  24356. label = 243;
  24357. continue L46;
  24358. }
  24359. break;
  24360. }
  24361. case 130: {
  24362. label = 0;
  24363. $504 = ((($$sink1732)) + 1|0);
  24364. $505 = HEAP8[$$sink1732>>0]|0;
  24365. $$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;
  24366. label = 131;
  24367. break;
  24368. }
  24369. case 136: {
  24370. label = 0;
  24371. $$0960 = -1;$$891505 = $$511467;$$931084 = $$541045;$$931700 = $$511658;$$951192 = $$551152;$$951298 = $$561259;$$981605 = $$551562;$$99 = $$56;$$991408 = $$561365;$$sink30 = 21;
  24372. label = 243;
  24373. continue L46;
  24374. break;
  24375. }
  24376. case 151: {
  24377. label = 0;
  24378. $570 = $6 & 2;
  24379. $571 = ($570|0)==(0);
  24380. if ($571) {
  24381. $$0971$shrunk = 0;$$571473 = $$561472;$$571664 = $$561663;$$601051 = $$591050;$$611158 = $$601157;$$611568 = $$601567;$$62 = $$61;$$621265 = $$611264;$$621371 = $$611370;
  24382. label = 154;
  24383. } else {
  24384. $$0960 = 1;$$891505 = $$561472;$$931084 = $$591050;$$931700 = $$561663;$$951192 = $$601157;$$951298 = $$611264;$$981605 = $$601567;$$99 = $$61;$$991408 = $$611370;$$sink30 = 23;
  24385. label = 243;
  24386. continue L46;
  24387. }
  24388. break;
  24389. }
  24390. case 153: {
  24391. label = 0;
  24392. $573 = ((($$sink1736)) + 1|0);
  24393. $574 = HEAP8[$$sink1736>>0]|0;
  24394. $$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;
  24395. label = 154;
  24396. break;
  24397. }
  24398. case 160: {
  24399. label = 0;
  24400. $610 = ($$591666>>>0)<($12>>>0);
  24401. if (!($610)) {
  24402. $$0960 = 2;$$891505 = $$591475;$$931084 = $$621053;$$931700 = $$591666;$$951192 = $$621159;$$951298 = $$641267;$$981605 = $$631570;$$99 = $$64;$$991408 = $$641373;$$sink30 = 24;
  24403. label = 243;
  24404. continue L46;
  24405. }
  24406. $611 = $$621159&255;
  24407. $612 = ((($$591666)) + 1|0);
  24408. HEAP8[$$591666>>0] = $611;
  24409. $$541470$ph = $$591475;$$541661$ph = $612;$$571048$ph = $$621053;$$581155$ph = $$621159;$$581565$ph = $$631570;$$59$ph = $$64;$$591262$ph = $$641267;$$591368$ph = $$641373;
  24410. label = 140;
  24411. break;
  24412. }
  24413. case 180: {
  24414. label = 0;
  24415. $694 = $6 & 2;
  24416. $695 = ($694|0)==(0);
  24417. if ($695) {
  24418. $$0959$shrunk = 0;$$631479 = $$621478;$$641671 = $$631670;$$661057 = $$651056;$$671164 = $$661163;$$681271 = $$671270;$$701577 = $$691576;$$71 = $$70;$$711380 = $$701379;
  24419. label = 183;
  24420. } else {
  24421. $$0960 = 1;$$891505 = $$621478;$$931084 = $$651056;$$931700 = $$631670;$$951192 = $$661163;$$951298 = $$671270;$$981605 = $$691576;$$99 = $$70;$$991408 = $$701379;$$sink30 = 25;
  24422. label = 243;
  24423. continue L46;
  24424. }
  24425. break;
  24426. }
  24427. case 182: {
  24428. label = 0;
  24429. $697 = ((($$sink1739)) + 1|0);
  24430. $698 = HEAP8[$$sink1739>>0]|0;
  24431. $$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;
  24432. label = 183;
  24433. break;
  24434. }
  24435. case 193: {
  24436. label = 0;
  24437. $735 = $6 & 2;
  24438. $736 = ($735|0)==(0);
  24439. if ($736) {
  24440. $$0952$shrunk = 0;$$681484 = $$671483;$$691676 = $$681675;$$711062 = $$701061;$$721169 = $$711168;$$731276 = $$721275;$$751582 = $$741581;$$76 = $$75;$$761385 = $$751384;
  24441. label = 196;
  24442. } else {
  24443. $$0960 = 1;$$891505 = $$671483;$$931084 = $$701061;$$931700 = $$681675;$$951192 = $$711168;$$951298 = $$721275;$$981605 = $$741581;$$99 = $$75;$$991408 = $$751384;$$sink30 = 26;
  24444. label = 243;
  24445. continue L46;
  24446. }
  24447. break;
  24448. }
  24449. case 195: {
  24450. label = 0;
  24451. $738 = ((($$sink1743)) + 1|0);
  24452. $739 = HEAP8[$$sink1743>>0]|0;
  24453. $$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;
  24454. label = 196;
  24455. break;
  24456. }
  24457. case 204: {
  24458. label = 0;
  24459. $782 = $6 & 2;
  24460. $783 = ($782|0)==(0);
  24461. if ($783) {
  24462. $$0950$shrunk = 0;$$721488 = $$711487;$$731680 = $$721679;$$741065 = $$731064;$$761173 = $$751172;$$761279 = $$751278;$$791586 = $$781585;$$80 = $$79;$$801389 = $$791388;
  24463. label = 207;
  24464. } else {
  24465. $$0960 = 1;$$891505 = $$711487;$$931084 = $$731064;$$931700 = $$721679;$$951192 = $$751172;$$951298 = $$751278;$$981605 = $$781585;$$99 = $$79;$$991408 = $$791388;$$sink30 = 27;
  24466. label = 243;
  24467. continue L46;
  24468. }
  24469. break;
  24470. }
  24471. case 206: {
  24472. label = 0;
  24473. $785 = ((($$sink1746)) + 1|0);
  24474. $786 = HEAP8[$$sink1746>>0]|0;
  24475. $$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;
  24476. label = 207;
  24477. break;
  24478. }
  24479. case 210: {
  24480. label = 0;
  24481. $$0960 = -1;$$891505 = $$731489;$$931084 = $$771068;$$931700 = $$761683;$$951192 = $$791176;$$951298 = $$791282;$$981605 = $$821589;$$99 = $$83;$$991408 = $$831392;$$sink30 = 37;
  24482. label = 243;
  24483. continue L46;
  24484. break;
  24485. }
  24486. case 213: {
  24487. label = 0;
  24488. $809 = ($$781685>>>0)<($12>>>0);
  24489. if (!($809)) {
  24490. $$0960 = 2;$$891505 = $$751491;$$931084 = $$791070;$$931700 = $$781685;$$951192 = $$811178;$$951298 = $$811284;$$981605 = $$841591;$$99 = $$85;$$991408 = $$851394;$$sink30 = 53;
  24491. label = 243;
  24492. continue L46;
  24493. }
  24494. $810 = (($$751491) + 1)|0;
  24495. $811 = (($$751491) - ($$791070))|0;
  24496. $812 = $811 & $$1753;
  24497. $813 = (($3) + ($812)|0);
  24498. $814 = HEAP8[$813>>0]|0;
  24499. $815 = ((($$781685)) + 1|0);
  24500. HEAP8[$$781685>>0] = $814;
  24501. $$741490 = $810;$$771684 = $815;$$781069 = $$791070;$$801177 = $$811178;$$801283 = $$811284;$$831590 = $$841591;$$84 = $$85;$$841393 = $$851394;
  24502. label = 212;
  24503. break;
  24504. }
  24505. case 226: {
  24506. label = 0;
  24507. $849 = $$90 & 7;
  24508. $850 = $$901399 >>> $849;
  24509. $851 = (($$90) - ($849))|0;
  24510. $$811497 = $$801496;$$851076 = $$841075;$$851692 = $$841691;$$871184 = 0;$$871290 = $$861289;$$901597 = $$891596;$$91 = $851;$$911400 = $850;
  24511. label = 227;
  24512. break;
  24513. }
  24514. case 231: {
  24515. label = 0;
  24516. $856 = $6 & 2;
  24517. $857 = ($856|0)==(0);
  24518. if ($857) {
  24519. $$0947$shrunk = 0;$$841500 = $$831499;$$881079 = $$871078;$$881695 = $$871694;$$901187 = $$891186;$$901293 = $$891292;$$931600 = $$921599;$$94 = $$93;$$941403 = $$931402;
  24520. label = 234;
  24521. } else {
  24522. $$0960 = 1;$$891505 = $$831499;$$931084 = $$871078;$$931700 = $$871694;$$951192 = $$891186;$$951298 = $$891292;$$981605 = $$921599;$$99 = $$93;$$991408 = $$931402;$$sink30 = 41;
  24523. label = 243;
  24524. continue L46;
  24525. }
  24526. break;
  24527. }
  24528. case 233: {
  24529. label = 0;
  24530. $859 = ((($$sink1750)) + 1|0);
  24531. $860 = HEAP8[$$sink1750>>0]|0;
  24532. $$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;
  24533. label = 234;
  24534. break;
  24535. }
  24536. case 237: {
  24537. label = 0;
  24538. $869 = $6 & 2;
  24539. $870 = ($869|0)==(0);
  24540. if ($870) {
  24541. $$0948 = 0;$$871503 = $$861502;$$911082 = $$901081;$$911698 = $$901697;$$931190 = $$921189;$$931296 = $$921295;$$961603 = $$951602;$$97 = $$96;$$971406 = $$961405;
  24542. label = 241;
  24543. continue L46;
  24544. } else {
  24545. $$0960 = 1;$$891505 = $$861502;$$931084 = $$901081;$$931700 = $$901697;$$951192 = $$921189;$$951298 = $$921295;$$981605 = $$951602;$$99 = $$96;$$991408 = $$961405;$$sink30 = 42;
  24546. label = 243;
  24547. continue L46;
  24548. }
  24549. break;
  24550. }
  24551. case 241: {
  24552. label = 0;
  24553. $878 = ((($0)) + 16|0);
  24554. $879 = HEAP32[$878>>2]|0;
  24555. $880 = $879 << 8;
  24556. $881 = $880 | $$0948;
  24557. HEAP32[$878>>2] = $881;
  24558. $882 = (($$931190) + 1)|0;
  24559. $$811497 = $$871503;$$851076 = $$911082;$$851692 = $$911698;$$871184 = $882;$$871290 = $$931296;$$901597 = $$961603;$$91 = $$97;$$911400 = $$971406;
  24560. label = 227;
  24561. break;
  24562. }
  24563. case 242: {
  24564. label = 0;
  24565. $$0960 = 0;$$891505 = $$881504;$$931084 = $$921083;$$931700 = $$921699;$$951192 = $$941191;$$951298 = $$941297;$$981605 = $$971604;$$99 = $$98;$$991408 = $$981407;$$sink30 = 34;
  24566. label = 243;
  24567. continue L46;
  24568. break;
  24569. }
  24570. case 243: {
  24571. label = 0;
  24572. HEAP32[$0>>2] = $$sink30;
  24573. $$100 = $$99;$$1001409 = $$991408;$$1961 = $$0960;$$901506 = $$891505;$$941085 = $$931084;$$941701 = $$931700;$$961193 = $$951192;$$961299 = $$951298;$$991606 = $$981605;
  24574. label = 244;
  24575. continue L46;
  24576. break;
  24577. }
  24578. case 244: {
  24579. label = 0;
  24580. HEAP32[$24>>2] = $$100;
  24581. HEAP32[$26>>2] = $$1001409;
  24582. HEAP32[$28>>2] = $$941085;
  24583. HEAP32[$30>>2] = $$961193;
  24584. HEAP32[$32>>2] = $$961299;
  24585. HEAP32[$34>>2] = $$901506;
  24586. $883 = $$991606;
  24587. $884 = $1;
  24588. $885 = (($883) - ($884))|0;
  24589. HEAP32[$2>>2] = $885;
  24590. $886 = $$941701;
  24591. $887 = $4;
  24592. $888 = (($886) - ($887))|0;
  24593. HEAP32[$5>>2] = $888;
  24594. $889 = $6 & 9;
  24595. $890 = ($889|0)!=(0);
  24596. $891 = ($$1961|0)>(-1);
  24597. $or$cond29 = $890 & $891;
  24598. if ($or$cond29) {
  24599. break L46;
  24600. } else {
  24601. $$0951 = $$1961;
  24602. label = 258;
  24603. break L46;
  24604. }
  24605. break;
  24606. }
  24607. }
  24608. switch (label|0) {
  24609. case 19: {
  24610. label = 0;
  24611. $$01413 = $$01413$shrunk&255;
  24612. $78 = $$01413 << $$8;
  24613. $79 = $78 | $$81317;
  24614. $80 = (($$8) + 8)|0;
  24615. $81 = ($80>>>0)<(3);
  24616. if ($81) {
  24617. $$11417 = $$31419;$$11608 = $$31610;$$51512 = $$71514;$$6 = $80;$$61103 = $$81105;$$61209 = $$81211;$$61315 = $79;$$6997 = $$8999;
  24618. label = 15;
  24619. } else {
  24620. $$41420 = $$31419;$$41611 = $$31610;$$81515 = $$71514;$$9 = $80;$$91000 = $$8999;$$91106 = $$81105;$$91212 = $$81211;$$91318 = $79;
  24621. label = 20;
  24622. }
  24623. break;
  24624. }
  24625. case 33: {
  24626. label = 0;
  24627. $$01411 = $$01411$shrunk&255;
  24628. $109 = $$01411 << $$17;
  24629. $110 = $109 | $$171326;
  24630. $111 = (($$17) + 8)|0;
  24631. $112 = ($$17>>>0)>(4294967287);
  24632. if ($112) {
  24633. $$101426 = $$121428;$$101617 = $$121619;$$141111 = $$161113;$$141521 = $$161523;$$15 = $111;$$151006 = $$171008;$$151218 = $$171220;$$151324 = $110;
  24634. label = 29;
  24635. } else {
  24636. $$131429 = $$121428;$$131620 = $$121619;$$171114 = $$161113;$$171524 = $$161523;$$18 = $111;$$181009 = $$171008;$$181221 = $$171220;$$181327 = $110;
  24637. label = 34;
  24638. }
  24639. break;
  24640. }
  24641. case 50: {
  24642. label = 0;
  24643. $$01410 = $$01410$shrunk&255;
  24644. $155 = $$01410 << $$26;
  24645. $156 = $155 | $$261335;
  24646. $157 = (($$26) + 8)|0;
  24647. $158 = ($$26>>>0)>(4294967287);
  24648. if ($158) {
  24649. $$191435 = $$211437;$$191626 = $$211628;$$231120 = $$251122;$$231530 = $$251532;$$24 = $157;$$241015 = $$261017;$$241227 = $$261229;$$241333 = $156;
  24650. label = 46;
  24651. } else {
  24652. $$221438 = $$211437;$$221629 = $$211628;$$261123 = $$251122;$$261533 = $$251532;$$27 = $157;$$271230 = $$261229;$$271336 = $156;
  24653. label = 51;
  24654. }
  24655. break;
  24656. }
  24657. case 67: {
  24658. label = 0;
  24659. $$01300 = $$01300$shrunk&255;
  24660. $196 = $$01300 << $$37;
  24661. $197 = $196 | $$371346;
  24662. $198 = (($$37) + 8)|0;
  24663. $199 = (11635 + ($$361133)|0);
  24664. $200 = HEAP8[$199>>0]|0;
  24665. $201 = $200 << 24 >> 24;
  24666. $202 = ($198>>>0)<($201>>>0);
  24667. if ($202) {
  24668. $$301446 = $$321448;$$301637 = $$321639;$$341025 = $$361027;$$341131 = $$361133;$$341541 = $$361543;$$35 = $198;$$351238 = $$371240;$$351344 = $197;
  24669. label = 63;
  24670. } else {
  24671. $$331449 = $$321448;$$331640 = $$321639;$$371028 = $$361027;$$371134 = $$361133;$$371544 = $$361543;$$38 = $198;$$381241 = $$371240;$$381347 = $197;
  24672. label = 68;
  24673. }
  24674. break;
  24675. }
  24676. case 76: {
  24677. label = 0;
  24678. $$01202 = $$01202$shrunk&255;
  24679. $227 = $$01202 << $$42;
  24680. $228 = $227 | $$421351;
  24681. $229 = (($$42) + 8)|0;
  24682. $230 = ($229>>>0)<(3);
  24683. if ($230) {
  24684. $$351451 = $$371453;$$351642 = $$371644;$$391030 = $$411032;$$391136 = $$411138;$$391546 = $$411548;$$40 = $229;$$401243 = $$421245;$$401349 = $228;
  24685. label = 72;
  24686. } else {
  24687. $$381454 = $$371453;$$381645 = $$371644;$$421033 = $$411032;$$421139 = $$411138;$$421549 = $$411548;$$43 = $229;$$431246 = $$421245;$$431352 = $228;
  24688. label = 77;
  24689. }
  24690. break;
  24691. }
  24692. case 117: {
  24693. label = 0;
  24694. $$0980 = $$0980$shrunk&255;
  24695. $455 = $$0980 << $$49;
  24696. $456 = $455 | $$491358;
  24697. $457 = (($$49) + 8)|0;
  24698. $458 = ($457>>>0)<(15);
  24699. if ($458) {
  24700. $$421458 = $$441460;$$421649 = $$441651;$$461037 = $$481039;$$461143 = $$481145;$$461553 = $$481555;$$47 = $457;$$471250 = $$491252;$$471356 = $456;
  24701. label = 108;
  24702. } else {
  24703. $$451461 = $$441460;$$451652 = $$441651;$$491146 = $$481145;$$491556 = $$481555;$$50 = $457;$$501253 = $$491252;$$501359 = $456;
  24704. label = 119;
  24705. }
  24706. break;
  24707. }
  24708. case 131: {
  24709. label = 0;
  24710. $$0979 = $$0979$shrunk&255;
  24711. $506 = $$0979 << $$54;
  24712. $507 = $506 | $$541363;
  24713. $508 = (($$54) + 8)|0;
  24714. $509 = ($508>>>0)<($$541257>>>0);
  24715. if ($509) {
  24716. $$471463 = $$491465;$$471654 = $$491656;$$501041 = $$521043;$$511148 = $$531150;$$511558 = $$531560;$$52 = $508;$$521255 = $$541257;$$521361 = $507;
  24717. label = 127;
  24718. } else {
  24719. $$501466 = $$491465;$$501657 = $$491656;$$531044 = $$521043;$$541151 = $$531150;$$541561 = $$531560;$$55 = $508;$$551258 = $$541257;$$551364 = $507;
  24720. label = 132;
  24721. }
  24722. break;
  24723. }
  24724. case 154: {
  24725. label = 0;
  24726. $$0971 = $$0971$shrunk&255;
  24727. $575 = $$0971 << $$62;
  24728. $576 = $575 | $$621371;
  24729. $577 = (($$62) + 8)|0;
  24730. $578 = ($577>>>0)<(15);
  24731. if ($578) {
  24732. $$551471 = $$571473;$$551662 = $$571664;$$581049 = $$601051;$$591156 = $$611158;$$591566 = $$611568;$$60 = $577;$$601263 = $$621265;$$601369 = $576;
  24733. label = 145;
  24734. } else {
  24735. $$581474 = $$571473;$$581665 = $$571664;$$611052 = $$601051;$$621569 = $$611568;$$63 = $577;$$631266 = $$621265;$$631372 = $576;
  24736. label = 156;
  24737. }
  24738. break;
  24739. }
  24740. case 183: {
  24741. label = 0;
  24742. $$0959 = $$0959$shrunk&255;
  24743. $699 = $$0959 << $$71;
  24744. $700 = $699 | $$711380;
  24745. $701 = (($$71) + 8)|0;
  24746. $702 = ($701>>>0)<($$681271>>>0);
  24747. if ($702) {
  24748. $$611477 = $$631479;$$621669 = $$641671;$$641055 = $$661057;$$651162 = $$671164;$$661269 = $$681271;$$681575 = $$701577;$$69 = $701;$$691378 = $700;
  24749. label = 179;
  24750. } else {
  24751. $$641480 = $$631479;$$651672 = $$641671;$$671058 = $$661057;$$681165 = $$671164;$$691272 = $$681271;$$711578 = $$701577;$$72 = $701;$$721381 = $700;
  24752. label = 184;
  24753. }
  24754. break;
  24755. }
  24756. case 196: {
  24757. label = 0;
  24758. $$0952 = $$0952$shrunk&255;
  24759. $740 = $$0952 << $$76;
  24760. $741 = $740 | $$761385;
  24761. $742 = (($$76) + 8)|0;
  24762. $743 = ($742>>>0)<(15);
  24763. if ($743) {
  24764. $$661482 = $$681484;$$671674 = $$691676;$$691060 = $$711062;$$701167 = $$721169;$$711274 = $$731276;$$731580 = $$751582;$$74 = $742;$$741383 = $741;
  24765. label = 187;
  24766. } else {
  24767. $$691485 = $$681484;$$701677 = $$691676;$$731170 = $$721169;$$761583 = $$751582;$$77 = $742;$$771386 = $741;
  24768. label = 198;
  24769. }
  24770. break;
  24771. }
  24772. case 207: {
  24773. label = 0;
  24774. $$0950 = $$0950$shrunk&255;
  24775. $787 = $$0950 << $$80;
  24776. $788 = $787 | $$801389;
  24777. $789 = (($$80) + 8)|0;
  24778. $790 = ($789>>>0)<($$761279>>>0);
  24779. if ($790) {
  24780. $$701486 = $$721488;$$711678 = $$731680;$$721063 = $$741065;$$741171 = $$761173;$$741277 = $$761279;$$771584 = $$791586;$$78 = $789;$$781387 = $788;
  24781. label = 203;
  24782. } else {
  24783. $$741681 = $$731680;$$751066 = $$741065;$$771174 = $$761173;$$771280 = $$761279;$$801587 = $$791586;$$81 = $789;$$811390 = $788;
  24784. label = 208;
  24785. }
  24786. break;
  24787. }
  24788. case 227: {
  24789. label = 0;
  24790. $852 = ($$871184>>>0)<(4);
  24791. if (!($852)) {
  24792. $$881504 = $$811497;$$921083 = $$851076;$$921699 = $$851692;$$941191 = $$871184;$$941297 = $$871290;$$971604 = $$901597;$$98 = $$91;$$981407 = $$911400;
  24793. label = 242;
  24794. continue L46;
  24795. }
  24796. $853 = ($$91|0)==(0);
  24797. if (!($853)) {
  24798. $854 = ($$91>>>0)<(8);
  24799. if ($854) {
  24800. $$821498 = $$811497;$$861077 = $$851076;$$861693 = $$851692;$$881185 = $$871184;$$881291 = $$871290;$$911598 = $$901597;$$92 = $$91;$$921401 = $$911400;
  24801. label = 230;
  24802. break;
  24803. } else {
  24804. $$851501 = $$811497;$$891080 = $$851076;$$891696 = $$851692;$$911188 = $$871184;$$911294 = $$871290;$$941601 = $$901597;$$95 = $$91;$$951404 = $$911400;
  24805. label = 235;
  24806. break;
  24807. }
  24808. }
  24809. $868 = ($$901597>>>0)<($10>>>0);
  24810. if (!($868)) {
  24811. $$861502 = $$811497;$$901081 = $$851076;$$901697 = $$851692;$$921189 = $$871184;$$921295 = $$871290;$$951602 = $$901597;$$96 = 0;$$961405 = $$911400;
  24812. label = 237;
  24813. continue L46;
  24814. }
  24815. $875 = ((($$901597)) + 1|0);
  24816. $876 = HEAP8[$$901597>>0]|0;
  24817. $877 = $876&255;
  24818. $$0948 = $877;$$871503 = $$811497;$$911082 = $$851076;$$911698 = $$851692;$$931190 = $$871184;$$931296 = $$871290;$$961603 = $875;$$97 = 0;$$971406 = $$911400;
  24819. label = 241;
  24820. continue L46;
  24821. break;
  24822. }
  24823. case 234: {
  24824. label = 0;
  24825. $$0947 = $$0947$shrunk&255;
  24826. $861 = $$0947 << $$94;
  24827. $862 = $861 | $$941403;
  24828. $863 = (($$94) + 8)|0;
  24829. $864 = ($$94>>>0)>(4294967287);
  24830. if ($864) {
  24831. $$821498 = $$841500;$$861077 = $$881079;$$861693 = $$881695;$$881185 = $$901187;$$881291 = $$901293;$$911598 = $$931600;$$92 = $863;$$921401 = $862;
  24832. label = 230;
  24833. } else {
  24834. $$851501 = $$841500;$$891080 = $$881079;$$891696 = $$881695;$$911188 = $$901187;$$911294 = $$901293;$$941601 = $$931600;$$95 = $863;$$951404 = $862;
  24835. label = 235;
  24836. }
  24837. break;
  24838. }
  24839. }
  24840. L119: do {
  24841. if ((label|0) == 15) {
  24842. label = 0;
  24843. $72 = ($$51512>>>0)<($10>>>0);
  24844. if ($72) {
  24845. $$31419$ph = $$11417;$$31610$ph = $$11608;$$8$ph = $$6;$$81105$ph = $$61103;$$81211$ph = $$61209;$$81317$ph = $$61315;$$8999$ph = $$6997;$$sink1710 = $$51512;
  24846. label = 18;
  24847. continue L46;
  24848. } else {
  24849. $$21418 = $$11417;$$21609 = $$11608;$$61513 = $$51512;$$7 = $$6;$$71104 = $$61103;$$71210 = $$61209;$$71316 = $$61315;$$7998 = $$6997;
  24850. label = 16;
  24851. continue L46;
  24852. }
  24853. }
  24854. else if ((label|0) == 20) {
  24855. label = 0;
  24856. $82 = $$91318 & 7;
  24857. $83 = ((($0)) + 20|0);
  24858. HEAP32[$83>>2] = $82;
  24859. $84 = $$91318 >>> 3;
  24860. $85 = (($$9) + -3)|0;
  24861. $86 = $82 >>> 1;
  24862. $87 = ((($0)) + 24|0);
  24863. HEAP32[$87>>2] = $86;
  24864. $trunc = $86&255;
  24865. $trunc$clear = $trunc & 3;
  24866. switch ($trunc$clear<<24>>24) {
  24867. case 0: {
  24868. $$121519 = $$81515;$$13 = $85;$$131004 = $$91000;$$131216 = $$91212;$$131322 = $84;$$81424 = $$41420;$$81615 = $$41611;
  24869. label = 25;
  24870. continue L46;
  24871. break;
  24872. }
  24873. case 3: {
  24874. $$281444 = $$41420;$$281635 = $$41611;$$321023 = $$91000;$$321129 = $$91106;$$321539 = $$81515;$$33 = $85;$$331236 = $$91212;$$331342 = $84;
  24875. label = 60;
  24876. continue L46;
  24877. break;
  24878. }
  24879. case 1: {
  24880. break;
  24881. }
  24882. default: {
  24883. $$291445 = $$41420;$$291636 = $$41611;$$331024 = $$91000;$$331130 = 0;$$331540 = $$81515;$$34 = $85;$$341237 = $$91212;$$341343 = $84;
  24884. label = 61;
  24885. break L119;
  24886. }
  24887. }
  24888. $240 = ((($0)) + 44|0);
  24889. HEAP32[$240>>2] = 288;
  24890. $241 = ((($0)) + 48|0);
  24891. HEAP32[$241>>2] = 32;
  24892. $242 = ((($0)) + 3552|0);
  24893. ;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;
  24894. $scevgep19611962 = ((($0)) + 64|0);
  24895. _memset(($scevgep19611962|0),8,144)|0;
  24896. $scevgep1959 = ((($0)) + 208|0);
  24897. dest=$scevgep1959; stop=dest+112|0; do { HEAP8[dest>>0]=9|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  24898. $scevgep1957 = ((($0)) + 320|0);
  24899. dest=$scevgep1957; stop=dest+24|0; do { HEAP8[dest>>0]=7|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  24900. $scevgep1955 = ((($0)) + 344|0);
  24901. $243 = $scevgep1955;
  24902. $244 = $243;
  24903. 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;
  24904. $245 = (($243) + 4)|0;
  24905. $246 = $245;
  24906. 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;
  24907. $$391455 = $$41420;$$391646 = $$41611;$$431034 = $$91000;$$431140 = $$91106;$$431550 = $$81515;$$44 = $85;$$441247 = $$91212;$$441353 = $84;
  24908. label = 80;
  24909. }
  24910. else if ((label|0) == 230) {
  24911. label = 0;
  24912. $855 = ($$911598>>>0)<($10>>>0);
  24913. if ($855) {
  24914. $$841500$ph = $$821498;$$881079$ph = $$861077;$$881695$ph = $$861693;$$901187$ph = $$881185;$$901293$ph = $$881291;$$94$ph = $$92;$$941403$ph = $$921401;$$sink1750 = $$911598;
  24915. label = 233;
  24916. continue L46;
  24917. } else {
  24918. $$831499 = $$821498;$$871078 = $$861077;$$871694 = $$861693;$$891186 = $$881185;$$891292 = $$881291;$$921599 = $$911598;$$93 = $$92;$$931402 = $$921401;
  24919. label = 231;
  24920. continue L46;
  24921. }
  24922. }
  24923. else if ((label|0) == 235) {
  24924. label = 0;
  24925. $865 = $$951404 & 255;
  24926. $866 = $$951404 >>> 8;
  24927. $867 = (($$95) + -8)|0;
  24928. $$0948 = $865;$$871503 = $$851501;$$911082 = $$891080;$$911698 = $$891696;$$931190 = $$911188;$$931296 = $$911294;$$961603 = $$941601;$$97 = $867;$$971406 = $866;
  24929. label = 241;
  24930. continue L46;
  24931. }
  24932. } while(0);
  24933. L125: while(1) {
  24934. L126: switch (label|0) {
  24935. case 26: {
  24936. label = 0;
  24937. $100 = ($$131110>>>0)<(4);
  24938. if (!($100)) {
  24939. $127 = ((($0)) + 10528|0);
  24940. $128 = HEAP8[$127>>0]|0;
  24941. $129 = $128&255;
  24942. $130 = ((($0)) + 10529|0);
  24943. $131 = HEAP8[$130>>0]|0;
  24944. $132 = $131&255;
  24945. $133 = $132 << 8;
  24946. $134 = $133 | $129;
  24947. $135 = ((($0)) + 10530|0);
  24948. $136 = HEAP8[$135>>0]|0;
  24949. $137 = $136&255;
  24950. $138 = ((($0)) + 10531|0);
  24951. $139 = HEAP8[$138>>0]|0;
  24952. $140 = $139&255;
  24953. $141 = $140 << 8;
  24954. $142 = $141 | $137;
  24955. $143 = $142 ^ 65535;
  24956. $144 = ($134|0)==($143|0);
  24957. if ($144) {
  24958. $$181434 = $$91425;$$181625 = $$91616;$$221119 = $134;$$221529 = $$131520;$$23 = $$14;$$231014 = $$141005;$$231226 = $$141217;$$231332 = $$141323;
  24959. label = 44;
  24960. continue L125;
  24961. } else {
  24962. $$171433 = $$91425;$$171624 = $$91616;$$211118 = $134;$$211528 = $$131520;$$22 = $$14;$$221013 = $$141005;$$221225 = $$141217;$$221331 = $$141323;
  24963. label = 43;
  24964. continue L46;
  24965. }
  24966. }
  24967. $101 = ($$14|0)==(0);
  24968. if (!($101)) {
  24969. $102 = ($$14>>>0)<(8);
  24970. if ($102) {
  24971. $$101426 = $$91425;$$101617 = $$91616;$$141111 = $$131110;$$141521 = $$131520;$$15 = $$14;$$151006 = $$141005;$$151218 = $$141217;$$151324 = $$141323;
  24972. label = 29;
  24973. continue L125;
  24974. } else {
  24975. $$131429 = $$91425;$$131620 = $$91616;$$171114 = $$131110;$$171524 = $$131520;$$18 = $$14;$$181009 = $$141005;$$181221 = $$141217;$$181327 = $$141323;
  24976. label = 34;
  24977. continue L125;
  24978. }
  24979. }
  24980. $117 = ($$131520>>>0)<($10>>>0);
  24981. if (!($117)) {
  24982. $$141430 = $$91425;$$141621 = $$91616;$$181115 = $$131110;$$181525 = $$131520;$$19 = 0;$$191010 = $$141005;$$191222 = $$141217;$$191328 = $$141323;
  24983. label = 36;
  24984. continue L46;
  24985. }
  24986. $123 = ((($$131520)) + 1|0);
  24987. $124 = HEAP8[$$131520>>0]|0;
  24988. $125 = (((($0)) + 10528|0) + ($$131110)|0);
  24989. HEAP8[$125>>0] = $124;
  24990. $$161432 = $$91425;$$161623 = $$91616;$$201117 = $$131110;$$201527 = $123;$$21 = 0;$$211012 = $$141005;$$211224 = $$141217;$$211330 = $$141323;
  24991. label = 41;
  24992. continue L125;
  24993. break;
  24994. }
  24995. case 29: {
  24996. label = 0;
  24997. $103 = ($$141521>>>0)<($10>>>0);
  24998. if ($103) {
  24999. $$121428$ph = $$101426;$$121619$ph = $$101617;$$161113$ph = $$141111;$$17$ph = $$15;$$171008$ph = $$151006;$$171220$ph = $$151218;$$171326$ph = $$151324;$$sink1713 = $$141521;
  25000. label = 32;
  25001. continue L46;
  25002. } else {
  25003. $$111427 = $$101426;$$111618 = $$101617;$$151112 = $$141111;$$151522 = $$141521;$$16 = $$15;$$161007 = $$151006;$$161219 = $$151218;$$161325 = $$151324;
  25004. label = 30;
  25005. continue L46;
  25006. }
  25007. break;
  25008. }
  25009. case 34: {
  25010. label = 0;
  25011. $113 = $$181327&255;
  25012. $114 = (((($0)) + 10528|0) + ($$171114)|0);
  25013. HEAP8[$114>>0] = $113;
  25014. $115 = $$181327 >>> 8;
  25015. $116 = (($$18) + -8)|0;
  25016. $$161432 = $$131429;$$161623 = $$131620;$$201117 = $$171114;$$201527 = $$171524;$$21 = $116;$$211012 = $$181009;$$211224 = $$181221;$$211330 = $115;
  25017. label = 41;
  25018. continue L125;
  25019. break;
  25020. }
  25021. case 41: {
  25022. label = 0;
  25023. $126 = (($$201117) + 1)|0;
  25024. $$131110 = $126;$$131520 = $$201527;$$14 = $$21;$$141005 = $$211012;$$141217 = $$211224;$$141323 = $$211330;$$91425 = $$161432;$$91616 = $$161623;
  25025. label = 26;
  25026. continue L125;
  25027. break;
  25028. }
  25029. case 44: {
  25030. label = 0;
  25031. $145 = ($$221119|0)!=(0);
  25032. $146 = ($$23|0)!=(0);
  25033. $147 = $145 & $146;
  25034. if (!($147)) {
  25035. $$241440 = $$181434;$$241631 = $$181625;$$281019 = $$231014;$$281125 = $$221119;$$281535 = $$221529;$$29 = $$23;$$291232 = $$231226;$$291338 = $$231332;
  25036. label = 54;
  25037. continue L125;
  25038. }
  25039. $148 = ($$23>>>0)<(8);
  25040. if ($148) {
  25041. $$191435 = $$181434;$$191626 = $$181625;$$231120 = $$221119;$$231530 = $$221529;$$24 = $$23;$$241015 = $$231014;$$241227 = $$231226;$$241333 = $$231332;
  25042. label = 46;
  25043. continue L125;
  25044. } else {
  25045. $$221438 = $$181434;$$221629 = $$181625;$$261123 = $$221119;$$261533 = $$221529;$$27 = $$23;$$271230 = $$231226;$$271336 = $$231332;
  25046. label = 51;
  25047. continue L125;
  25048. }
  25049. break;
  25050. }
  25051. case 46: {
  25052. label = 0;
  25053. $149 = ($$231530>>>0)<($10>>>0);
  25054. if ($149) {
  25055. $$211437$ph = $$191435;$$211628$ph = $$191626;$$251122$ph = $$231120;$$26$ph = $$24;$$261017$ph = $$241015;$$261229$ph = $$241227;$$261335$ph = $$241333;$$sink1716 = $$231530;
  25056. label = 49;
  25057. continue L46;
  25058. } else {
  25059. $$201436 = $$191435;$$201627 = $$191626;$$241121 = $$231120;$$241531 = $$231530;$$25 = $$24;$$251016 = $$241015;$$251228 = $$241227;$$251334 = $$241333;
  25060. label = 47;
  25061. continue L46;
  25062. }
  25063. break;
  25064. }
  25065. case 51: {
  25066. label = 0;
  25067. $159 = $$271336 & 255;
  25068. $160 = $$271336 >>> 8;
  25069. $161 = (($$27) + -8)|0;
  25070. $$231439 = $$221438;$$231630 = $$221629;$$271018 = $159;$$271124 = $$261123;$$271534 = $$261533;$$28 = $161;$$281231 = $$271230;$$281337 = $160;
  25071. label = 52;
  25072. continue L46;
  25073. break;
  25074. }
  25075. case 54: {
  25076. label = 0;
  25077. $166 = ($$281125|0)==(0);
  25078. if ($166) {
  25079. $$761492 = $$241440;$$801071 = $$281019;$$801687 = $$241631;$$821285 = $$291232;$$831180 = 0;$$851592 = $$281535;$$86 = $$29;$$861395 = $$291338;
  25080. label = 220;
  25081. break L125;
  25082. } else {
  25083. $$251441 = $$241440;$$251632 = $$241631;$$291020 = $$281019;$$291126 = $$281125;$$291536 = $$281535;$$30 = $$29;$$301233 = $$291232;$$301339 = $$291338;
  25084. label = 55;
  25085. continue L46;
  25086. }
  25087. break;
  25088. }
  25089. case 61: {
  25090. label = 0;
  25091. $185 = ($$331130>>>0)<(3);
  25092. if ($185) {
  25093. $186 = (11635 + ($$331130)|0);
  25094. $187 = HEAP8[$186>>0]|0;
  25095. $188 = $187 << 24 >> 24;
  25096. $189 = ($$34>>>0)<($188>>>0);
  25097. if ($189) {
  25098. $$301446 = $$291445;$$301637 = $$291636;$$341025 = $$331024;$$341131 = $$331130;$$341541 = $$331540;$$35 = $$34;$$351238 = $$341237;$$351344 = $$341343;
  25099. label = 63;
  25100. continue L125;
  25101. } else {
  25102. $$331449 = $$291445;$$331640 = $$291636;$$371028 = $$331024;$$371134 = $$331130;$$371544 = $$331540;$$38 = $$34;$$381241 = $$341237;$$381347 = $$341343;
  25103. label = 68;
  25104. continue L125;
  25105. }
  25106. } else {
  25107. $216 = ((($0)) + 7040|0);
  25108. _memset(($216|0),0,288)|0;
  25109. $$341450 = $$291445;$$341641 = $$291636;$$381029 = $$331024;$$381135 = 0;$$381545 = $$331540;$$39 = $$34;$$391242 = $$341237;$$391348 = $$341343;
  25110. label = 70;
  25111. break;
  25112. }
  25113. break;
  25114. }
  25115. case 63: {
  25116. label = 0;
  25117. $190 = ($$341541>>>0)<($10>>>0);
  25118. if ($190) {
  25119. $$321448$ph = $$301446;$$321639$ph = $$301637;$$361027$ph = $$341025;$$361133$ph = $$341131;$$37$ph = $$35;$$371240$ph = $$351238;$$371346$ph = $$351344;$$sink1719 = $$341541;
  25120. label = 66;
  25121. continue L46;
  25122. } else {
  25123. $$311447 = $$301446;$$311638 = $$301637;$$351026 = $$341025;$$351132 = $$341131;$$351542 = $$341541;$$36 = $$35;$$361239 = $$351238;$$361345 = $$351344;
  25124. label = 64;
  25125. continue L46;
  25126. }
  25127. break;
  25128. }
  25129. case 68: {
  25130. label = 0;
  25131. $203 = (11635 + ($$371134)|0);
  25132. $204 = HEAP8[$203>>0]|0;
  25133. $205 = $204 << 24 >> 24;
  25134. $206 = 1 << $205;
  25135. $207 = (($206) + -1)|0;
  25136. $208 = $207 & $$381347;
  25137. $209 = (((($0)) + 44|0) + ($$371134<<2)|0);
  25138. $210 = $$381347 >>> $205;
  25139. $211 = (($$38) - ($205))|0;
  25140. $212 = (3196 + ($$371134<<2)|0);
  25141. $213 = HEAP32[$212>>2]|0;
  25142. $214 = (($208) + ($213))|0;
  25143. HEAP32[$209>>2] = $214;
  25144. $215 = (($$371134) + 1)|0;
  25145. $$291445 = $$331449;$$291636 = $$331640;$$331024 = $$371028;$$331130 = $215;$$331540 = $$371544;$$34 = $211;$$341237 = $$381241;$$341343 = $210;
  25146. label = 61;
  25147. continue L125;
  25148. break;
  25149. }
  25150. case 72: {
  25151. label = 0;
  25152. $221 = ($$391546>>>0)<($10>>>0);
  25153. if ($221) {
  25154. $$371453$ph = $$351451;$$371644$ph = $$351642;$$411032$ph = $$391030;$$411138$ph = $$391136;$$42$ph = $$40;$$421245$ph = $$401243;$$421351$ph = $$401349;$$sink1722 = $$391546;
  25155. label = 75;
  25156. continue L46;
  25157. } else {
  25158. $$361452 = $$351451;$$361643 = $$351642;$$401031 = $$391030;$$401137 = $$391136;$$401547 = $$391546;$$41 = $$40;$$411244 = $$401243;$$411350 = $$401349;
  25159. label = 73;
  25160. continue L46;
  25161. }
  25162. break;
  25163. }
  25164. case 77: {
  25165. label = 0;
  25166. $231 = $$431352 & 7;
  25167. $232 = $$431352 >>> 3;
  25168. $233 = (($$43) + -3)|0;
  25169. $234 = $231&255;
  25170. $235 = (11639 + ($$421139)|0);
  25171. $236 = HEAP8[$235>>0]|0;
  25172. $237 = $236&255;
  25173. $238 = (((($0)) + 7040|0) + ($237)|0);
  25174. HEAP8[$238>>0] = $234;
  25175. $239 = (($$421139) + 1)|0;
  25176. $$341450 = $$381454;$$341641 = $$381645;$$381029 = $$421033;$$381135 = $239;$$381545 = $$421549;$$39 = $233;$$391242 = $$431246;$$391348 = $232;
  25177. label = 70;
  25178. break;
  25179. }
  25180. case 80: {
  25181. label = 0;
  25182. $247 = ((($0)) + 24|0);
  25183. $248 = HEAP32[$247>>2]|0;
  25184. $249 = ($248|0)>(-1);
  25185. if ($249) {
  25186. dest=$8; stop=dest+64|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  25187. $250 = (((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0);
  25188. _memset(($250|0),0,3200)|0;
  25189. $251 = HEAP32[$247>>2]|0;
  25190. $252 = (((($0)) + 44|0) + ($251<<2)|0);
  25191. $253 = HEAP32[$252>>2]|0;
  25192. $254 = ($253|0)==(0);
  25193. if (!($254)) {
  25194. $255 = HEAP32[$247>>2]|0;
  25195. $256 = (((($0)) + 44|0) + ($255<<2)|0);
  25196. $257 = HEAP32[$256>>2]|0;
  25197. $$010951864 = 0;
  25198. while(1) {
  25199. $258 = ((((($0)) + 64|0) + (($248*3488)|0)|0) + ($$010951864)|0);
  25200. $259 = HEAP8[$258>>0]|0;
  25201. $260 = $259&255;
  25202. $261 = (($8) + ($260<<2)|0);
  25203. $262 = HEAP32[$261>>2]|0;
  25204. $263 = (($262) + 1)|0;
  25205. HEAP32[$261>>2] = $263;
  25206. $264 = (($$010951864) + 1)|0;
  25207. $265 = ($264>>>0)<($257>>>0);
  25208. if ($265) {
  25209. $$010951864 = $264;
  25210. } else {
  25211. break;
  25212. }
  25213. }
  25214. }
  25215. $266 = ((($7)) + 4|0);
  25216. HEAP32[$266>>2] = 0;
  25217. HEAP32[$7>>2] = 0;
  25218. $267 = ((($8)) + 4|0);
  25219. $268 = HEAP32[$267>>2]|0;
  25220. $269 = $268 << 1;
  25221. $270 = ((($7)) + 8|0);
  25222. HEAP32[$270>>2] = $269;
  25223. $271 = ((($8)) + 8|0);
  25224. $272 = HEAP32[$271>>2]|0;
  25225. $273 = (($272) + ($268))|0;
  25226. $274 = (($272) + ($269))|0;
  25227. $275 = $274 << 1;
  25228. $276 = ((($7)) + 12|0);
  25229. HEAP32[$276>>2] = $275;
  25230. $277 = ((($8)) + 12|0);
  25231. $278 = HEAP32[$277>>2]|0;
  25232. $279 = (($278) + ($273))|0;
  25233. $280 = (($278) + ($275))|0;
  25234. $281 = $280 << 1;
  25235. $282 = ((($7)) + 16|0);
  25236. HEAP32[$282>>2] = $281;
  25237. $283 = ((($8)) + 16|0);
  25238. $284 = HEAP32[$283>>2]|0;
  25239. $285 = (($284) + ($279))|0;
  25240. $286 = (($284) + ($281))|0;
  25241. $287 = $286 << 1;
  25242. $288 = ((($7)) + 20|0);
  25243. HEAP32[$288>>2] = $287;
  25244. $289 = ((($8)) + 20|0);
  25245. $290 = HEAP32[$289>>2]|0;
  25246. $291 = (($290) + ($285))|0;
  25247. $292 = (($290) + ($287))|0;
  25248. $293 = $292 << 1;
  25249. $294 = ((($7)) + 24|0);
  25250. HEAP32[$294>>2] = $293;
  25251. $295 = ((($8)) + 24|0);
  25252. $296 = HEAP32[$295>>2]|0;
  25253. $297 = (($296) + ($291))|0;
  25254. $298 = (($296) + ($293))|0;
  25255. $299 = $298 << 1;
  25256. $300 = ((($7)) + 28|0);
  25257. HEAP32[$300>>2] = $299;
  25258. $301 = ((($8)) + 28|0);
  25259. $302 = HEAP32[$301>>2]|0;
  25260. $303 = (($302) + ($297))|0;
  25261. $304 = (($302) + ($299))|0;
  25262. $305 = $304 << 1;
  25263. $306 = ((($7)) + 32|0);
  25264. HEAP32[$306>>2] = $305;
  25265. $307 = ((($8)) + 32|0);
  25266. $308 = HEAP32[$307>>2]|0;
  25267. $309 = (($308) + ($303))|0;
  25268. $310 = (($308) + ($305))|0;
  25269. $311 = $310 << 1;
  25270. $312 = ((($7)) + 36|0);
  25271. HEAP32[$312>>2] = $311;
  25272. $313 = ((($8)) + 36|0);
  25273. $314 = HEAP32[$313>>2]|0;
  25274. $315 = (($314) + ($309))|0;
  25275. $316 = (($314) + ($311))|0;
  25276. $317 = $316 << 1;
  25277. $318 = ((($7)) + 40|0);
  25278. HEAP32[$318>>2] = $317;
  25279. $319 = ((($8)) + 40|0);
  25280. $320 = HEAP32[$319>>2]|0;
  25281. $321 = (($320) + ($315))|0;
  25282. $322 = (($320) + ($317))|0;
  25283. $323 = $322 << 1;
  25284. $324 = ((($7)) + 44|0);
  25285. HEAP32[$324>>2] = $323;
  25286. $325 = ((($8)) + 44|0);
  25287. $326 = HEAP32[$325>>2]|0;
  25288. $327 = (($326) + ($321))|0;
  25289. $328 = (($326) + ($323))|0;
  25290. $329 = $328 << 1;
  25291. $330 = ((($7)) + 48|0);
  25292. HEAP32[$330>>2] = $329;
  25293. $331 = ((($8)) + 48|0);
  25294. $332 = HEAP32[$331>>2]|0;
  25295. $333 = (($332) + ($327))|0;
  25296. $334 = (($332) + ($329))|0;
  25297. $335 = $334 << 1;
  25298. $336 = ((($7)) + 52|0);
  25299. HEAP32[$336>>2] = $335;
  25300. $337 = ((($8)) + 52|0);
  25301. $338 = HEAP32[$337>>2]|0;
  25302. $339 = (($338) + ($333))|0;
  25303. $340 = (($338) + ($335))|0;
  25304. $341 = $340 << 1;
  25305. $342 = ((($7)) + 56|0);
  25306. HEAP32[$342>>2] = $341;
  25307. $343 = ((($8)) + 56|0);
  25308. $344 = HEAP32[$343>>2]|0;
  25309. $345 = (($344) + ($339))|0;
  25310. $346 = (($344) + ($341))|0;
  25311. $347 = $346 << 1;
  25312. $348 = ((($7)) + 60|0);
  25313. HEAP32[$348>>2] = $347;
  25314. $349 = ((($8)) + 60|0);
  25315. $350 = HEAP32[$349>>2]|0;
  25316. $351 = (($350) + ($345))|0;
  25317. $352 = (($350) + ($347))|0;
  25318. $353 = $352 << 1;
  25319. $354 = ((($7)) + 64|0);
  25320. HEAP32[$354>>2] = $353;
  25321. $355 = ($353|0)!=(65536);
  25322. $356 = ($351>>>0)>(1);
  25323. $or$cond = $355 & $356;
  25324. if ($or$cond) {
  25325. $$401456 = $$391455;$$401647 = $$391646;$$441035 = $$431034;$$441141 = $$431140;$$441551 = $$431550;$$45 = $$44;$$451248 = $$441247;$$451354 = $$441353;
  25326. label = 86;
  25327. continue L46;
  25328. }
  25329. $357 = HEAP32[$247>>2]|0;
  25330. $358 = (((($0)) + 44|0) + ($357<<2)|0);
  25331. $359 = HEAP32[$358>>2]|0;
  25332. $360 = ($359|0)==(0);
  25333. if ($360) {
  25334. $$lcssa1779 = $357;
  25335. } else {
  25336. $$010911856 = 0;$$011971855 = -1;
  25337. while(1) {
  25338. $361 = ((((($0)) + 64|0) + (($248*3488)|0)|0) + ($$010911856)|0);
  25339. $362 = HEAP8[$361>>0]|0;
  25340. $363 = $362&255;
  25341. $364 = ($362<<24>>24)==(0);
  25342. L142: do {
  25343. if ($364) {
  25344. $$41201 = $$011971855;
  25345. } else {
  25346. $365 = (($7) + ($363<<2)|0);
  25347. $366 = HEAP32[$365>>2]|0;
  25348. $367 = (($366) + 1)|0;
  25349. HEAP32[$365>>2] = $367;
  25350. $$010861840 = $366;$$010871839 = $363;$$010881838 = 0;
  25351. while(1) {
  25352. $368 = $$010881838 << 1;
  25353. $369 = $$010861840 & 1;
  25354. $370 = $369 | $368;
  25355. $371 = (($$010871839) + -1)|0;
  25356. $372 = $$010861840 >>> 1;
  25357. $373 = ($371|0)==(0);
  25358. if ($373) {
  25359. break;
  25360. } else {
  25361. $$010861840 = $372;$$010871839 = $371;$$010881838 = $370;
  25362. }
  25363. }
  25364. $374 = ($362&255)<(11);
  25365. if ($374) {
  25366. $375 = $363 << 9;
  25367. $376 = $375 | $$010911856;
  25368. $377 = $376&65535;
  25369. $378 = ($370>>>0)<(1024);
  25370. if (!($378)) {
  25371. $$41201 = $$011971855;
  25372. break;
  25373. }
  25374. $379 = 1 << $363;
  25375. $$110891852 = $370;
  25376. while(1) {
  25377. $380 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0) + ($$110891852<<1)|0);
  25378. HEAP16[$380>>1] = $377;
  25379. $381 = (($$110891852) + ($379))|0;
  25380. $382 = ($381>>>0)<(1024);
  25381. if ($382) {
  25382. $$110891852 = $381;
  25383. } else {
  25384. $$41201 = $$011971855;
  25385. break L142;
  25386. }
  25387. }
  25388. }
  25389. $383 = $370 & 1023;
  25390. $384 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0) + ($383<<1)|0);
  25391. $385 = HEAP16[$384>>1]|0;
  25392. $386 = $385 << 16 >> 16;
  25393. $387 = ($385<<16>>16)==(0);
  25394. if ($387) {
  25395. $388 = (($$011971855) + -2)|0;
  25396. $389 = $$011971855&65535;
  25397. HEAP16[$384>>1] = $389;
  25398. $$01194 = $$011971855;$$11198 = $388;
  25399. } else {
  25400. $$01194 = $386;$$11198 = $$011971855;
  25401. }
  25402. $390 = $$010881838 >>> 9;
  25403. $391 = ($362&255)>(11);
  25404. $392 = $390 & 1;
  25405. $393 = (($392) - ($$01194))|0;
  25406. $394 = (($393) + -1)|0;
  25407. if ($391) {
  25408. $395 = $390 & 4194303;
  25409. $$010941846 = $363;$$211991845 = $$11198;$397 = $394;$406 = $395;
  25410. while(1) {
  25411. $396 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 2336|0) + ($397<<1)|0);
  25412. $398 = HEAP16[$396>>1]|0;
  25413. $399 = ($398<<16>>16)==(0);
  25414. if ($399) {
  25415. $400 = $$211991845&65535;
  25416. HEAP16[$396>>1] = $400;
  25417. $401 = (($$211991845) + -2)|0;
  25418. $$21196 = $$211991845;$$31200 = $401;
  25419. } else {
  25420. $402 = $398 << 16 >> 16;
  25421. $$21196 = $402;$$31200 = $$211991845;
  25422. }
  25423. $403 = (($$010941846) + -1)|0;
  25424. $404 = ($403>>>0)>(11);
  25425. $405 = $406 >>> 1;
  25426. $407 = $405 & 1;
  25427. $408 = (($407) - ($$21196))|0;
  25428. $409 = (($408) + -1)|0;
  25429. if ($404) {
  25430. $$010941846 = $403;$$211991845 = $$31200;$397 = $409;$406 = $405;
  25431. } else {
  25432. $$21199$lcssa = $$31200;$$lcssa1778 = $409;
  25433. break;
  25434. }
  25435. }
  25436. } else {
  25437. $$21199$lcssa = $$11198;$$lcssa1778 = $394;
  25438. }
  25439. $410 = $$010911856&65535;
  25440. $411 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 2336|0) + ($$lcssa1778<<1)|0);
  25441. HEAP16[$411>>1] = $410;
  25442. $$41201 = $$21199$lcssa;
  25443. }
  25444. } while(0);
  25445. $412 = (($$010911856) + 1)|0;
  25446. $413 = HEAP32[$247>>2]|0;
  25447. $414 = (((($0)) + 44|0) + ($413<<2)|0);
  25448. $415 = HEAP32[$414>>2]|0;
  25449. $416 = ($412>>>0)<($415>>>0);
  25450. if ($416) {
  25451. $$010911856 = $412;$$011971855 = $$41201;
  25452. } else {
  25453. $$lcssa1779 = $413;
  25454. break;
  25455. }
  25456. }
  25457. }
  25458. $417 = ($$lcssa1779|0)==(2);
  25459. if ($417) {
  25460. $$411457 = $$391455;$$411648 = $$391646;$$451036 = $$431034;$$451142 = 0;$$451552 = $$431550;$$46 = $$44;$$461249 = $$441247;$$461355 = $$441353;
  25461. label = 105;
  25462. } else {
  25463. $$521468 = $$391455;$$521659 = $$391646;$$551046 = $$431034;$$561153 = $$431140;$$561563 = $$431550;$$57 = $$44;$$571260 = $$441247;$$571366 = $$441353;
  25464. label = 138;
  25465. }
  25466. } else {
  25467. $$531469 = $$391455;$$531660 = $$391646;$$561047 = $$431034;$$571154 = $$431140;$$571564 = $$431550;$$58 = $$44;$$581261 = $$441247;$$581367 = $$441353;
  25468. label = 139;
  25469. }
  25470. break;
  25471. }
  25472. case 108: {
  25473. label = 0;
  25474. $429 = $$471356 & 1023;
  25475. $430 = (((($0)) + 7328|0) + ($429<<1)|0);
  25476. $431 = HEAP16[$430>>1]|0;
  25477. $432 = $431 << 16 >> 16;
  25478. $433 = ($431<<16>>16)>(-1);
  25479. if ($433) {
  25480. $434 = $432 >> 9;
  25481. $435 = (($434) + -1)|0;
  25482. $436 = ($435>>>0)<($$47>>>0);
  25483. if ($436) {
  25484. $$451461 = $$421458;$$451652 = $$421649;$$491146 = $$461143;$$491556 = $$461553;$$50 = $$47;$$501253 = $$471250;$$501359 = $$471356;
  25485. label = 119;
  25486. continue L125;
  25487. } else {
  25488. label = 113;
  25489. break L125;
  25490. }
  25491. }
  25492. $437 = ($$47>>>0)>(10);
  25493. if ($437) {
  25494. $$0981 = 10;$$0984 = $432;
  25495. } else {
  25496. label = 113;
  25497. break L125;
  25498. }
  25499. while(1) {
  25500. $438 = $$0984 ^ -1;
  25501. $439 = $$471356 >>> $$0981;
  25502. $440 = $439 & 1;
  25503. $441 = (($440) + ($438))|0;
  25504. $442 = (((($0)) + 9376|0) + ($441<<1)|0);
  25505. $443 = HEAP16[$442>>1]|0;
  25506. $444 = ($443<<16>>16)<(0);
  25507. if (!($444)) {
  25508. $$451461 = $$421458;$$451652 = $$421649;$$491146 = $$461143;$$491556 = $$461553;$$50 = $$47;$$501253 = $$471250;$$501359 = $$471356;
  25509. label = 119;
  25510. continue L125;
  25511. }
  25512. $445 = (($$0981) + 1)|0;
  25513. $446 = $443 << 16 >> 16;
  25514. $447 = (($$0981) + 2)|0;
  25515. $448 = ($$47>>>0)<($447>>>0);
  25516. if ($448) {
  25517. label = 113;
  25518. break L125;
  25519. } else {
  25520. $$0981 = $445;$$0984 = $446;
  25521. }
  25522. }
  25523. break;
  25524. }
  25525. case 119: {
  25526. label = 0;
  25527. $471 = $$501359 & 1023;
  25528. $472 = (((($0)) + 7328|0) + ($471<<1)|0);
  25529. $473 = HEAP16[$472>>1]|0;
  25530. $474 = $473 << 16 >> 16;
  25531. $475 = ($473<<16>>16)>(-1);
  25532. if ($475) {
  25533. $476 = $474 >> 9;
  25534. $477 = $474 & 511;
  25535. $$2983 = $476;$$2986 = $477;
  25536. } else {
  25537. $$1982 = 10;$$1985 = $474;
  25538. while(1) {
  25539. $478 = $$1985 ^ -1;
  25540. $479 = (($$1982) + 1)|0;
  25541. $480 = $$501359 >>> $$1982;
  25542. $481 = $480 & 1;
  25543. $482 = (($481) + ($478))|0;
  25544. $483 = (((($0)) + 9376|0) + ($482<<1)|0);
  25545. $484 = HEAP16[$483>>1]|0;
  25546. $485 = $484 << 16 >> 16;
  25547. $486 = ($484<<16>>16)<(0);
  25548. if ($486) {
  25549. $$1982 = $479;$$1985 = $485;
  25550. } else {
  25551. $$2983 = $479;$$2986 = $485;
  25552. break;
  25553. }
  25554. }
  25555. }
  25556. $487 = $$501359 >>> $$2983;
  25557. $488 = (($$50) - ($$2983))|0;
  25558. $489 = ($$2986>>>0)<(16);
  25559. if ($489) {
  25560. $490 = $$2986&255;
  25561. $491 = (($$491146) + 1)|0;
  25562. $492 = (((($0)) + 10532|0) + ($$491146)|0);
  25563. HEAP8[$492>>0] = $490;
  25564. $$411457 = $$451461;$$411648 = $$451652;$$451036 = $$2986;$$451142 = $491;$$451552 = $$491556;$$46 = $488;$$461249 = $$501253;$$461355 = $487;
  25565. label = 105;
  25566. break;
  25567. }
  25568. $493 = ($$2986|0)!=(16);
  25569. $494 = ($$491146|0)!=(0);
  25570. $or$cond24 = $494 | $493;
  25571. if (!($or$cond24)) {
  25572. $$461462 = $$451461;$$461653 = $$451652;$$491040 = $$2986;$$501147 = $$491146;$$501557 = $$491556;$$51 = $488;$$511254 = $$501253;$$511360 = $487;
  25573. label = 125;
  25574. continue L46;
  25575. }
  25576. $495 = (($$2986) + -16)|0;
  25577. $496 = (11658 + ($495)|0);
  25578. $497 = HEAP8[$496>>0]|0;
  25579. $498 = $497 << 24 >> 24;
  25580. $499 = ($488>>>0)<($498>>>0);
  25581. if ($499) {
  25582. $$471463 = $$451461;$$471654 = $$451652;$$501041 = $$2986;$$511148 = $$491146;$$511558 = $$491556;$$52 = $488;$$521255 = $498;$$521361 = $487;
  25583. label = 127;
  25584. continue L125;
  25585. } else {
  25586. $$501466 = $$451461;$$501657 = $$451652;$$531044 = $$2986;$$541151 = $$491146;$$541561 = $$491556;$$55 = $488;$$551258 = $498;$$551364 = $487;
  25587. label = 132;
  25588. continue L125;
  25589. }
  25590. break;
  25591. }
  25592. case 127: {
  25593. label = 0;
  25594. $500 = ($$511558>>>0)<($10>>>0);
  25595. if ($500) {
  25596. $$491465$ph = $$471463;$$491656$ph = $$471654;$$521043$ph = $$501041;$$531150$ph = $$511148;$$54$ph = $$52;$$541257$ph = $$521255;$$541363$ph = $$521361;$$sink1732 = $$511558;
  25597. label = 130;
  25598. continue L46;
  25599. } else {
  25600. $$481464 = $$471463;$$481655 = $$471654;$$511042 = $$501041;$$521149 = $$511148;$$521559 = $$511558;$$53 = $$52;$$531256 = $$521255;$$531362 = $$521361;
  25601. label = 128;
  25602. continue L46;
  25603. }
  25604. break;
  25605. }
  25606. case 132: {
  25607. label = 0;
  25608. $510 = 1 << $$551258;
  25609. $511 = (($510) + -1)|0;
  25610. $512 = $511 & $$551364;
  25611. $513 = $$551364 >>> $$551258;
  25612. $514 = (($$55) - ($$551258))|0;
  25613. $515 = (($$531044) + -16)|0;
  25614. $516 = (11662 + ($515)|0);
  25615. $517 = HEAP8[$516>>0]|0;
  25616. $518 = $517 << 24 >> 24;
  25617. $519 = (($518) + ($512))|0;
  25618. $520 = (((($0)) + 10532|0) + ($$541151)|0);
  25619. $521 = ($$531044|0)==(16);
  25620. if ($521) {
  25621. $522 = (($$541151) + -1)|0;
  25622. $523 = (((($0)) + 10532|0) + ($522)|0);
  25623. $524 = HEAP8[$523>>0]|0;
  25624. $525 = $524&255;
  25625. $527 = $525;
  25626. } else {
  25627. $527 = 0;
  25628. }
  25629. $526 = $527&255;
  25630. _memset(($520|0),($526|0),($519|0))|0;
  25631. $528 = (($519) + ($$541151))|0;
  25632. $$411457 = $$501466;$$411648 = $$501657;$$451036 = $$531044;$$451142 = $528;$$451552 = $$541561;$$46 = $514;$$461249 = $$551258;$$461355 = $513;
  25633. label = 105;
  25634. break;
  25635. }
  25636. case 140: {
  25637. label = 0;
  25638. $539 = $10;
  25639. $540 = $$581565$ph;
  25640. $541 = (($539) - ($540))|0;
  25641. $542 = ($541|0)<(4);
  25642. $543 = ($$59$ph>>>0)<(15);
  25643. L241: do {
  25644. if ($542) {
  25645. $$541661$lcssa = $$541661$ph;$$581155$lcssa = $$581155$ph;$$581565$lcssa = $$581565$ph;$$59$lcssa = $$59$ph;$$591368$lcssa = $$591368$ph;$$lcssa1799 = $543;$$lcssa1802 = $541;
  25646. } else {
  25647. $544 = $12;
  25648. $$5416611868 = $$541661$ph;$$5811551871 = $$581155$ph;$$5815651869 = $$581565$ph;$$5913681870 = $$591368$ph;$$591872 = $$59$ph;$965 = $543;$966 = $541;
  25649. while(1) {
  25650. $545 = $$5416611868;
  25651. $546 = (($544) - ($545))|0;
  25652. $547 = ($546|0)<(2);
  25653. if ($547) {
  25654. $$541661$lcssa = $$5416611868;$$581155$lcssa = $$5811551871;$$581565$lcssa = $$5815651869;$$59$lcssa = $$591872;$$591368$lcssa = $$5913681870;$$lcssa1799 = $965;$$lcssa1802 = $966;
  25655. break L241;
  25656. }
  25657. if ($965) {
  25658. $613 = HEAP8[$$5815651869>>0]|0;
  25659. $614 = $613&255;
  25660. $615 = ((($$5815651869)) + 1|0);
  25661. $616 = HEAP8[$615>>0]|0;
  25662. $617 = $616&255;
  25663. $618 = $617 << 8;
  25664. $619 = $618 | $614;
  25665. $620 = $619 << $$591872;
  25666. $621 = $620 | $$5913681870;
  25667. $622 = ((($$5815651869)) + 2|0);
  25668. $623 = (($$591872) + 16)|0;
  25669. $$641571 = $622;$$65 = $623;$$651374 = $621;
  25670. } else {
  25671. $$641571 = $$5815651869;$$65 = $$591872;$$651374 = $$5913681870;
  25672. }
  25673. $624 = $$651374 & 1023;
  25674. $625 = (((($0)) + 352|0) + ($624<<1)|0);
  25675. $626 = HEAP16[$625>>1]|0;
  25676. $627 = $626 << 16 >> 16;
  25677. $628 = ($626<<16>>16)>(-1);
  25678. if ($628) {
  25679. $629 = $627 >> 9;
  25680. $$1964 = $629;$$1968 = $627;
  25681. } else {
  25682. $$0963 = 10;$$0967 = $627;
  25683. while(1) {
  25684. $630 = $$0967 ^ -1;
  25685. $631 = (($$0963) + 1)|0;
  25686. $632 = $$651374 >>> $$0963;
  25687. $633 = $632 & 1;
  25688. $634 = (($633) + ($630))|0;
  25689. $635 = (((($0)) + 2400|0) + ($634<<1)|0);
  25690. $636 = HEAP16[$635>>1]|0;
  25691. $637 = $636 << 16 >> 16;
  25692. $638 = ($636<<16>>16)<(0);
  25693. if ($638) {
  25694. $$0963 = $631;$$0967 = $637;
  25695. } else {
  25696. $$1964 = $631;$$1968 = $637;
  25697. break;
  25698. }
  25699. }
  25700. }
  25701. $639 = $$651374 >>> $$1964;
  25702. $640 = (($$65) - ($$1964))|0;
  25703. $641 = $$1968 & 256;
  25704. $642 = ($641|0)==(0);
  25705. if (!($642)) {
  25706. $$601476 = $$541470$ph;$$611668 = $$5416611868;$$631054 = $$571048$ph;$$641161 = $$1968;$$651268 = $$591262$ph;$$671574 = $$641571;$$68 = $640;$$681377 = $639;
  25707. label = 176;
  25708. break L126;
  25709. }
  25710. $643 = ($640>>>0)<(15);
  25711. if ($643) {
  25712. $644 = HEAP8[$$641571>>0]|0;
  25713. $645 = $644&255;
  25714. $646 = ((($$641571)) + 1|0);
  25715. $647 = HEAP8[$646>>0]|0;
  25716. $648 = $647&255;
  25717. $649 = $648 << 8;
  25718. $650 = $649 | $645;
  25719. $651 = $650 << $640;
  25720. $652 = $651 | $639;
  25721. $653 = ((($$641571)) + 2|0);
  25722. $654 = (($640) + 16)|0;
  25723. $$651572 = $653;$$66 = $654;$$661375 = $652;
  25724. } else {
  25725. $$651572 = $$641571;$$66 = $640;$$661375 = $639;
  25726. }
  25727. $655 = $$661375 & 1023;
  25728. $656 = (((($0)) + 352|0) + ($655<<1)|0);
  25729. $657 = HEAP16[$656>>1]|0;
  25730. $658 = $657 << 16 >> 16;
  25731. $659 = ($657<<16>>16)>(-1);
  25732. if ($659) {
  25733. $660 = $658 >> 9;
  25734. $$3966 = $660;$$3970 = $658;
  25735. } else {
  25736. $$2965 = 10;$$2969 = $658;
  25737. while(1) {
  25738. $661 = $$2969 ^ -1;
  25739. $662 = (($$2965) + 1)|0;
  25740. $663 = $$661375 >>> $$2965;
  25741. $664 = $663 & 1;
  25742. $665 = (($664) + ($661))|0;
  25743. $666 = (((($0)) + 2400|0) + ($665<<1)|0);
  25744. $667 = HEAP16[$666>>1]|0;
  25745. $668 = $667 << 16 >> 16;
  25746. $669 = ($667<<16>>16)<(0);
  25747. if ($669) {
  25748. $$2965 = $662;$$2969 = $668;
  25749. } else {
  25750. $$3966 = $662;$$3970 = $668;
  25751. break;
  25752. }
  25753. }
  25754. }
  25755. $670 = $$661375 >>> $$3966;
  25756. $671 = (($$66) - ($$3966))|0;
  25757. $672 = $$1968&255;
  25758. HEAP8[$$5416611868>>0] = $672;
  25759. $673 = $$3970 & 256;
  25760. $674 = ($673|0)==(0);
  25761. if (!($674)) {
  25762. break;
  25763. }
  25764. $676 = $$3970&255;
  25765. $677 = ((($$5416611868)) + 1|0);
  25766. HEAP8[$677>>0] = $676;
  25767. $678 = ((($$5416611868)) + 2|0);
  25768. $679 = $$651572;
  25769. $680 = (($539) - ($679))|0;
  25770. $681 = ($680|0)<(4);
  25771. $682 = ($671>>>0)<(15);
  25772. if ($681) {
  25773. $$541661$lcssa = $678;$$581155$lcssa = $$1968;$$581565$lcssa = $$651572;$$59$lcssa = $671;$$591368$lcssa = $670;$$lcssa1799 = $682;$$lcssa1802 = $680;
  25774. break L241;
  25775. } else {
  25776. $$5416611868 = $678;$$5811551871 = $$1968;$$5815651869 = $$651572;$$5913681870 = $670;$$591872 = $671;$965 = $682;$966 = $680;
  25777. }
  25778. }
  25779. $675 = ((($$5416611868)) + 1|0);
  25780. $$601476 = $$541470$ph;$$611668 = $675;$$631054 = $$571048$ph;$$641161 = $$3970;$$651268 = $$591262$ph;$$671574 = $$651572;$$68 = $671;$$681377 = $670;
  25781. label = 176;
  25782. break L126;
  25783. }
  25784. } while(0);
  25785. if (!($$lcssa1799)) {
  25786. $$581474 = $$541470$ph;$$581665 = $$541661$lcssa;$$611052 = $$571048$ph;$$621569 = $$581565$lcssa;$$63 = $$59$lcssa;$$631266 = $$591262$ph;$$631372 = $$591368$lcssa;
  25787. label = 156;
  25788. continue L125;
  25789. }
  25790. $548 = ($$lcssa1802|0)<(2);
  25791. if ($548) {
  25792. $$551471 = $$541470$ph;$$551662 = $$541661$lcssa;$$581049 = $$571048$ph;$$591156 = $$581155$lcssa;$$591566 = $$581565$lcssa;$$60 = $$59$lcssa;$$601263 = $$591262$ph;$$601369 = $$591368$lcssa;
  25793. label = 145;
  25794. continue L125;
  25795. }
  25796. $579 = HEAP8[$$581565$lcssa>>0]|0;
  25797. $580 = $579&255;
  25798. $581 = $580 << $$59$lcssa;
  25799. $582 = ((($$581565$lcssa)) + 1|0);
  25800. $583 = HEAP8[$582>>0]|0;
  25801. $584 = $583&255;
  25802. $585 = (($$59$lcssa) + 8)|0;
  25803. $586 = $584 << $585;
  25804. $587 = $581 | $$591368$lcssa;
  25805. $588 = $587 | $586;
  25806. $589 = ((($$581565$lcssa)) + 2|0);
  25807. $590 = (($$59$lcssa) + 16)|0;
  25808. $$581474 = $$541470$ph;$$581665 = $$541661$lcssa;$$611052 = $$571048$ph;$$621569 = $589;$$63 = $590;$$631266 = $$591262$ph;$$631372 = $588;
  25809. label = 156;
  25810. continue L125;
  25811. break;
  25812. }
  25813. case 145: {
  25814. label = 0;
  25815. $549 = $$601369 & 1023;
  25816. $550 = (((($0)) + 352|0) + ($549<<1)|0);
  25817. $551 = HEAP16[$550>>1]|0;
  25818. $552 = $551 << 16 >> 16;
  25819. $553 = ($551<<16>>16)>(-1);
  25820. if ($553) {
  25821. $554 = $552 >> 9;
  25822. $555 = (($554) + -1)|0;
  25823. $556 = ($555>>>0)<($$60>>>0);
  25824. if ($556) {
  25825. $$581474 = $$551471;$$581665 = $$551662;$$611052 = $$581049;$$621569 = $$591566;$$63 = $$60;$$631266 = $$601263;$$631372 = $$601369;
  25826. label = 156;
  25827. continue L125;
  25828. } else {
  25829. label = 150;
  25830. break L125;
  25831. }
  25832. }
  25833. $557 = ($$60>>>0)>(10);
  25834. if ($557) {
  25835. $$0972 = 10;$$0975 = $552;
  25836. } else {
  25837. label = 150;
  25838. break L125;
  25839. }
  25840. while(1) {
  25841. $558 = $$0975 ^ -1;
  25842. $559 = $$601369 >>> $$0972;
  25843. $560 = $559 & 1;
  25844. $561 = (($560) + ($558))|0;
  25845. $562 = (((($0)) + 2400|0) + ($561<<1)|0);
  25846. $563 = HEAP16[$562>>1]|0;
  25847. $564 = ($563<<16>>16)<(0);
  25848. if (!($564)) {
  25849. $$581474 = $$551471;$$581665 = $$551662;$$611052 = $$581049;$$621569 = $$591566;$$63 = $$60;$$631266 = $$601263;$$631372 = $$601369;
  25850. label = 156;
  25851. continue L125;
  25852. }
  25853. $565 = (($$0972) + 1)|0;
  25854. $566 = $563 << 16 >> 16;
  25855. $567 = (($$0972) + 2)|0;
  25856. $568 = ($$60>>>0)<($567>>>0);
  25857. if ($568) {
  25858. label = 150;
  25859. break L125;
  25860. } else {
  25861. $$0972 = $565;$$0975 = $566;
  25862. }
  25863. }
  25864. break;
  25865. }
  25866. case 156: {
  25867. label = 0;
  25868. $591 = $$631372 & 1023;
  25869. $592 = (((($0)) + 352|0) + ($591<<1)|0);
  25870. $593 = HEAP16[$592>>1]|0;
  25871. $594 = $593 << 16 >> 16;
  25872. $595 = ($593<<16>>16)>(-1);
  25873. if ($595) {
  25874. $596 = $594 >> 9;
  25875. $597 = $594 & 511;
  25876. $$2974 = $596;$$2977 = $597;
  25877. } else {
  25878. $$1973 = 10;$$1976 = $594;
  25879. while(1) {
  25880. $598 = $$1976 ^ -1;
  25881. $599 = (($$1973) + 1)|0;
  25882. $600 = $$631372 >>> $$1973;
  25883. $601 = $600 & 1;
  25884. $602 = (($601) + ($598))|0;
  25885. $603 = (((($0)) + 2400|0) + ($602<<1)|0);
  25886. $604 = HEAP16[$603>>1]|0;
  25887. $605 = $604 << 16 >> 16;
  25888. $606 = ($604<<16>>16)<(0);
  25889. if ($606) {
  25890. $$1973 = $599;$$1976 = $605;
  25891. } else {
  25892. $$2974 = $599;$$2977 = $605;
  25893. break;
  25894. }
  25895. }
  25896. }
  25897. $607 = $$631372 >>> $$2974;
  25898. $608 = (($$63) - ($$2974))|0;
  25899. $609 = ($$2977>>>0)>(255);
  25900. if ($609) {
  25901. $$601476 = $$581474;$$611668 = $$581665;$$631054 = $$611052;$$641161 = $$2977;$$651268 = $$631266;$$671574 = $$621569;$$68 = $608;$$681377 = $607;
  25902. label = 176;
  25903. } else {
  25904. $$591475 = $$581474;$$591666 = $$581665;$$621053 = $$611052;$$621159 = $$2977;$$631570 = $$621569;$$64 = $608;$$641267 = $$631266;$$641373 = $607;
  25905. label = 160;
  25906. continue L46;
  25907. }
  25908. break;
  25909. }
  25910. case 179: {
  25911. label = 0;
  25912. $693 = ($$681575>>>0)<($10>>>0);
  25913. if ($693) {
  25914. $$631479$ph = $$611477;$$641671$ph = $$621669;$$661057$ph = $$641055;$$671164$ph = $$651162;$$681271$ph = $$661269;$$71$ph = $$69;$$711380$ph = $$691378;$$sink1739 = $$681575;
  25915. label = 182;
  25916. continue L46;
  25917. } else {
  25918. $$621478 = $$611477;$$631670 = $$621669;$$651056 = $$641055;$$661163 = $$651162;$$671270 = $$661269;$$691576 = $$681575;$$70 = $$69;$$701379 = $$691378;
  25919. label = 180;
  25920. continue L46;
  25921. }
  25922. break;
  25923. }
  25924. case 184: {
  25925. label = 0;
  25926. $703 = 1 << $$691272;
  25927. $704 = (($703) + -1)|0;
  25928. $705 = $704 & $$721381;
  25929. $706 = $$721381 >>> $$691272;
  25930. $707 = (($$72) - ($$691272))|0;
  25931. $708 = (($705) + ($$681165))|0;
  25932. $$651481 = $$641480;$$661673 = $$651672;$$681059 = $$671058;$$691166 = $708;$$701273 = $$691272;$$721579 = $$711578;$$73 = $707;$$731382 = $706;
  25933. label = 185;
  25934. break;
  25935. }
  25936. case 187: {
  25937. label = 0;
  25938. $714 = $$741383 & 1023;
  25939. $715 = (((($0)) + 3840|0) + ($714<<1)|0);
  25940. $716 = HEAP16[$715>>1]|0;
  25941. $717 = $716 << 16 >> 16;
  25942. $718 = ($716<<16>>16)>(-1);
  25943. if ($718) {
  25944. $719 = $717 >> 9;
  25945. $720 = (($719) + -1)|0;
  25946. $721 = ($720>>>0)<($$74>>>0);
  25947. if ($721) {
  25948. $$691485 = $$661482;$$701677 = $$671674;$$731170 = $$701167;$$761583 = $$731580;$$77 = $$74;$$771386 = $$741383;
  25949. label = 198;
  25950. continue L125;
  25951. } else {
  25952. label = 192;
  25953. break L125;
  25954. }
  25955. }
  25956. $722 = ($$74>>>0)>(10);
  25957. if ($722) {
  25958. $$0953 = 10;$$0956 = $717;
  25959. } else {
  25960. label = 192;
  25961. break L125;
  25962. }
  25963. while(1) {
  25964. $723 = $$0956 ^ -1;
  25965. $724 = $$741383 >>> $$0953;
  25966. $725 = $724 & 1;
  25967. $726 = (($725) + ($723))|0;
  25968. $727 = (((($0)) + 5888|0) + ($726<<1)|0);
  25969. $728 = HEAP16[$727>>1]|0;
  25970. $729 = ($728<<16>>16)<(0);
  25971. if (!($729)) {
  25972. $$691485 = $$661482;$$701677 = $$671674;$$731170 = $$701167;$$761583 = $$731580;$$77 = $$74;$$771386 = $$741383;
  25973. label = 198;
  25974. continue L125;
  25975. }
  25976. $730 = (($$0953) + 1)|0;
  25977. $731 = $728 << 16 >> 16;
  25978. $732 = (($$0953) + 2)|0;
  25979. $733 = ($$74>>>0)<($732>>>0);
  25980. if ($733) {
  25981. label = 192;
  25982. break L125;
  25983. } else {
  25984. $$0953 = $730;$$0956 = $731;
  25985. }
  25986. }
  25987. break;
  25988. }
  25989. case 198: {
  25990. label = 0;
  25991. $756 = $$771386 & 1023;
  25992. $757 = (((($0)) + 3840|0) + ($756<<1)|0);
  25993. $758 = HEAP16[$757>>1]|0;
  25994. $759 = $758 << 16 >> 16;
  25995. $760 = ($758<<16>>16)>(-1);
  25996. if ($760) {
  25997. $761 = $759 >> 9;
  25998. $762 = $759 & 511;
  25999. $$2955 = $761;$$2958 = $762;
  26000. } else {
  26001. $$1954 = 10;$$1957 = $759;
  26002. while(1) {
  26003. $763 = $$1957 ^ -1;
  26004. $764 = (($$1954) + 1)|0;
  26005. $765 = $$771386 >>> $$1954;
  26006. $766 = $765 & 1;
  26007. $767 = (($766) + ($763))|0;
  26008. $768 = (((($0)) + 5888|0) + ($767<<1)|0);
  26009. $769 = HEAP16[$768>>1]|0;
  26010. $770 = $769 << 16 >> 16;
  26011. $771 = ($769<<16>>16)<(0);
  26012. if ($771) {
  26013. $$1954 = $764;$$1957 = $770;
  26014. } else {
  26015. $$2955 = $764;$$2958 = $770;
  26016. break;
  26017. }
  26018. }
  26019. }
  26020. $772 = $$771386 >>> $$2955;
  26021. $773 = (($$77) - ($$2955))|0;
  26022. $774 = (3456 + ($$2958<<2)|0);
  26023. $775 = HEAP32[$774>>2]|0;
  26024. $776 = (3584 + ($$2958<<2)|0);
  26025. $777 = HEAP32[$776>>2]|0;
  26026. $778 = (($$2958) + -4)|0;
  26027. $779 = ($778>>>0)<(26);
  26028. if ($779) {
  26029. $780 = ($773>>>0)<($775>>>0);
  26030. if ($780) {
  26031. $$701486 = $$691485;$$711678 = $$701677;$$721063 = $777;$$741171 = $$731170;$$741277 = $775;$$771584 = $$761583;$$78 = $773;$$781387 = $772;
  26032. label = 203;
  26033. continue L125;
  26034. } else {
  26035. $$741681 = $$701677;$$751066 = $777;$$771174 = $$731170;$$771280 = $775;$$801587 = $$761583;$$81 = $773;$$811390 = $772;
  26036. label = 208;
  26037. continue L125;
  26038. }
  26039. } else {
  26040. $$751682 = $$701677;$$761067 = $777;$$781175 = $$731170;$$781281 = $775;$$811588 = $$761583;$$82 = $773;$$821391 = $772;
  26041. label = 209;
  26042. }
  26043. break;
  26044. }
  26045. case 203: {
  26046. label = 0;
  26047. $781 = ($$771584>>>0)<($10>>>0);
  26048. if ($781) {
  26049. $$721488$ph = $$701486;$$731680$ph = $$711678;$$741065$ph = $$721063;$$761173$ph = $$741171;$$761279$ph = $$741277;$$80$ph = $$78;$$801389$ph = $$781387;$$sink1746 = $$771584;
  26050. label = 206;
  26051. continue L46;
  26052. } else {
  26053. $$711487 = $$701486;$$721679 = $$711678;$$731064 = $$721063;$$751172 = $$741171;$$751278 = $$741277;$$781585 = $$771584;$$79 = $$78;$$791388 = $$781387;
  26054. label = 204;
  26055. continue L46;
  26056. }
  26057. break;
  26058. }
  26059. case 208: {
  26060. label = 0;
  26061. $791 = 1 << $$771280;
  26062. $792 = (($791) + -1)|0;
  26063. $793 = $792 & $$811390;
  26064. $794 = $$811390 >>> $$771280;
  26065. $795 = (($$81) - ($$771280))|0;
  26066. $796 = (($793) + ($$751066))|0;
  26067. $$751682 = $$741681;$$761067 = $796;$$781175 = $$771174;$$781281 = $$771280;$$811588 = $$801587;$$82 = $795;$$821391 = $794;
  26068. label = 209;
  26069. break;
  26070. }
  26071. case 212: {
  26072. label = 0;
  26073. $807 = (($$801177) + -1)|0;
  26074. $808 = ($$801177|0)==(0);
  26075. if ($808) {
  26076. $$531469 = $$741490;$$531660 = $$771684;$$561047 = $$781069;$$571154 = $807;$$571564 = $$831590;$$58 = $$84;$$581261 = $$801283;$$581367 = $$841393;
  26077. label = 139;
  26078. } else {
  26079. $$751491 = $$741490;$$781685 = $$771684;$$791070 = $$781069;$$811178 = $807;$$811284 = $$801283;$$841591 = $$831590;$$85 = $$84;$$851394 = $$841393;
  26080. label = 213;
  26081. continue L46;
  26082. }
  26083. break;
  26084. }
  26085. }
  26086. do {
  26087. if ((label|0) == 70) {
  26088. label = 0;
  26089. $217 = ((($0)) + 52|0);
  26090. $218 = HEAP32[$217>>2]|0;
  26091. $219 = ($$381135>>>0)<($218>>>0);
  26092. if ($219) {
  26093. $220 = ($$39>>>0)<(3);
  26094. if ($220) {
  26095. $$351451 = $$341450;$$351642 = $$341641;$$391030 = $$381029;$$391136 = $$381135;$$391546 = $$381545;$$40 = $$39;$$401243 = $$391242;$$401349 = $$391348;
  26096. label = 72;
  26097. continue L125;
  26098. } else {
  26099. $$381454 = $$341450;$$381645 = $$341641;$$421033 = $$381029;$$421139 = $$381135;$$421549 = $$381545;$$43 = $$39;$$431246 = $$391242;$$431352 = $$391348;
  26100. label = 77;
  26101. continue L125;
  26102. }
  26103. } else {
  26104. HEAP32[$217>>2] = 19;
  26105. $$391455 = $$341450;$$391646 = $$341641;$$431034 = $$381029;$$431140 = $$381135;$$431550 = $$381545;$$44 = $$39;$$441247 = $$391242;$$441353 = $$391348;
  26106. label = 80;
  26107. continue L125;
  26108. }
  26109. }
  26110. else if ((label|0) == 105) {
  26111. label = 0;
  26112. $418 = ((($0)) + 44|0);
  26113. $419 = HEAP32[$418>>2]|0;
  26114. $420 = ((($0)) + 48|0);
  26115. $421 = HEAP32[$420>>2]|0;
  26116. $422 = (($421) + ($419))|0;
  26117. $423 = ($$451142>>>0)<($422>>>0);
  26118. if (!($423)) {
  26119. $529 = ($422|0)==($$451142|0);
  26120. if (!($529)) {
  26121. $$511467 = $$411457;$$511658 = $$411648;$$541045 = $$451036;$$551152 = $$451142;$$551562 = $$451552;$$56 = $$46;$$561259 = $$461249;$$561365 = $$461355;
  26122. label = 136;
  26123. continue L46;
  26124. }
  26125. $530 = ((($0)) + 64|0);
  26126. $531 = ((($0)) + 10532|0);
  26127. _memcpy(($530|0),($531|0),($419|0))|0;
  26128. $532 = ((($0)) + 3552|0);
  26129. $533 = HEAP32[$418>>2]|0;
  26130. $534 = (((($0)) + 10532|0) + ($533)|0);
  26131. $535 = HEAP32[$420>>2]|0;
  26132. _memcpy(($532|0),($534|0),($535|0))|0;
  26133. $$521468 = $$411457;$$521659 = $$411648;$$551046 = $$451036;$$561153 = $$451142;$$561563 = $$451552;$$57 = $$46;$$571260 = $$461249;$$571366 = $$461355;
  26134. label = 138;
  26135. break;
  26136. }
  26137. $424 = ($$46>>>0)<(15);
  26138. if (!($424)) {
  26139. $$451461 = $$411457;$$451652 = $$411648;$$491146 = $$451142;$$491556 = $$451552;$$50 = $$46;$$501253 = $$461249;$$501359 = $$461355;
  26140. label = 119;
  26141. continue L125;
  26142. }
  26143. $425 = $10;
  26144. $426 = $$451552;
  26145. $427 = (($425) - ($426))|0;
  26146. $428 = ($427|0)<(2);
  26147. if ($428) {
  26148. $$421458 = $$411457;$$421649 = $$411648;$$461037 = $$451036;$$461143 = $$451142;$$461553 = $$451552;$$47 = $$46;$$471250 = $$461249;$$471356 = $$461355;
  26149. label = 108;
  26150. continue L125;
  26151. }
  26152. $459 = HEAP8[$$451552>>0]|0;
  26153. $460 = $459&255;
  26154. $461 = $460 << $$46;
  26155. $462 = ((($$451552)) + 1|0);
  26156. $463 = HEAP8[$462>>0]|0;
  26157. $464 = $463&255;
  26158. $465 = (($$46) + 8)|0;
  26159. $466 = $464 << $465;
  26160. $467 = $461 | $$461355;
  26161. $468 = $467 | $466;
  26162. $469 = ((($$451552)) + 2|0);
  26163. $470 = (($$46) + 16)|0;
  26164. $$451461 = $$411457;$$451652 = $$411648;$$491146 = $$451142;$$491556 = $469;$$50 = $470;$$501253 = $$461249;$$501359 = $468;
  26165. label = 119;
  26166. continue L125;
  26167. }
  26168. else if ((label|0) == 176) {
  26169. label = 0;
  26170. $683 = $$641161 & 511;
  26171. $684 = ($683|0)==(256);
  26172. if ($684) {
  26173. $$761492 = $$601476;$$801071 = $$631054;$$801687 = $$611668;$$821285 = $$651268;$$831180 = 256;$$851592 = $$671574;$$86 = $$68;$$861395 = $$681377;
  26174. label = 220;
  26175. break L125;
  26176. }
  26177. $685 = (($683) + -257)|0;
  26178. $686 = (3208 + ($685<<2)|0);
  26179. $687 = HEAP32[$686>>2]|0;
  26180. $688 = (3332 + ($685<<2)|0);
  26181. $689 = HEAP32[$688>>2]|0;
  26182. $690 = (($683) + -265)|0;
  26183. $691 = ($690>>>0)<(20);
  26184. if ($691) {
  26185. $692 = ($$68>>>0)<($687>>>0);
  26186. if ($692) {
  26187. $$611477 = $$601476;$$621669 = $$611668;$$641055 = $$631054;$$651162 = $689;$$661269 = $687;$$681575 = $$671574;$$69 = $$68;$$691378 = $$681377;
  26188. label = 179;
  26189. continue L125;
  26190. } else {
  26191. $$641480 = $$601476;$$651672 = $$611668;$$671058 = $$631054;$$681165 = $689;$$691272 = $687;$$711578 = $$671574;$$72 = $$68;$$721381 = $$681377;
  26192. label = 184;
  26193. continue L125;
  26194. }
  26195. } else {
  26196. $$651481 = $$601476;$$661673 = $$611668;$$681059 = $$631054;$$691166 = $689;$$701273 = $687;$$721579 = $$671574;$$73 = $$68;$$731382 = $$681377;
  26197. label = 185;
  26198. }
  26199. }
  26200. else if ((label|0) == 209) {
  26201. label = 0;
  26202. $797 = $$751682;
  26203. $798 = $3;
  26204. $799 = (($797) - ($798))|0;
  26205. $$not = ($799>>>0)>=($$761067>>>0);
  26206. $$not1747 = $14 ^ 1;
  26207. $brmerge = $$not | $$not1747;
  26208. if (!($brmerge)) {
  26209. $$731489 = $799;$$761683 = $$751682;$$771068 = $$761067;$$791176 = $$781175;$$791282 = $$781281;$$821589 = $$811588;$$83 = $$82;$$831392 = $$821391;
  26210. label = 210;
  26211. continue L46;
  26212. }
  26213. $800 = (($799) - ($$761067))|0;
  26214. $801 = $800 & $$1753;
  26215. $802 = (($3) + ($801)|0);
  26216. $803 = ($$751682>>>0)>($802>>>0);
  26217. $804 = $803 ? $$751682 : $802;
  26218. $805 = (($804) + ($$781175)|0);
  26219. $806 = ($805>>>0)>($12>>>0);
  26220. if ($806) {
  26221. $$741490 = $799;$$771684 = $$751682;$$781069 = $$761067;$$801177 = $$781175;$$801283 = $$781281;$$831590 = $$811588;$$84 = $$82;$$841393 = $$821391;
  26222. label = 212;
  26223. continue L125;
  26224. } else {
  26225. $$0978 = $802;$$791686 = $$751682;$$821179 = $$781175;
  26226. }
  26227. while(1) {
  26228. $816 = HEAP8[$$0978>>0]|0;
  26229. HEAP8[$$791686>>0] = $816;
  26230. $817 = ((($$0978)) + 1|0);
  26231. $818 = HEAP8[$817>>0]|0;
  26232. $819 = ((($$791686)) + 1|0);
  26233. HEAP8[$819>>0] = $818;
  26234. $820 = ((($$0978)) + 2|0);
  26235. $821 = HEAP8[$820>>0]|0;
  26236. $822 = ((($$791686)) + 2|0);
  26237. HEAP8[$822>>0] = $821;
  26238. $823 = ((($$791686)) + 3|0);
  26239. $824 = ((($$0978)) + 3|0);
  26240. $825 = (($$821179) + -3)|0;
  26241. $826 = ($825|0)>(2);
  26242. if ($826) {
  26243. $$0978 = $824;$$791686 = $823;$$821179 = $825;
  26244. } else {
  26245. break;
  26246. }
  26247. }
  26248. $827 = ($825|0)>(0);
  26249. if ($827) {
  26250. $828 = HEAP8[$824>>0]|0;
  26251. HEAP8[$823>>0] = $828;
  26252. $829 = ($825|0)==(1);
  26253. if (!($829)) {
  26254. $830 = ((($$0978)) + 4|0);
  26255. $831 = HEAP8[$830>>0]|0;
  26256. $832 = ((($$791686)) + 4|0);
  26257. HEAP8[$832>>0] = $831;
  26258. }
  26259. $833 = (($823) + ($825)|0);
  26260. $$531469 = $799;$$531660 = $833;$$561047 = $$761067;$$571154 = $825;$$571564 = $$811588;$$58 = $$82;$$581261 = $$781281;$$581367 = $$821391;
  26261. label = 139;
  26262. } else {
  26263. $$531469 = $799;$$531660 = $823;$$561047 = $$761067;$$571154 = $825;$$571564 = $$811588;$$58 = $$82;$$581261 = $$781281;$$581367 = $$821391;
  26264. label = 139;
  26265. }
  26266. }
  26267. } while(0);
  26268. if ((label|0) == 138) {
  26269. label = 0;
  26270. $536 = ((($0)) + 24|0);
  26271. $537 = HEAP32[$536>>2]|0;
  26272. $538 = (($537) + -1)|0;
  26273. HEAP32[$536>>2] = $538;
  26274. $$391455 = $$521468;$$391646 = $$521659;$$431034 = $$551046;$$431140 = $$561153;$$431550 = $$561563;$$44 = $$57;$$441247 = $$571260;$$441353 = $$571366;
  26275. label = 80;
  26276. continue;
  26277. }
  26278. else if ((label|0) == 139) {
  26279. label = 0;
  26280. $$541470$ph = $$531469;$$541661$ph = $$531660;$$571048$ph = $$561047;$$581155$ph = $$571154;$$581565$ph = $$571564;$$59$ph = $$58;$$591262$ph = $$581261;$$591368$ph = $$581367;
  26281. label = 140;
  26282. continue;
  26283. }
  26284. else if ((label|0) == 185) {
  26285. label = 0;
  26286. $709 = ($$73>>>0)<(15);
  26287. if (!($709)) {
  26288. $$691485 = $$651481;$$701677 = $$661673;$$731170 = $$691166;$$761583 = $$721579;$$77 = $$73;$$771386 = $$731382;
  26289. label = 198;
  26290. continue;
  26291. }
  26292. $710 = $10;
  26293. $711 = $$721579;
  26294. $712 = (($710) - ($711))|0;
  26295. $713 = ($712|0)<(2);
  26296. if ($713) {
  26297. $$661482 = $$651481;$$671674 = $$661673;$$691060 = $$681059;$$701167 = $$691166;$$711274 = $$701273;$$731580 = $$721579;$$74 = $$73;$$741383 = $$731382;
  26298. label = 187;
  26299. continue;
  26300. }
  26301. $744 = HEAP8[$$721579>>0]|0;
  26302. $745 = $744&255;
  26303. $746 = $745 << $$73;
  26304. $747 = ((($$721579)) + 1|0);
  26305. $748 = HEAP8[$747>>0]|0;
  26306. $749 = $748&255;
  26307. $750 = (($$73) + 8)|0;
  26308. $751 = $749 << $750;
  26309. $752 = $746 | $$731382;
  26310. $753 = $752 | $751;
  26311. $754 = ((($$721579)) + 2|0);
  26312. $755 = (($$73) + 16)|0;
  26313. $$691485 = $$651481;$$701677 = $$661673;$$731170 = $$691166;$$761583 = $754;$$77 = $755;$$771386 = $753;
  26314. label = 198;
  26315. continue;
  26316. }
  26317. }
  26318. if ((label|0) == 113) {
  26319. label = 0;
  26320. $449 = ($$461553>>>0)<($10>>>0);
  26321. if ($449) {
  26322. $$441460$ph = $$421458;$$441651$ph = $$421649;$$481039$ph = $$461037;$$481145$ph = $$461143;$$49$ph = $$47;$$491252$ph = $$471250;$$491358$ph = $$471356;$$sink1729 = $$461553;
  26323. label = 116;
  26324. continue;
  26325. } else {
  26326. $$431459 = $$421458;$$431650 = $$421649;$$471038 = $$461037;$$471144 = $$461143;$$471554 = $$461553;$$48 = $$47;$$481251 = $$471250;$$481357 = $$471356;
  26327. label = 114;
  26328. continue;
  26329. }
  26330. }
  26331. else if ((label|0) == 150) {
  26332. label = 0;
  26333. $569 = ($$591566>>>0)<($10>>>0);
  26334. if ($569) {
  26335. $$571473$ph = $$551471;$$571664$ph = $$551662;$$601051$ph = $$581049;$$611158$ph = $$591156;$$62$ph = $$60;$$621265$ph = $$601263;$$621371$ph = $$601369;$$sink1736 = $$591566;
  26336. label = 153;
  26337. continue;
  26338. } else {
  26339. $$561472 = $$551471;$$561663 = $$551662;$$591050 = $$581049;$$601157 = $$591156;$$601567 = $$591566;$$61 = $$60;$$611264 = $$601263;$$611370 = $$601369;
  26340. label = 151;
  26341. continue;
  26342. }
  26343. }
  26344. else if ((label|0) == 192) {
  26345. label = 0;
  26346. $734 = ($$731580>>>0)<($10>>>0);
  26347. if ($734) {
  26348. $$681484$ph = $$661482;$$691676$ph = $$671674;$$711062$ph = $$691060;$$721169$ph = $$701167;$$731276$ph = $$711274;$$76$ph = $$74;$$761385$ph = $$741383;$$sink1743 = $$731580;
  26349. label = 195;
  26350. continue;
  26351. } else {
  26352. $$671483 = $$661482;$$681675 = $$671674;$$701061 = $$691060;$$711168 = $$701167;$$721275 = $$711274;$$741581 = $$731580;$$75 = $$74;$$751384 = $$741383;
  26353. label = 193;
  26354. continue;
  26355. }
  26356. }
  26357. else if ((label|0) == 220) {
  26358. label = 0;
  26359. $834 = ((($0)) + 20|0);
  26360. $835 = HEAP32[$834>>2]|0;
  26361. $836 = $835 & 1;
  26362. $837 = ($836|0)==(0);
  26363. if ($837) {
  26364. $$01416 = $$761492;$$01607 = $$801687;$$41511 = $$851592;$$5 = $$86;$$51102 = $$831180;$$51208 = $$821285;$$51314 = $$861395;$$5996 = $$801071;
  26365. label = 14;
  26366. continue;
  26367. }
  26368. $838 = $6 & 1;
  26369. $839 = ($838|0)==(0);
  26370. if ($839) {
  26371. $$881504 = $$761492;$$921083 = $$801071;$$921699 = $$801687;$$941191 = $$831180;$$941297 = $$821285;$$971604 = $$851592;$$98 = $$86;$$981407 = $$861395;
  26372. label = 242;
  26373. continue;
  26374. } else {
  26375. $$801496 = $$761492;$$841075 = $$801071;$$841691 = $$801687;$$861289 = $$821285;$$891596 = $$851592;$$90 = $$86;$$901399 = $$861395;
  26376. label = 226;
  26377. continue;
  26378. }
  26379. }
  26380. }
  26381. if ((label|0) == 258) {
  26382. STACKTOP = sp;return ($$0951|0);
  26383. }
  26384. $892 = ((($0)) + 28|0);
  26385. $893 = HEAP32[$892>>2]|0;
  26386. $894 = $893 & 65535;
  26387. $895 = $893 >>> 16;
  26388. $896 = ($888|0)==(0);
  26389. if ($896) {
  26390. $$0937$lcssa = $895;$$0938$lcssa = $894;
  26391. } else {
  26392. $897 = (($888>>>0) % 5552)&-1;
  26393. $$01834 = $897;$$09371833 = $895;$$09381832 = $894;$$09431831 = $888;$$09441830 = $4;
  26394. while(1) {
  26395. $898 = ($$01834>>>0)>(7);
  26396. if ($898) {
  26397. $899 = (($$01834) + -8)|0;
  26398. $900 = $899 & -8;
  26399. $scevgep = ((($$09441830)) + 8|0);
  26400. $$09411816 = 0;$$11818 = $$09371833;$$19391817 = $$09381832;$$19451815 = $$09441830;
  26401. while(1) {
  26402. $904 = HEAP8[$$19451815>>0]|0;
  26403. $905 = $904&255;
  26404. $906 = (($905) + ($$19391817))|0;
  26405. $907 = (($906) + ($$11818))|0;
  26406. $908 = ((($$19451815)) + 1|0);
  26407. $909 = HEAP8[$908>>0]|0;
  26408. $910 = $909&255;
  26409. $911 = (($906) + ($910))|0;
  26410. $912 = (($907) + ($911))|0;
  26411. $913 = ((($$19451815)) + 2|0);
  26412. $914 = HEAP8[$913>>0]|0;
  26413. $915 = $914&255;
  26414. $916 = (($911) + ($915))|0;
  26415. $917 = (($912) + ($916))|0;
  26416. $918 = ((($$19451815)) + 3|0);
  26417. $919 = HEAP8[$918>>0]|0;
  26418. $920 = $919&255;
  26419. $921 = (($916) + ($920))|0;
  26420. $922 = (($917) + ($921))|0;
  26421. $923 = ((($$19451815)) + 4|0);
  26422. $924 = HEAP8[$923>>0]|0;
  26423. $925 = $924&255;
  26424. $926 = (($921) + ($925))|0;
  26425. $927 = (($922) + ($926))|0;
  26426. $928 = ((($$19451815)) + 5|0);
  26427. $929 = HEAP8[$928>>0]|0;
  26428. $930 = $929&255;
  26429. $931 = (($926) + ($930))|0;
  26430. $932 = (($927) + ($931))|0;
  26431. $933 = ((($$19451815)) + 6|0);
  26432. $934 = HEAP8[$933>>0]|0;
  26433. $935 = $934&255;
  26434. $936 = (($931) + ($935))|0;
  26435. $937 = (($932) + ($936))|0;
  26436. $938 = ((($$19451815)) + 7|0);
  26437. $939 = HEAP8[$938>>0]|0;
  26438. $940 = $939&255;
  26439. $941 = (($936) + ($940))|0;
  26440. $942 = (($937) + ($941))|0;
  26441. $943 = (($$09411816) + 8)|0;
  26442. $944 = ((($$19451815)) + 8|0);
  26443. $945 = $943 | 7;
  26444. $946 = ($945>>>0)<($$01834>>>0);
  26445. if ($946) {
  26446. $$09411816 = $943;$$11818 = $942;$$19391817 = $941;$$19451815 = $944;
  26447. } else {
  26448. break;
  26449. }
  26450. }
  26451. $901 = (($900) + 8)|0;
  26452. $scevgep1947 = (($scevgep) + ($900)|0);
  26453. $$0941$lcssa = $901;$$1$lcssa = $942;$$1939$lcssa = $941;$$1945$lcssa = $scevgep1947;
  26454. } else {
  26455. $$0941$lcssa = 0;$$1$lcssa = $$09371833;$$1939$lcssa = $$09381832;$$1945$lcssa = $$09441830;
  26456. }
  26457. $902 = ($$01834>>>0)>($$0941$lcssa>>>0);
  26458. if ($902) {
  26459. $903 = (($$01834) - ($$0941$lcssa))|0;
  26460. $$19421823 = $$0941$lcssa;$$21825 = $$1$lcssa;$$29401824 = $$1939$lcssa;$$29461822 = $$1945$lcssa;
  26461. while(1) {
  26462. $947 = ((($$29461822)) + 1|0);
  26463. $948 = HEAP8[$$29461822>>0]|0;
  26464. $949 = $948&255;
  26465. $950 = (($949) + ($$29401824))|0;
  26466. $951 = (($950) + ($$21825))|0;
  26467. $952 = (($$19421823) + 1)|0;
  26468. $exitcond = ($952|0)==($$01834|0);
  26469. if ($exitcond) {
  26470. break;
  26471. } else {
  26472. $$19421823 = $952;$$21825 = $951;$$29401824 = $950;$$29461822 = $947;
  26473. }
  26474. }
  26475. $scevgep1948 = (($$1945$lcssa) + ($903)|0);
  26476. $$2$lcssa = $951;$$2940$lcssa = $950;$$2946$lcssa = $scevgep1948;
  26477. } else {
  26478. $$2$lcssa = $$1$lcssa;$$2940$lcssa = $$1939$lcssa;$$2946$lcssa = $$1945$lcssa;
  26479. }
  26480. $953 = (($$2940$lcssa>>>0) % 65521)&-1;
  26481. $954 = (($$2$lcssa>>>0) % 65521)&-1;
  26482. $955 = (($$09431831) - ($$01834))|0;
  26483. $956 = ($955|0)==(0);
  26484. if ($956) {
  26485. $$0937$lcssa = $954;$$0938$lcssa = $953;
  26486. break;
  26487. } else {
  26488. $$01834 = 5552;$$09371833 = $954;$$09381832 = $953;$$09431831 = $955;$$09441830 = $$2946$lcssa;
  26489. }
  26490. }
  26491. }
  26492. $957 = $$0937$lcssa << 16;
  26493. $958 = $957 | $$0938$lcssa;
  26494. HEAP32[$892>>2] = $958;
  26495. $959 = ($$1961|0)!=(0);
  26496. $960 = $6 & 1;
  26497. $961 = ($960|0)==(0);
  26498. $or$cond1752 = $961 | $959;
  26499. if ($or$cond1752) {
  26500. $$0951 = $$1961;
  26501. STACKTOP = sp;return ($$0951|0);
  26502. } else {
  26503. $962 = ((($0)) + 16|0);
  26504. $963 = HEAP32[$962>>2]|0;
  26505. $964 = ($958|0)==($963|0);
  26506. $$1961$ = $964 ? $$1961 : -2;
  26507. STACKTOP = sp;return ($$1961$|0);
  26508. }
  26509. return (0)|0;
  26510. }
  26511. function _LoadTexture($0,$1) {
  26512. $0 = $0|0;
  26513. $1 = $1|0;
  26514. var $$byval_copy1 = 0, $$sroa$0$0 = 0, $$sroa$0$0$copyload = 0, $$sroa$5 = 0, $$sroa$5$0$$sroa_idx = 0, $$sroa$5$0$$sroa_idx5 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  26515. sp = STACKTOP;
  26516. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  26517. $$byval_copy1 = sp + 60|0;
  26518. $vararg_buffer = sp + 16|0;
  26519. $$sroa$5 = sp;
  26520. $2 = sp + 20|0;
  26521. $3 = sp + 40|0;
  26522. _LoadImage($2,$1);
  26523. $4 = HEAP32[$2>>2]|0;
  26524. $5 = ($4|0)==(0|0);
  26525. if ($5) {
  26526. _TraceLog(2,11666,$vararg_buffer);
  26527. $$sroa$0$0 = 0;
  26528. } else {
  26529. ;HEAP32[$$byval_copy1>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$$byval_copy1+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$$byval_copy1+16>>2]=HEAP32[$2+16>>2]|0;
  26530. _LoadTextureFromImage($3,$$byval_copy1);
  26531. $$sroa$0$0$copyload = HEAP32[$3>>2]|0;
  26532. $$sroa$5$0$$sroa_idx = ((($3)) + 4|0);
  26533. ;HEAP32[$$sroa$5>>2]=HEAP32[$$sroa$5$0$$sroa_idx>>2]|0;HEAP32[$$sroa$5+4>>2]=HEAP32[$$sroa$5$0$$sroa_idx+4>>2]|0;HEAP32[$$sroa$5+8>>2]=HEAP32[$$sroa$5$0$$sroa_idx+8>>2]|0;HEAP32[$$sroa$5+12>>2]=HEAP32[$$sroa$5$0$$sroa_idx+12>>2]|0;
  26534. ;HEAP32[$$byval_copy1>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$$byval_copy1+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$$byval_copy1+16>>2]=HEAP32[$2+16>>2]|0;
  26535. _UnloadImage($$byval_copy1);
  26536. $$sroa$0$0 = $$sroa$0$0$copyload;
  26537. }
  26538. HEAP32[$0>>2] = $$sroa$0$0;
  26539. $$sroa$5$0$$sroa_idx5 = ((($0)) + 4|0);
  26540. ;HEAP32[$$sroa$5$0$$sroa_idx5>>2]=HEAP32[$$sroa$5>>2]|0;HEAP32[$$sroa$5$0$$sroa_idx5+4>>2]=HEAP32[$$sroa$5+4>>2]|0;HEAP32[$$sroa$5$0$$sroa_idx5+8>>2]=HEAP32[$$sroa$5+8>>2]|0;HEAP32[$$sroa$5$0$$sroa_idx5+12>>2]=HEAP32[$$sroa$5+12>>2]|0;
  26541. STACKTOP = sp;return;
  26542. }
  26543. function _GetDefaultFont($0) {
  26544. $0 = $0|0;
  26545. var label = 0, sp = 0;
  26546. sp = STACKTOP;
  26547. ;HEAP32[$0>>2]=HEAP32[17812>>2]|0;HEAP32[$0+4>>2]=HEAP32[17812+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[17812+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[17812+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[17812+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[17812+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[17812+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[17812+28>>2]|0;
  26548. return;
  26549. }
  26550. function _GetCharIndex($0,$1) {
  26551. $0 = $0|0;
  26552. $1 = $1|0;
  26553. 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;
  26554. sp = STACKTOP;
  26555. $2 = ((($0)) + 24|0);
  26556. $3 = HEAP32[$2>>2]|0;
  26557. $4 = ($3|0)>(0);
  26558. if (!($4)) {
  26559. $$08 = 0;
  26560. return ($$08|0);
  26561. }
  26562. $5 = ((($0)) + 28|0);
  26563. $6 = HEAP32[$5>>2]|0;
  26564. $$09 = 0;
  26565. while(1) {
  26566. $7 = (($6) + ($$09<<5)|0);
  26567. $8 = HEAP32[$7>>2]|0;
  26568. $9 = ($8|0)==($1|0);
  26569. if ($9) {
  26570. $$08 = $$09;
  26571. label = 5;
  26572. break;
  26573. }
  26574. $10 = (($$09) + 1)|0;
  26575. $11 = HEAP32[$2>>2]|0;
  26576. $12 = ($10|0)<($11|0);
  26577. if ($12) {
  26578. $$09 = $10;
  26579. } else {
  26580. $$08 = 0;
  26581. label = 5;
  26582. break;
  26583. }
  26584. }
  26585. if ((label|0) == 5) {
  26586. return ($$08|0);
  26587. }
  26588. return (0)|0;
  26589. }
  26590. function _DrawTextureEx($0,$1,$2,$3,$4) {
  26591. $0 = $0|0;
  26592. $1 = $1|0;
  26593. $2 = +$2;
  26594. $3 = +$3;
  26595. $4 = $4|0;
  26596. var $$byval_copy = 0, $$byval_copy1 = 0, $$byval_copy2 = 0, $$byval_copy3 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0.0, $16 = 0, $17 = 0, $18 = 0, $19 = 0.0, $20 = 0, $21 = 0, $22 = 0, $23 = 0.0, $24 = 0.0, $25 = 0;
  26597. var $26 = 0, $27 = 0, $28 = 0.0, $29 = 0.0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $tmpcast$byval_copy = 0, label = 0, sp = 0;
  26598. sp = STACKTOP;
  26599. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  26600. $$byval_copy3 = sp + 104|0;
  26601. $tmpcast$byval_copy = sp + 96|0;
  26602. $$byval_copy2 = sp + 80|0;
  26603. $$byval_copy1 = sp + 64|0;
  26604. $$byval_copy = sp + 40|0;
  26605. $5 = sp + 24|0;
  26606. $6 = sp + 8|0;
  26607. $7 = sp;
  26608. HEAP32[$5>>2] = 0;
  26609. $8 = ((($5)) + 4|0);
  26610. HEAP32[$8>>2] = 0;
  26611. $9 = ((($5)) + 8|0);
  26612. $10 = ((($0)) + 4|0);
  26613. $11 = HEAP32[$10>>2]|0;
  26614. HEAP32[$9>>2] = $11;
  26615. $12 = ((($5)) + 12|0);
  26616. $13 = ((($0)) + 8|0);
  26617. $14 = HEAP32[$13>>2]|0;
  26618. HEAP32[$12>>2] = $14;
  26619. $15 = +HEAPF32[$1>>2];
  26620. $16 = (~~(($15)));
  26621. HEAP32[$6>>2] = $16;
  26622. $17 = ((($6)) + 4|0);
  26623. $18 = ((($1)) + 4|0);
  26624. $19 = +HEAPF32[$18>>2];
  26625. $20 = (~~(($19)));
  26626. HEAP32[$17>>2] = $20;
  26627. $21 = ((($6)) + 8|0);
  26628. $22 = HEAP32[$10>>2]|0;
  26629. $23 = (+($22|0));
  26630. $24 = $23 * $3;
  26631. $25 = (~~(($24)));
  26632. HEAP32[$21>>2] = $25;
  26633. $26 = ((($6)) + 12|0);
  26634. $27 = HEAP32[$13>>2]|0;
  26635. $28 = (+($27|0));
  26636. $29 = $28 * $3;
  26637. $30 = (~~(($29)));
  26638. HEAP32[$26>>2] = $30;
  26639. $31 = $7;
  26640. $32 = $31;
  26641. HEAP32[$32>>2] = 0;
  26642. $33 = (($31) + 4)|0;
  26643. $34 = $33;
  26644. HEAP32[$34>>2] = 0;
  26645. ;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;
  26646. ;HEAP32[$$byval_copy1>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$5+8>>2]|0;HEAP32[$$byval_copy1+12>>2]=HEAP32[$5+12>>2]|0;
  26647. ;HEAP32[$$byval_copy2>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy2+4>>2]=HEAP32[$6+4>>2]|0;HEAP32[$$byval_copy2+8>>2]=HEAP32[$6+8>>2]|0;HEAP32[$$byval_copy2+12>>2]=HEAP32[$6+12>>2]|0;
  26648. ;HEAP32[$tmpcast$byval_copy>>2]=HEAP32[$7>>2]|0;HEAP32[$tmpcast$byval_copy+4>>2]=HEAP32[$7+4>>2]|0;
  26649. ;HEAP8[$$byval_copy3>>0]=HEAP8[$4>>0]|0;HEAP8[$$byval_copy3+1>>0]=HEAP8[$4+1>>0]|0;HEAP8[$$byval_copy3+2>>0]=HEAP8[$4+2>>0]|0;HEAP8[$$byval_copy3+3>>0]=HEAP8[$4+3>>0]|0;
  26650. _DrawTexturePro($$byval_copy,$$byval_copy1,$$byval_copy2,$tmpcast$byval_copy,$2,$$byval_copy3);
  26651. STACKTOP = sp;return;
  26652. }
  26653. function _DrawTexturePro($0,$1,$2,$3,$4,$5) {
  26654. $0 = $0|0;
  26655. $1 = $1|0;
  26656. $2 = $2|0;
  26657. $3 = $3|0;
  26658. $4 = +$4;
  26659. $5 = $5|0;
  26660. 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;
  26661. 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;
  26662. 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;
  26663. 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;
  26664. 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;
  26665. sp = STACKTOP;
  26666. $6 = HEAP32[$0>>2]|0;
  26667. $7 = ($6|0)==(0);
  26668. if ($7) {
  26669. return;
  26670. }
  26671. $8 = ((($1)) + 8|0);
  26672. $9 = HEAP32[$8>>2]|0;
  26673. $10 = ($9|0)<(0);
  26674. if ($10) {
  26675. $11 = HEAP32[$1>>2]|0;
  26676. $12 = (($11) - ($9))|0;
  26677. HEAP32[$1>>2] = $12;
  26678. }
  26679. $13 = ((($1)) + 12|0);
  26680. $14 = HEAP32[$13>>2]|0;
  26681. $15 = ($14|0)<(0);
  26682. if ($15) {
  26683. $16 = ((($1)) + 4|0);
  26684. $17 = HEAP32[$16>>2]|0;
  26685. $18 = (($17) - ($14))|0;
  26686. HEAP32[$16>>2] = $18;
  26687. }
  26688. $19 = HEAP32[$0>>2]|0;
  26689. _rlEnableTexture($19);
  26690. _rlPushMatrix();
  26691. $20 = HEAP32[$2>>2]|0;
  26692. $21 = (+($20|0));
  26693. $22 = ((($2)) + 4|0);
  26694. $23 = HEAP32[$22>>2]|0;
  26695. $24 = (+($23|0));
  26696. _rlTranslatef($21,$24,0.0);
  26697. _rlRotatef($4,0.0,0.0,1.0);
  26698. $25 = +HEAPF32[$3>>2];
  26699. $26 = -$25;
  26700. $27 = ((($3)) + 4|0);
  26701. $28 = +HEAPF32[$27>>2];
  26702. $29 = -$28;
  26703. _rlTranslatef($26,$29,0.0);
  26704. _rlBegin(7);
  26705. $30 = HEAP8[$5>>0]|0;
  26706. $31 = ((($5)) + 1|0);
  26707. $32 = HEAP8[$31>>0]|0;
  26708. $33 = ((($5)) + 2|0);
  26709. $34 = HEAP8[$33>>0]|0;
  26710. $35 = ((($5)) + 3|0);
  26711. $36 = HEAP8[$35>>0]|0;
  26712. _rlColor4ub($30,$32,$34,$36);
  26713. $37 = HEAP32[$1>>2]|0;
  26714. $38 = (+($37|0));
  26715. $39 = ((($0)) + 4|0);
  26716. $40 = HEAP32[$39>>2]|0;
  26717. $41 = (+($40|0));
  26718. $42 = $38 / $41;
  26719. $43 = ((($1)) + 4|0);
  26720. $44 = HEAP32[$43>>2]|0;
  26721. $45 = (+($44|0));
  26722. $46 = ((($0)) + 8|0);
  26723. $47 = HEAP32[$46>>2]|0;
  26724. $48 = (+($47|0));
  26725. $49 = $45 / $48;
  26726. _rlTexCoord2f($42,$49);
  26727. _rlVertex2f(0.0,0.0);
  26728. $50 = HEAP32[$1>>2]|0;
  26729. $51 = (+($50|0));
  26730. $52 = HEAP32[$39>>2]|0;
  26731. $53 = (+($52|0));
  26732. $54 = $51 / $53;
  26733. $55 = HEAP32[$43>>2]|0;
  26734. $56 = HEAP32[$13>>2]|0;
  26735. $57 = (($56) + ($55))|0;
  26736. $58 = (+($57|0));
  26737. $59 = HEAP32[$46>>2]|0;
  26738. $60 = (+($59|0));
  26739. $61 = $58 / $60;
  26740. _rlTexCoord2f($54,$61);
  26741. $62 = ((($2)) + 12|0);
  26742. $63 = HEAP32[$62>>2]|0;
  26743. $64 = (+($63|0));
  26744. _rlVertex2f(0.0,$64);
  26745. $65 = HEAP32[$1>>2]|0;
  26746. $66 = HEAP32[$8>>2]|0;
  26747. $67 = (($66) + ($65))|0;
  26748. $68 = (+($67|0));
  26749. $69 = HEAP32[$39>>2]|0;
  26750. $70 = (+($69|0));
  26751. $71 = $68 / $70;
  26752. $72 = HEAP32[$43>>2]|0;
  26753. $73 = HEAP32[$13>>2]|0;
  26754. $74 = (($73) + ($72))|0;
  26755. $75 = (+($74|0));
  26756. $76 = HEAP32[$46>>2]|0;
  26757. $77 = (+($76|0));
  26758. $78 = $75 / $77;
  26759. _rlTexCoord2f($71,$78);
  26760. $79 = ((($2)) + 8|0);
  26761. $80 = HEAP32[$79>>2]|0;
  26762. $81 = (+($80|0));
  26763. $82 = HEAP32[$62>>2]|0;
  26764. $83 = (+($82|0));
  26765. _rlVertex2f($81,$83);
  26766. $84 = HEAP32[$1>>2]|0;
  26767. $85 = HEAP32[$8>>2]|0;
  26768. $86 = (($85) + ($84))|0;
  26769. $87 = (+($86|0));
  26770. $88 = HEAP32[$39>>2]|0;
  26771. $89 = (+($88|0));
  26772. $90 = $87 / $89;
  26773. $91 = HEAP32[$43>>2]|0;
  26774. $92 = (+($91|0));
  26775. $93 = HEAP32[$46>>2]|0;
  26776. $94 = (+($93|0));
  26777. $95 = $92 / $94;
  26778. _rlTexCoord2f($90,$95);
  26779. $96 = HEAP32[$79>>2]|0;
  26780. $97 = (+($96|0));
  26781. _rlVertex2f($97,0.0);
  26782. _rlEnd();
  26783. _rlPopMatrix();
  26784. _rlDisableTexture();
  26785. return;
  26786. }
  26787. function _DrawText($0,$1,$2,$3,$4) {
  26788. $0 = $0|0;
  26789. $1 = $1|0;
  26790. $2 = $2|0;
  26791. $3 = $3|0;
  26792. $4 = $4|0;
  26793. 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;
  26794. sp = STACKTOP;
  26795. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  26796. $$byval_copy2 = sp + 112|0;
  26797. $$byval_copy1 = sp + 104|0;
  26798. $$byval_copy = sp + 72|0;
  26799. $5 = sp + 32|0;
  26800. $6 = sp + 64|0;
  26801. $7 = sp;
  26802. _GetDefaultFont($5);
  26803. $8 = HEAP32[$5>>2]|0;
  26804. $9 = ($8|0)==(0);
  26805. if ($9) {
  26806. STACKTOP = sp;return;
  26807. }
  26808. $10 = (+($1|0));
  26809. HEAPF32[$6>>2] = $10;
  26810. $11 = ((($6)) + 4|0);
  26811. $12 = (+($2|0));
  26812. HEAPF32[$11>>2] = $12;
  26813. $13 = ($3|0)>(10);
  26814. $$ = $13 ? $3 : 10;
  26815. $14 = (($$>>>0) / 10)&-1;
  26816. _GetDefaultFont($7);
  26817. $15 = (+($$|0));
  26818. ;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;
  26819. ;HEAP32[$$byval_copy1>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$6+4>>2]|0;
  26820. ;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;
  26821. _DrawTextEx($$byval_copy,$0,$$byval_copy1,$15,$14,$$byval_copy2);
  26822. STACKTOP = sp;return;
  26823. }
  26824. function _DrawTextEx($0,$1,$2,$3,$4,$5) {
  26825. $0 = $0|0;
  26826. $1 = $1|0;
  26827. $2 = $2|0;
  26828. $3 = +$3;
  26829. $4 = $4|0;
  26830. $5 = $5|0;
  26831. 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;
  26832. var $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0.0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0.0, $28 = 0.0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0;
  26833. 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;
  26834. 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;
  26835. 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;
  26836. sp = STACKTOP;
  26837. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  26838. $$byval_copy5 = sp + 88|0;
  26839. $$byval_copy4 = sp + 80|0;
  26840. $$byval_copy3 = sp + 64|0;
  26841. $$byval_copy2 = sp + 48|0;
  26842. $$byval_copy1 = sp + 24|0;
  26843. $6 = sp + 8|0;
  26844. $7 = sp;
  26845. $8 = (_strlen($1)|0);
  26846. $9 = ((($0)) + 20|0);
  26847. $10 = HEAP32[$9>>2]|0;
  26848. $11 = (+($10|0));
  26849. $12 = $3 / $11;
  26850. $13 = ($8|0)>(0);
  26851. if (!($13)) {
  26852. STACKTOP = sp;return;
  26853. }
  26854. $14 = ((($0)) + 28|0);
  26855. $15 = +HEAPF32[$2>>2];
  26856. $16 = ((($6)) + 4|0);
  26857. $17 = ((($2)) + 4|0);
  26858. $18 = ((($6)) + 8|0);
  26859. $19 = ((($6)) + 12|0);
  26860. $20 = ((($7)) + 4|0);
  26861. $21 = (+($4|0));
  26862. $$04954 = 0;$$05153 = 0;$$055 = 0;
  26863. while(1) {
  26864. $22 = (($1) + ($$055)|0);
  26865. $23 = HEAP8[$22>>0]|0;
  26866. switch ($23<<24>>24) {
  26867. case 10: {
  26868. $24 = HEAP32[$9>>2]|0;
  26869. $25 = (($24|0) / 2)&-1;
  26870. $26 = (($25) + ($24))|0;
  26871. $27 = (+($26|0));
  26872. $28 = $12 * $27;
  26873. $29 = (~~(($28)));
  26874. $30 = (($29) + ($$05153))|0;
  26875. $$150 = 0;$$152 = $30;$$2 = $$055;
  26876. break;
  26877. }
  26878. case -62: {
  26879. $31 = (($$055) + 1)|0;
  26880. $32 = (($1) + ($31)|0);
  26881. $33 = HEAP8[$32>>0]|0;
  26882. $34 = $33&255;
  26883. $$1 = $31;$$sink = $34;
  26884. label = 9;
  26885. break;
  26886. }
  26887. case -61: {
  26888. $35 = (($$055) + 1)|0;
  26889. $36 = (($1) + ($35)|0);
  26890. $37 = HEAP8[$36>>0]|0;
  26891. $38 = $37&255;
  26892. $39 = (($38) + 64)|0;
  26893. $$1 = $35;$$sink = $39;
  26894. label = 9;
  26895. break;
  26896. }
  26897. default: {
  26898. $40 = $23 << 24 >> 24;
  26899. $$1 = $$055;$$sink = $40;
  26900. label = 9;
  26901. }
  26902. }
  26903. do {
  26904. if ((label|0) == 9) {
  26905. label = 0;
  26906. ;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;
  26907. $41 = (_GetCharIndex($$byval_copy5,$$sink)|0);
  26908. $42 = HEAP32[$14>>2]|0;
  26909. $43 = (((($42) + ($41<<5)|0)) + 4|0);
  26910. $44 = (+($$04954|0));
  26911. $45 = $44 + $15;
  26912. $46 = (((($42) + ($41<<5)|0)) + 20|0);
  26913. $47 = HEAP32[$46>>2]|0;
  26914. $48 = (+($47|0));
  26915. $49 = $12 * $48;
  26916. $50 = $45 + $49;
  26917. $51 = (~~(($50)));
  26918. HEAP32[$6>>2] = $51;
  26919. $52 = +HEAPF32[$17>>2];
  26920. $53 = (+($$05153|0));
  26921. $54 = $53 + $52;
  26922. $55 = (((($42) + ($41<<5)|0)) + 24|0);
  26923. $56 = HEAP32[$55>>2]|0;
  26924. $57 = (+($56|0));
  26925. $58 = $12 * $57;
  26926. $59 = $54 + $58;
  26927. $60 = (~~(($59)));
  26928. HEAP32[$16>>2] = $60;
  26929. $61 = (((($42) + ($41<<5)|0)) + 12|0);
  26930. $62 = HEAP32[$61>>2]|0;
  26931. $63 = (+($62|0));
  26932. $64 = $12 * $63;
  26933. $65 = (~~(($64)));
  26934. HEAP32[$18>>2] = $65;
  26935. $66 = (((($42) + ($41<<5)|0)) + 16|0);
  26936. $67 = HEAP32[$66>>2]|0;
  26937. $68 = (+($67|0));
  26938. $69 = $12 * $68;
  26939. $70 = (~~(($69)));
  26940. HEAP32[$19>>2] = $70;
  26941. HEAPF32[$7>>2] = 0.0;
  26942. HEAPF32[$20>>2] = 0.0;
  26943. ;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;
  26944. ;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;
  26945. ;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;
  26946. ;HEAP32[$$byval_copy4>>2]=HEAP32[$7>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[$7+4>>2]|0;
  26947. ;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;
  26948. _DrawTexturePro($$byval_copy1,$$byval_copy2,$$byval_copy3,$$byval_copy4,0.0,$$byval_copy5);
  26949. $71 = HEAP32[$14>>2]|0;
  26950. $72 = (((($71) + ($41<<5)|0)) + 28|0);
  26951. $73 = HEAP32[$72>>2]|0;
  26952. $74 = ($73|0)==(0);
  26953. if ($74) {
  26954. $75 = (((($71) + ($41<<5)|0)) + 12|0);
  26955. $76 = HEAP32[$75>>2]|0;
  26956. $77 = (+($76|0));
  26957. $78 = $12 * $77;
  26958. $79 = $21 + $78;
  26959. $80 = (~~(($79)));
  26960. $81 = (($80) + ($$04954))|0;
  26961. $$150 = $81;$$152 = $$05153;$$2 = $$1;
  26962. break;
  26963. } else {
  26964. $82 = (+($73|0));
  26965. $83 = $12 * $82;
  26966. $84 = $21 + $83;
  26967. $85 = (~~(($84)));
  26968. $86 = (($85) + ($$04954))|0;
  26969. $$150 = $86;$$152 = $$05153;$$2 = $$1;
  26970. break;
  26971. }
  26972. }
  26973. } while(0);
  26974. $87 = (($$2) + 1)|0;
  26975. $88 = ($87|0)<($8|0);
  26976. if ($88) {
  26977. $$04954 = $$150;$$05153 = $$152;$$055 = $87;
  26978. } else {
  26979. break;
  26980. }
  26981. }
  26982. STACKTOP = sp;return;
  26983. }
  26984. function _FormatText($0,$varargs) {
  26985. $0 = $0|0;
  26986. $varargs = $varargs|0;
  26987. var $1 = 0, label = 0, sp = 0;
  26988. sp = STACKTOP;
  26989. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  26990. $1 = sp;
  26991. HEAP32[$1>>2] = $varargs;
  26992. (_vsprintf(21895,$0,$1)|0);
  26993. STACKTOP = sp;return (21895|0);
  26994. }
  26995. function _DrawFPS($0,$1) {
  26996. $0 = $0|0;
  26997. $1 = $1|0;
  26998. 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;
  26999. sp = STACKTOP;
  27000. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  27001. $$byval_copy = sp;
  27002. $2 = sp + 4|0;
  27003. $3 = HEAP32[5006]|0;
  27004. $4 = HEAP32[928]|0;
  27005. $5 = ($3|0)<($4|0);
  27006. if ($5) {
  27007. $6 = (($3) + 1)|0;
  27008. $$sink = $6;
  27009. } else {
  27010. $7 = (_GetFPS()|0);
  27011. HEAP32[5007] = $7;
  27012. HEAP32[928] = $7;
  27013. $$sink = 0;
  27014. }
  27015. HEAP32[5006] = $$sink;
  27016. $8 = HEAP32[5007]|0;
  27017. HEAP32[$$byval_copy>>2] = $8;
  27018. (_FormatText(11695,$$byval_copy)|0);
  27019. HEAP8[$2>>0] = 0;
  27020. $9 = ((($2)) + 1|0);
  27021. HEAP8[$9>>0] = -98;
  27022. $10 = ((($2)) + 2|0);
  27023. HEAP8[$10>>0] = 47;
  27024. $11 = ((($2)) + 3|0);
  27025. HEAP8[$11>>0] = -1;
  27026. ;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;
  27027. _DrawText(21895,$0,$1,20,$$byval_copy);
  27028. STACKTOP = sp;return;
  27029. }
  27030. function _LoadDefaultMaterial($0) {
  27031. $0 = $0|0;
  27032. 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;
  27033. sp = STACKTOP;
  27034. STACKTOP = STACKTOP + 192|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(192|0);
  27035. $$sroa$09 = sp;
  27036. $1 = sp + 136|0;
  27037. $2 = sp + 116|0;
  27038. dest=$$sroa$09; stop=dest+116|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  27039. _GetDefaultShader($1);
  27040. 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));
  27041. _GetDefaultTexture($2);
  27042. $$sroa$09$56$sroa_idx = ((($$sroa$09)) + 56|0);
  27043. ;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;
  27044. 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));
  27045. $$sroa$6$0$$sroa_idx = ((($0)) + 116|0);
  27046. $$sroa$18$0$$sroa_idx15 = ((($0)) + 128|0);
  27047. ;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;
  27048. HEAPF32[$$sroa$18$0$$sroa_idx15>>2] = 100.0;
  27049. STACKTOP = sp;return;
  27050. }
  27051. function _LoadCubicmap($0,$1) {
  27052. $0 = $0|0;
  27053. $1 = $1|0;
  27054. var $$byval_copy = 0, $$byval_copy1 = 0, $2 = 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;
  27055. sp = STACKTOP;
  27056. STACKTOP = STACKTOP + 512|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(512|0);
  27057. $$byval_copy1 = sp + 500|0;
  27058. $$byval_copy = sp + 480|0;
  27059. $2 = sp + 216|0;
  27060. $3 = sp + 200|0;
  27061. $4 = sp + 136|0;
  27062. $5 = sp;
  27063. _memset(($2|0),0,264)|0;
  27064. HEAPF32[$3>>2] = 1.0;
  27065. $6 = ((($3)) + 4|0);
  27066. HEAPF32[$6>>2] = 1.5;
  27067. $7 = ((($3)) + 8|0);
  27068. HEAPF32[$7>>2] = 1.0;
  27069. ;HEAP32[$$byval_copy>>2]=HEAP32[$1>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[$$byval_copy+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[$$byval_copy+16>>2]=HEAP32[$1+16>>2]|0;
  27070. ;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;
  27071. _GenMeshCubicmap($2,$$byval_copy,$$byval_copy1);
  27072. _rlglLoadMesh($2,0);
  27073. $8 = ((($2)) + 68|0);
  27074. _MatrixIdentity($4);
  27075. dest=$8; 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));
  27076. $9 = ((($2)) + 132|0);
  27077. _LoadDefaultMaterial($5);
  27078. _memcpy(($9|0),($5|0),132)|0;
  27079. _memcpy(($0|0),($2|0),264)|0;
  27080. STACKTOP = sp;return;
  27081. }
  27082. function _GenMeshCubicmap($0,$1,$2) {
  27083. $0 = $0|0;
  27084. $1 = $1|0;
  27085. $2 = $2|0;
  27086. var $$011531184 = 0, $$011541187 = 0, $$011551186 = 0, $$01156$lcssa = 0, $$011561203 = 0, $$01159$lcssa = 0, $$011591202 = 0, $$01165$lcssa = 0, $$011651201 = 0, $$011711199 = 0, $$011721190 = 0, $$01182 = 0, $$11157$lcssa = 0, $$111571194 = 0, $$11160$lcssa = 0, $$111601193 = 0, $$11166$lcssa = 0, $$111661192 = 0, $$11183 = 0, $$21158 = 0;
  27087. var $$21161 = 0, $$21167 = 0, $$21181 = 0, $$3 = 0, $$31162 = 0, $$31168 = 0, $$4 = 0, $$41163 = 0, $$41169 = 0, $$5 = 0, $$51164 = 0, $$51170 = 0, $$byval_copy = 0, $$old1 = 0, $$old3 = 0, $$sroa$0$0$$sroa_idx = 0, $$sroa$0100$0$$sroa_idx = 0, $$sroa$0103$0$$sroa_idx = 0, $$sroa$0106$0$$sroa_idx = 0, $$sroa$0109$0$$sroa_idx = 0;
  27088. var $$sroa$0112$0$$sroa_idx = 0, $$sroa$0115$0$$sroa_idx = 0, $$sroa$0118$0$$sroa_idx = 0, $$sroa$0121$0$$sroa_idx = 0, $$sroa$0124$0$$sroa_idx = 0, $$sroa$0127$0$$sroa_idx = 0, $$sroa$0130$0$$sroa_idx = 0, $$sroa$0133$0$$sroa_idx = 0, $$sroa$0136$0$$sroa_idx = 0, $$sroa$0139$0$$sroa_idx = 0, $$sroa$0142$0$$sroa_idx = 0, $$sroa$0145$0$$sroa_idx = 0, $$sroa$0148$0$$sroa_idx = 0, $$sroa$0151$0$$sroa_idx = 0, $$sroa$0154$0$$sroa_idx = 0, $$sroa$0157$0$$sroa_idx = 0, $$sroa$0160$0$$sroa_idx = 0, $$sroa$0163$0$$sroa_idx = 0, $$sroa$0166$0$$sroa_idx = 0, $$sroa$0169$0$$sroa_idx = 0;
  27089. var $$sroa$0172$0$$sroa_idx = 0, $$sroa$0175$0$$sroa_idx = 0, $$sroa$0178$0$$sroa_idx = 0, $$sroa$0178$0$$sroa_idx179 = 0, $$sroa$0178$0$$sroa_idx181 = 0, $$sroa$0178$0$$sroa_idx183 = 0, $$sroa$0178$0$$sroa_idx185 = 0, $$sroa$0178$0$$sroa_idx187 = 0, $$sroa$0178$0$$sroa_idx189 = 0, $$sroa$0220$0$$sroa_idx = 0, $$sroa$0220$0$$sroa_idx221 = 0, $$sroa$0220$0$$sroa_idx223 = 0, $$sroa$0220$0$$sroa_idx225 = 0, $$sroa$0220$0$$sroa_idx227 = 0, $$sroa$0220$0$$sroa_idx229 = 0, $$sroa$0257$0$$sroa_idx = 0, $$sroa$0257$0$$sroa_idx258 = 0, $$sroa$0257$0$$sroa_idx260 = 0, $$sroa$0257$0$$sroa_idx262 = 0, $$sroa$0257$0$$sroa_idx264 = 0;
  27090. var $$sroa$0257$0$$sroa_idx266 = 0, $$sroa$0295$0$$sroa_idx = 0, $$sroa$0295$0$$sroa_idx296 = 0, $$sroa$0295$0$$sroa_idx298 = 0, $$sroa$0295$0$$sroa_idx300 = 0, $$sroa$0295$0$$sroa_idx302 = 0, $$sroa$0326$0$$sroa_idx = 0, $$sroa$0326$0$$sroa_idx327 = 0, $$sroa$0326$0$$sroa_idx329 = 0, $$sroa$0326$0$$sroa_idx331 = 0, $$sroa$0326$0$$sroa_idx333 = 0, $$sroa$0358$0$$sroa_idx = 0, $$sroa$0358$0$$sroa_idx359 = 0, $$sroa$0358$0$$sroa_idx361 = 0, $$sroa$0358$0$$sroa_idx363 = 0, $$sroa$0358$0$$sroa_idx365 = 0, $$sroa$0358$0$$sroa_idx367 = 0, $$sroa$0358$0$$sroa_idx369 = 0, $$sroa$037$0$$sroa_idx = 0, $$sroa$040$0$$sroa_idx = 0;
  27091. var $$sroa$0402$0$$sroa_idx = 0, $$sroa$0402$0$$sroa_idx403 = 0, $$sroa$0402$0$$sroa_idx405 = 0, $$sroa$0402$0$$sroa_idx407 = 0, $$sroa$0427$0$$sroa_idx = 0, $$sroa$0427$0$$sroa_idx428 = 0, $$sroa$0427$0$$sroa_idx430 = 0, $$sroa$0427$0$$sroa_idx432 = 0, $$sroa$0427$0$$sroa_idx434 = 0, $$sroa$0427$0$$sroa_idx436 = 0, $$sroa$0427$0$$sroa_idx438 = 0, $$sroa$0427$0$$sroa_idx440 = 0, $$sroa$043$0$$sroa_idx = 0, $$sroa$046$0$$sroa_idx = 0, $$sroa$049$0$$sroa_idx = 0, $$sroa$052$0$$sroa_idx = 0, $$sroa$055$0$$sroa_idx = 0, $$sroa$058$0$$sroa_idx = 0, $$sroa$061$0$$sroa_idx = 0, $$sroa$064$0$$sroa_idx = 0;
  27092. var $$sroa$067$0$$sroa_idx = 0, $$sroa$070$0$$sroa_idx = 0, $$sroa$073$0$$sroa_idx = 0, $$sroa$076$0$$sroa_idx = 0, $$sroa$079$0$$sroa_idx = 0, $$sroa$082$0$$sroa_idx = 0, $$sroa$085$0$$sroa_idx = 0, $$sroa$088$0$$sroa_idx = 0, $$sroa$091$0$$sroa_idx = 0, $$sroa$094$0$$sroa_idx = 0, $$sroa$097$0$$sroa_idx = 0, $$sroa$10$0$$sroa_idx192 = 0, $$sroa$10$0$$sroa_idx193 = 0, $$sroa$10$0$$sroa_idx195 = 0, $$sroa$10$0$$sroa_idx197 = 0, $$sroa$10$0$$sroa_idx199 = 0, $$sroa$10$0$$sroa_idx201 = 0, $$sroa$10$0$$sroa_idx203 = 0, $$sroa$10244$0$$sroa_idx245 = 0, $$sroa$10244$0$$sroa_idx246 = 0;
  27093. var $$sroa$10244$0$$sroa_idx248 = 0, $$sroa$10244$0$$sroa_idx250 = 0, $$sroa$10244$0$$sroa_idx252 = 0, $$sroa$10244$0$$sroa_idx254 = 0, $$sroa$10282$0$$sroa_idx283 = 0, $$sroa$10282$0$$sroa_idx284 = 0, $$sroa$10282$0$$sroa_idx286 = 0, $$sroa$10282$0$$sroa_idx288 = 0, $$sroa$10282$0$$sroa_idx290 = 0, $$sroa$10282$0$$sroa_idx292 = 0, $$sroa$10372$0$$sroa_idx373 = 0, $$sroa$10372$0$$sroa_idx374 = 0, $$sroa$10372$0$$sroa_idx376 = 0, $$sroa$10372$0$$sroa_idx378 = 0, $$sroa$10372$0$$sroa_idx380 = 0, $$sroa$10372$0$$sroa_idx382 = 0, $$sroa$10372$0$$sroa_idx384 = 0, $$sroa$11$0$$sroa_idx206 = 0, $$sroa$11$0$$sroa_idx207 = 0, $$sroa$11$0$$sroa_idx209 = 0;
  27094. var $$sroa$11$0$$sroa_idx211 = 0, $$sroa$11$0$$sroa_idx213 = 0, $$sroa$11$0$$sroa_idx215 = 0, $$sroa$11$0$$sroa_idx217 = 0, $$sroa$11387$0$$sroa_idx388 = 0, $$sroa$11387$0$$sroa_idx389 = 0, $$sroa$11387$0$$sroa_idx391 = 0, $$sroa$11387$0$$sroa_idx393 = 0, $$sroa$11387$0$$sroa_idx395 = 0, $$sroa$11387$0$$sroa_idx397 = 0, $$sroa$11387$0$$sroa_idx399 = 0, $$sroa$11443$0$$sroa_idx444 = 0, $$sroa$11443$0$$sroa_idx445 = 0, $$sroa$11443$0$$sroa_idx447 = 0, $$sroa$11443$0$$sroa_idx449 = 0, $$sroa$11443$0$$sroa_idx451 = 0, $$sroa$11443$0$$sroa_idx453 = 0, $$sroa$11443$0$$sroa_idx455 = 0, $$sroa$11443$0$$sroa_idx457 = 0, $$sroa$12$0$$sroa_idx460 = 0;
  27095. var $$sroa$12$0$$sroa_idx461 = 0, $$sroa$12$0$$sroa_idx463 = 0, $$sroa$12$0$$sroa_idx465 = 0, $$sroa$12$0$$sroa_idx467 = 0, $$sroa$12$0$$sroa_idx469 = 0, $$sroa$12$0$$sroa_idx471 = 0, $$sroa$12$0$$sroa_idx473 = 0, $$sroa$121130$0$$sroa_idx1131 = 0, $$sroa$151134$0$$sroa_idx1135 = 0, $$sroa$151137$0$$sroa_idx1138 = 0, $$sroa$19$0$$sroa_idx1142 = 0, $$sroa$191144$0$$sroa_idx1145 = 0, $$sroa$2$0$$sroa_idx36 = 0, $$sroa$20 = 0, $$sroa$20$0$$sroa_idx = 0, $$sroa$2101$0$$sroa_idx102 = 0, $$sroa$2104$0$$sroa_idx105 = 0, $$sroa$2107$0$$sroa_idx108 = 0, $$sroa$2110$0$$sroa_idx111 = 0, $$sroa$2113$0$$sroa_idx114 = 0;
  27096. var $$sroa$2116$0$$sroa_idx117 = 0, $$sroa$2119$0$$sroa_idx120 = 0, $$sroa$2122$0$$sroa_idx123 = 0, $$sroa$2125$0$$sroa_idx126 = 0, $$sroa$2128$0$$sroa_idx129 = 0, $$sroa$2131$0$$sroa_idx132 = 0, $$sroa$2134$0$$sroa_idx135 = 0, $$sroa$2137$0$$sroa_idx138 = 0, $$sroa$2140$0$$sroa_idx141 = 0, $$sroa$2143$0$$sroa_idx144 = 0, $$sroa$2146$0$$sroa_idx147 = 0, $$sroa$2149$0$$sroa_idx150 = 0, $$sroa$2152$0$$sroa_idx153 = 0, $$sroa$2155$0$$sroa_idx156 = 0, $$sroa$2158$0$$sroa_idx159 = 0, $$sroa$2161$0$$sroa_idx162 = 0, $$sroa$2164$0$$sroa_idx165 = 0, $$sroa$2167$0$$sroa_idx168 = 0, $$sroa$2170$0$$sroa_idx171 = 0, $$sroa$2173$0$$sroa_idx174 = 0;
  27097. var $$sroa$2176$0$$sroa_idx177 = 0, $$sroa$238$0$$sroa_idx39 = 0, $$sroa$241$0$$sroa_idx42 = 0, $$sroa$244$0$$sroa_idx45 = 0, $$sroa$247$0$$sroa_idx48 = 0, $$sroa$250$0$$sroa_idx51 = 0, $$sroa$253$0$$sroa_idx54 = 0, $$sroa$256$0$$sroa_idx57 = 0, $$sroa$259$0$$sroa_idx60 = 0, $$sroa$262$0$$sroa_idx63 = 0, $$sroa$265$0$$sroa_idx66 = 0, $$sroa$268$0$$sroa_idx69 = 0, $$sroa$271$0$$sroa_idx72 = 0, $$sroa$274$0$$sroa_idx75 = 0, $$sroa$277$0$$sroa_idx78 = 0, $$sroa$280$0$$sroa_idx81 = 0, $$sroa$283$0$$sroa_idx84 = 0, $$sroa$286$0$$sroa_idx87 = 0, $$sroa$289$0$$sroa_idx90 = 0, $$sroa$292$0$$sroa_idx93 = 0;
  27098. var $$sroa$295$0$$sroa_idx96 = 0, $$sroa$298$0$$sroa_idx99 = 0, $$sroa$7$0$$sroa_idx410 = 0, $$sroa$7$0$$sroa_idx411 = 0, $$sroa$7$0$$sroa_idx413 = 0, $$sroa$7$0$$sroa_idx415 = 0, $$sroa$8$0$$sroa_idx305 = 0, $$sroa$8$0$$sroa_idx306 = 0, $$sroa$8$0$$sroa_idx308 = 0, $$sroa$8$0$$sroa_idx310 = 0, $$sroa$8$0$$sroa_idx312 = 0, $$sroa$81122$0$$sroa_idx1123 = 0, $$sroa$81125$0$$sroa_idx1126 = 0, $$sroa$8336$0$$sroa_idx337 = 0, $$sroa$8336$0$$sroa_idx338 = 0, $$sroa$8336$0$$sroa_idx340 = 0, $$sroa$8336$0$$sroa_idx342 = 0, $$sroa$8336$0$$sroa_idx344 = 0, $$sroa$8418$0$$sroa_idx419 = 0, $$sroa$8418$0$$sroa_idx420 = 0;
  27099. var $$sroa$8418$0$$sroa_idx422 = 0, $$sroa$8418$0$$sroa_idx424 = 0, $$sroa$9$0$$sroa_idx232 = 0, $$sroa$9$0$$sroa_idx233 = 0, $$sroa$9$0$$sroa_idx235 = 0, $$sroa$9$0$$sroa_idx237 = 0, $$sroa$9$0$$sroa_idx239 = 0, $$sroa$9$0$$sroa_idx241 = 0, $$sroa$9269$0$$sroa_idx270 = 0, $$sroa$9269$0$$sroa_idx271 = 0, $$sroa$9269$0$$sroa_idx273 = 0, $$sroa$9269$0$$sroa_idx275 = 0, $$sroa$9269$0$$sroa_idx277 = 0, $$sroa$9269$0$$sroa_idx279 = 0, $$sroa$9315$0$$sroa_idx316 = 0, $$sroa$9315$0$$sroa_idx317 = 0, $$sroa$9315$0$$sroa_idx319 = 0, $$sroa$9315$0$$sroa_idx321 = 0, $$sroa$9315$0$$sroa_idx323 = 0, $$sroa$9347$0$$sroa_idx348 = 0;
  27100. var $$sroa$9347$0$$sroa_idx349 = 0, $$sroa$9347$0$$sroa_idx351 = 0, $$sroa$9347$0$$sroa_idx353 = 0, $$sroa$9347$0$$sroa_idx355 = 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.0, $110 = 0, $111 = 0, $112 = 0, $113 = 0;
  27101. 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;
  27102. 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;
  27103. 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;
  27104. 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;
  27105. 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, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0;
  27106. var $205 = 0, $206 = 0, $207 = 0, $208 = 0, $209 = 0, $21 = 0.0, $210 = 0, $211 = 0, $212 = 0, $213 = 0, $214 = 0, $215 = 0, $216 = 0, $217 = 0, $218 = 0, $219 = 0, $22 = 0.0, $220 = 0, $221 = 0, $222 = 0;
  27107. var $223 = 0, $224 = 0, $225 = 0, $226 = 0, $227 = 0, $228 = 0, $229 = 0, $23 = 0.0, $230 = 0, $231 = 0, $232 = 0, $233 = 0, $234 = 0, $235 = 0, $236 = 0, $237 = 0, $238 = 0, $239 = 0, $24 = 0.0, $240 = 0;
  27108. var $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, $252 = 0, $253 = 0, $254 = 0, $255 = 0, $256 = 0, $257 = 0, $258 = 0, $259 = 0;
  27109. var $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, $277 = 0;
  27110. 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;
  27111. 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, $312 = 0;
  27112. var $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, $328 = 0, $329 = 0, $33 = 0, $330 = 0;
  27113. var $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, $346 = 0, $347 = 0, $348 = 0, $349 = 0;
  27114. var $35 = 0, $350 = 0, $351 = 0, $352 = 0, $353 = 0, $354 = 0, $355 = 0, $356 = 0, $36 = 0.0, $37 = 0.0, $38 = 0.0, $39 = 0.0, $4 = 0, $40 = 0.0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0;
  27115. 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;
  27116. 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;
  27117. var $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0.0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $exitcond = 0, $exitcond1208 = 0;
  27118. var $exitcond1209 = 0, $exitcond1210 = 0, $exitcond1211 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  27119. sp = STACKTOP;
  27120. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  27121. $$byval_copy = sp + 36|0;
  27122. $$sroa$20 = sp;
  27123. dest=$$sroa$20; stop=dest+36|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  27124. ;HEAP32[$$byval_copy>>2]=HEAP32[$1>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[$$byval_copy+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[$$byval_copy+16>>2]=HEAP32[$1+16>>2]|0;
  27125. $3 = (_GetImageData($$byval_copy)|0);
  27126. $4 = ((($1)) + 4|0);
  27127. $5 = HEAP32[$4>>2]|0;
  27128. $6 = ((($1)) + 8|0);
  27129. $7 = HEAP32[$6>>2]|0;
  27130. $8 = Math_imul($7, $5)|0;
  27131. $9 = +HEAPF32[$2>>2];
  27132. $10 = ((($2)) + 8|0);
  27133. $11 = +HEAPF32[$10>>2];
  27134. $12 = ((($2)) + 4|0);
  27135. $13 = HEAP32[$12>>2]|0;
  27136. $14 = ($8*432)|0;
  27137. $15 = (_malloc($14)|0);
  27138. $16 = ($8*288)|0;
  27139. $17 = (_malloc($16)|0);
  27140. $18 = (_malloc($14)|0);
  27141. $19 = ($7|0)>(0);
  27142. if ($19) {
  27143. $20 = ($5|0)>(0);
  27144. $$011561203 = 0;$$011591202 = 0;$$011651201 = 0;$$011711199 = 0;
  27145. while(1) {
  27146. if ($20) {
  27147. $21 = (+($$011711199|0));
  27148. $22 = $21 + -0.5;
  27149. $23 = $11 * $22;
  27150. $24 = $21 + 0.5;
  27151. $25 = $11 * $24;
  27152. $26 = (($$011711199) + 1)|0;
  27153. $27 = ($$011711199|0)>(0);
  27154. $28 = (($$011711199) + -1)|0;
  27155. $$old1 = ($$011711199|0)==(0);
  27156. $$011721190 = 0;$$111571194 = $$011561203;$$111601193 = $$011591202;$$111661192 = $$011651201;
  27157. while(1) {
  27158. $36 = (+($$011721190|0));
  27159. $37 = $36 + -0.5;
  27160. $38 = $9 * $37;
  27161. $39 = $36 + 0.5;
  27162. $40 = $9 * $39;
  27163. $41 = HEAP32[$4>>2]|0;
  27164. $42 = Math_imul($41, $$011711199)|0;
  27165. $43 = (($42) + ($$011721190))|0;
  27166. $44 = (($3) + ($43<<2)|0);
  27167. $45 = HEAP8[$44>>0]|0;
  27168. $46 = ($45<<24>>24)==(-1);
  27169. do {
  27170. if ($46) {
  27171. $47 = (((($3) + ($43<<2)|0)) + 1|0);
  27172. $48 = HEAP8[$47>>0]|0;
  27173. $49 = ($48<<24>>24)==(-1);
  27174. if ($49) {
  27175. $50 = (((($3) + ($43<<2)|0)) + 2|0);
  27176. $51 = HEAP8[$50>>0]|0;
  27177. $52 = ($51<<24>>24)==(-1);
  27178. if ($52) {
  27179. $$sroa$0427$0$$sroa_idx = (($15) + (($$111571194*12)|0)|0);
  27180. HEAPF32[$$sroa$0427$0$$sroa_idx>>2] = $38;
  27181. $$sroa$11443$0$$sroa_idx444 = (((($15) + (($$111571194*12)|0)|0)) + 4|0);
  27182. HEAP32[$$sroa$11443$0$$sroa_idx444>>2] = $13;
  27183. $$sroa$12$0$$sroa_idx460 = (((($15) + (($$111571194*12)|0)|0)) + 8|0);
  27184. HEAPF32[$$sroa$12$0$$sroa_idx460>>2] = $23;
  27185. $53 = (($$111571194) + 1)|0;
  27186. $$sroa$0402$0$$sroa_idx = (($15) + (($53*12)|0)|0);
  27187. HEAPF32[$$sroa$0402$0$$sroa_idx>>2] = $38;
  27188. $$sroa$7$0$$sroa_idx410 = (((($15) + (($53*12)|0)|0)) + 4|0);
  27189. HEAP32[$$sroa$7$0$$sroa_idx410>>2] = $13;
  27190. $$sroa$8418$0$$sroa_idx419 = (((($15) + (($53*12)|0)|0)) + 8|0);
  27191. HEAPF32[$$sroa$8418$0$$sroa_idx419>>2] = $25;
  27192. $54 = (($$111571194) + 2)|0;
  27193. $$sroa$0358$0$$sroa_idx = (($15) + (($54*12)|0)|0);
  27194. HEAPF32[$$sroa$0358$0$$sroa_idx>>2] = $40;
  27195. $$sroa$10372$0$$sroa_idx373 = (((($15) + (($54*12)|0)|0)) + 4|0);
  27196. HEAP32[$$sroa$10372$0$$sroa_idx373>>2] = $13;
  27197. $$sroa$11387$0$$sroa_idx388 = (((($15) + (($54*12)|0)|0)) + 8|0);
  27198. HEAPF32[$$sroa$11387$0$$sroa_idx388>>2] = $25;
  27199. $55 = (($$111571194) + 3)|0;
  27200. $$sroa$0427$0$$sroa_idx428 = (($15) + (($55*12)|0)|0);
  27201. HEAPF32[$$sroa$0427$0$$sroa_idx428>>2] = $38;
  27202. $$sroa$11443$0$$sroa_idx445 = (((($15) + (($55*12)|0)|0)) + 4|0);
  27203. HEAP32[$$sroa$11443$0$$sroa_idx445>>2] = $13;
  27204. $$sroa$12$0$$sroa_idx461 = (((($15) + (($55*12)|0)|0)) + 8|0);
  27205. HEAPF32[$$sroa$12$0$$sroa_idx461>>2] = $23;
  27206. $56 = (($$111571194) + 4)|0;
  27207. $$sroa$0358$0$$sroa_idx359 = (($15) + (($56*12)|0)|0);
  27208. HEAPF32[$$sroa$0358$0$$sroa_idx359>>2] = $40;
  27209. $$sroa$10372$0$$sroa_idx374 = (((($15) + (($56*12)|0)|0)) + 4|0);
  27210. HEAP32[$$sroa$10372$0$$sroa_idx374>>2] = $13;
  27211. $$sroa$11387$0$$sroa_idx389 = (((($15) + (($56*12)|0)|0)) + 8|0);
  27212. HEAPF32[$$sroa$11387$0$$sroa_idx389>>2] = $25;
  27213. $57 = (($$111571194) + 5)|0;
  27214. $$sroa$0326$0$$sroa_idx = (($15) + (($57*12)|0)|0);
  27215. HEAPF32[$$sroa$0326$0$$sroa_idx>>2] = $40;
  27216. $$sroa$8336$0$$sroa_idx337 = (((($15) + (($57*12)|0)|0)) + 4|0);
  27217. HEAP32[$$sroa$8336$0$$sroa_idx337>>2] = $13;
  27218. $$sroa$9347$0$$sroa_idx348 = (((($15) + (($57*12)|0)|0)) + 8|0);
  27219. HEAPF32[$$sroa$9347$0$$sroa_idx348>>2] = $23;
  27220. $58 = (($$111571194) + 6)|0;
  27221. $59 = (($18) + (($$111661192*12)|0)|0);
  27222. ;HEAP32[$59>>2]=HEAP32[3716>>2]|0;HEAP32[$59+4>>2]=HEAP32[3716+4>>2]|0;HEAP32[$59+8>>2]=HEAP32[3716+8>>2]|0;
  27223. $60 = (($$111661192) + 1)|0;
  27224. $61 = (($18) + (($60*12)|0)|0);
  27225. ;HEAP32[$61>>2]=HEAP32[3716>>2]|0;HEAP32[$61+4>>2]=HEAP32[3716+4>>2]|0;HEAP32[$61+8>>2]=HEAP32[3716+8>>2]|0;
  27226. $62 = (($$111661192) + 2)|0;
  27227. $63 = (($18) + (($62*12)|0)|0);
  27228. ;HEAP32[$63>>2]=HEAP32[3716>>2]|0;HEAP32[$63+4>>2]=HEAP32[3716+4>>2]|0;HEAP32[$63+8>>2]=HEAP32[3716+8>>2]|0;
  27229. $64 = (($$111661192) + 3)|0;
  27230. $65 = (($18) + (($64*12)|0)|0);
  27231. ;HEAP32[$65>>2]=HEAP32[3716>>2]|0;HEAP32[$65+4>>2]=HEAP32[3716+4>>2]|0;HEAP32[$65+8>>2]=HEAP32[3716+8>>2]|0;
  27232. $66 = (($$111661192) + 4)|0;
  27233. $67 = (($18) + (($66*12)|0)|0);
  27234. ;HEAP32[$67>>2]=HEAP32[3716>>2]|0;HEAP32[$67+4>>2]=HEAP32[3716+4>>2]|0;HEAP32[$67+8>>2]=HEAP32[3716+8>>2]|0;
  27235. $68 = (($$111661192) + 5)|0;
  27236. $69 = (($18) + (($68*12)|0)|0);
  27237. ;HEAP32[$69>>2]=HEAP32[3716>>2]|0;HEAP32[$69+4>>2]=HEAP32[3716+4>>2]|0;HEAP32[$69+8>>2]=HEAP32[3716+8>>2]|0;
  27238. $70 = (($$111661192) + 6)|0;
  27239. $$sroa$0175$0$$sroa_idx = (($17) + ($$111601193<<3)|0);
  27240. HEAPF32[$$sroa$0175$0$$sroa_idx>>2] = 0.0;
  27241. $$sroa$2176$0$$sroa_idx177 = (((($17) + ($$111601193<<3)|0)) + 4|0);
  27242. HEAPF32[$$sroa$2176$0$$sroa_idx177>>2] = 0.5;
  27243. $71 = (($$111601193) + 1)|0;
  27244. $$sroa$0172$0$$sroa_idx = (($17) + ($71<<3)|0);
  27245. HEAPF32[$$sroa$0172$0$$sroa_idx>>2] = 0.0;
  27246. $$sroa$2173$0$$sroa_idx174 = (((($17) + ($71<<3)|0)) + 4|0);
  27247. HEAPF32[$$sroa$2173$0$$sroa_idx174>>2] = 1.0;
  27248. $72 = (($$111601193) + 2)|0;
  27249. $$sroa$0169$0$$sroa_idx = (($17) + ($72<<3)|0);
  27250. HEAPF32[$$sroa$0169$0$$sroa_idx>>2] = 0.5;
  27251. $$sroa$2170$0$$sroa_idx171 = (((($17) + ($72<<3)|0)) + 4|0);
  27252. HEAPF32[$$sroa$2170$0$$sroa_idx171>>2] = 1.0;
  27253. $73 = (($$111601193) + 3)|0;
  27254. $$sroa$0166$0$$sroa_idx = (($17) + ($73<<3)|0);
  27255. HEAPF32[$$sroa$0166$0$$sroa_idx>>2] = 0.0;
  27256. $$sroa$2167$0$$sroa_idx168 = (((($17) + ($73<<3)|0)) + 4|0);
  27257. HEAPF32[$$sroa$2167$0$$sroa_idx168>>2] = 0.5;
  27258. $74 = (($$111601193) + 4)|0;
  27259. $$sroa$0163$0$$sroa_idx = (($17) + ($74<<3)|0);
  27260. HEAPF32[$$sroa$0163$0$$sroa_idx>>2] = 0.5;
  27261. $$sroa$2164$0$$sroa_idx165 = (((($17) + ($74<<3)|0)) + 4|0);
  27262. HEAPF32[$$sroa$2164$0$$sroa_idx165>>2] = 1.0;
  27263. $75 = (($$111601193) + 5)|0;
  27264. $$sroa$0160$0$$sroa_idx = (($17) + ($75<<3)|0);
  27265. HEAPF32[$$sroa$0160$0$$sroa_idx>>2] = 0.5;
  27266. $$sroa$2161$0$$sroa_idx162 = (((($17) + ($75<<3)|0)) + 4|0);
  27267. HEAPF32[$$sroa$2161$0$$sroa_idx162>>2] = 0.5;
  27268. $76 = (($$111601193) + 6)|0;
  27269. $$sroa$0257$0$$sroa_idx = (($15) + (($58*12)|0)|0);
  27270. HEAPF32[$$sroa$0257$0$$sroa_idx>>2] = $38;
  27271. $$sroa$9269$0$$sroa_idx270 = (((($15) + (($58*12)|0)|0)) + 4|0);
  27272. HEAPF32[$$sroa$9269$0$$sroa_idx270>>2] = 0.0;
  27273. $$sroa$10282$0$$sroa_idx283 = (((($15) + (($58*12)|0)|0)) + 8|0);
  27274. HEAPF32[$$sroa$10282$0$$sroa_idx283>>2] = $23;
  27275. $77 = (($$111571194) + 7)|0;
  27276. $$sroa$0178$0$$sroa_idx = (($15) + (($77*12)|0)|0);
  27277. HEAPF32[$$sroa$0178$0$$sroa_idx>>2] = $40;
  27278. $$sroa$10$0$$sroa_idx192 = (((($15) + (($77*12)|0)|0)) + 4|0);
  27279. HEAPF32[$$sroa$10$0$$sroa_idx192>>2] = 0.0;
  27280. $$sroa$11$0$$sroa_idx206 = (((($15) + (($77*12)|0)|0)) + 8|0);
  27281. HEAPF32[$$sroa$11$0$$sroa_idx206>>2] = $25;
  27282. $78 = (($$111571194) + 8)|0;
  27283. $$sroa$0220$0$$sroa_idx = (($15) + (($78*12)|0)|0);
  27284. HEAPF32[$$sroa$0220$0$$sroa_idx>>2] = $38;
  27285. $$sroa$9$0$$sroa_idx232 = (((($15) + (($78*12)|0)|0)) + 4|0);
  27286. HEAPF32[$$sroa$9$0$$sroa_idx232>>2] = 0.0;
  27287. $$sroa$10244$0$$sroa_idx245 = (((($15) + (($78*12)|0)|0)) + 8|0);
  27288. HEAPF32[$$sroa$10244$0$$sroa_idx245>>2] = $25;
  27289. $79 = (($$111571194) + 9)|0;
  27290. $$sroa$0257$0$$sroa_idx258 = (($15) + (($79*12)|0)|0);
  27291. HEAPF32[$$sroa$0257$0$$sroa_idx258>>2] = $38;
  27292. $$sroa$9269$0$$sroa_idx271 = (((($15) + (($79*12)|0)|0)) + 4|0);
  27293. HEAPF32[$$sroa$9269$0$$sroa_idx271>>2] = 0.0;
  27294. $$sroa$10282$0$$sroa_idx284 = (((($15) + (($79*12)|0)|0)) + 8|0);
  27295. HEAPF32[$$sroa$10282$0$$sroa_idx284>>2] = $23;
  27296. $80 = (($$111571194) + 10)|0;
  27297. $$sroa$0295$0$$sroa_idx = (($15) + (($80*12)|0)|0);
  27298. HEAPF32[$$sroa$0295$0$$sroa_idx>>2] = $40;
  27299. $$sroa$8$0$$sroa_idx305 = (((($15) + (($80*12)|0)|0)) + 4|0);
  27300. HEAPF32[$$sroa$8$0$$sroa_idx305>>2] = 0.0;
  27301. $$sroa$9315$0$$sroa_idx316 = (((($15) + (($80*12)|0)|0)) + 8|0);
  27302. HEAPF32[$$sroa$9315$0$$sroa_idx316>>2] = $23;
  27303. $81 = (($$111571194) + 11)|0;
  27304. $$sroa$0178$0$$sroa_idx179 = (($15) + (($81*12)|0)|0);
  27305. HEAPF32[$$sroa$0178$0$$sroa_idx179>>2] = $40;
  27306. $$sroa$10$0$$sroa_idx193 = (((($15) + (($81*12)|0)|0)) + 4|0);
  27307. HEAPF32[$$sroa$10$0$$sroa_idx193>>2] = 0.0;
  27308. $$sroa$11$0$$sroa_idx207 = (((($15) + (($81*12)|0)|0)) + 8|0);
  27309. HEAPF32[$$sroa$11$0$$sroa_idx207>>2] = $25;
  27310. $82 = (($$111571194) + 12)|0;
  27311. $83 = (($18) + (($70*12)|0)|0);
  27312. ;HEAP32[$83>>2]=HEAP32[3728>>2]|0;HEAP32[$83+4>>2]=HEAP32[3728+4>>2]|0;HEAP32[$83+8>>2]=HEAP32[3728+8>>2]|0;
  27313. $84 = (($$111661192) + 7)|0;
  27314. $85 = (($18) + (($84*12)|0)|0);
  27315. ;HEAP32[$85>>2]=HEAP32[3728>>2]|0;HEAP32[$85+4>>2]=HEAP32[3728+4>>2]|0;HEAP32[$85+8>>2]=HEAP32[3728+8>>2]|0;
  27316. $86 = (($$111661192) + 8)|0;
  27317. $87 = (($18) + (($86*12)|0)|0);
  27318. ;HEAP32[$87>>2]=HEAP32[3728>>2]|0;HEAP32[$87+4>>2]=HEAP32[3728+4>>2]|0;HEAP32[$87+8>>2]=HEAP32[3728+8>>2]|0;
  27319. $88 = (($$111661192) + 9)|0;
  27320. $89 = (($18) + (($88*12)|0)|0);
  27321. ;HEAP32[$89>>2]=HEAP32[3728>>2]|0;HEAP32[$89+4>>2]=HEAP32[3728+4>>2]|0;HEAP32[$89+8>>2]=HEAP32[3728+8>>2]|0;
  27322. $90 = (($$111661192) + 10)|0;
  27323. $91 = (($18) + (($90*12)|0)|0);
  27324. ;HEAP32[$91>>2]=HEAP32[3728>>2]|0;HEAP32[$91+4>>2]=HEAP32[3728+4>>2]|0;HEAP32[$91+8>>2]=HEAP32[3728+8>>2]|0;
  27325. $92 = (($$111661192) + 11)|0;
  27326. $93 = (($18) + (($92*12)|0)|0);
  27327. ;HEAP32[$93>>2]=HEAP32[3728>>2]|0;HEAP32[$93+4>>2]=HEAP32[3728+4>>2]|0;HEAP32[$93+8>>2]=HEAP32[3728+8>>2]|0;
  27328. $94 = (($$111661192) + 12)|0;
  27329. $$sroa$0157$0$$sroa_idx = (($17) + ($76<<3)|0);
  27330. HEAPF32[$$sroa$0157$0$$sroa_idx>>2] = 1.0;
  27331. $$sroa$2158$0$$sroa_idx159 = (((($17) + ($76<<3)|0)) + 4|0);
  27332. HEAPF32[$$sroa$2158$0$$sroa_idx159>>2] = 0.5;
  27333. $95 = (($$111601193) + 7)|0;
  27334. $$sroa$0154$0$$sroa_idx = (($17) + ($95<<3)|0);
  27335. HEAPF32[$$sroa$0154$0$$sroa_idx>>2] = 0.5;
  27336. $$sroa$2155$0$$sroa_idx156 = (((($17) + ($95<<3)|0)) + 4|0);
  27337. HEAPF32[$$sroa$2155$0$$sroa_idx156>>2] = 1.0;
  27338. $96 = (($$111601193) + 8)|0;
  27339. $$sroa$0151$0$$sroa_idx = (($17) + ($96<<3)|0);
  27340. HEAPF32[$$sroa$0151$0$$sroa_idx>>2] = 1.0;
  27341. $$sroa$2152$0$$sroa_idx153 = (((($17) + ($96<<3)|0)) + 4|0);
  27342. HEAPF32[$$sroa$2152$0$$sroa_idx153>>2] = 1.0;
  27343. $97 = (($$111601193) + 9)|0;
  27344. $$sroa$0148$0$$sroa_idx = (($17) + ($97<<3)|0);
  27345. HEAPF32[$$sroa$0148$0$$sroa_idx>>2] = 1.0;
  27346. $$sroa$2149$0$$sroa_idx150 = (((($17) + ($97<<3)|0)) + 4|0);
  27347. HEAPF32[$$sroa$2149$0$$sroa_idx150>>2] = 0.5;
  27348. $98 = (($$111601193) + 10)|0;
  27349. $$sroa$0145$0$$sroa_idx = (($17) + ($98<<3)|0);
  27350. HEAPF32[$$sroa$0145$0$$sroa_idx>>2] = 0.5;
  27351. $$sroa$2146$0$$sroa_idx147 = (((($17) + ($98<<3)|0)) + 4|0);
  27352. HEAPF32[$$sroa$2146$0$$sroa_idx147>>2] = 0.5;
  27353. $99 = (($$111601193) + 11)|0;
  27354. $$sroa$0142$0$$sroa_idx = (($17) + ($99<<3)|0);
  27355. HEAPF32[$$sroa$0142$0$$sroa_idx>>2] = 0.5;
  27356. $$sroa$2143$0$$sroa_idx144 = (((($17) + ($99<<3)|0)) + 4|0);
  27357. HEAPF32[$$sroa$2143$0$$sroa_idx144>>2] = 1.0;
  27358. $100 = (($$111601193) + 12)|0;
  27359. $101 = HEAP32[$6>>2]|0;
  27360. $102 = (($101) + -1)|0;
  27361. $103 = ($$011711199|0)<($102|0);
  27362. if ($103) {
  27363. $104 = HEAP32[$4>>2]|0;
  27364. $105 = Math_imul($104, $26)|0;
  27365. $106 = (($105) + ($$011721190))|0;
  27366. $107 = (($3) + ($106<<2)|0);
  27367. $108 = HEAP8[$107>>0]|0;
  27368. $109 = ($108<<24>>24)==(0);
  27369. if ($109) {
  27370. $110 = (((($3) + ($106<<2)|0)) + 1|0);
  27371. $111 = HEAP8[$110>>0]|0;
  27372. $112 = ($111<<24>>24)==(0);
  27373. if ($112) {
  27374. $113 = (((($3) + ($106<<2)|0)) + 2|0);
  27375. $114 = HEAP8[$113>>0]|0;
  27376. $115 = ($114<<24>>24)==(0);
  27377. if ($115) {
  27378. label = 15;
  27379. } else {
  27380. label = 14;
  27381. }
  27382. } else {
  27383. label = 14;
  27384. }
  27385. } else {
  27386. label = 14;
  27387. }
  27388. } else {
  27389. label = 14;
  27390. }
  27391. if ((label|0) == 14) {
  27392. label = 0;
  27393. $116 = HEAP32[$6>>2]|0;
  27394. $117 = (($116) + -1)|0;
  27395. $118 = ($$011711199|0)==($117|0);
  27396. if ($118) {
  27397. label = 15;
  27398. } else {
  27399. $$21158 = $82;$$21161 = $100;$$21167 = $94;
  27400. }
  27401. }
  27402. if ((label|0) == 15) {
  27403. label = 0;
  27404. $$sroa$0402$0$$sroa_idx403 = (($15) + (($82*12)|0)|0);
  27405. HEAPF32[$$sroa$0402$0$$sroa_idx403>>2] = $38;
  27406. $$sroa$7$0$$sroa_idx411 = (((($15) + (($82*12)|0)|0)) + 4|0);
  27407. HEAP32[$$sroa$7$0$$sroa_idx411>>2] = $13;
  27408. $$sroa$8418$0$$sroa_idx420 = (((($15) + (($82*12)|0)|0)) + 8|0);
  27409. HEAPF32[$$sroa$8418$0$$sroa_idx420>>2] = $25;
  27410. $119 = (($$111571194) + 13)|0;
  27411. $$sroa$0220$0$$sroa_idx221 = (($15) + (($119*12)|0)|0);
  27412. HEAPF32[$$sroa$0220$0$$sroa_idx221>>2] = $38;
  27413. $$sroa$9$0$$sroa_idx233 = (((($15) + (($119*12)|0)|0)) + 4|0);
  27414. HEAPF32[$$sroa$9$0$$sroa_idx233>>2] = 0.0;
  27415. $$sroa$10244$0$$sroa_idx246 = (((($15) + (($119*12)|0)|0)) + 8|0);
  27416. HEAPF32[$$sroa$10244$0$$sroa_idx246>>2] = $25;
  27417. $120 = (($$111571194) + 14)|0;
  27418. $$sroa$0358$0$$sroa_idx361 = (($15) + (($120*12)|0)|0);
  27419. HEAPF32[$$sroa$0358$0$$sroa_idx361>>2] = $40;
  27420. $$sroa$10372$0$$sroa_idx376 = (((($15) + (($120*12)|0)|0)) + 4|0);
  27421. HEAP32[$$sroa$10372$0$$sroa_idx376>>2] = $13;
  27422. $$sroa$11387$0$$sroa_idx391 = (((($15) + (($120*12)|0)|0)) + 8|0);
  27423. HEAPF32[$$sroa$11387$0$$sroa_idx391>>2] = $25;
  27424. $121 = (($$111571194) + 15)|0;
  27425. $$sroa$0358$0$$sroa_idx363 = (($15) + (($121*12)|0)|0);
  27426. HEAPF32[$$sroa$0358$0$$sroa_idx363>>2] = $40;
  27427. $$sroa$10372$0$$sroa_idx378 = (((($15) + (($121*12)|0)|0)) + 4|0);
  27428. HEAP32[$$sroa$10372$0$$sroa_idx378>>2] = $13;
  27429. $$sroa$11387$0$$sroa_idx393 = (((($15) + (($121*12)|0)|0)) + 8|0);
  27430. HEAPF32[$$sroa$11387$0$$sroa_idx393>>2] = $25;
  27431. $122 = (($$111571194) + 16)|0;
  27432. $$sroa$0220$0$$sroa_idx223 = (($15) + (($122*12)|0)|0);
  27433. HEAPF32[$$sroa$0220$0$$sroa_idx223>>2] = $38;
  27434. $$sroa$9$0$$sroa_idx235 = (((($15) + (($122*12)|0)|0)) + 4|0);
  27435. HEAPF32[$$sroa$9$0$$sroa_idx235>>2] = 0.0;
  27436. $$sroa$10244$0$$sroa_idx248 = (((($15) + (($122*12)|0)|0)) + 8|0);
  27437. HEAPF32[$$sroa$10244$0$$sroa_idx248>>2] = $25;
  27438. $123 = (($$111571194) + 17)|0;
  27439. $$sroa$0178$0$$sroa_idx181 = (($15) + (($123*12)|0)|0);
  27440. HEAPF32[$$sroa$0178$0$$sroa_idx181>>2] = $40;
  27441. $$sroa$10$0$$sroa_idx195 = (((($15) + (($123*12)|0)|0)) + 4|0);
  27442. HEAPF32[$$sroa$10$0$$sroa_idx195>>2] = 0.0;
  27443. $$sroa$11$0$$sroa_idx209 = (((($15) + (($123*12)|0)|0)) + 8|0);
  27444. HEAPF32[$$sroa$11$0$$sroa_idx209>>2] = $25;
  27445. $124 = (($$111571194) + 18)|0;
  27446. $125 = (($18) + (($94*12)|0)|0);
  27447. ;HEAP32[$125>>2]=HEAP32[3740>>2]|0;HEAP32[$125+4>>2]=HEAP32[3740+4>>2]|0;HEAP32[$125+8>>2]=HEAP32[3740+8>>2]|0;
  27448. $126 = (($$111661192) + 13)|0;
  27449. $127 = (($18) + (($126*12)|0)|0);
  27450. ;HEAP32[$127>>2]=HEAP32[3740>>2]|0;HEAP32[$127+4>>2]=HEAP32[3740+4>>2]|0;HEAP32[$127+8>>2]=HEAP32[3740+8>>2]|0;
  27451. $128 = (($$111661192) + 14)|0;
  27452. $129 = (($18) + (($128*12)|0)|0);
  27453. ;HEAP32[$129>>2]=HEAP32[3740>>2]|0;HEAP32[$129+4>>2]=HEAP32[3740+4>>2]|0;HEAP32[$129+8>>2]=HEAP32[3740+8>>2]|0;
  27454. $130 = (($$111661192) + 15)|0;
  27455. $131 = (($18) + (($130*12)|0)|0);
  27456. ;HEAP32[$131>>2]=HEAP32[3740>>2]|0;HEAP32[$131+4>>2]=HEAP32[3740+4>>2]|0;HEAP32[$131+8>>2]=HEAP32[3740+8>>2]|0;
  27457. $132 = (($$111661192) + 16)|0;
  27458. $133 = (($18) + (($132*12)|0)|0);
  27459. ;HEAP32[$133>>2]=HEAP32[3740>>2]|0;HEAP32[$133+4>>2]=HEAP32[3740+4>>2]|0;HEAP32[$133+8>>2]=HEAP32[3740+8>>2]|0;
  27460. $134 = (($$111661192) + 17)|0;
  27461. $135 = (($18) + (($134*12)|0)|0);
  27462. ;HEAP32[$135>>2]=HEAP32[3740>>2]|0;HEAP32[$135+4>>2]=HEAP32[3740+4>>2]|0;HEAP32[$135+8>>2]=HEAP32[3740+8>>2]|0;
  27463. $136 = (($$111661192) + 18)|0;
  27464. $$sroa$0139$0$$sroa_idx = (($17) + ($100<<3)|0);
  27465. HEAPF32[$$sroa$0139$0$$sroa_idx>>2] = 0.0;
  27466. $$sroa$2140$0$$sroa_idx141 = (((($17) + ($100<<3)|0)) + 4|0);
  27467. HEAPF32[$$sroa$2140$0$$sroa_idx141>>2] = 0.0;
  27468. $137 = (($$111601193) + 13)|0;
  27469. $$sroa$0136$0$$sroa_idx = (($17) + ($137<<3)|0);
  27470. HEAPF32[$$sroa$0136$0$$sroa_idx>>2] = 0.0;
  27471. $$sroa$2137$0$$sroa_idx138 = (((($17) + ($137<<3)|0)) + 4|0);
  27472. HEAPF32[$$sroa$2137$0$$sroa_idx138>>2] = 0.5;
  27473. $138 = (($$111601193) + 14)|0;
  27474. $$sroa$0133$0$$sroa_idx = (($17) + ($138<<3)|0);
  27475. HEAPF32[$$sroa$0133$0$$sroa_idx>>2] = 0.5;
  27476. $$sroa$2134$0$$sroa_idx135 = (((($17) + ($138<<3)|0)) + 4|0);
  27477. HEAPF32[$$sroa$2134$0$$sroa_idx135>>2] = 0.0;
  27478. $139 = (($$111601193) + 15)|0;
  27479. $$sroa$0130$0$$sroa_idx = (($17) + ($139<<3)|0);
  27480. HEAPF32[$$sroa$0130$0$$sroa_idx>>2] = 0.5;
  27481. $$sroa$2131$0$$sroa_idx132 = (((($17) + ($139<<3)|0)) + 4|0);
  27482. HEAPF32[$$sroa$2131$0$$sroa_idx132>>2] = 0.0;
  27483. $140 = (($$111601193) + 16)|0;
  27484. $$sroa$0127$0$$sroa_idx = (($17) + ($140<<3)|0);
  27485. HEAPF32[$$sroa$0127$0$$sroa_idx>>2] = 0.0;
  27486. $$sroa$2128$0$$sroa_idx129 = (((($17) + ($140<<3)|0)) + 4|0);
  27487. HEAPF32[$$sroa$2128$0$$sroa_idx129>>2] = 0.5;
  27488. $141 = (($$111601193) + 17)|0;
  27489. $$sroa$0124$0$$sroa_idx = (($17) + ($141<<3)|0);
  27490. HEAPF32[$$sroa$0124$0$$sroa_idx>>2] = 0.5;
  27491. $$sroa$2125$0$$sroa_idx126 = (((($17) + ($141<<3)|0)) + 4|0);
  27492. HEAPF32[$$sroa$2125$0$$sroa_idx126>>2] = 0.5;
  27493. $142 = (($$111601193) + 18)|0;
  27494. $$21158 = $124;$$21161 = $142;$$21167 = $136;
  27495. }
  27496. if ($27) {
  27497. $143 = HEAP32[$4>>2]|0;
  27498. $144 = Math_imul($143, $28)|0;
  27499. $145 = (($144) + ($$011721190))|0;
  27500. $146 = (($3) + ($145<<2)|0);
  27501. $147 = HEAP8[$146>>0]|0;
  27502. $148 = ($147<<24>>24)==(0);
  27503. if ($148) {
  27504. $149 = (((($3) + ($145<<2)|0)) + 1|0);
  27505. $150 = HEAP8[$149>>0]|0;
  27506. $151 = ($150<<24>>24)==(0);
  27507. if ($151) {
  27508. $152 = (((($3) + ($145<<2)|0)) + 2|0);
  27509. $153 = HEAP8[$152>>0]|0;
  27510. $154 = ($153<<24>>24)==(0);
  27511. if ($154) {
  27512. label = 21;
  27513. } else {
  27514. $$3 = $$21158;$$31162 = $$21161;$$31168 = $$21167;
  27515. }
  27516. } else {
  27517. $$3 = $$21158;$$31162 = $$21161;$$31168 = $$21167;
  27518. }
  27519. } else {
  27520. $$3 = $$21158;$$31162 = $$21161;$$31168 = $$21167;
  27521. }
  27522. } else {
  27523. if ($$old1) {
  27524. label = 21;
  27525. } else {
  27526. $$3 = $$21158;$$31162 = $$21161;$$31168 = $$21167;
  27527. }
  27528. }
  27529. if ((label|0) == 21) {
  27530. label = 0;
  27531. $$sroa$0427$0$$sroa_idx430 = (($15) + (($$21158*12)|0)|0);
  27532. HEAPF32[$$sroa$0427$0$$sroa_idx430>>2] = $38;
  27533. $$sroa$11443$0$$sroa_idx447 = (((($15) + (($$21158*12)|0)|0)) + 4|0);
  27534. HEAP32[$$sroa$11443$0$$sroa_idx447>>2] = $13;
  27535. $$sroa$12$0$$sroa_idx463 = (((($15) + (($$21158*12)|0)|0)) + 8|0);
  27536. HEAPF32[$$sroa$12$0$$sroa_idx463>>2] = $23;
  27537. $155 = (($$21158) + 1)|0;
  27538. $$sroa$0295$0$$sroa_idx296 = (($15) + (($155*12)|0)|0);
  27539. HEAPF32[$$sroa$0295$0$$sroa_idx296>>2] = $40;
  27540. $$sroa$8$0$$sroa_idx306 = (((($15) + (($155*12)|0)|0)) + 4|0);
  27541. HEAPF32[$$sroa$8$0$$sroa_idx306>>2] = 0.0;
  27542. $$sroa$9315$0$$sroa_idx317 = (((($15) + (($155*12)|0)|0)) + 8|0);
  27543. HEAPF32[$$sroa$9315$0$$sroa_idx317>>2] = $23;
  27544. $156 = (($$21158) + 2)|0;
  27545. $$sroa$0257$0$$sroa_idx260 = (($15) + (($156*12)|0)|0);
  27546. HEAPF32[$$sroa$0257$0$$sroa_idx260>>2] = $38;
  27547. $$sroa$9269$0$$sroa_idx273 = (((($15) + (($156*12)|0)|0)) + 4|0);
  27548. HEAPF32[$$sroa$9269$0$$sroa_idx273>>2] = 0.0;
  27549. $$sroa$10282$0$$sroa_idx286 = (((($15) + (($156*12)|0)|0)) + 8|0);
  27550. HEAPF32[$$sroa$10282$0$$sroa_idx286>>2] = $23;
  27551. $157 = (($$21158) + 3)|0;
  27552. $$sroa$0427$0$$sroa_idx432 = (($15) + (($157*12)|0)|0);
  27553. HEAPF32[$$sroa$0427$0$$sroa_idx432>>2] = $38;
  27554. $$sroa$11443$0$$sroa_idx449 = (((($15) + (($157*12)|0)|0)) + 4|0);
  27555. HEAP32[$$sroa$11443$0$$sroa_idx449>>2] = $13;
  27556. $$sroa$12$0$$sroa_idx465 = (((($15) + (($157*12)|0)|0)) + 8|0);
  27557. HEAPF32[$$sroa$12$0$$sroa_idx465>>2] = $23;
  27558. $158 = (($$21158) + 4)|0;
  27559. $$sroa$0326$0$$sroa_idx327 = (($15) + (($158*12)|0)|0);
  27560. HEAPF32[$$sroa$0326$0$$sroa_idx327>>2] = $40;
  27561. $$sroa$8336$0$$sroa_idx338 = (((($15) + (($158*12)|0)|0)) + 4|0);
  27562. HEAP32[$$sroa$8336$0$$sroa_idx338>>2] = $13;
  27563. $$sroa$9347$0$$sroa_idx349 = (((($15) + (($158*12)|0)|0)) + 8|0);
  27564. HEAPF32[$$sroa$9347$0$$sroa_idx349>>2] = $23;
  27565. $159 = (($$21158) + 5)|0;
  27566. $$sroa$0295$0$$sroa_idx298 = (($15) + (($159*12)|0)|0);
  27567. HEAPF32[$$sroa$0295$0$$sroa_idx298>>2] = $40;
  27568. $$sroa$8$0$$sroa_idx308 = (((($15) + (($159*12)|0)|0)) + 4|0);
  27569. HEAPF32[$$sroa$8$0$$sroa_idx308>>2] = 0.0;
  27570. $$sroa$9315$0$$sroa_idx319 = (((($15) + (($159*12)|0)|0)) + 8|0);
  27571. HEAPF32[$$sroa$9315$0$$sroa_idx319>>2] = $23;
  27572. $160 = (($$21158) + 6)|0;
  27573. $161 = (($18) + (($$21167*12)|0)|0);
  27574. ;HEAP32[$161>>2]=HEAP32[3752>>2]|0;HEAP32[$161+4>>2]=HEAP32[3752+4>>2]|0;HEAP32[$161+8>>2]=HEAP32[3752+8>>2]|0;
  27575. $162 = (($$21167) + 1)|0;
  27576. $163 = (($18) + (($162*12)|0)|0);
  27577. ;HEAP32[$163>>2]=HEAP32[3752>>2]|0;HEAP32[$163+4>>2]=HEAP32[3752+4>>2]|0;HEAP32[$163+8>>2]=HEAP32[3752+8>>2]|0;
  27578. $164 = (($$21167) + 2)|0;
  27579. $165 = (($18) + (($164*12)|0)|0);
  27580. ;HEAP32[$165>>2]=HEAP32[3752>>2]|0;HEAP32[$165+4>>2]=HEAP32[3752+4>>2]|0;HEAP32[$165+8>>2]=HEAP32[3752+8>>2]|0;
  27581. $166 = (($$21167) + 3)|0;
  27582. $167 = (($18) + (($166*12)|0)|0);
  27583. ;HEAP32[$167>>2]=HEAP32[3752>>2]|0;HEAP32[$167+4>>2]=HEAP32[3752+4>>2]|0;HEAP32[$167+8>>2]=HEAP32[3752+8>>2]|0;
  27584. $168 = (($$21167) + 4)|0;
  27585. $169 = (($18) + (($168*12)|0)|0);
  27586. ;HEAP32[$169>>2]=HEAP32[3752>>2]|0;HEAP32[$169+4>>2]=HEAP32[3752+4>>2]|0;HEAP32[$169+8>>2]=HEAP32[3752+8>>2]|0;
  27587. $170 = (($$21167) + 5)|0;
  27588. $171 = (($18) + (($170*12)|0)|0);
  27589. ;HEAP32[$171>>2]=HEAP32[3752>>2]|0;HEAP32[$171+4>>2]=HEAP32[3752+4>>2]|0;HEAP32[$171+8>>2]=HEAP32[3752+8>>2]|0;
  27590. $172 = (($$21167) + 6)|0;
  27591. $$sroa$0121$0$$sroa_idx = (($17) + ($$21161<<3)|0);
  27592. HEAPF32[$$sroa$0121$0$$sroa_idx>>2] = 1.0;
  27593. $$sroa$2122$0$$sroa_idx123 = (((($17) + ($$21161<<3)|0)) + 4|0);
  27594. HEAPF32[$$sroa$2122$0$$sroa_idx123>>2] = 0.0;
  27595. $173 = (($$21161) + 1)|0;
  27596. $$sroa$0118$0$$sroa_idx = (($17) + ($173<<3)|0);
  27597. HEAPF32[$$sroa$0118$0$$sroa_idx>>2] = 0.5;
  27598. $$sroa$2119$0$$sroa_idx120 = (((($17) + ($173<<3)|0)) + 4|0);
  27599. HEAPF32[$$sroa$2119$0$$sroa_idx120>>2] = 0.5;
  27600. $174 = (($$21161) + 2)|0;
  27601. $$sroa$0115$0$$sroa_idx = (($17) + ($174<<3)|0);
  27602. HEAPF32[$$sroa$0115$0$$sroa_idx>>2] = 1.0;
  27603. $$sroa$2116$0$$sroa_idx117 = (((($17) + ($174<<3)|0)) + 4|0);
  27604. HEAPF32[$$sroa$2116$0$$sroa_idx117>>2] = 0.5;
  27605. $175 = (($$21161) + 3)|0;
  27606. $$sroa$0112$0$$sroa_idx = (($17) + ($175<<3)|0);
  27607. HEAPF32[$$sroa$0112$0$$sroa_idx>>2] = 1.0;
  27608. $$sroa$2113$0$$sroa_idx114 = (((($17) + ($175<<3)|0)) + 4|0);
  27609. HEAPF32[$$sroa$2113$0$$sroa_idx114>>2] = 0.0;
  27610. $176 = (($$21161) + 4)|0;
  27611. $$sroa$0109$0$$sroa_idx = (($17) + ($176<<3)|0);
  27612. HEAPF32[$$sroa$0109$0$$sroa_idx>>2] = 0.5;
  27613. $$sroa$2110$0$$sroa_idx111 = (((($17) + ($176<<3)|0)) + 4|0);
  27614. HEAPF32[$$sroa$2110$0$$sroa_idx111>>2] = 0.0;
  27615. $177 = (($$21161) + 5)|0;
  27616. $$sroa$0106$0$$sroa_idx = (($17) + ($177<<3)|0);
  27617. HEAPF32[$$sroa$0106$0$$sroa_idx>>2] = 0.5;
  27618. $$sroa$2107$0$$sroa_idx108 = (((($17) + ($177<<3)|0)) + 4|0);
  27619. HEAPF32[$$sroa$2107$0$$sroa_idx108>>2] = 0.5;
  27620. $178 = (($$21161) + 6)|0;
  27621. $$3 = $160;$$31162 = $178;$$31168 = $172;
  27622. }
  27623. $179 = HEAP32[$4>>2]|0;
  27624. $180 = (($179) + -1)|0;
  27625. $181 = ($$011721190|0)<($180|0);
  27626. if ($181) {
  27627. $182 = Math_imul($179, $$011711199)|0;
  27628. $183 = (($$011721190) + 1)|0;
  27629. $184 = (($183) + ($182))|0;
  27630. $185 = (($3) + ($184<<2)|0);
  27631. $186 = HEAP8[$185>>0]|0;
  27632. $187 = ($186<<24>>24)==(0);
  27633. if ($187) {
  27634. $188 = (((($3) + ($184<<2)|0)) + 1|0);
  27635. $189 = HEAP8[$188>>0]|0;
  27636. $190 = ($189<<24>>24)==(0);
  27637. if ($190) {
  27638. $191 = (((($3) + ($184<<2)|0)) + 2|0);
  27639. $192 = HEAP8[$191>>0]|0;
  27640. $193 = ($192<<24>>24)==(0);
  27641. if ($193) {
  27642. label = 27;
  27643. } else {
  27644. label = 26;
  27645. }
  27646. } else {
  27647. label = 26;
  27648. }
  27649. } else {
  27650. label = 26;
  27651. }
  27652. } else {
  27653. label = 26;
  27654. }
  27655. if ((label|0) == 26) {
  27656. label = 0;
  27657. $194 = HEAP32[$4>>2]|0;
  27658. $195 = (($194) + -1)|0;
  27659. $196 = ($$011721190|0)==($195|0);
  27660. if ($196) {
  27661. label = 27;
  27662. } else {
  27663. $$4 = $$3;$$41163 = $$31162;$$41169 = $$31168;
  27664. }
  27665. }
  27666. if ((label|0) == 27) {
  27667. label = 0;
  27668. $$sroa$0358$0$$sroa_idx365 = (($15) + (($$3*12)|0)|0);
  27669. HEAPF32[$$sroa$0358$0$$sroa_idx365>>2] = $40;
  27670. $$sroa$10372$0$$sroa_idx380 = (((($15) + (($$3*12)|0)|0)) + 4|0);
  27671. HEAP32[$$sroa$10372$0$$sroa_idx380>>2] = $13;
  27672. $$sroa$11387$0$$sroa_idx395 = (((($15) + (($$3*12)|0)|0)) + 8|0);
  27673. HEAPF32[$$sroa$11387$0$$sroa_idx395>>2] = $25;
  27674. $197 = (($$3) + 1)|0;
  27675. $$sroa$0178$0$$sroa_idx183 = (($15) + (($197*12)|0)|0);
  27676. HEAPF32[$$sroa$0178$0$$sroa_idx183>>2] = $40;
  27677. $$sroa$10$0$$sroa_idx197 = (((($15) + (($197*12)|0)|0)) + 4|0);
  27678. HEAPF32[$$sroa$10$0$$sroa_idx197>>2] = 0.0;
  27679. $$sroa$11$0$$sroa_idx211 = (((($15) + (($197*12)|0)|0)) + 8|0);
  27680. HEAPF32[$$sroa$11$0$$sroa_idx211>>2] = $25;
  27681. $198 = (($$3) + 2)|0;
  27682. $$sroa$0326$0$$sroa_idx329 = (($15) + (($198*12)|0)|0);
  27683. HEAPF32[$$sroa$0326$0$$sroa_idx329>>2] = $40;
  27684. $$sroa$8336$0$$sroa_idx340 = (((($15) + (($198*12)|0)|0)) + 4|0);
  27685. HEAP32[$$sroa$8336$0$$sroa_idx340>>2] = $13;
  27686. $$sroa$9347$0$$sroa_idx351 = (((($15) + (($198*12)|0)|0)) + 8|0);
  27687. HEAPF32[$$sroa$9347$0$$sroa_idx351>>2] = $23;
  27688. $199 = (($$3) + 3)|0;
  27689. $$sroa$0326$0$$sroa_idx331 = (($15) + (($199*12)|0)|0);
  27690. HEAPF32[$$sroa$0326$0$$sroa_idx331>>2] = $40;
  27691. $$sroa$8336$0$$sroa_idx342 = (((($15) + (($199*12)|0)|0)) + 4|0);
  27692. HEAP32[$$sroa$8336$0$$sroa_idx342>>2] = $13;
  27693. $$sroa$9347$0$$sroa_idx353 = (((($15) + (($199*12)|0)|0)) + 8|0);
  27694. HEAPF32[$$sroa$9347$0$$sroa_idx353>>2] = $23;
  27695. $200 = (($$3) + 4)|0;
  27696. $$sroa$0178$0$$sroa_idx185 = (($15) + (($200*12)|0)|0);
  27697. HEAPF32[$$sroa$0178$0$$sroa_idx185>>2] = $40;
  27698. $$sroa$10$0$$sroa_idx199 = (((($15) + (($200*12)|0)|0)) + 4|0);
  27699. HEAPF32[$$sroa$10$0$$sroa_idx199>>2] = 0.0;
  27700. $$sroa$11$0$$sroa_idx213 = (((($15) + (($200*12)|0)|0)) + 8|0);
  27701. HEAPF32[$$sroa$11$0$$sroa_idx213>>2] = $25;
  27702. $201 = (($$3) + 5)|0;
  27703. $$sroa$0295$0$$sroa_idx300 = (($15) + (($201*12)|0)|0);
  27704. HEAPF32[$$sroa$0295$0$$sroa_idx300>>2] = $40;
  27705. $$sroa$8$0$$sroa_idx310 = (((($15) + (($201*12)|0)|0)) + 4|0);
  27706. HEAPF32[$$sroa$8$0$$sroa_idx310>>2] = 0.0;
  27707. $$sroa$9315$0$$sroa_idx321 = (((($15) + (($201*12)|0)|0)) + 8|0);
  27708. HEAPF32[$$sroa$9315$0$$sroa_idx321>>2] = $23;
  27709. $202 = (($$3) + 6)|0;
  27710. $203 = (($18) + (($$31168*12)|0)|0);
  27711. ;HEAP32[$203>>2]=HEAP32[3764>>2]|0;HEAP32[$203+4>>2]=HEAP32[3764+4>>2]|0;HEAP32[$203+8>>2]=HEAP32[3764+8>>2]|0;
  27712. $204 = (($$31168) + 1)|0;
  27713. $205 = (($18) + (($204*12)|0)|0);
  27714. ;HEAP32[$205>>2]=HEAP32[3764>>2]|0;HEAP32[$205+4>>2]=HEAP32[3764+4>>2]|0;HEAP32[$205+8>>2]=HEAP32[3764+8>>2]|0;
  27715. $206 = (($$31168) + 2)|0;
  27716. $207 = (($18) + (($206*12)|0)|0);
  27717. ;HEAP32[$207>>2]=HEAP32[3764>>2]|0;HEAP32[$207+4>>2]=HEAP32[3764+4>>2]|0;HEAP32[$207+8>>2]=HEAP32[3764+8>>2]|0;
  27718. $208 = (($$31168) + 3)|0;
  27719. $209 = (($18) + (($208*12)|0)|0);
  27720. ;HEAP32[$209>>2]=HEAP32[3764>>2]|0;HEAP32[$209+4>>2]=HEAP32[3764+4>>2]|0;HEAP32[$209+8>>2]=HEAP32[3764+8>>2]|0;
  27721. $210 = (($$31168) + 4)|0;
  27722. $211 = (($18) + (($210*12)|0)|0);
  27723. ;HEAP32[$211>>2]=HEAP32[3764>>2]|0;HEAP32[$211+4>>2]=HEAP32[3764+4>>2]|0;HEAP32[$211+8>>2]=HEAP32[3764+8>>2]|0;
  27724. $212 = (($$31168) + 5)|0;
  27725. $213 = (($18) + (($212*12)|0)|0);
  27726. ;HEAP32[$213>>2]=HEAP32[3764>>2]|0;HEAP32[$213+4>>2]=HEAP32[3764+4>>2]|0;HEAP32[$213+8>>2]=HEAP32[3764+8>>2]|0;
  27727. $214 = (($$31168) + 6)|0;
  27728. $$sroa$0103$0$$sroa_idx = (($17) + ($$31162<<3)|0);
  27729. HEAPF32[$$sroa$0103$0$$sroa_idx>>2] = 0.0;
  27730. $$sroa$2104$0$$sroa_idx105 = (((($17) + ($$31162<<3)|0)) + 4|0);
  27731. HEAPF32[$$sroa$2104$0$$sroa_idx105>>2] = 0.0;
  27732. $215 = (($$31162) + 1)|0;
  27733. $$sroa$0100$0$$sroa_idx = (($17) + ($215<<3)|0);
  27734. HEAPF32[$$sroa$0100$0$$sroa_idx>>2] = 0.0;
  27735. $$sroa$2101$0$$sroa_idx102 = (((($17) + ($215<<3)|0)) + 4|0);
  27736. HEAPF32[$$sroa$2101$0$$sroa_idx102>>2] = 0.5;
  27737. $216 = (($$31162) + 2)|0;
  27738. $$sroa$097$0$$sroa_idx = (($17) + ($216<<3)|0);
  27739. HEAPF32[$$sroa$097$0$$sroa_idx>>2] = 0.5;
  27740. $$sroa$298$0$$sroa_idx99 = (((($17) + ($216<<3)|0)) + 4|0);
  27741. HEAPF32[$$sroa$298$0$$sroa_idx99>>2] = 0.0;
  27742. $217 = (($$31162) + 3)|0;
  27743. $$sroa$094$0$$sroa_idx = (($17) + ($217<<3)|0);
  27744. HEAPF32[$$sroa$094$0$$sroa_idx>>2] = 0.5;
  27745. $$sroa$295$0$$sroa_idx96 = (((($17) + ($217<<3)|0)) + 4|0);
  27746. HEAPF32[$$sroa$295$0$$sroa_idx96>>2] = 0.0;
  27747. $218 = (($$31162) + 4)|0;
  27748. $$sroa$091$0$$sroa_idx = (($17) + ($218<<3)|0);
  27749. HEAPF32[$$sroa$091$0$$sroa_idx>>2] = 0.0;
  27750. $$sroa$292$0$$sroa_idx93 = (((($17) + ($218<<3)|0)) + 4|0);
  27751. HEAPF32[$$sroa$292$0$$sroa_idx93>>2] = 0.5;
  27752. $219 = (($$31162) + 5)|0;
  27753. $$sroa$088$0$$sroa_idx = (($17) + ($219<<3)|0);
  27754. HEAPF32[$$sroa$088$0$$sroa_idx>>2] = 0.5;
  27755. $$sroa$289$0$$sroa_idx90 = (((($17) + ($219<<3)|0)) + 4|0);
  27756. HEAPF32[$$sroa$289$0$$sroa_idx90>>2] = 0.5;
  27757. $220 = (($$31162) + 6)|0;
  27758. $$4 = $202;$$41163 = $220;$$41169 = $214;
  27759. }
  27760. $221 = ($$011721190|0)>(0);
  27761. if ($221) {
  27762. $222 = HEAP32[$4>>2]|0;
  27763. $223 = Math_imul($222, $$011711199)|0;
  27764. $224 = (($$011721190) + -1)|0;
  27765. $225 = (($224) + ($223))|0;
  27766. $226 = (($3) + ($225<<2)|0);
  27767. $227 = HEAP8[$226>>0]|0;
  27768. $228 = ($227<<24>>24)==(0);
  27769. if (!($228)) {
  27770. $$5 = $$4;$$51164 = $$41163;$$51170 = $$41169;
  27771. break;
  27772. }
  27773. $229 = (((($3) + ($225<<2)|0)) + 1|0);
  27774. $230 = HEAP8[$229>>0]|0;
  27775. $231 = ($230<<24>>24)==(0);
  27776. if (!($231)) {
  27777. $$5 = $$4;$$51164 = $$41163;$$51170 = $$41169;
  27778. break;
  27779. }
  27780. $232 = (((($3) + ($225<<2)|0)) + 2|0);
  27781. $233 = HEAP8[$232>>0]|0;
  27782. $234 = ($233<<24>>24)==(0);
  27783. if (!($234)) {
  27784. $$5 = $$4;$$51164 = $$41163;$$51170 = $$41169;
  27785. break;
  27786. }
  27787. } else {
  27788. $$old3 = ($$011721190|0)==(0);
  27789. if (!($$old3)) {
  27790. $$5 = $$4;$$51164 = $$41163;$$51170 = $$41169;
  27791. break;
  27792. }
  27793. }
  27794. $$sroa$0427$0$$sroa_idx434 = (($15) + (($$4*12)|0)|0);
  27795. HEAPF32[$$sroa$0427$0$$sroa_idx434>>2] = $38;
  27796. $$sroa$11443$0$$sroa_idx451 = (((($15) + (($$4*12)|0)|0)) + 4|0);
  27797. HEAP32[$$sroa$11443$0$$sroa_idx451>>2] = $13;
  27798. $$sroa$12$0$$sroa_idx467 = (((($15) + (($$4*12)|0)|0)) + 8|0);
  27799. HEAPF32[$$sroa$12$0$$sroa_idx467>>2] = $23;
  27800. $235 = (($$4) + 1)|0;
  27801. $$sroa$0220$0$$sroa_idx225 = (($15) + (($235*12)|0)|0);
  27802. HEAPF32[$$sroa$0220$0$$sroa_idx225>>2] = $38;
  27803. $$sroa$9$0$$sroa_idx237 = (((($15) + (($235*12)|0)|0)) + 4|0);
  27804. HEAPF32[$$sroa$9$0$$sroa_idx237>>2] = 0.0;
  27805. $$sroa$10244$0$$sroa_idx250 = (((($15) + (($235*12)|0)|0)) + 8|0);
  27806. HEAPF32[$$sroa$10244$0$$sroa_idx250>>2] = $25;
  27807. $236 = (($$4) + 2)|0;
  27808. $$sroa$0402$0$$sroa_idx405 = (($15) + (($236*12)|0)|0);
  27809. HEAPF32[$$sroa$0402$0$$sroa_idx405>>2] = $38;
  27810. $$sroa$7$0$$sroa_idx413 = (((($15) + (($236*12)|0)|0)) + 4|0);
  27811. HEAP32[$$sroa$7$0$$sroa_idx413>>2] = $13;
  27812. $$sroa$8418$0$$sroa_idx422 = (((($15) + (($236*12)|0)|0)) + 8|0);
  27813. HEAPF32[$$sroa$8418$0$$sroa_idx422>>2] = $25;
  27814. $237 = (($$4) + 3)|0;
  27815. $$sroa$0427$0$$sroa_idx436 = (($15) + (($237*12)|0)|0);
  27816. HEAPF32[$$sroa$0427$0$$sroa_idx436>>2] = $38;
  27817. $$sroa$11443$0$$sroa_idx453 = (((($15) + (($237*12)|0)|0)) + 4|0);
  27818. HEAP32[$$sroa$11443$0$$sroa_idx453>>2] = $13;
  27819. $$sroa$12$0$$sroa_idx469 = (((($15) + (($237*12)|0)|0)) + 8|0);
  27820. HEAPF32[$$sroa$12$0$$sroa_idx469>>2] = $23;
  27821. $238 = (($$4) + 4)|0;
  27822. $$sroa$0257$0$$sroa_idx262 = (($15) + (($238*12)|0)|0);
  27823. HEAPF32[$$sroa$0257$0$$sroa_idx262>>2] = $38;
  27824. $$sroa$9269$0$$sroa_idx275 = (((($15) + (($238*12)|0)|0)) + 4|0);
  27825. HEAPF32[$$sroa$9269$0$$sroa_idx275>>2] = 0.0;
  27826. $$sroa$10282$0$$sroa_idx288 = (((($15) + (($238*12)|0)|0)) + 8|0);
  27827. HEAPF32[$$sroa$10282$0$$sroa_idx288>>2] = $23;
  27828. $239 = (($$4) + 5)|0;
  27829. $$sroa$0220$0$$sroa_idx227 = (($15) + (($239*12)|0)|0);
  27830. HEAPF32[$$sroa$0220$0$$sroa_idx227>>2] = $38;
  27831. $$sroa$9$0$$sroa_idx239 = (((($15) + (($239*12)|0)|0)) + 4|0);
  27832. HEAPF32[$$sroa$9$0$$sroa_idx239>>2] = 0.0;
  27833. $$sroa$10244$0$$sroa_idx252 = (((($15) + (($239*12)|0)|0)) + 8|0);
  27834. HEAPF32[$$sroa$10244$0$$sroa_idx252>>2] = $25;
  27835. $240 = (($$4) + 6)|0;
  27836. $241 = (($18) + (($$41169*12)|0)|0);
  27837. ;HEAP32[$241>>2]=HEAP32[3776>>2]|0;HEAP32[$241+4>>2]=HEAP32[3776+4>>2]|0;HEAP32[$241+8>>2]=HEAP32[3776+8>>2]|0;
  27838. $242 = (($$41169) + 1)|0;
  27839. $243 = (($18) + (($242*12)|0)|0);
  27840. ;HEAP32[$243>>2]=HEAP32[3776>>2]|0;HEAP32[$243+4>>2]=HEAP32[3776+4>>2]|0;HEAP32[$243+8>>2]=HEAP32[3776+8>>2]|0;
  27841. $244 = (($$41169) + 2)|0;
  27842. $245 = (($18) + (($244*12)|0)|0);
  27843. ;HEAP32[$245>>2]=HEAP32[3776>>2]|0;HEAP32[$245+4>>2]=HEAP32[3776+4>>2]|0;HEAP32[$245+8>>2]=HEAP32[3776+8>>2]|0;
  27844. $246 = (($$41169) + 3)|0;
  27845. $247 = (($18) + (($246*12)|0)|0);
  27846. ;HEAP32[$247>>2]=HEAP32[3776>>2]|0;HEAP32[$247+4>>2]=HEAP32[3776+4>>2]|0;HEAP32[$247+8>>2]=HEAP32[3776+8>>2]|0;
  27847. $248 = (($$41169) + 4)|0;
  27848. $249 = (($18) + (($248*12)|0)|0);
  27849. ;HEAP32[$249>>2]=HEAP32[3776>>2]|0;HEAP32[$249+4>>2]=HEAP32[3776+4>>2]|0;HEAP32[$249+8>>2]=HEAP32[3776+8>>2]|0;
  27850. $250 = (($$41169) + 5)|0;
  27851. $251 = (($18) + (($250*12)|0)|0);
  27852. ;HEAP32[$251>>2]=HEAP32[3776>>2]|0;HEAP32[$251+4>>2]=HEAP32[3776+4>>2]|0;HEAP32[$251+8>>2]=HEAP32[3776+8>>2]|0;
  27853. $252 = (($$41169) + 6)|0;
  27854. $$sroa$085$0$$sroa_idx = (($17) + ($$41163<<3)|0);
  27855. HEAPF32[$$sroa$085$0$$sroa_idx>>2] = 0.5;
  27856. $$sroa$286$0$$sroa_idx87 = (((($17) + ($$41163<<3)|0)) + 4|0);
  27857. HEAPF32[$$sroa$286$0$$sroa_idx87>>2] = 0.0;
  27858. $253 = (($$41163) + 1)|0;
  27859. $$sroa$082$0$$sroa_idx = (($17) + ($253<<3)|0);
  27860. HEAPF32[$$sroa$082$0$$sroa_idx>>2] = 1.0;
  27861. $$sroa$283$0$$sroa_idx84 = (((($17) + ($253<<3)|0)) + 4|0);
  27862. HEAPF32[$$sroa$283$0$$sroa_idx84>>2] = 0.5;
  27863. $254 = (($$41163) + 2)|0;
  27864. $$sroa$079$0$$sroa_idx = (($17) + ($254<<3)|0);
  27865. HEAPF32[$$sroa$079$0$$sroa_idx>>2] = 1.0;
  27866. $$sroa$280$0$$sroa_idx81 = (((($17) + ($254<<3)|0)) + 4|0);
  27867. HEAPF32[$$sroa$280$0$$sroa_idx81>>2] = 0.0;
  27868. $255 = (($$41163) + 3)|0;
  27869. $$sroa$076$0$$sroa_idx = (($17) + ($255<<3)|0);
  27870. HEAPF32[$$sroa$076$0$$sroa_idx>>2] = 0.5;
  27871. $$sroa$277$0$$sroa_idx78 = (((($17) + ($255<<3)|0)) + 4|0);
  27872. HEAPF32[$$sroa$277$0$$sroa_idx78>>2] = 0.0;
  27873. $256 = (($$41163) + 4)|0;
  27874. $$sroa$073$0$$sroa_idx = (($17) + ($256<<3)|0);
  27875. HEAPF32[$$sroa$073$0$$sroa_idx>>2] = 0.5;
  27876. $$sroa$274$0$$sroa_idx75 = (((($17) + ($256<<3)|0)) + 4|0);
  27877. HEAPF32[$$sroa$274$0$$sroa_idx75>>2] = 0.5;
  27878. $257 = (($$41163) + 5)|0;
  27879. $$sroa$070$0$$sroa_idx = (($17) + ($257<<3)|0);
  27880. HEAPF32[$$sroa$070$0$$sroa_idx>>2] = 1.0;
  27881. $$sroa$271$0$$sroa_idx72 = (((($17) + ($257<<3)|0)) + 4|0);
  27882. HEAPF32[$$sroa$271$0$$sroa_idx72>>2] = 0.5;
  27883. $258 = (($$41163) + 6)|0;
  27884. $$5 = $240;$$51164 = $258;$$51170 = $252;
  27885. } else {
  27886. label = 34;
  27887. }
  27888. } else {
  27889. label = 34;
  27890. }
  27891. } else {
  27892. label = 34;
  27893. }
  27894. } while(0);
  27895. if ((label|0) == 34) {
  27896. label = 0;
  27897. $259 = HEAP32[$4>>2]|0;
  27898. $260 = Math_imul($259, $$011711199)|0;
  27899. $261 = (($260) + ($$011721190))|0;
  27900. $262 = (($3) + ($261<<2)|0);
  27901. $263 = HEAP8[$262>>0]|0;
  27902. $264 = ($263<<24>>24)==(0);
  27903. if ($264) {
  27904. $265 = (((($3) + ($261<<2)|0)) + 1|0);
  27905. $266 = HEAP8[$265>>0]|0;
  27906. $267 = ($266<<24>>24)==(0);
  27907. if ($267) {
  27908. $268 = (((($3) + ($261<<2)|0)) + 2|0);
  27909. $269 = HEAP8[$268>>0]|0;
  27910. $270 = ($269<<24>>24)==(0);
  27911. if ($270) {
  27912. $$sroa$0427$0$$sroa_idx438 = (($15) + (($$111571194*12)|0)|0);
  27913. HEAPF32[$$sroa$0427$0$$sroa_idx438>>2] = $38;
  27914. $$sroa$11443$0$$sroa_idx455 = (((($15) + (($$111571194*12)|0)|0)) + 4|0);
  27915. HEAP32[$$sroa$11443$0$$sroa_idx455>>2] = $13;
  27916. $$sroa$12$0$$sroa_idx471 = (((($15) + (($$111571194*12)|0)|0)) + 8|0);
  27917. HEAPF32[$$sroa$12$0$$sroa_idx471>>2] = $23;
  27918. $271 = (($$111571194) + 1)|0;
  27919. $$sroa$0358$0$$sroa_idx367 = (($15) + (($271*12)|0)|0);
  27920. HEAPF32[$$sroa$0358$0$$sroa_idx367>>2] = $40;
  27921. $$sroa$10372$0$$sroa_idx382 = (((($15) + (($271*12)|0)|0)) + 4|0);
  27922. HEAP32[$$sroa$10372$0$$sroa_idx382>>2] = $13;
  27923. $$sroa$11387$0$$sroa_idx397 = (((($15) + (($271*12)|0)|0)) + 8|0);
  27924. HEAPF32[$$sroa$11387$0$$sroa_idx397>>2] = $25;
  27925. $272 = (($$111571194) + 2)|0;
  27926. $$sroa$0402$0$$sroa_idx407 = (($15) + (($272*12)|0)|0);
  27927. HEAPF32[$$sroa$0402$0$$sroa_idx407>>2] = $38;
  27928. $$sroa$7$0$$sroa_idx415 = (((($15) + (($272*12)|0)|0)) + 4|0);
  27929. HEAP32[$$sroa$7$0$$sroa_idx415>>2] = $13;
  27930. $$sroa$8418$0$$sroa_idx424 = (((($15) + (($272*12)|0)|0)) + 8|0);
  27931. HEAPF32[$$sroa$8418$0$$sroa_idx424>>2] = $25;
  27932. $273 = (($$111571194) + 3)|0;
  27933. $$sroa$0427$0$$sroa_idx440 = (($15) + (($273*12)|0)|0);
  27934. HEAPF32[$$sroa$0427$0$$sroa_idx440>>2] = $38;
  27935. $$sroa$11443$0$$sroa_idx457 = (((($15) + (($273*12)|0)|0)) + 4|0);
  27936. HEAP32[$$sroa$11443$0$$sroa_idx457>>2] = $13;
  27937. $$sroa$12$0$$sroa_idx473 = (((($15) + (($273*12)|0)|0)) + 8|0);
  27938. HEAPF32[$$sroa$12$0$$sroa_idx473>>2] = $23;
  27939. $274 = (($$111571194) + 4)|0;
  27940. $$sroa$0326$0$$sroa_idx333 = (($15) + (($274*12)|0)|0);
  27941. HEAPF32[$$sroa$0326$0$$sroa_idx333>>2] = $40;
  27942. $$sroa$8336$0$$sroa_idx344 = (((($15) + (($274*12)|0)|0)) + 4|0);
  27943. HEAP32[$$sroa$8336$0$$sroa_idx344>>2] = $13;
  27944. $$sroa$9347$0$$sroa_idx355 = (((($15) + (($274*12)|0)|0)) + 8|0);
  27945. HEAPF32[$$sroa$9347$0$$sroa_idx355>>2] = $23;
  27946. $275 = (($$111571194) + 5)|0;
  27947. $$sroa$0358$0$$sroa_idx369 = (($15) + (($275*12)|0)|0);
  27948. HEAPF32[$$sroa$0358$0$$sroa_idx369>>2] = $40;
  27949. $$sroa$10372$0$$sroa_idx384 = (((($15) + (($275*12)|0)|0)) + 4|0);
  27950. HEAP32[$$sroa$10372$0$$sroa_idx384>>2] = $13;
  27951. $$sroa$11387$0$$sroa_idx399 = (((($15) + (($275*12)|0)|0)) + 8|0);
  27952. HEAPF32[$$sroa$11387$0$$sroa_idx399>>2] = $25;
  27953. $276 = (($$111571194) + 6)|0;
  27954. $277 = (($18) + (($$111661192*12)|0)|0);
  27955. ;HEAP32[$277>>2]=HEAP32[3728>>2]|0;HEAP32[$277+4>>2]=HEAP32[3728+4>>2]|0;HEAP32[$277+8>>2]=HEAP32[3728+8>>2]|0;
  27956. $278 = (($$111661192) + 1)|0;
  27957. $279 = (($18) + (($278*12)|0)|0);
  27958. ;HEAP32[$279>>2]=HEAP32[3728>>2]|0;HEAP32[$279+4>>2]=HEAP32[3728+4>>2]|0;HEAP32[$279+8>>2]=HEAP32[3728+8>>2]|0;
  27959. $280 = (($$111661192) + 2)|0;
  27960. $281 = (($18) + (($280*12)|0)|0);
  27961. ;HEAP32[$281>>2]=HEAP32[3728>>2]|0;HEAP32[$281+4>>2]=HEAP32[3728+4>>2]|0;HEAP32[$281+8>>2]=HEAP32[3728+8>>2]|0;
  27962. $282 = (($$111661192) + 3)|0;
  27963. $283 = (($18) + (($282*12)|0)|0);
  27964. ;HEAP32[$283>>2]=HEAP32[3728>>2]|0;HEAP32[$283+4>>2]=HEAP32[3728+4>>2]|0;HEAP32[$283+8>>2]=HEAP32[3728+8>>2]|0;
  27965. $284 = (($$111661192) + 4)|0;
  27966. $285 = (($18) + (($284*12)|0)|0);
  27967. ;HEAP32[$285>>2]=HEAP32[3728>>2]|0;HEAP32[$285+4>>2]=HEAP32[3728+4>>2]|0;HEAP32[$285+8>>2]=HEAP32[3728+8>>2]|0;
  27968. $286 = (($$111661192) + 5)|0;
  27969. $287 = (($18) + (($286*12)|0)|0);
  27970. ;HEAP32[$287>>2]=HEAP32[3728>>2]|0;HEAP32[$287+4>>2]=HEAP32[3728+4>>2]|0;HEAP32[$287+8>>2]=HEAP32[3728+8>>2]|0;
  27971. $288 = (($$111661192) + 6)|0;
  27972. $$sroa$067$0$$sroa_idx = (($17) + ($$111601193<<3)|0);
  27973. HEAPF32[$$sroa$067$0$$sroa_idx>>2] = 0.0;
  27974. $$sroa$268$0$$sroa_idx69 = (((($17) + ($$111601193<<3)|0)) + 4|0);
  27975. HEAPF32[$$sroa$268$0$$sroa_idx69>>2] = 0.5;
  27976. $289 = (($$111601193) + 1)|0;
  27977. $$sroa$064$0$$sroa_idx = (($17) + ($289<<3)|0);
  27978. HEAPF32[$$sroa$064$0$$sroa_idx>>2] = 0.5;
  27979. $$sroa$265$0$$sroa_idx66 = (((($17) + ($289<<3)|0)) + 4|0);
  27980. HEAPF32[$$sroa$265$0$$sroa_idx66>>2] = 1.0;
  27981. $290 = (($$111601193) + 2)|0;
  27982. $$sroa$061$0$$sroa_idx = (($17) + ($290<<3)|0);
  27983. HEAPF32[$$sroa$061$0$$sroa_idx>>2] = 0.0;
  27984. $$sroa$262$0$$sroa_idx63 = (((($17) + ($290<<3)|0)) + 4|0);
  27985. HEAPF32[$$sroa$262$0$$sroa_idx63>>2] = 1.0;
  27986. $291 = (($$111601193) + 3)|0;
  27987. $$sroa$058$0$$sroa_idx = (($17) + ($291<<3)|0);
  27988. HEAPF32[$$sroa$058$0$$sroa_idx>>2] = 0.0;
  27989. $$sroa$259$0$$sroa_idx60 = (((($17) + ($291<<3)|0)) + 4|0);
  27990. HEAPF32[$$sroa$259$0$$sroa_idx60>>2] = 0.5;
  27991. $292 = (($$111601193) + 4)|0;
  27992. $$sroa$055$0$$sroa_idx = (($17) + ($292<<3)|0);
  27993. HEAPF32[$$sroa$055$0$$sroa_idx>>2] = 0.5;
  27994. $$sroa$256$0$$sroa_idx57 = (((($17) + ($292<<3)|0)) + 4|0);
  27995. HEAPF32[$$sroa$256$0$$sroa_idx57>>2] = 0.5;
  27996. $293 = (($$111601193) + 5)|0;
  27997. $$sroa$052$0$$sroa_idx = (($17) + ($293<<3)|0);
  27998. HEAPF32[$$sroa$052$0$$sroa_idx>>2] = 0.5;
  27999. $$sroa$253$0$$sroa_idx54 = (((($17) + ($293<<3)|0)) + 4|0);
  28000. HEAPF32[$$sroa$253$0$$sroa_idx54>>2] = 1.0;
  28001. $294 = (($$111601193) + 6)|0;
  28002. $$sroa$0257$0$$sroa_idx264 = (($15) + (($276*12)|0)|0);
  28003. HEAPF32[$$sroa$0257$0$$sroa_idx264>>2] = $38;
  28004. $$sroa$9269$0$$sroa_idx277 = (((($15) + (($276*12)|0)|0)) + 4|0);
  28005. HEAPF32[$$sroa$9269$0$$sroa_idx277>>2] = 0.0;
  28006. $$sroa$10282$0$$sroa_idx290 = (((($15) + (($276*12)|0)|0)) + 8|0);
  28007. HEAPF32[$$sroa$10282$0$$sroa_idx290>>2] = $23;
  28008. $295 = (($$111571194) + 7)|0;
  28009. $$sroa$0220$0$$sroa_idx229 = (($15) + (($295*12)|0)|0);
  28010. HEAPF32[$$sroa$0220$0$$sroa_idx229>>2] = $38;
  28011. $$sroa$9$0$$sroa_idx241 = (((($15) + (($295*12)|0)|0)) + 4|0);
  28012. HEAPF32[$$sroa$9$0$$sroa_idx241>>2] = 0.0;
  28013. $$sroa$10244$0$$sroa_idx254 = (((($15) + (($295*12)|0)|0)) + 8|0);
  28014. HEAPF32[$$sroa$10244$0$$sroa_idx254>>2] = $25;
  28015. $296 = (($$111571194) + 8)|0;
  28016. $$sroa$0178$0$$sroa_idx187 = (($15) + (($296*12)|0)|0);
  28017. HEAPF32[$$sroa$0178$0$$sroa_idx187>>2] = $40;
  28018. $$sroa$10$0$$sroa_idx201 = (((($15) + (($296*12)|0)|0)) + 4|0);
  28019. HEAPF32[$$sroa$10$0$$sroa_idx201>>2] = 0.0;
  28020. $$sroa$11$0$$sroa_idx215 = (((($15) + (($296*12)|0)|0)) + 8|0);
  28021. HEAPF32[$$sroa$11$0$$sroa_idx215>>2] = $25;
  28022. $297 = (($$111571194) + 9)|0;
  28023. $$sroa$0257$0$$sroa_idx266 = (($15) + (($297*12)|0)|0);
  28024. HEAPF32[$$sroa$0257$0$$sroa_idx266>>2] = $38;
  28025. $$sroa$9269$0$$sroa_idx279 = (((($15) + (($297*12)|0)|0)) + 4|0);
  28026. HEAPF32[$$sroa$9269$0$$sroa_idx279>>2] = 0.0;
  28027. $$sroa$10282$0$$sroa_idx292 = (((($15) + (($297*12)|0)|0)) + 8|0);
  28028. HEAPF32[$$sroa$10282$0$$sroa_idx292>>2] = $23;
  28029. $298 = (($$111571194) + 10)|0;
  28030. $$sroa$0178$0$$sroa_idx189 = (($15) + (($298*12)|0)|0);
  28031. HEAPF32[$$sroa$0178$0$$sroa_idx189>>2] = $40;
  28032. $$sroa$10$0$$sroa_idx203 = (((($15) + (($298*12)|0)|0)) + 4|0);
  28033. HEAPF32[$$sroa$10$0$$sroa_idx203>>2] = 0.0;
  28034. $$sroa$11$0$$sroa_idx217 = (((($15) + (($298*12)|0)|0)) + 8|0);
  28035. HEAPF32[$$sroa$11$0$$sroa_idx217>>2] = $25;
  28036. $299 = (($$111571194) + 11)|0;
  28037. $$sroa$0295$0$$sroa_idx302 = (($15) + (($299*12)|0)|0);
  28038. HEAPF32[$$sroa$0295$0$$sroa_idx302>>2] = $40;
  28039. $$sroa$8$0$$sroa_idx312 = (((($15) + (($299*12)|0)|0)) + 4|0);
  28040. HEAPF32[$$sroa$8$0$$sroa_idx312>>2] = 0.0;
  28041. $$sroa$9315$0$$sroa_idx323 = (((($15) + (($299*12)|0)|0)) + 8|0);
  28042. HEAPF32[$$sroa$9315$0$$sroa_idx323>>2] = $23;
  28043. $300 = (($$111571194) + 12)|0;
  28044. $301 = (($18) + (($288*12)|0)|0);
  28045. ;HEAP32[$301>>2]=HEAP32[3716>>2]|0;HEAP32[$301+4>>2]=HEAP32[3716+4>>2]|0;HEAP32[$301+8>>2]=HEAP32[3716+8>>2]|0;
  28046. $302 = (($$111661192) + 7)|0;
  28047. $303 = (($18) + (($302*12)|0)|0);
  28048. ;HEAP32[$303>>2]=HEAP32[3716>>2]|0;HEAP32[$303+4>>2]=HEAP32[3716+4>>2]|0;HEAP32[$303+8>>2]=HEAP32[3716+8>>2]|0;
  28049. $304 = (($$111661192) + 8)|0;
  28050. $305 = (($18) + (($304*12)|0)|0);
  28051. ;HEAP32[$305>>2]=HEAP32[3716>>2]|0;HEAP32[$305+4>>2]=HEAP32[3716+4>>2]|0;HEAP32[$305+8>>2]=HEAP32[3716+8>>2]|0;
  28052. $306 = (($$111661192) + 9)|0;
  28053. $307 = (($18) + (($306*12)|0)|0);
  28054. ;HEAP32[$307>>2]=HEAP32[3716>>2]|0;HEAP32[$307+4>>2]=HEAP32[3716+4>>2]|0;HEAP32[$307+8>>2]=HEAP32[3716+8>>2]|0;
  28055. $308 = (($$111661192) + 10)|0;
  28056. $309 = (($18) + (($308*12)|0)|0);
  28057. ;HEAP32[$309>>2]=HEAP32[3716>>2]|0;HEAP32[$309+4>>2]=HEAP32[3716+4>>2]|0;HEAP32[$309+8>>2]=HEAP32[3716+8>>2]|0;
  28058. $310 = (($$111661192) + 11)|0;
  28059. $311 = (($18) + (($310*12)|0)|0);
  28060. ;HEAP32[$311>>2]=HEAP32[3716>>2]|0;HEAP32[$311+4>>2]=HEAP32[3716+4>>2]|0;HEAP32[$311+8>>2]=HEAP32[3716+8>>2]|0;
  28061. $312 = (($$111661192) + 12)|0;
  28062. $$sroa$049$0$$sroa_idx = (($17) + ($294<<3)|0);
  28063. HEAPF32[$$sroa$049$0$$sroa_idx>>2] = 1.0;
  28064. $$sroa$250$0$$sroa_idx51 = (((($17) + ($294<<3)|0)) + 4|0);
  28065. HEAPF32[$$sroa$250$0$$sroa_idx51>>2] = 0.5;
  28066. $313 = (($$111601193) + 7)|0;
  28067. $$sroa$046$0$$sroa_idx = (($17) + ($313<<3)|0);
  28068. HEAPF32[$$sroa$046$0$$sroa_idx>>2] = 1.0;
  28069. $$sroa$247$0$$sroa_idx48 = (((($17) + ($313<<3)|0)) + 4|0);
  28070. HEAPF32[$$sroa$247$0$$sroa_idx48>>2] = 1.0;
  28071. $314 = (($$111601193) + 8)|0;
  28072. $$sroa$043$0$$sroa_idx = (($17) + ($314<<3)|0);
  28073. HEAPF32[$$sroa$043$0$$sroa_idx>>2] = 0.5;
  28074. $$sroa$244$0$$sroa_idx45 = (((($17) + ($314<<3)|0)) + 4|0);
  28075. HEAPF32[$$sroa$244$0$$sroa_idx45>>2] = 1.0;
  28076. $315 = (($$111601193) + 9)|0;
  28077. $$sroa$040$0$$sroa_idx = (($17) + ($315<<3)|0);
  28078. HEAPF32[$$sroa$040$0$$sroa_idx>>2] = 1.0;
  28079. $$sroa$241$0$$sroa_idx42 = (((($17) + ($315<<3)|0)) + 4|0);
  28080. HEAPF32[$$sroa$241$0$$sroa_idx42>>2] = 0.5;
  28081. $316 = (($$111601193) + 10)|0;
  28082. $$sroa$037$0$$sroa_idx = (($17) + ($316<<3)|0);
  28083. HEAPF32[$$sroa$037$0$$sroa_idx>>2] = 0.5;
  28084. $$sroa$238$0$$sroa_idx39 = (((($17) + ($316<<3)|0)) + 4|0);
  28085. HEAPF32[$$sroa$238$0$$sroa_idx39>>2] = 1.0;
  28086. $317 = (($$111601193) + 11)|0;
  28087. $$sroa$0$0$$sroa_idx = (($17) + ($317<<3)|0);
  28088. HEAPF32[$$sroa$0$0$$sroa_idx>>2] = 0.5;
  28089. $$sroa$2$0$$sroa_idx36 = (((($17) + ($317<<3)|0)) + 4|0);
  28090. HEAPF32[$$sroa$2$0$$sroa_idx36>>2] = 0.5;
  28091. $318 = (($$111601193) + 12)|0;
  28092. $$5 = $300;$$51164 = $318;$$51170 = $312;
  28093. } else {
  28094. $$5 = $$111571194;$$51164 = $$111601193;$$51170 = $$111661192;
  28095. }
  28096. } else {
  28097. $$5 = $$111571194;$$51164 = $$111601193;$$51170 = $$111661192;
  28098. }
  28099. } else {
  28100. $$5 = $$111571194;$$51164 = $$111601193;$$51170 = $$111661192;
  28101. }
  28102. }
  28103. $319 = (($$011721190) + 1)|0;
  28104. $exitcond1210 = ($319|0)==($5|0);
  28105. if ($exitcond1210) {
  28106. $$11157$lcssa = $$5;$$11160$lcssa = $$51164;$$11166$lcssa = $$51170;
  28107. break;
  28108. } else {
  28109. $$011721190 = $319;$$111571194 = $$5;$$111601193 = $$51164;$$111661192 = $$51170;
  28110. }
  28111. }
  28112. } else {
  28113. $$11157$lcssa = $$011561203;$$11160$lcssa = $$011591202;$$11166$lcssa = $$011651201;
  28114. }
  28115. $35 = (($$011711199) + 1)|0;
  28116. $exitcond1211 = ($35|0)==($7|0);
  28117. if ($exitcond1211) {
  28118. $$01156$lcssa = $$11157$lcssa;$$01159$lcssa = $$11160$lcssa;$$01165$lcssa = $$11166$lcssa;
  28119. break;
  28120. } else {
  28121. $$011561203 = $$11157$lcssa;$$011591202 = $$11160$lcssa;$$011651201 = $$11166$lcssa;$$011711199 = $35;
  28122. }
  28123. }
  28124. } else {
  28125. $$01156$lcssa = 0;$$01159$lcssa = 0;$$01165$lcssa = 0;
  28126. }
  28127. $29 = ($$01156$lcssa*12)|0;
  28128. $30 = (_malloc($29)|0);
  28129. $31 = (_malloc($29)|0);
  28130. $32 = $$01156$lcssa << 3;
  28131. $33 = (_malloc($32)|0);
  28132. $34 = ($$01156$lcssa|0)>(0);
  28133. if ($34) {
  28134. $$011541187 = 0;$$011551186 = 0;
  28135. while(1) {
  28136. $321 = (($15) + (($$011541187*12)|0)|0);
  28137. $322 = HEAP32[$321>>2]|0;
  28138. $323 = (($30) + ($$011551186<<2)|0);
  28139. HEAP32[$323>>2] = $322;
  28140. $324 = (((($15) + (($$011541187*12)|0)|0)) + 4|0);
  28141. $325 = HEAP32[$324>>2]|0;
  28142. $326 = (($$011551186) + 1)|0;
  28143. $327 = (($30) + ($326<<2)|0);
  28144. HEAP32[$327>>2] = $325;
  28145. $328 = (((($15) + (($$011541187*12)|0)|0)) + 8|0);
  28146. $329 = HEAP32[$328>>2]|0;
  28147. $330 = (($$011551186) + 2)|0;
  28148. $331 = (($30) + ($330<<2)|0);
  28149. HEAP32[$331>>2] = $329;
  28150. $332 = (($$011551186) + 3)|0;
  28151. $333 = (($$011541187) + 1)|0;
  28152. $exitcond1209 = ($333|0)==($$01156$lcssa|0);
  28153. if ($exitcond1209) {
  28154. break;
  28155. } else {
  28156. $$011541187 = $333;$$011551186 = $332;
  28157. }
  28158. }
  28159. }
  28160. $320 = ($$01165$lcssa|0)>(0);
  28161. if ($320) {
  28162. $$011531184 = 0;$$11183 = 0;
  28163. while(1) {
  28164. $335 = (($18) + (($$011531184*12)|0)|0);
  28165. $336 = HEAP32[$335>>2]|0;
  28166. $337 = (($31) + ($$11183<<2)|0);
  28167. HEAP32[$337>>2] = $336;
  28168. $338 = (((($18) + (($$011531184*12)|0)|0)) + 4|0);
  28169. $339 = HEAP32[$338>>2]|0;
  28170. $340 = (($$11183) + 1)|0;
  28171. $341 = (($31) + ($340<<2)|0);
  28172. HEAP32[$341>>2] = $339;
  28173. $342 = (((($18) + (($$011531184*12)|0)|0)) + 8|0);
  28174. $343 = HEAP32[$342>>2]|0;
  28175. $344 = (($$11183) + 2)|0;
  28176. $345 = (($31) + ($344<<2)|0);
  28177. HEAP32[$345>>2] = $343;
  28178. $346 = (($$11183) + 3)|0;
  28179. $347 = (($$011531184) + 1)|0;
  28180. $exitcond1208 = ($347|0)==($$01165$lcssa|0);
  28181. if ($exitcond1208) {
  28182. break;
  28183. } else {
  28184. $$011531184 = $347;$$11183 = $346;
  28185. }
  28186. }
  28187. }
  28188. $334 = ($$01159$lcssa|0)>(0);
  28189. if ($334) {
  28190. $$01182 = 0;$$21181 = 0;
  28191. } else {
  28192. _free($15);
  28193. _free($18);
  28194. _free($17);
  28195. _free($3);
  28196. HEAP32[$0>>2] = $$01156$lcssa;
  28197. $$sroa$81122$0$$sroa_idx1123 = ((($0)) + 4|0);
  28198. HEAP32[$$sroa$81122$0$$sroa_idx1123>>2] = 0;
  28199. $$sroa$81125$0$$sroa_idx1126 = ((($0)) + 8|0);
  28200. HEAP32[$$sroa$81125$0$$sroa_idx1126>>2] = $30;
  28201. $$sroa$121130$0$$sroa_idx1131 = ((($0)) + 12|0);
  28202. HEAP32[$$sroa$121130$0$$sroa_idx1131>>2] = $33;
  28203. $$sroa$151134$0$$sroa_idx1135 = ((($0)) + 16|0);
  28204. HEAP32[$$sroa$151134$0$$sroa_idx1135>>2] = 0;
  28205. $$sroa$151137$0$$sroa_idx1138 = ((($0)) + 20|0);
  28206. HEAP32[$$sroa$151137$0$$sroa_idx1138>>2] = $31;
  28207. $$sroa$19$0$$sroa_idx1142 = ((($0)) + 24|0);
  28208. HEAP32[$$sroa$19$0$$sroa_idx1142>>2] = 0;
  28209. $$sroa$191144$0$$sroa_idx1145 = ((($0)) + 28|0);
  28210. HEAP32[$$sroa$191144$0$$sroa_idx1145>>2] = 0;
  28211. $$sroa$20$0$$sroa_idx = ((($0)) + 32|0);
  28212. dest=$$sroa$20$0$$sroa_idx; src=$$sroa$20; 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));
  28213. STACKTOP = sp;return;
  28214. }
  28215. while(1) {
  28216. $348 = (($17) + ($$01182<<3)|0);
  28217. $349 = HEAP32[$348>>2]|0;
  28218. $350 = (($33) + ($$21181<<2)|0);
  28219. HEAP32[$350>>2] = $349;
  28220. $351 = (((($17) + ($$01182<<3)|0)) + 4|0);
  28221. $352 = HEAP32[$351>>2]|0;
  28222. $353 = $$21181 | 1;
  28223. $354 = (($33) + ($353<<2)|0);
  28224. HEAP32[$354>>2] = $352;
  28225. $355 = (($$21181) + 2)|0;
  28226. $356 = (($$01182) + 1)|0;
  28227. $exitcond = ($356|0)==($$01159$lcssa|0);
  28228. if ($exitcond) {
  28229. break;
  28230. } else {
  28231. $$01182 = $356;$$21181 = $355;
  28232. }
  28233. }
  28234. _free($15);
  28235. _free($18);
  28236. _free($17);
  28237. _free($3);
  28238. HEAP32[$0>>2] = $$01156$lcssa;
  28239. $$sroa$81122$0$$sroa_idx1123 = ((($0)) + 4|0);
  28240. HEAP32[$$sroa$81122$0$$sroa_idx1123>>2] = 0;
  28241. $$sroa$81125$0$$sroa_idx1126 = ((($0)) + 8|0);
  28242. HEAP32[$$sroa$81125$0$$sroa_idx1126>>2] = $30;
  28243. $$sroa$121130$0$$sroa_idx1131 = ((($0)) + 12|0);
  28244. HEAP32[$$sroa$121130$0$$sroa_idx1131>>2] = $33;
  28245. $$sroa$151134$0$$sroa_idx1135 = ((($0)) + 16|0);
  28246. HEAP32[$$sroa$151134$0$$sroa_idx1135>>2] = 0;
  28247. $$sroa$151137$0$$sroa_idx1138 = ((($0)) + 20|0);
  28248. HEAP32[$$sroa$151137$0$$sroa_idx1138>>2] = $31;
  28249. $$sroa$19$0$$sroa_idx1142 = ((($0)) + 24|0);
  28250. HEAP32[$$sroa$19$0$$sroa_idx1142>>2] = 0;
  28251. $$sroa$191144$0$$sroa_idx1145 = ((($0)) + 28|0);
  28252. HEAP32[$$sroa$191144$0$$sroa_idx1145>>2] = 0;
  28253. $$sroa$20$0$$sroa_idx = ((($0)) + 32|0);
  28254. dest=$$sroa$20$0$$sroa_idx; src=$$sroa$20; stop=dest+36|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  28255. STACKTOP = sp;return;
  28256. }
  28257. function _UnloadMesh($0) {
  28258. $0 = $0|0;
  28259. var label = 0, sp = 0;
  28260. sp = STACKTOP;
  28261. _rlglUnloadMesh($0);
  28262. return;
  28263. }
  28264. function _UnloadModel($0) {
  28265. $0 = $0|0;
  28266. var $$byval_copy = 0, $1 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  28267. sp = STACKTOP;
  28268. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  28269. $$byval_copy = sp + 4|0;
  28270. $vararg_buffer = sp;
  28271. _UnloadMesh($0);
  28272. $1 = ((($0)) + 132|0);
  28273. _memcpy(($$byval_copy|0),($1|0),132)|0;
  28274. _UnloadMaterial($$byval_copy);
  28275. _TraceLog(0,11703,$vararg_buffer);
  28276. STACKTOP = sp;return;
  28277. }
  28278. function _UnloadMaterial($0) {
  28279. $0 = $0|0;
  28280. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  28281. sp = STACKTOP;
  28282. $1 = ((($0)) + 56|0);
  28283. $2 = HEAP32[$1>>2]|0;
  28284. _rlDeleteTextures($2);
  28285. $3 = ((($0)) + 76|0);
  28286. $4 = HEAP32[$3>>2]|0;
  28287. _rlDeleteTextures($4);
  28288. $5 = ((($0)) + 96|0);
  28289. $6 = HEAP32[$5>>2]|0;
  28290. _rlDeleteTextures($6);
  28291. return;
  28292. }
  28293. function _DrawModel($0,$1,$2,$3) {
  28294. $0 = $0|0;
  28295. $1 = $1|0;
  28296. $2 = +$2;
  28297. $3 = $3|0;
  28298. 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;
  28299. sp = STACKTOP;
  28300. STACKTOP = STACKTOP + 336|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(336|0);
  28301. $$byval_copy4 = sp + 324|0;
  28302. $$byval_copy3 = sp + 312|0;
  28303. $$byval_copy2 = sp + 300|0;
  28304. $$byval_copy1 = sp + 288|0;
  28305. $$byval_copy = sp + 24|0;
  28306. $4 = sp + 12|0;
  28307. $5 = sp;
  28308. HEAPF32[$4>>2] = $2;
  28309. $6 = ((($4)) + 4|0);
  28310. HEAPF32[$6>>2] = $2;
  28311. $7 = ((($4)) + 8|0);
  28312. HEAPF32[$7>>2] = $2;
  28313. ;HEAP32[$5>>2]=0|0;HEAP32[$5+4>>2]=0|0;HEAP32[$5+8>>2]=0|0;
  28314. _memcpy(($$byval_copy|0),($0|0),264)|0;
  28315. ;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;
  28316. ;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;
  28317. ;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;
  28318. ;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;
  28319. _DrawModelEx($$byval_copy,$$byval_copy1,$$byval_copy2,0.0,$$byval_copy3,$$byval_copy4);
  28320. STACKTOP = sp;return;
  28321. }
  28322. function _DrawModelEx($0,$1,$2,$3,$4,$5) {
  28323. $0 = $0|0;
  28324. $1 = $1|0;
  28325. $2 = $2|0;
  28326. $3 = +$3;
  28327. $4 = $4|0;
  28328. $5 = $5|0;
  28329. var $$byval_copy5 = 0, $$byval_copy6 = 0, $$byval_copy7 = 0, $10 = 0, $11 = 0.0, $12 = 0.0, $13 = 0, $14 = 0.0, $15 = 0, $16 = 0.0, $17 = 0.0, $18 = 0, $19 = 0.0, $20 = 0, $21 = 0.0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $6 = 0;
  28330. var $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  28331. sp = STACKTOP;
  28332. STACKTOP = STACKTOP + 592|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(592|0);
  28333. $$byval_copy7 = sp + 520|0;
  28334. $$byval_copy6 = sp + 388|0;
  28335. $$byval_copy5 = sp + 320|0;
  28336. $6 = sp + 128|0;
  28337. $7 = sp + 64|0;
  28338. $8 = sp;
  28339. $9 = sp + 256|0;
  28340. $10 = sp + 192|0;
  28341. $11 = $3 * 0.01745329238474369;
  28342. ;HEAP32[$$byval_copy7>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy7+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy7+8>>2]=HEAP32[$2+8>>2]|0;
  28343. _MatrixRotate($6,$$byval_copy7,$11);
  28344. $12 = +HEAPF32[$4>>2];
  28345. $13 = ((($4)) + 4|0);
  28346. $14 = +HEAPF32[$13>>2];
  28347. $15 = ((($4)) + 8|0);
  28348. $16 = +HEAPF32[$15>>2];
  28349. _MatrixScale($7,$12,$14,$16);
  28350. $17 = +HEAPF32[$1>>2];
  28351. $18 = ((($1)) + 4|0);
  28352. $19 = +HEAPF32[$18>>2];
  28353. $20 = ((($1)) + 8|0);
  28354. $21 = +HEAPF32[$20>>2];
  28355. _MatrixTranslate($8,$17,$19,$21);
  28356. $22 = ((($0)) + 68|0);
  28357. dest=$$byval_copy6; src=$7; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  28358. dest=$$byval_copy7; src=$6; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  28359. _MatrixMultiply($9,$$byval_copy6,$$byval_copy7);
  28360. dest=$$byval_copy6; src=$9; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  28361. dest=$$byval_copy7; src=$8; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  28362. _MatrixMultiply($10,$$byval_copy6,$$byval_copy7);
  28363. dest=$22; src=$10; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  28364. $23 = ((($0)) + 132|0);
  28365. $24 = ((($0)) + 248|0);
  28366. $25 = HEAPU8[$5>>0]|(HEAPU8[$5+1>>0]<<8)|(HEAPU8[$5+2>>0]<<16)|(HEAPU8[$5+3>>0]<<24);
  28367. HEAP32[$24>>2] = $25;
  28368. dest=$$byval_copy5; src=$0; stop=dest+68|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  28369. _memcpy(($$byval_copy6|0),($23|0),132)|0;
  28370. dest=$$byval_copy7; src=$10; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  28371. _rlglDrawMesh($$byval_copy5,$$byval_copy6,$$byval_copy7);
  28372. STACKTOP = sp;return;
  28373. }
  28374. function _emscripten_GetProcAddress($0) {
  28375. $0 = $0|0;
  28376. 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;
  28377. 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;
  28378. 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;
  28379. 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;
  28380. 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;
  28381. 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;
  28382. 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;
  28383. 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;
  28384. 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;
  28385. 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;
  28386. 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;
  28387. 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;
  28388. 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;
  28389. 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;
  28390. 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;
  28391. 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;
  28392. 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;
  28393. 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;
  28394. 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;
  28395. 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;
  28396. 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;
  28397. 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;
  28398. 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;
  28399. 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;
  28400. 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;
  28401. 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;
  28402. 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;
  28403. 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;
  28404. sp = STACKTOP;
  28405. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  28406. $1 = sp + 12|0;
  28407. $2 = sp + 8|0;
  28408. $3 = sp + 4|0;
  28409. $4 = sp;
  28410. HEAP32[$2>>2] = $0;
  28411. $5 = HEAP32[$2>>2]|0;
  28412. $6 = (_strlen($5)|0);
  28413. $7 = (($6) + 1)|0;
  28414. $8 = (_malloc($7)|0);
  28415. HEAP32[$3>>2] = $8;
  28416. $9 = HEAP32[$3>>2]|0;
  28417. $10 = HEAP32[$2>>2]|0;
  28418. (_strcpy($9,$10)|0);
  28419. $11 = HEAP32[$3>>2]|0;
  28420. $12 = (_strstr($11,11761)|0);
  28421. HEAP32[$4>>2] = $12;
  28422. $13 = HEAP32[$4>>2]|0;
  28423. $14 = ($13|0)!=(0|0);
  28424. if ($14) {
  28425. $15 = HEAP32[$4>>2]|0;
  28426. HEAP8[$15>>0] = 0;
  28427. }
  28428. $16 = HEAP32[$3>>2]|0;
  28429. $17 = (_strstr($16,11765)|0);
  28430. HEAP32[$4>>2] = $17;
  28431. $18 = HEAP32[$4>>2]|0;
  28432. $19 = ($18|0)!=(0|0);
  28433. if ($19) {
  28434. $20 = HEAP32[$4>>2]|0;
  28435. HEAP8[$20>>0] = 0;
  28436. }
  28437. $21 = HEAP32[$3>>2]|0;
  28438. $22 = (_strstr($21,11769)|0);
  28439. HEAP32[$4>>2] = $22;
  28440. $23 = HEAP32[$4>>2]|0;
  28441. $24 = ($23|0)!=(0|0);
  28442. if ($24) {
  28443. $25 = HEAP32[$4>>2]|0;
  28444. HEAP8[$25>>0] = 0;
  28445. }
  28446. $26 = HEAP32[$3>>2]|0;
  28447. $27 = (_strstr($26,11773)|0);
  28448. HEAP32[$4>>2] = $27;
  28449. $28 = HEAP32[$4>>2]|0;
  28450. $29 = ($28|0)!=(0|0);
  28451. if ($29) {
  28452. $30 = HEAP32[$4>>2]|0;
  28453. HEAP8[$30>>0] = 0;
  28454. }
  28455. $31 = HEAP32[$3>>2]|0;
  28456. $32 = (_strcmp($31,11779)|0);
  28457. $33 = ($32|0)!=(0);
  28458. do {
  28459. if ($33) {
  28460. $34 = HEAP32[$3>>2]|0;
  28461. $35 = (_strcmp($34,11817)|0);
  28462. $36 = ($35|0)!=(0);
  28463. if (!($36)) {
  28464. HEAP32[$3>>2] = 11836;
  28465. break;
  28466. }
  28467. $37 = HEAP32[$3>>2]|0;
  28468. $38 = (_strcmp($37,11849)|0);
  28469. $39 = ($38|0)!=(0);
  28470. if (!($39)) {
  28471. HEAP32[$3>>2] = 11870;
  28472. break;
  28473. }
  28474. $40 = HEAP32[$3>>2]|0;
  28475. $41 = (_strcmp($40,11885)|0);
  28476. $42 = ($41|0)!=(0);
  28477. if (!($42)) {
  28478. HEAP32[$3>>2] = 11900;
  28479. break;
  28480. }
  28481. $43 = HEAP32[$3>>2]|0;
  28482. $44 = (_strcmp($43,11915)|0);
  28483. $45 = ($44|0)!=(0);
  28484. if (!($45)) {
  28485. HEAP32[$3>>2] = 11930;
  28486. }
  28487. } else {
  28488. HEAP32[$3>>2] = 11801;
  28489. }
  28490. } while(0);
  28491. $46 = HEAP32[$3>>2]|0;
  28492. $47 = (_strcmp($46,11945)|0);
  28493. $48 = ($47|0)!=(0);
  28494. do {
  28495. if ($48) {
  28496. $49 = HEAP32[$3>>2]|0;
  28497. $50 = (_strcmp($49,11959)|0);
  28498. $51 = ($50|0)!=(0);
  28499. if (!($51)) {
  28500. HEAP32[$1>>2] = 3;
  28501. break;
  28502. }
  28503. $52 = HEAP32[$3>>2]|0;
  28504. $53 = (_strcmp($52,11971)|0);
  28505. $54 = ($53|0)!=(0);
  28506. if (!($54)) {
  28507. HEAP32[$1>>2] = 7;
  28508. break;
  28509. }
  28510. $55 = HEAP32[$3>>2]|0;
  28511. $56 = (_strcmp($55,11985)|0);
  28512. $57 = ($56|0)!=(0);
  28513. if (!($57)) {
  28514. HEAP32[$1>>2] = 8;
  28515. break;
  28516. }
  28517. $58 = HEAP32[$3>>2]|0;
  28518. $59 = (_strcmp($58,11997)|0);
  28519. $60 = ($59|0)!=(0);
  28520. if (!($60)) {
  28521. HEAP32[$1>>2] = 9;
  28522. break;
  28523. }
  28524. $61 = HEAP32[$3>>2]|0;
  28525. $62 = (_strcmp($61,12011)|0);
  28526. $63 = ($62|0)!=(0);
  28527. if (!($63)) {
  28528. HEAP32[$1>>2] = 10;
  28529. break;
  28530. }
  28531. $64 = HEAP32[$3>>2]|0;
  28532. $65 = (_strcmp($64,12025)|0);
  28533. $66 = ($65|0)!=(0);
  28534. if (!($66)) {
  28535. HEAP32[$1>>2] = 11;
  28536. break;
  28537. }
  28538. $67 = HEAP32[$3>>2]|0;
  28539. $68 = (_strcmp($67,12042)|0);
  28540. $69 = ($68|0)!=(0);
  28541. if (!($69)) {
  28542. HEAP32[$1>>2] = 1;
  28543. break;
  28544. }
  28545. $70 = HEAP32[$3>>2]|0;
  28546. $71 = (_strcmp($70,12065)|0);
  28547. $72 = ($71|0)!=(0);
  28548. if (!($72)) {
  28549. HEAP32[$1>>2] = 1;
  28550. break;
  28551. }
  28552. $73 = HEAP32[$3>>2]|0;
  28553. $74 = (_strcmp($73,12091)|0);
  28554. $75 = ($74|0)!=(0);
  28555. if (!($75)) {
  28556. HEAP32[$1>>2] = 2;
  28557. break;
  28558. }
  28559. $76 = HEAP32[$3>>2]|0;
  28560. $77 = (_strcmp($76,12104)|0);
  28561. $78 = ($77|0)!=(0);
  28562. if (!($78)) {
  28563. HEAP32[$1>>2] = 3;
  28564. break;
  28565. }
  28566. $79 = HEAP32[$3>>2]|0;
  28567. $80 = (_strcmp($79,12120)|0);
  28568. $81 = ($80|0)!=(0);
  28569. if (!($81)) {
  28570. HEAP32[$1>>2] = 1;
  28571. break;
  28572. }
  28573. $82 = HEAP32[$3>>2]|0;
  28574. $83 = (_strcmp($82,12133)|0);
  28575. $84 = ($83|0)!=(0);
  28576. if (!($84)) {
  28577. HEAP32[$1>>2] = 12;
  28578. break;
  28579. }
  28580. $85 = HEAP32[$3>>2]|0;
  28581. $86 = (_strcmp($85,12147)|0);
  28582. $87 = ($86|0)!=(0);
  28583. if (!($87)) {
  28584. HEAP32[$1>>2] = 2;
  28585. break;
  28586. }
  28587. $88 = HEAP32[$3>>2]|0;
  28588. $89 = (_strcmp($88,12167)|0);
  28589. $90 = ($89|0)!=(0);
  28590. if (!($90)) {
  28591. HEAP32[$1>>2] = 3;
  28592. break;
  28593. }
  28594. $91 = HEAP32[$3>>2]|0;
  28595. $92 = (_strcmp($91,12187)|0);
  28596. $93 = ($92|0)!=(0);
  28597. if (!($93)) {
  28598. HEAP32[$1>>2] = 4;
  28599. break;
  28600. }
  28601. $94 = HEAP32[$3>>2]|0;
  28602. $95 = (_strcmp($94,12204)|0);
  28603. $96 = ($95|0)!=(0);
  28604. if (!($96)) {
  28605. HEAP32[$1>>2] = 5;
  28606. break;
  28607. }
  28608. $97 = HEAP32[$3>>2]|0;
  28609. $98 = (_strcmp($97,12221)|0);
  28610. $99 = ($98|0)!=(0);
  28611. if (!($99)) {
  28612. HEAP32[$1>>2] = 4;
  28613. break;
  28614. }
  28615. $100 = HEAP32[$3>>2]|0;
  28616. $101 = (_strcmp($100,12233)|0);
  28617. $102 = ($101|0)!=(0);
  28618. if (!($102)) {
  28619. HEAP32[$1>>2] = 13;
  28620. break;
  28621. }
  28622. $103 = HEAP32[$3>>2]|0;
  28623. $104 = (_strcmp($103,12246)|0);
  28624. $105 = ($104|0)!=(0);
  28625. if (!($105)) {
  28626. HEAP32[$1>>2] = 14;
  28627. break;
  28628. }
  28629. $106 = HEAP32[$3>>2]|0;
  28630. $107 = (_strcmp($106,12262)|0);
  28631. $108 = ($107|0)!=(0);
  28632. if (!($108)) {
  28633. HEAP32[$1>>2] = 6;
  28634. break;
  28635. }
  28636. $109 = HEAP32[$3>>2]|0;
  28637. $110 = (_strcmp($109,12285)|0);
  28638. $111 = ($110|0)!=(0);
  28639. if (!($111)) {
  28640. HEAP32[$1>>2] = 2;
  28641. break;
  28642. }
  28643. $112 = HEAP32[$3>>2]|0;
  28644. $113 = (_strcmp($112,12298)|0);
  28645. $114 = ($113|0)!=(0);
  28646. if (!($114)) {
  28647. HEAP32[$1>>2] = 3;
  28648. break;
  28649. }
  28650. $115 = HEAP32[$3>>2]|0;
  28651. $116 = (_strcmp($115,12314)|0);
  28652. $117 = ($116|0)!=(0);
  28653. if (!($117)) {
  28654. HEAP32[$1>>2] = 5;
  28655. break;
  28656. }
  28657. $118 = HEAP32[$3>>2]|0;
  28658. $119 = (_strcmp($118,12325)|0);
  28659. $120 = ($119|0)!=(0);
  28660. if (!($120)) {
  28661. HEAP32[$1>>2] = 15;
  28662. break;
  28663. }
  28664. $121 = HEAP32[$3>>2]|0;
  28665. $122 = (_strcmp($121,12344)|0);
  28666. $123 = ($122|0)!=(0);
  28667. if (!($123)) {
  28668. HEAP32[$1>>2] = 16;
  28669. break;
  28670. }
  28671. $124 = HEAP32[$3>>2]|0;
  28672. $125 = (_strcmp($124,12366)|0);
  28673. $126 = ($125|0)!=(0);
  28674. if (!($126)) {
  28675. HEAP32[$1>>2] = 17;
  28676. break;
  28677. }
  28678. $127 = HEAP32[$3>>2]|0;
  28679. $128 = (_strcmp($127,12385)|0);
  28680. $129 = ($128|0)!=(0);
  28681. if (!($129)) {
  28682. HEAP32[$1>>2] = 7;
  28683. break;
  28684. }
  28685. $130 = HEAP32[$3>>2]|0;
  28686. $131 = (_strcmp($130,12414)|0);
  28687. $132 = ($131|0)!=(0);
  28688. if (!($132)) {
  28689. HEAP32[$1>>2] = 6;
  28690. break;
  28691. }
  28692. $133 = HEAP32[$3>>2]|0;
  28693. $134 = (_strcmp($133,12431)|0);
  28694. $135 = ($134|0)!=(0);
  28695. if (!($135)) {
  28696. HEAP32[$1>>2] = 8;
  28697. break;
  28698. }
  28699. $136 = HEAP32[$3>>2]|0;
  28700. $137 = (_strcmp($136,12446)|0);
  28701. $138 = ($137|0)!=(0);
  28702. if (!($138)) {
  28703. HEAP32[$1>>2] = 9;
  28704. break;
  28705. }
  28706. $139 = HEAP32[$3>>2]|0;
  28707. $140 = (_strcmp($139,12461)|0);
  28708. $141 = ($140|0)!=(0);
  28709. if (!($141)) {
  28710. HEAP32[$1>>2] = 1;
  28711. break;
  28712. }
  28713. $142 = HEAP32[$3>>2]|0;
  28714. $143 = (_strcmp($142,12482)|0);
  28715. $144 = ($143|0)!=(0);
  28716. if (!($144)) {
  28717. HEAP32[$1>>2] = 10;
  28718. break;
  28719. }
  28720. $145 = HEAP32[$3>>2]|0;
  28721. $146 = (_strcmp($145,12502)|0);
  28722. $147 = ($146|0)!=(0);
  28723. if (!($147)) {
  28724. HEAP32[$1>>2] = 11;
  28725. break;
  28726. }
  28727. $148 = HEAP32[$3>>2]|0;
  28728. $149 = (_strcmp($148,12522)|0);
  28729. $150 = ($149|0)!=(0);
  28730. if (!($150)) {
  28731. HEAP32[$1>>2] = 12;
  28732. break;
  28733. }
  28734. $151 = HEAP32[$3>>2]|0;
  28735. $152 = (_strcmp($151,12548)|0);
  28736. $153 = ($152|0)!=(0);
  28737. if (!($153)) {
  28738. HEAP32[$1>>2] = 2;
  28739. break;
  28740. }
  28741. $154 = HEAP32[$3>>2]|0;
  28742. $155 = (_strcmp($154,12567)|0);
  28743. $156 = ($155|0)!=(0);
  28744. if (!($156)) {
  28745. HEAP32[$1>>2] = 1;
  28746. break;
  28747. }
  28748. $157 = HEAP32[$3>>2]|0;
  28749. $158 = (_strcmp($157,12579)|0);
  28750. $159 = ($158|0)!=(0);
  28751. if (!($159)) {
  28752. HEAP32[$1>>2] = 3;
  28753. break;
  28754. }
  28755. $160 = HEAP32[$3>>2]|0;
  28756. $161 = (_strcmp($160,12591)|0);
  28757. $162 = ($161|0)!=(0);
  28758. if (!($162)) {
  28759. HEAP32[$1>>2] = 1;
  28760. break;
  28761. }
  28762. $163 = HEAP32[$3>>2]|0;
  28763. $164 = (_strcmp($163,12603)|0);
  28764. $165 = ($164|0)!=(0);
  28765. if (!($165)) {
  28766. HEAP32[$1>>2] = 1;
  28767. break;
  28768. }
  28769. $166 = HEAP32[$3>>2]|0;
  28770. $167 = (_strcmp($166,12615)|0);
  28771. $168 = ($167|0)!=(0);
  28772. if (!($168)) {
  28773. HEAP32[$1>>2] = 18;
  28774. break;
  28775. }
  28776. $169 = HEAP32[$3>>2]|0;
  28777. $170 = (_strcmp($169,12627)|0);
  28778. $171 = ($170|0)!=(0);
  28779. if (!($171)) {
  28780. HEAP32[$1>>2] = 13;
  28781. break;
  28782. }
  28783. $172 = HEAP32[$3>>2]|0;
  28784. $173 = (_strcmp($172,12639)|0);
  28785. $174 = ($173|0)!=(0);
  28786. if (!($174)) {
  28787. HEAP32[$1>>2] = 4;
  28788. break;
  28789. }
  28790. $175 = HEAP32[$3>>2]|0;
  28791. $176 = (_strcmp($175,12651)|0);
  28792. $177 = ($176|0)!=(0);
  28793. if (!($177)) {
  28794. HEAP32[$1>>2] = 2;
  28795. break;
  28796. }
  28797. $178 = HEAP32[$3>>2]|0;
  28798. $179 = (_strcmp($178,12663)|0);
  28799. $180 = ($179|0)!=(0);
  28800. if (!($180)) {
  28801. HEAP32[$1>>2] = 14;
  28802. break;
  28803. }
  28804. $181 = HEAP32[$3>>2]|0;
  28805. $182 = (_strcmp($181,12676)|0);
  28806. $183 = ($182|0)!=(0);
  28807. if (!($183)) {
  28808. HEAP32[$1>>2] = 15;
  28809. break;
  28810. }
  28811. $184 = HEAP32[$3>>2]|0;
  28812. $185 = (_strcmp($184,12689)|0);
  28813. $186 = ($185|0)!=(0);
  28814. if (!($186)) {
  28815. HEAP32[$1>>2] = 16;
  28816. break;
  28817. }
  28818. $187 = HEAP32[$3>>2]|0;
  28819. $188 = (_strcmp($187,12702)|0);
  28820. $189 = ($188|0)!=(0);
  28821. if (!($189)) {
  28822. HEAP32[$1>>2] = 17;
  28823. break;
  28824. }
  28825. $190 = HEAP32[$3>>2]|0;
  28826. $191 = (_strcmp($190,12715)|0);
  28827. $192 = ($191|0)!=(0);
  28828. if (!($192)) {
  28829. HEAP32[$1>>2] = 18;
  28830. break;
  28831. }
  28832. $193 = HEAP32[$3>>2]|0;
  28833. $194 = (_strcmp($193,12728)|0);
  28834. $195 = ($194|0)!=(0);
  28835. if (!($195)) {
  28836. HEAP32[$1>>2] = 19;
  28837. break;
  28838. }
  28839. $196 = HEAP32[$3>>2]|0;
  28840. $197 = (_strcmp($196,12741)|0);
  28841. $198 = ($197|0)!=(0);
  28842. if (!($198)) {
  28843. HEAP32[$1>>2] = 20;
  28844. break;
  28845. }
  28846. $199 = HEAP32[$3>>2]|0;
  28847. $200 = (_strcmp($199,12754)|0);
  28848. $201 = ($200|0)!=(0);
  28849. if (!($201)) {
  28850. HEAP32[$1>>2] = 21;
  28851. break;
  28852. }
  28853. $202 = HEAP32[$3>>2]|0;
  28854. $203 = (_strcmp($202,12767)|0);
  28855. $204 = ($203|0)!=(0);
  28856. if (!($204)) {
  28857. HEAP32[$1>>2] = 5;
  28858. break;
  28859. }
  28860. $205 = HEAP32[$3>>2]|0;
  28861. $206 = (_strcmp($205,12786)|0);
  28862. $207 = ($206|0)!=(0);
  28863. if (!($207)) {
  28864. HEAP32[$1>>2] = 6;
  28865. break;
  28866. }
  28867. $208 = HEAP32[$3>>2]|0;
  28868. $209 = (_strcmp($208,12805)|0);
  28869. $210 = ($209|0)!=(0);
  28870. if (!($210)) {
  28871. HEAP32[$1>>2] = 7;
  28872. break;
  28873. }
  28874. $211 = HEAP32[$3>>2]|0;
  28875. $212 = (_strcmp($211,12824)|0);
  28876. $213 = ($212|0)!=(0);
  28877. if (!($213)) {
  28878. HEAP32[$1>>2] = 19;
  28879. break;
  28880. }
  28881. $214 = HEAP32[$3>>2]|0;
  28882. $215 = (_strcmp($214,12837)|0);
  28883. $216 = ($215|0)!=(0);
  28884. if (!($216)) {
  28885. HEAP32[$1>>2] = 20;
  28886. break;
  28887. }
  28888. $217 = HEAP32[$3>>2]|0;
  28889. $218 = (_strcmp($217,12855)|0);
  28890. $219 = ($218|0)!=(0);
  28891. if (!($219)) {
  28892. HEAP32[$1>>2] = 21;
  28893. break;
  28894. }
  28895. $220 = HEAP32[$3>>2]|0;
  28896. $221 = (_strcmp($220,12873)|0);
  28897. $222 = ($221|0)!=(0);
  28898. if (!($222)) {
  28899. HEAP32[$1>>2] = 22;
  28900. break;
  28901. }
  28902. $223 = HEAP32[$3>>2]|0;
  28903. $224 = (_strcmp($223,12891)|0);
  28904. $225 = ($224|0)!=(0);
  28905. if (!($225)) {
  28906. HEAP32[$1>>2] = 23;
  28907. break;
  28908. }
  28909. $226 = HEAP32[$3>>2]|0;
  28910. $227 = (_strcmp($226,12909)|0);
  28911. $228 = ($227|0)!=(0);
  28912. if (!($228)) {
  28913. HEAP32[$1>>2] = 2;
  28914. break;
  28915. }
  28916. $229 = HEAP32[$3>>2]|0;
  28917. $230 = (_strcmp($229,12929)|0);
  28918. $231 = ($230|0)!=(0);
  28919. if (!($231)) {
  28920. HEAP32[$1>>2] = 3;
  28921. break;
  28922. }
  28923. $232 = HEAP32[$3>>2]|0;
  28924. $233 = (_strcmp($232,11870)|0);
  28925. $234 = ($233|0)!=(0);
  28926. if (!($234)) {
  28927. HEAP32[$1>>2] = 7;
  28928. break;
  28929. }
  28930. $235 = HEAP32[$3>>2]|0;
  28931. $236 = (_strcmp($235,12947)|0);
  28932. $237 = ($236|0)!=(0);
  28933. if (!($237)) {
  28934. HEAP32[$1>>2] = 1;
  28935. break;
  28936. }
  28937. $238 = HEAP32[$3>>2]|0;
  28938. $239 = (_strcmp($238,12962)|0);
  28939. $240 = ($239|0)!=(0);
  28940. if (!($240)) {
  28941. HEAP32[$1>>2] = 8;
  28942. break;
  28943. }
  28944. $241 = HEAP32[$3>>2]|0;
  28945. $242 = (_strcmp($241,12983)|0);
  28946. $243 = ($242|0)!=(0);
  28947. if (!($243)) {
  28948. HEAP32[$1>>2] = 9;
  28949. break;
  28950. }
  28951. $244 = HEAP32[$3>>2]|0;
  28952. $245 = (_strcmp($244,12998)|0);
  28953. $246 = ($245|0)!=(0);
  28954. if (!($246)) {
  28955. HEAP32[$1>>2] = 10;
  28956. break;
  28957. }
  28958. $247 = HEAP32[$3>>2]|0;
  28959. $248 = (_strcmp($247,13016)|0);
  28960. $249 = ($248|0)!=(0);
  28961. if (!($249)) {
  28962. HEAP32[$1>>2] = 2;
  28963. break;
  28964. }
  28965. $250 = HEAP32[$3>>2]|0;
  28966. $251 = (_strcmp($250,13032)|0);
  28967. $252 = ($251|0)!=(0);
  28968. if (!($252)) {
  28969. HEAP32[$1>>2] = 11;
  28970. break;
  28971. }
  28972. $253 = HEAP32[$3>>2]|0;
  28973. $254 = (_strcmp($253,13051)|0);
  28974. $255 = ($254|0)!=(0);
  28975. if (!($255)) {
  28976. HEAP32[$1>>2] = 22;
  28977. break;
  28978. }
  28979. $256 = HEAP32[$3>>2]|0;
  28980. $257 = (_strcmp($256,13065)|0);
  28981. $258 = ($257|0)!=(0);
  28982. if (!($258)) {
  28983. HEAP32[$1>>2] = 23;
  28984. break;
  28985. }
  28986. $259 = HEAP32[$3>>2]|0;
  28987. $260 = (_strcmp($259,13080)|0);
  28988. $261 = ($260|0)!=(0);
  28989. if (!($261)) {
  28990. HEAP32[$1>>2] = 8;
  28991. break;
  28992. }
  28993. $262 = HEAP32[$3>>2]|0;
  28994. $263 = (_strcmp($262,11801)|0);
  28995. $264 = ($263|0)!=(0);
  28996. if (!($264)) {
  28997. HEAP32[$1>>2] = 1;
  28998. break;
  28999. }
  29000. $265 = HEAP32[$3>>2]|0;
  29001. $266 = (_strcmp($265,13091)|0);
  29002. $267 = ($266|0)!=(0);
  29003. if (!($267)) {
  29004. HEAP32[$1>>2] = 3;
  29005. break;
  29006. }
  29007. $268 = HEAP32[$3>>2]|0;
  29008. $269 = (_strcmp($268,11900)|0);
  29009. $270 = ($269|0)!=(0);
  29010. if (!($270)) {
  29011. HEAP32[$1>>2] = 24;
  29012. break;
  29013. }
  29014. $271 = HEAP32[$3>>2]|0;
  29015. $272 = (_strcmp($271,11930)|0);
  29016. $273 = ($272|0)!=(0);
  29017. if (!($273)) {
  29018. HEAP32[$1>>2] = 25;
  29019. break;
  29020. }
  29021. $274 = HEAP32[$3>>2]|0;
  29022. $275 = (_strcmp($274,13107)|0);
  29023. $276 = ($275|0)!=(0);
  29024. if (!($276)) {
  29025. HEAP32[$1>>2] = 12;
  29026. break;
  29027. }
  29028. $277 = HEAP32[$3>>2]|0;
  29029. $278 = (_strcmp($277,13134)|0);
  29030. $279 = ($278|0)!=(0);
  29031. if (!($279)) {
  29032. HEAP32[$1>>2] = 4;
  29033. break;
  29034. }
  29035. $280 = HEAP32[$3>>2]|0;
  29036. $281 = (_strcmp($280,13148)|0);
  29037. $282 = ($281|0)!=(0);
  29038. if (!($282)) {
  29039. HEAP32[$1>>2] = 13;
  29040. break;
  29041. }
  29042. $283 = HEAP32[$3>>2]|0;
  29043. $284 = (_strcmp($283,11836)|0);
  29044. $285 = ($284|0)!=(0);
  29045. if (!($285)) {
  29046. HEAP32[$1>>2] = 5;
  29047. break;
  29048. }
  29049. $286 = HEAP32[$3>>2]|0;
  29050. $287 = (_strcmp($286,13168)|0);
  29051. $288 = ($287|0)!=(0);
  29052. if (!($288)) {
  29053. HEAP32[$1>>2] = 6;
  29054. break;
  29055. }
  29056. $289 = HEAP32[$3>>2]|0;
  29057. $290 = (_strcmp($289,13186)|0);
  29058. $291 = ($290|0)!=(0);
  29059. if (!($291)) {
  29060. HEAP32[$1>>2] = 9;
  29061. break;
  29062. }
  29063. $292 = HEAP32[$3>>2]|0;
  29064. $293 = (_strcmp($292,13198)|0);
  29065. $294 = ($293|0)!=(0);
  29066. if (!($294)) {
  29067. HEAP32[$1>>2] = 24;
  29068. break;
  29069. }
  29070. $295 = HEAP32[$3>>2]|0;
  29071. $296 = (_strcmp($295,13219)|0);
  29072. $297 = ($296|0)!=(0);
  29073. if (!($297)) {
  29074. HEAP32[$1>>2] = 26;
  29075. break;
  29076. }
  29077. $298 = HEAP32[$3>>2]|0;
  29078. $299 = (_strcmp($298,13237)|0);
  29079. $300 = ($299|0)!=(0);
  29080. if (!($300)) {
  29081. HEAP32[$1>>2] = 27;
  29082. break;
  29083. }
  29084. $301 = HEAP32[$3>>2]|0;
  29085. $302 = (_strcmp($301,13255)|0);
  29086. $303 = ($302|0)!=(0);
  29087. if (!($303)) {
  29088. HEAP32[$1>>2] = 28;
  29089. break;
  29090. }
  29091. $304 = HEAP32[$3>>2]|0;
  29092. $305 = (_strcmp($304,13276)|0);
  29093. $306 = ($305|0)!=(0);
  29094. if (!($306)) {
  29095. HEAP32[$1>>2] = 14;
  29096. break;
  29097. }
  29098. $307 = HEAP32[$3>>2]|0;
  29099. $308 = (_strcmp($307,13302)|0);
  29100. $309 = ($308|0)!=(0);
  29101. if (!($309)) {
  29102. HEAP32[$1>>2] = 3;
  29103. break;
  29104. }
  29105. $310 = HEAP32[$3>>2]|0;
  29106. $311 = (_strcmp($310,13325)|0);
  29107. $312 = ($311|0)!=(0);
  29108. if (!($312)) {
  29109. HEAP32[$1>>2] = 15;
  29110. break;
  29111. }
  29112. $313 = HEAP32[$3>>2]|0;
  29113. $314 = (_strcmp($313,13363)|0);
  29114. $315 = ($314|0)!=(0);
  29115. if (!($315)) {
  29116. HEAP32[$1>>2] = 10;
  29117. break;
  29118. }
  29119. $316 = HEAP32[$3>>2]|0;
  29120. $317 = (_strcmp($316,13379)|0);
  29121. $318 = ($317|0)!=(0);
  29122. if (!($318)) {
  29123. HEAP32[$1>>2] = 7;
  29124. break;
  29125. }
  29126. $319 = HEAP32[$3>>2]|0;
  29127. $320 = (_strcmp($319,13394)|0);
  29128. $321 = ($320|0)!=(0);
  29129. if (!($321)) {
  29130. HEAP32[$1>>2] = 25;
  29131. break;
  29132. }
  29133. $322 = HEAP32[$3>>2]|0;
  29134. $323 = (_strcmp($322,13417)|0);
  29135. $324 = ($323|0)!=(0);
  29136. if (!($324)) {
  29137. HEAP32[$1>>2] = 16;
  29138. break;
  29139. }
  29140. $325 = HEAP32[$3>>2]|0;
  29141. $326 = (_strcmp($325,13430)|0);
  29142. $327 = ($326|0)!=(0);
  29143. if (!($327)) {
  29144. HEAP32[$1>>2] = 29;
  29145. break;
  29146. }
  29147. $328 = HEAP32[$3>>2]|0;
  29148. $329 = (_strcmp($328,13444)|0);
  29149. $330 = ($329|0)!=(0);
  29150. if (!($330)) {
  29151. HEAP32[$1>>2] = 30;
  29152. break;
  29153. }
  29154. $331 = HEAP32[$3>>2]|0;
  29155. $332 = (_strcmp($331,13458)|0);
  29156. $333 = ($332|0)!=(0);
  29157. if (!($333)) {
  29158. HEAP32[$1>>2] = 1;
  29159. break;
  29160. }
  29161. $334 = HEAP32[$3>>2]|0;
  29162. $335 = (_strcmp($334,13478)|0);
  29163. $336 = ($335|0)!=(0);
  29164. if (!($336)) {
  29165. HEAP32[$1>>2] = 8;
  29166. break;
  29167. }
  29168. $337 = HEAP32[$3>>2]|0;
  29169. $338 = (_strcmp($337,13498)|0);
  29170. $339 = ($338|0)!=(0);
  29171. if (!($339)) {
  29172. HEAP32[$1>>2] = 17;
  29173. break;
  29174. }
  29175. $340 = HEAP32[$3>>2]|0;
  29176. $341 = (_strcmp($340,13514)|0);
  29177. $342 = ($341|0)!=(0);
  29178. if (!($342)) {
  29179. HEAP32[$1>>2] = 18;
  29180. break;
  29181. }
  29182. $343 = HEAP32[$3>>2]|0;
  29183. $344 = (_strcmp($343,13532)|0);
  29184. $345 = ($344|0)!=(0);
  29185. if (!($345)) {
  29186. HEAP32[$1>>2] = 26;
  29187. break;
  29188. }
  29189. $346 = HEAP32[$3>>2]|0;
  29190. $347 = (_strcmp($346,13548)|0);
  29191. $348 = ($347|0)!=(0);
  29192. if (!($348)) {
  29193. HEAP32[$1>>2] = 19;
  29194. break;
  29195. }
  29196. $349 = HEAP32[$3>>2]|0;
  29197. $350 = (_strcmp($349,13563)|0);
  29198. $351 = ($350|0)!=(0);
  29199. if (!($351)) {
  29200. HEAP32[$1>>2] = 9;
  29201. break;
  29202. }
  29203. $352 = HEAP32[$3>>2]|0;
  29204. $353 = (_strcmp($352,13585)|0);
  29205. $354 = ($353|0)!=(0);
  29206. if (!($354)) {
  29207. HEAP32[$1>>2] = 31;
  29208. break;
  29209. }
  29210. $355 = HEAP32[$3>>2]|0;
  29211. $356 = (_strcmp($355,13603)|0);
  29212. $357 = ($356|0)!=(0);
  29213. if (!($357)) {
  29214. HEAP32[$1>>2] = 32;
  29215. break;
  29216. }
  29217. $358 = HEAP32[$3>>2]|0;
  29218. $359 = (_strcmp($358,13624)|0);
  29219. $360 = ($359|0)!=(0);
  29220. if (!($360)) {
  29221. HEAP32[$1>>2] = 10;
  29222. break;
  29223. }
  29224. $361 = HEAP32[$3>>2]|0;
  29225. $362 = (_strcmp($361,13642)|0);
  29226. $363 = ($362|0)!=(0);
  29227. if (!($363)) {
  29228. HEAP32[$1>>2] = 11;
  29229. break;
  29230. }
  29231. $364 = HEAP32[$3>>2]|0;
  29232. $365 = (_strcmp($364,13655)|0);
  29233. $366 = ($365|0)!=(0);
  29234. if (!($366)) {
  29235. HEAP32[$1>>2] = 2;
  29236. break;
  29237. }
  29238. $367 = HEAP32[$3>>2]|0;
  29239. $368 = (_strcmp($367,13670)|0);
  29240. $369 = ($368|0)!=(0);
  29241. if (!($369)) {
  29242. HEAP32[$1>>2] = 12;
  29243. break;
  29244. }
  29245. $370 = HEAP32[$3>>2]|0;
  29246. $371 = (_strcmp($370,13684)|0);
  29247. $372 = ($371|0)!=(0);
  29248. if (!($372)) {
  29249. HEAP32[$1>>2] = 1;
  29250. break;
  29251. }
  29252. $373 = HEAP32[$3>>2]|0;
  29253. $374 = (_strcmp($373,13694)|0);
  29254. $375 = ($374|0)!=(0);
  29255. if (!($375)) {
  29256. HEAP32[$1>>2] = 1;
  29257. break;
  29258. }
  29259. $376 = HEAP32[$3>>2]|0;
  29260. $377 = (_strcmp($376,13704)|0);
  29261. $378 = ($377|0)!=(0);
  29262. if (!($378)) {
  29263. HEAP32[$1>>2] = 2;
  29264. break;
  29265. }
  29266. $379 = HEAP32[$3>>2]|0;
  29267. $380 = (_strcmp($379,13726)|0);
  29268. $381 = ($380|0)!=(0);
  29269. if (!($381)) {
  29270. HEAP32[$1>>2] = 13;
  29271. break;
  29272. }
  29273. $382 = HEAP32[$3>>2]|0;
  29274. $383 = (_strcmp($382,13752)|0);
  29275. $384 = ($383|0)!=(0);
  29276. if (!($384)) {
  29277. HEAP32[$1>>2] = 14;
  29278. break;
  29279. }
  29280. $385 = HEAP32[$3>>2]|0;
  29281. $386 = (_strcmp($385,13779)|0);
  29282. $387 = ($386|0)!=(0);
  29283. if (!($387)) {
  29284. HEAP32[$1>>2] = 27;
  29285. break;
  29286. }
  29287. $388 = HEAP32[$3>>2]|0;
  29288. $389 = (_strcmp($388,13792)|0);
  29289. $390 = ($389|0)!=(0);
  29290. if (!($390)) {
  29291. HEAP32[$1>>2] = 20;
  29292. break;
  29293. }
  29294. $391 = HEAP32[$3>>2]|0;
  29295. $392 = (_strcmp($391,13807)|0);
  29296. $393 = ($392|0)!=(0);
  29297. if (!($393)) {
  29298. HEAP32[$1>>2] = 4;
  29299. break;
  29300. }
  29301. $394 = HEAP32[$3>>2]|0;
  29302. $395 = (_strcmp($394,13822)|0);
  29303. $396 = ($395|0)!=(0);
  29304. if (!($396)) {
  29305. HEAP32[$1>>2] = 3;
  29306. break;
  29307. }
  29308. $397 = HEAP32[$3>>2]|0;
  29309. $398 = (_strcmp($397,13846)|0);
  29310. $399 = ($398|0)!=(0);
  29311. if (!($399)) {
  29312. HEAP32[$1>>2] = 2;
  29313. break;
  29314. }
  29315. $400 = HEAP32[$3>>2]|0;
  29316. $401 = (_strcmp($400,13857)|0);
  29317. $402 = ($401|0)!=(0);
  29318. if (!($402)) {
  29319. HEAP32[$1>>2] = 33;
  29320. break;
  29321. }
  29322. $403 = HEAP32[$3>>2]|0;
  29323. $404 = (_strcmp($403,13879)|0);
  29324. $405 = ($404|0)!=(0);
  29325. if (!($405)) {
  29326. HEAP32[$1>>2] = 21;
  29327. break;
  29328. }
  29329. $406 = HEAP32[$3>>2]|0;
  29330. $407 = (_strcmp($406,13901)|0);
  29331. $408 = ($407|0)!=(0);
  29332. if (!($408)) {
  29333. HEAP32[$1>>2] = 5;
  29334. break;
  29335. }
  29336. $409 = HEAP32[$3>>2]|0;
  29337. $410 = (_strcmp($409,13925)|0);
  29338. $411 = ($410|0)!=(0);
  29339. if (!($411)) {
  29340. HEAP32[$1>>2] = 4;
  29341. break;
  29342. }
  29343. $412 = HEAP32[$3>>2]|0;
  29344. $413 = (_strcmp($412,13934)|0);
  29345. $414 = ($413|0)!=(0);
  29346. if (!($414)) {
  29347. HEAP32[$1>>2] = 5;
  29348. break;
  29349. }
  29350. $415 = HEAP32[$3>>2]|0;
  29351. $416 = (_strcmp($415,13942)|0);
  29352. $417 = ($416|0)!=(0);
  29353. if (!($417)) {
  29354. HEAP32[$1>>2] = 1;
  29355. break;
  29356. }
  29357. $418 = HEAP32[$3>>2]|0;
  29358. $419 = (_strcmp($418,13955)|0);
  29359. $420 = ($419|0)!=(0);
  29360. if (!($420)) {
  29361. HEAP32[$1>>2] = 2;
  29362. break;
  29363. }
  29364. $421 = HEAP32[$3>>2]|0;
  29365. $422 = (_strcmp($421,13969)|0);
  29366. $423 = ($422|0)!=(0);
  29367. if (!($423)) {
  29368. HEAP32[$1>>2] = 15;
  29369. break;
  29370. }
  29371. $424 = HEAP32[$3>>2]|0;
  29372. $425 = (_strcmp($424,13981)|0);
  29373. $426 = ($425|0)!=(0);
  29374. if (!($426)) {
  29375. HEAP32[$1>>2] = 16;
  29376. break;
  29377. }
  29378. $427 = HEAP32[$3>>2]|0;
  29379. $428 = (_strcmp($427,13990)|0);
  29380. $429 = ($428|0)!=(0);
  29381. if (!($429)) {
  29382. HEAP32[$1>>2] = 17;
  29383. break;
  29384. }
  29385. $430 = HEAP32[$3>>2]|0;
  29386. $431 = (_strcmp($430,14000)|0);
  29387. $432 = ($431|0)!=(0);
  29388. if (!($432)) {
  29389. HEAP32[$1>>2] = 18;
  29390. break;
  29391. }
  29392. $433 = HEAP32[$3>>2]|0;
  29393. $434 = (_strcmp($433,14012)|0);
  29394. $435 = ($434|0)!=(0);
  29395. if (!($435)) {
  29396. HEAP32[$1>>2] = 19;
  29397. break;
  29398. }
  29399. $436 = HEAP32[$3>>2]|0;
  29400. $437 = (_strcmp($436,14023)|0);
  29401. $438 = ($437|0)!=(0);
  29402. if (!($438)) {
  29403. HEAP32[$1>>2] = 20;
  29404. break;
  29405. }
  29406. $439 = HEAP32[$3>>2]|0;
  29407. $440 = (_strcmp($439,14031)|0);
  29408. $441 = ($440|0)!=(0);
  29409. if (!($441)) {
  29410. HEAP32[$1>>2] = 3;
  29411. break;
  29412. }
  29413. $442 = HEAP32[$3>>2]|0;
  29414. $443 = (_strcmp($442,14043)|0);
  29415. $444 = ($443|0)!=(0);
  29416. if (!($444)) {
  29417. HEAP32[$1>>2] = 21;
  29418. break;
  29419. }
  29420. $445 = HEAP32[$3>>2]|0;
  29421. $446 = (_strcmp($445,14058)|0);
  29422. $447 = ($446|0)!=(0);
  29423. if (!($447)) {
  29424. HEAP32[$1>>2] = 22;
  29425. break;
  29426. }
  29427. $448 = HEAP32[$3>>2]|0;
  29428. $449 = (_strcmp($448,14070)|0);
  29429. $450 = ($449|0)!=(0);
  29430. if (!($450)) {
  29431. HEAP32[$1>>2] = 23;
  29432. break;
  29433. }
  29434. $451 = HEAP32[$3>>2]|0;
  29435. $452 = (_strcmp($451,14084)|0);
  29436. $453 = ($452|0)!=(0);
  29437. if (!($453)) {
  29438. HEAP32[$1>>2] = 11;
  29439. break;
  29440. }
  29441. $454 = HEAP32[$3>>2]|0;
  29442. $455 = (_strcmp($454,14109)|0);
  29443. $456 = ($455|0)!=(0);
  29444. if (!($456)) {
  29445. HEAP32[$1>>2] = 24;
  29446. break;
  29447. }
  29448. $457 = HEAP32[$3>>2]|0;
  29449. $458 = (_strcmp($457,14126)|0);
  29450. $459 = ($458|0)!=(0);
  29451. if (!($459)) {
  29452. HEAP32[$1>>2] = 25;
  29453. break;
  29454. }
  29455. $460 = HEAP32[$3>>2]|0;
  29456. $461 = (_strcmp($460,14142)|0);
  29457. $462 = ($461|0)!=(0);
  29458. if (!($462)) {
  29459. HEAP32[$1>>2] = 26;
  29460. break;
  29461. }
  29462. $463 = HEAP32[$3>>2]|0;
  29463. $464 = (_strcmp($463,14158)|0);
  29464. $465 = ($464|0)!=(0);
  29465. if (!($465)) {
  29466. HEAP32[$1>>2] = 12;
  29467. break;
  29468. }
  29469. $466 = HEAP32[$3>>2]|0;
  29470. $467 = (_strcmp($466,14170)|0);
  29471. $468 = ($467|0)!=(0);
  29472. if (!($468)) {
  29473. HEAP32[$1>>2] = 34;
  29474. break;
  29475. }
  29476. $469 = HEAP32[$3>>2]|0;
  29477. $470 = (_strcmp($469,14182)|0);
  29478. $471 = ($470|0)!=(0);
  29479. if (!($471)) {
  29480. HEAP32[$1>>2] = 35;
  29481. break;
  29482. }
  29483. $472 = HEAP32[$3>>2]|0;
  29484. $473 = (_strcmp($472,14206)|0);
  29485. $474 = ($473|0)!=(0);
  29486. if (!($474)) {
  29487. HEAP32[$1>>2] = 1;
  29488. break;
  29489. }
  29490. $475 = HEAP32[$3>>2]|0;
  29491. $476 = (_strcmp($475,14219)|0);
  29492. $477 = ($476|0)!=(0);
  29493. if (!($477)) {
  29494. HEAP32[$1>>2] = 2;
  29495. break;
  29496. }
  29497. $478 = HEAP32[$3>>2]|0;
  29498. $479 = (_strcmp($478,14233)|0);
  29499. $480 = ($479|0)!=(0);
  29500. if (!($480)) {
  29501. HEAP32[$1>>2] = 36;
  29502. break;
  29503. }
  29504. $481 = HEAP32[$3>>2]|0;
  29505. $482 = (_strcmp($481,14255)|0);
  29506. $483 = ($482|0)!=(0);
  29507. if (!($483)) {
  29508. HEAP32[$1>>2] = 37;
  29509. break;
  29510. }
  29511. $484 = HEAP32[$3>>2]|0;
  29512. $485 = (_strcmp($484,14262)|0);
  29513. $486 = ($485|0)!=(0);
  29514. if (!($486)) {
  29515. HEAP32[$1>>2] = 3;
  29516. break;
  29517. }
  29518. $487 = HEAP32[$3>>2]|0;
  29519. $488 = (_strcmp($487,14278)|0);
  29520. $489 = ($488|0)!=(0);
  29521. if (!($489)) {
  29522. HEAP32[$1>>2] = 2;
  29523. break;
  29524. }
  29525. $490 = HEAP32[$3>>2]|0;
  29526. $491 = (_strcmp($490,14295)|0);
  29527. $492 = ($491|0)!=(0);
  29528. if (!($492)) {
  29529. HEAP32[$1>>2] = 1;
  29530. break;
  29531. }
  29532. $493 = HEAP32[$3>>2]|0;
  29533. $494 = (_strcmp($493,14312)|0);
  29534. $495 = ($494|0)!=(0);
  29535. if (!($495)) {
  29536. HEAP32[$1>>2] = 28;
  29537. break;
  29538. }
  29539. $496 = HEAP32[$3>>2]|0;
  29540. $497 = (_strcmp($496,14328)|0);
  29541. $498 = ($497|0)!=(0);
  29542. if (!($498)) {
  29543. HEAP32[$1>>2] = 1;
  29544. break;
  29545. }
  29546. $499 = HEAP32[$3>>2]|0;
  29547. $500 = (_strcmp($499,14344)|0);
  29548. $501 = ($500|0)!=(0);
  29549. if (!($501)) {
  29550. HEAP32[$1>>2] = 4;
  29551. break;
  29552. }
  29553. $502 = HEAP32[$3>>2]|0;
  29554. $503 = (_strcmp($502,14361)|0);
  29555. $504 = ($503|0)!=(0);
  29556. if (!($504)) {
  29557. HEAP32[$1>>2] = 29;
  29558. break;
  29559. }
  29560. $505 = HEAP32[$3>>2]|0;
  29561. $506 = (_strcmp($505,14375)|0);
  29562. $507 = ($506|0)!=(0);
  29563. if (!($507)) {
  29564. HEAP32[$1>>2] = 30;
  29565. break;
  29566. }
  29567. $508 = HEAP32[$3>>2]|0;
  29568. $509 = (_strcmp($508,14387)|0);
  29569. $510 = ($509|0)!=(0);
  29570. if (!($510)) {
  29571. HEAP32[$1>>2] = 22;
  29572. break;
  29573. }
  29574. $511 = HEAP32[$3>>2]|0;
  29575. $512 = (_strcmp($511,14398)|0);
  29576. $513 = ($512|0)!=(0);
  29577. if (!($513)) {
  29578. HEAP32[$1>>2] = 2;
  29579. break;
  29580. }
  29581. $514 = HEAP32[$3>>2]|0;
  29582. $515 = (_strcmp($514,14411)|0);
  29583. $516 = ($515|0)!=(0);
  29584. if (!($516)) {
  29585. HEAP32[$1>>2] = 23;
  29586. break;
  29587. }
  29588. $517 = HEAP32[$3>>2]|0;
  29589. $518 = (_strcmp($517,14421)|0);
  29590. $519 = ($518|0)!=(0);
  29591. if (!($519)) {
  29592. HEAP32[$1>>2] = 2;
  29593. break;
  29594. }
  29595. $520 = HEAP32[$3>>2]|0;
  29596. $521 = (_strcmp($520,14438)|0);
  29597. $522 = ($521|0)!=(0);
  29598. if (!($522)) {
  29599. HEAP32[$1>>2] = 24;
  29600. break;
  29601. }
  29602. $523 = HEAP32[$3>>2]|0;
  29603. $524 = (_strcmp($523,14450)|0);
  29604. $525 = ($524|0)!=(0);
  29605. if (!($525)) {
  29606. HEAP32[$1>>2] = 25;
  29607. break;
  29608. }
  29609. $526 = HEAP32[$3>>2]|0;
  29610. $527 = (_strcmp($526,14472)|0);
  29611. $528 = ($527|0)!=(0);
  29612. if (!($528)) {
  29613. HEAP32[$1>>2] = 26;
  29614. break;
  29615. }
  29616. $529 = HEAP32[$3>>2]|0;
  29617. $530 = (_strcmp($529,14492)|0);
  29618. $531 = ($530|0)!=(0);
  29619. if (!($531)) {
  29620. HEAP32[$1>>2] = 3;
  29621. break;
  29622. }
  29623. $532 = HEAP32[$3>>2]|0;
  29624. $533 = (_strcmp($532,14505)|0);
  29625. $534 = ($533|0)!=(0);
  29626. if (!($534)) {
  29627. HEAP32[$1>>2] = 27;
  29628. break;
  29629. }
  29630. $535 = HEAP32[$3>>2]|0;
  29631. $536 = (_strcmp($535,14527)|0);
  29632. $537 = ($536|0)!=(0);
  29633. if (!($537)) {
  29634. HEAP32[$1>>2] = 28;
  29635. break;
  29636. }
  29637. $538 = HEAP32[$3>>2]|0;
  29638. $539 = (_strcmp($538,14547)|0);
  29639. $540 = ($539|0)!=(0);
  29640. if (!($540)) {
  29641. HEAP32[$1>>2] = 2;
  29642. break;
  29643. }
  29644. $541 = HEAP32[$3>>2]|0;
  29645. $542 = (_strcmp($541,14564)|0);
  29646. $543 = ($542|0)!=(0);
  29647. if (!($543)) {
  29648. HEAP32[$1>>2] = 2;
  29649. break;
  29650. }
  29651. $544 = HEAP32[$3>>2]|0;
  29652. $545 = (_strcmp($544,14581)|0);
  29653. $546 = ($545|0)!=(0);
  29654. if (!($546)) {
  29655. HEAP32[$1>>2] = 3;
  29656. break;
  29657. }
  29658. $547 = HEAP32[$3>>2]|0;
  29659. $548 = (_strcmp($547,14601)|0);
  29660. $549 = ($548|0)!=(0);
  29661. if ($549) {
  29662. $550 = HEAP32[$2>>2]|0;
  29663. $551 = HEAP32[$3>>2]|0;
  29664. $552 = _emscripten_asm_const_iii(0, ($550|0), ($551|0))|0;
  29665. HEAP32[$1>>2] = 0;
  29666. break;
  29667. } else {
  29668. HEAP32[$1>>2] = 38;
  29669. break;
  29670. }
  29671. } else {
  29672. HEAP32[$1>>2] = 6;
  29673. }
  29674. } while(0);
  29675. $553 = HEAP32[$1>>2]|0;
  29676. STACKTOP = sp;return ($553|0);
  29677. }
  29678. function _emscripten_get_global_libc() {
  29679. var label = 0, sp = 0;
  29680. sp = STACKTOP;
  29681. return (20032|0);
  29682. }
  29683. function ___stdio_close($0) {
  29684. $0 = $0|0;
  29685. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  29686. sp = STACKTOP;
  29687. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  29688. $vararg_buffer = sp;
  29689. $1 = ((($0)) + 60|0);
  29690. $2 = HEAP32[$1>>2]|0;
  29691. $3 = (_dummy_738($2)|0);
  29692. HEAP32[$vararg_buffer>>2] = $3;
  29693. $4 = (___syscall6(6,($vararg_buffer|0))|0);
  29694. $5 = (___syscall_ret($4)|0);
  29695. STACKTOP = sp;return ($5|0);
  29696. }
  29697. function ___stdio_write($0,$1,$2) {
  29698. $0 = $0|0;
  29699. $1 = $1|0;
  29700. $2 = $2|0;
  29701. 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;
  29702. 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;
  29703. 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;
  29704. var $vararg_ptr7 = 0, label = 0, sp = 0;
  29705. sp = STACKTOP;
  29706. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  29707. $vararg_buffer3 = sp + 16|0;
  29708. $vararg_buffer = sp;
  29709. $3 = sp + 32|0;
  29710. $4 = ((($0)) + 28|0);
  29711. $5 = HEAP32[$4>>2]|0;
  29712. HEAP32[$3>>2] = $5;
  29713. $6 = ((($3)) + 4|0);
  29714. $7 = ((($0)) + 20|0);
  29715. $8 = HEAP32[$7>>2]|0;
  29716. $9 = (($8) - ($5))|0;
  29717. HEAP32[$6>>2] = $9;
  29718. $10 = ((($3)) + 8|0);
  29719. HEAP32[$10>>2] = $1;
  29720. $11 = ((($3)) + 12|0);
  29721. HEAP32[$11>>2] = $2;
  29722. $12 = (($9) + ($2))|0;
  29723. $13 = ((($0)) + 60|0);
  29724. $14 = HEAP32[$13>>2]|0;
  29725. $15 = $3;
  29726. HEAP32[$vararg_buffer>>2] = $14;
  29727. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  29728. HEAP32[$vararg_ptr1>>2] = $15;
  29729. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  29730. HEAP32[$vararg_ptr2>>2] = 2;
  29731. $16 = (___syscall146(146,($vararg_buffer|0))|0);
  29732. $17 = (___syscall_ret($16)|0);
  29733. $18 = ($12|0)==($17|0);
  29734. L1: do {
  29735. if ($18) {
  29736. label = 3;
  29737. } else {
  29738. $$04756 = 2;$$04855 = $12;$$04954 = $3;$26 = $17;
  29739. while(1) {
  29740. $25 = ($26|0)<(0);
  29741. if ($25) {
  29742. break;
  29743. }
  29744. $34 = (($$04855) - ($26))|0;
  29745. $35 = ((($$04954)) + 4|0);
  29746. $36 = HEAP32[$35>>2]|0;
  29747. $37 = ($26>>>0)>($36>>>0);
  29748. $38 = ((($$04954)) + 8|0);
  29749. $$150 = $37 ? $38 : $$04954;
  29750. $39 = $37 << 31 >> 31;
  29751. $$1 = (($39) + ($$04756))|0;
  29752. $40 = $37 ? $36 : 0;
  29753. $$0 = (($26) - ($40))|0;
  29754. $41 = HEAP32[$$150>>2]|0;
  29755. $42 = (($41) + ($$0)|0);
  29756. HEAP32[$$150>>2] = $42;
  29757. $43 = ((($$150)) + 4|0);
  29758. $44 = HEAP32[$43>>2]|0;
  29759. $45 = (($44) - ($$0))|0;
  29760. HEAP32[$43>>2] = $45;
  29761. $46 = HEAP32[$13>>2]|0;
  29762. $47 = $$150;
  29763. HEAP32[$vararg_buffer3>>2] = $46;
  29764. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  29765. HEAP32[$vararg_ptr6>>2] = $47;
  29766. $vararg_ptr7 = ((($vararg_buffer3)) + 8|0);
  29767. HEAP32[$vararg_ptr7>>2] = $$1;
  29768. $48 = (___syscall146(146,($vararg_buffer3|0))|0);
  29769. $49 = (___syscall_ret($48)|0);
  29770. $50 = ($34|0)==($49|0);
  29771. if ($50) {
  29772. label = 3;
  29773. break L1;
  29774. } else {
  29775. $$04756 = $$1;$$04855 = $34;$$04954 = $$150;$26 = $49;
  29776. }
  29777. }
  29778. $27 = ((($0)) + 16|0);
  29779. HEAP32[$27>>2] = 0;
  29780. HEAP32[$4>>2] = 0;
  29781. HEAP32[$7>>2] = 0;
  29782. $28 = HEAP32[$0>>2]|0;
  29783. $29 = $28 | 32;
  29784. HEAP32[$0>>2] = $29;
  29785. $30 = ($$04756|0)==(2);
  29786. if ($30) {
  29787. $$051 = 0;
  29788. } else {
  29789. $31 = ((($$04954)) + 4|0);
  29790. $32 = HEAP32[$31>>2]|0;
  29791. $33 = (($2) - ($32))|0;
  29792. $$051 = $33;
  29793. }
  29794. }
  29795. } while(0);
  29796. if ((label|0) == 3) {
  29797. $19 = ((($0)) + 44|0);
  29798. $20 = HEAP32[$19>>2]|0;
  29799. $21 = ((($0)) + 48|0);
  29800. $22 = HEAP32[$21>>2]|0;
  29801. $23 = (($20) + ($22)|0);
  29802. $24 = ((($0)) + 16|0);
  29803. HEAP32[$24>>2] = $23;
  29804. HEAP32[$4>>2] = $20;
  29805. HEAP32[$7>>2] = $20;
  29806. $$051 = $2;
  29807. }
  29808. STACKTOP = sp;return ($$051|0);
  29809. }
  29810. function ___stdio_seek($0,$1,$2) {
  29811. $0 = $0|0;
  29812. $1 = $1|0;
  29813. $2 = $2|0;
  29814. 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;
  29815. sp = STACKTOP;
  29816. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  29817. $vararg_buffer = sp;
  29818. $3 = sp + 20|0;
  29819. $4 = ((($0)) + 60|0);
  29820. $5 = HEAP32[$4>>2]|0;
  29821. $6 = $3;
  29822. HEAP32[$vararg_buffer>>2] = $5;
  29823. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  29824. HEAP32[$vararg_ptr1>>2] = 0;
  29825. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  29826. HEAP32[$vararg_ptr2>>2] = $1;
  29827. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  29828. HEAP32[$vararg_ptr3>>2] = $6;
  29829. $vararg_ptr4 = ((($vararg_buffer)) + 16|0);
  29830. HEAP32[$vararg_ptr4>>2] = $2;
  29831. $7 = (___syscall140(140,($vararg_buffer|0))|0);
  29832. $8 = (___syscall_ret($7)|0);
  29833. $9 = ($8|0)<(0);
  29834. if ($9) {
  29835. HEAP32[$3>>2] = -1;
  29836. $10 = -1;
  29837. } else {
  29838. $$pre = HEAP32[$3>>2]|0;
  29839. $10 = $$pre;
  29840. }
  29841. STACKTOP = sp;return ($10|0);
  29842. }
  29843. function ___syscall_ret($0) {
  29844. $0 = $0|0;
  29845. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  29846. sp = STACKTOP;
  29847. $1 = ($0>>>0)>(4294963200);
  29848. if ($1) {
  29849. $2 = (0 - ($0))|0;
  29850. $3 = (___errno_location()|0);
  29851. HEAP32[$3>>2] = $2;
  29852. $$0 = -1;
  29853. } else {
  29854. $$0 = $0;
  29855. }
  29856. return ($$0|0);
  29857. }
  29858. function ___errno_location() {
  29859. var $0 = 0, $1 = 0, label = 0, sp = 0;
  29860. sp = STACKTOP;
  29861. $0 = (___pthread_self_108()|0);
  29862. $1 = ((($0)) + 64|0);
  29863. return ($1|0);
  29864. }
  29865. function ___pthread_self_108() {
  29866. var $0 = 0, label = 0, sp = 0;
  29867. sp = STACKTOP;
  29868. $0 = (_pthread_self()|0);
  29869. return ($0|0);
  29870. }
  29871. function _pthread_self() {
  29872. var label = 0, sp = 0;
  29873. sp = STACKTOP;
  29874. return (3788|0);
  29875. }
  29876. function _dummy_738($0) {
  29877. $0 = $0|0;
  29878. var label = 0, sp = 0;
  29879. sp = STACKTOP;
  29880. return ($0|0);
  29881. }
  29882. function ___stdio_read($0,$1,$2) {
  29883. $0 = $0|0;
  29884. $1 = $1|0;
  29885. $2 = $2|0;
  29886. 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;
  29887. 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;
  29888. sp = STACKTOP;
  29889. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  29890. $vararg_buffer = sp;
  29891. $3 = sp + 16|0;
  29892. HEAP32[$3>>2] = $1;
  29893. $4 = ((($3)) + 4|0);
  29894. $5 = ((($0)) + 48|0);
  29895. $6 = HEAP32[$5>>2]|0;
  29896. $7 = ($6|0)!=(0);
  29897. $8 = $7&1;
  29898. $9 = (($2) - ($8))|0;
  29899. HEAP32[$4>>2] = $9;
  29900. $10 = ((($3)) + 8|0);
  29901. $11 = ((($0)) + 44|0);
  29902. $12 = HEAP32[$11>>2]|0;
  29903. HEAP32[$10>>2] = $12;
  29904. $13 = ((($3)) + 12|0);
  29905. HEAP32[$13>>2] = $6;
  29906. $14 = ((($0)) + 60|0);
  29907. $15 = HEAP32[$14>>2]|0;
  29908. $16 = $3;
  29909. HEAP32[$vararg_buffer>>2] = $15;
  29910. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  29911. HEAP32[$vararg_ptr1>>2] = $16;
  29912. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  29913. HEAP32[$vararg_ptr2>>2] = 2;
  29914. $17 = (___syscall145(145,($vararg_buffer|0))|0);
  29915. $18 = (___syscall_ret($17)|0);
  29916. $19 = ($18|0)<(1);
  29917. if ($19) {
  29918. $20 = $18 & 48;
  29919. $21 = $20 ^ 16;
  29920. $22 = HEAP32[$0>>2]|0;
  29921. $23 = $22 | $21;
  29922. HEAP32[$0>>2] = $23;
  29923. $$0 = $18;
  29924. } else {
  29925. $24 = HEAP32[$4>>2]|0;
  29926. $25 = ($18>>>0)>($24>>>0);
  29927. if ($25) {
  29928. $26 = (($18) - ($24))|0;
  29929. $27 = HEAP32[$11>>2]|0;
  29930. $28 = ((($0)) + 4|0);
  29931. HEAP32[$28>>2] = $27;
  29932. $29 = (($27) + ($26)|0);
  29933. $30 = ((($0)) + 8|0);
  29934. HEAP32[$30>>2] = $29;
  29935. $31 = HEAP32[$5>>2]|0;
  29936. $32 = ($31|0)==(0);
  29937. if ($32) {
  29938. $$0 = $2;
  29939. } else {
  29940. $33 = ((($27)) + 1|0);
  29941. HEAP32[$28>>2] = $33;
  29942. $34 = HEAP8[$27>>0]|0;
  29943. $35 = (($2) + -1)|0;
  29944. $36 = (($1) + ($35)|0);
  29945. HEAP8[$36>>0] = $34;
  29946. $$0 = $2;
  29947. }
  29948. } else {
  29949. $$0 = $18;
  29950. }
  29951. }
  29952. STACKTOP = sp;return ($$0|0);
  29953. }
  29954. function ___stdout_write($0,$1,$2) {
  29955. $0 = $0|0;
  29956. $1 = $1|0;
  29957. $2 = $2|0;
  29958. 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;
  29959. sp = STACKTOP;
  29960. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  29961. $vararg_buffer = sp;
  29962. $3 = sp + 16|0;
  29963. $4 = ((($0)) + 36|0);
  29964. HEAP32[$4>>2] = 10;
  29965. $5 = HEAP32[$0>>2]|0;
  29966. $6 = $5 & 64;
  29967. $7 = ($6|0)==(0);
  29968. if ($7) {
  29969. $8 = ((($0)) + 60|0);
  29970. $9 = HEAP32[$8>>2]|0;
  29971. $10 = $3;
  29972. HEAP32[$vararg_buffer>>2] = $9;
  29973. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  29974. HEAP32[$vararg_ptr1>>2] = 21523;
  29975. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  29976. HEAP32[$vararg_ptr2>>2] = $10;
  29977. $11 = (___syscall54(54,($vararg_buffer|0))|0);
  29978. $12 = ($11|0)==(0);
  29979. if (!($12)) {
  29980. $13 = ((($0)) + 75|0);
  29981. HEAP8[$13>>0] = -1;
  29982. }
  29983. }
  29984. $14 = (___stdio_write($0,$1,$2)|0);
  29985. STACKTOP = sp;return ($14|0);
  29986. }
  29987. function ___toread($0) {
  29988. $0 = $0|0;
  29989. 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;
  29990. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $sext = 0, label = 0, sp = 0;
  29991. sp = STACKTOP;
  29992. $1 = ((($0)) + 74|0);
  29993. $2 = HEAP8[$1>>0]|0;
  29994. $3 = $2 << 24 >> 24;
  29995. $4 = (($3) + 255)|0;
  29996. $5 = $4 | $3;
  29997. $6 = $5&255;
  29998. HEAP8[$1>>0] = $6;
  29999. $7 = ((($0)) + 20|0);
  30000. $8 = HEAP32[$7>>2]|0;
  30001. $9 = ((($0)) + 28|0);
  30002. $10 = HEAP32[$9>>2]|0;
  30003. $11 = ($8>>>0)>($10>>>0);
  30004. if ($11) {
  30005. $12 = ((($0)) + 36|0);
  30006. $13 = HEAP32[$12>>2]|0;
  30007. (FUNCTION_TABLE_iiii[$13 & 15]($0,0,0)|0);
  30008. }
  30009. $14 = ((($0)) + 16|0);
  30010. HEAP32[$14>>2] = 0;
  30011. HEAP32[$9>>2] = 0;
  30012. HEAP32[$7>>2] = 0;
  30013. $15 = HEAP32[$0>>2]|0;
  30014. $16 = $15 & 4;
  30015. $17 = ($16|0)==(0);
  30016. if ($17) {
  30017. $19 = ((($0)) + 44|0);
  30018. $20 = HEAP32[$19>>2]|0;
  30019. $21 = ((($0)) + 48|0);
  30020. $22 = HEAP32[$21>>2]|0;
  30021. $23 = (($20) + ($22)|0);
  30022. $24 = ((($0)) + 8|0);
  30023. HEAP32[$24>>2] = $23;
  30024. $25 = ((($0)) + 4|0);
  30025. HEAP32[$25>>2] = $23;
  30026. $26 = $15 << 27;
  30027. $sext = $26 >> 31;
  30028. $$0 = $sext;
  30029. } else {
  30030. $18 = $15 | 32;
  30031. HEAP32[$0>>2] = $18;
  30032. $$0 = -1;
  30033. }
  30034. return ($$0|0);
  30035. }
  30036. function _strcmp($0,$1) {
  30037. $0 = $0|0;
  30038. $1 = $1|0;
  30039. 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;
  30040. var sp = 0;
  30041. sp = STACKTOP;
  30042. $2 = HEAP8[$0>>0]|0;
  30043. $3 = HEAP8[$1>>0]|0;
  30044. $4 = ($2<<24>>24)!=($3<<24>>24);
  30045. $5 = ($2<<24>>24)==(0);
  30046. $or$cond9 = $5 | $4;
  30047. if ($or$cond9) {
  30048. $$lcssa = $3;$$lcssa8 = $2;
  30049. } else {
  30050. $$011 = $1;$$0710 = $0;
  30051. while(1) {
  30052. $6 = ((($$0710)) + 1|0);
  30053. $7 = ((($$011)) + 1|0);
  30054. $8 = HEAP8[$6>>0]|0;
  30055. $9 = HEAP8[$7>>0]|0;
  30056. $10 = ($8<<24>>24)!=($9<<24>>24);
  30057. $11 = ($8<<24>>24)==(0);
  30058. $or$cond = $11 | $10;
  30059. if ($or$cond) {
  30060. $$lcssa = $9;$$lcssa8 = $8;
  30061. break;
  30062. } else {
  30063. $$011 = $7;$$0710 = $6;
  30064. }
  30065. }
  30066. }
  30067. $12 = $$lcssa8&255;
  30068. $13 = $$lcssa&255;
  30069. $14 = (($12) - ($13))|0;
  30070. return ($14|0);
  30071. }
  30072. function _memcmp($0,$1,$2) {
  30073. $0 = $0|0;
  30074. $1 = $1|0;
  30075. $2 = $2|0;
  30076. 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;
  30077. sp = STACKTOP;
  30078. $3 = ($2|0)==(0);
  30079. L1: do {
  30080. if ($3) {
  30081. $14 = 0;
  30082. } else {
  30083. $$01318 = $0;$$01417 = $2;$$019 = $1;
  30084. while(1) {
  30085. $4 = HEAP8[$$01318>>0]|0;
  30086. $5 = HEAP8[$$019>>0]|0;
  30087. $6 = ($4<<24>>24)==($5<<24>>24);
  30088. if (!($6)) {
  30089. break;
  30090. }
  30091. $7 = (($$01417) + -1)|0;
  30092. $8 = ((($$01318)) + 1|0);
  30093. $9 = ((($$019)) + 1|0);
  30094. $10 = ($7|0)==(0);
  30095. if ($10) {
  30096. $14 = 0;
  30097. break L1;
  30098. } else {
  30099. $$01318 = $8;$$01417 = $7;$$019 = $9;
  30100. }
  30101. }
  30102. $11 = $4&255;
  30103. $12 = $5&255;
  30104. $13 = (($11) - ($12))|0;
  30105. $14 = $13;
  30106. }
  30107. } while(0);
  30108. return ($14|0);
  30109. }
  30110. function _vsprintf($0,$1,$2) {
  30111. $0 = $0|0;
  30112. $1 = $1|0;
  30113. $2 = $2|0;
  30114. var $3 = 0, label = 0, sp = 0;
  30115. sp = STACKTOP;
  30116. $3 = (_vsnprintf($0,2147483647,$1,$2)|0);
  30117. return ($3|0);
  30118. }
  30119. function _vsnprintf($0,$1,$2,$3) {
  30120. $0 = $0|0;
  30121. $1 = $1|0;
  30122. $2 = $2|0;
  30123. $3 = $3|0;
  30124. 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;
  30125. var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  30126. sp = STACKTOP;
  30127. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  30128. $4 = sp + 124|0;
  30129. $5 = sp;
  30130. dest=$5; src=4164; 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));
  30131. $6 = (($1) + -1)|0;
  30132. $7 = ($6>>>0)>(2147483646);
  30133. if ($7) {
  30134. $8 = ($1|0)==(0);
  30135. if ($8) {
  30136. $$014 = $4;$$015 = 1;
  30137. label = 4;
  30138. } else {
  30139. $9 = (___errno_location()|0);
  30140. HEAP32[$9>>2] = 75;
  30141. $$0 = -1;
  30142. }
  30143. } else {
  30144. $$014 = $0;$$015 = $1;
  30145. label = 4;
  30146. }
  30147. if ((label|0) == 4) {
  30148. $10 = $$014;
  30149. $11 = (-2 - ($10))|0;
  30150. $12 = ($$015>>>0)>($11>>>0);
  30151. $$$015 = $12 ? $11 : $$015;
  30152. $13 = ((($5)) + 48|0);
  30153. HEAP32[$13>>2] = $$$015;
  30154. $14 = ((($5)) + 20|0);
  30155. HEAP32[$14>>2] = $$014;
  30156. $15 = ((($5)) + 44|0);
  30157. HEAP32[$15>>2] = $$014;
  30158. $16 = (($$014) + ($$$015)|0);
  30159. $17 = ((($5)) + 16|0);
  30160. HEAP32[$17>>2] = $16;
  30161. $18 = ((($5)) + 28|0);
  30162. HEAP32[$18>>2] = $16;
  30163. $19 = (_vfprintf($5,$2,$3)|0);
  30164. $20 = ($$$015|0)==(0);
  30165. if ($20) {
  30166. $$0 = $19;
  30167. } else {
  30168. $21 = HEAP32[$14>>2]|0;
  30169. $22 = HEAP32[$17>>2]|0;
  30170. $23 = ($21|0)==($22|0);
  30171. $24 = $23 << 31 >> 31;
  30172. $25 = (($21) + ($24)|0);
  30173. HEAP8[$25>>0] = 0;
  30174. $$0 = $19;
  30175. }
  30176. }
  30177. STACKTOP = sp;return ($$0|0);
  30178. }
  30179. function _vfprintf($0,$1,$2) {
  30180. $0 = $0|0;
  30181. $1 = $1|0;
  30182. $2 = $2|0;
  30183. 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;
  30184. 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;
  30185. var $8 = 0, $9 = 0, $vacopy_currentptr = 0, dest = 0, label = 0, sp = 0, stop = 0;
  30186. sp = STACKTOP;
  30187. STACKTOP = STACKTOP + 224|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(224|0);
  30188. $3 = sp + 120|0;
  30189. $4 = sp + 80|0;
  30190. $5 = sp;
  30191. $6 = sp + 136|0;
  30192. dest=$4; stop=dest+40|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  30193. $vacopy_currentptr = HEAP32[$2>>2]|0;
  30194. HEAP32[$3>>2] = $vacopy_currentptr;
  30195. $7 = (_printf_core(0,$1,$3,$5,$4)|0);
  30196. $8 = ($7|0)<(0);
  30197. if ($8) {
  30198. $$0 = -1;
  30199. } else {
  30200. $9 = ((($0)) + 76|0);
  30201. $10 = HEAP32[$9>>2]|0;
  30202. $11 = ($10|0)>(-1);
  30203. if ($11) {
  30204. $12 = (___lockfile($0)|0);
  30205. $40 = $12;
  30206. } else {
  30207. $40 = 0;
  30208. }
  30209. $13 = HEAP32[$0>>2]|0;
  30210. $14 = $13 & 32;
  30211. $15 = ((($0)) + 74|0);
  30212. $16 = HEAP8[$15>>0]|0;
  30213. $17 = ($16<<24>>24)<(1);
  30214. if ($17) {
  30215. $18 = $13 & -33;
  30216. HEAP32[$0>>2] = $18;
  30217. }
  30218. $19 = ((($0)) + 48|0);
  30219. $20 = HEAP32[$19>>2]|0;
  30220. $21 = ($20|0)==(0);
  30221. if ($21) {
  30222. $23 = ((($0)) + 44|0);
  30223. $24 = HEAP32[$23>>2]|0;
  30224. HEAP32[$23>>2] = $6;
  30225. $25 = ((($0)) + 28|0);
  30226. HEAP32[$25>>2] = $6;
  30227. $26 = ((($0)) + 20|0);
  30228. HEAP32[$26>>2] = $6;
  30229. HEAP32[$19>>2] = 80;
  30230. $27 = ((($6)) + 80|0);
  30231. $28 = ((($0)) + 16|0);
  30232. HEAP32[$28>>2] = $27;
  30233. $29 = (_printf_core($0,$1,$3,$5,$4)|0);
  30234. $30 = ($24|0)==(0|0);
  30235. if ($30) {
  30236. $$1 = $29;
  30237. } else {
  30238. $31 = ((($0)) + 36|0);
  30239. $32 = HEAP32[$31>>2]|0;
  30240. (FUNCTION_TABLE_iiii[$32 & 15]($0,0,0)|0);
  30241. $33 = HEAP32[$26>>2]|0;
  30242. $34 = ($33|0)==(0|0);
  30243. $$ = $34 ? -1 : $29;
  30244. HEAP32[$23>>2] = $24;
  30245. HEAP32[$19>>2] = 0;
  30246. HEAP32[$28>>2] = 0;
  30247. HEAP32[$25>>2] = 0;
  30248. HEAP32[$26>>2] = 0;
  30249. $$1 = $$;
  30250. }
  30251. } else {
  30252. $22 = (_printf_core($0,$1,$3,$5,$4)|0);
  30253. $$1 = $22;
  30254. }
  30255. $35 = HEAP32[$0>>2]|0;
  30256. $36 = $35 & 32;
  30257. $37 = ($36|0)==(0);
  30258. $$1$ = $37 ? $$1 : -1;
  30259. $38 = $35 | $14;
  30260. HEAP32[$0>>2] = $38;
  30261. $39 = ($40|0)==(0);
  30262. if (!($39)) {
  30263. ___unlockfile($0);
  30264. }
  30265. $$0 = $$1$;
  30266. }
  30267. STACKTOP = sp;return ($$0|0);
  30268. }
  30269. function _printf_core($0,$1,$2,$3,$4) {
  30270. $0 = $0|0;
  30271. $1 = $1|0;
  30272. $2 = $2|0;
  30273. $3 = $3|0;
  30274. $4 = $4|0;
  30275. 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;
  30276. 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;
  30277. 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;
  30278. 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;
  30279. 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;
  30280. 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;
  30281. 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;
  30282. 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;
  30283. 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;
  30284. 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;
  30285. 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;
  30286. 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;
  30287. 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;
  30288. 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;
  30289. 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;
  30290. 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;
  30291. 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;
  30292. 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;
  30293. 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;
  30294. 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;
  30295. 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;
  30296. 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;
  30297. sp = STACKTOP;
  30298. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  30299. $5 = sp + 16|0;
  30300. $6 = sp;
  30301. $7 = sp + 24|0;
  30302. $8 = sp + 8|0;
  30303. $9 = sp + 20|0;
  30304. HEAP32[$5>>2] = $1;
  30305. $10 = ($0|0)!=(0|0);
  30306. $11 = ((($7)) + 40|0);
  30307. $12 = $11;
  30308. $13 = ((($7)) + 39|0);
  30309. $14 = ((($8)) + 4|0);
  30310. $$0243 = 0;$$0247 = 0;$$0269 = 0;$21 = $1;
  30311. L1: while(1) {
  30312. $15 = ($$0247|0)>(-1);
  30313. do {
  30314. if ($15) {
  30315. $16 = (2147483647 - ($$0247))|0;
  30316. $17 = ($$0243|0)>($16|0);
  30317. if ($17) {
  30318. $18 = (___errno_location()|0);
  30319. HEAP32[$18>>2] = 75;
  30320. $$1248 = -1;
  30321. break;
  30322. } else {
  30323. $19 = (($$0243) + ($$0247))|0;
  30324. $$1248 = $19;
  30325. break;
  30326. }
  30327. } else {
  30328. $$1248 = $$0247;
  30329. }
  30330. } while(0);
  30331. $20 = HEAP8[$21>>0]|0;
  30332. $22 = ($20<<24>>24)==(0);
  30333. if ($22) {
  30334. label = 87;
  30335. break;
  30336. } else {
  30337. $23 = $20;$25 = $21;
  30338. }
  30339. L9: while(1) {
  30340. switch ($23<<24>>24) {
  30341. case 37: {
  30342. $$0249306 = $25;$27 = $25;
  30343. label = 9;
  30344. break L9;
  30345. break;
  30346. }
  30347. case 0: {
  30348. $$0249$lcssa = $25;$39 = $25;
  30349. break L9;
  30350. break;
  30351. }
  30352. default: {
  30353. }
  30354. }
  30355. $24 = ((($25)) + 1|0);
  30356. HEAP32[$5>>2] = $24;
  30357. $$pre = HEAP8[$24>>0]|0;
  30358. $23 = $$pre;$25 = $24;
  30359. }
  30360. L12: do {
  30361. if ((label|0) == 9) {
  30362. while(1) {
  30363. label = 0;
  30364. $26 = ((($27)) + 1|0);
  30365. $28 = HEAP8[$26>>0]|0;
  30366. $29 = ($28<<24>>24)==(37);
  30367. if (!($29)) {
  30368. $$0249$lcssa = $$0249306;$39 = $27;
  30369. break L12;
  30370. }
  30371. $30 = ((($$0249306)) + 1|0);
  30372. $31 = ((($27)) + 2|0);
  30373. HEAP32[$5>>2] = $31;
  30374. $32 = HEAP8[$31>>0]|0;
  30375. $33 = ($32<<24>>24)==(37);
  30376. if ($33) {
  30377. $$0249306 = $30;$27 = $31;
  30378. label = 9;
  30379. } else {
  30380. $$0249$lcssa = $30;$39 = $31;
  30381. break;
  30382. }
  30383. }
  30384. }
  30385. } while(0);
  30386. $34 = $$0249$lcssa;
  30387. $35 = $21;
  30388. $36 = (($34) - ($35))|0;
  30389. if ($10) {
  30390. _out($0,$21,$36);
  30391. }
  30392. $37 = ($36|0)==(0);
  30393. if (!($37)) {
  30394. $$0269$phi = $$0269;$$0243 = $36;$$0247 = $$1248;$21 = $39;$$0269 = $$0269$phi;
  30395. continue;
  30396. }
  30397. $38 = ((($39)) + 1|0);
  30398. $40 = HEAP8[$38>>0]|0;
  30399. $41 = $40 << 24 >> 24;
  30400. $isdigittmp = (($41) + -48)|0;
  30401. $isdigit = ($isdigittmp>>>0)<(10);
  30402. if ($isdigit) {
  30403. $42 = ((($39)) + 2|0);
  30404. $43 = HEAP8[$42>>0]|0;
  30405. $44 = ($43<<24>>24)==(36);
  30406. $45 = ((($39)) + 3|0);
  30407. $$377 = $44 ? $45 : $38;
  30408. $$$0269 = $44 ? 1 : $$0269;
  30409. $isdigittmp$ = $44 ? $isdigittmp : -1;
  30410. $$0253 = $isdigittmp$;$$1270 = $$$0269;$storemerge = $$377;
  30411. } else {
  30412. $$0253 = -1;$$1270 = $$0269;$storemerge = $38;
  30413. }
  30414. HEAP32[$5>>2] = $storemerge;
  30415. $46 = HEAP8[$storemerge>>0]|0;
  30416. $47 = $46 << 24 >> 24;
  30417. $48 = (($47) + -32)|0;
  30418. $49 = ($48>>>0)<(32);
  30419. L24: do {
  30420. if ($49) {
  30421. $$0262311 = 0;$329 = $46;$51 = $48;$storemerge273310 = $storemerge;
  30422. while(1) {
  30423. $50 = 1 << $51;
  30424. $52 = $50 & 75913;
  30425. $53 = ($52|0)==(0);
  30426. if ($53) {
  30427. $$0262$lcssa = $$0262311;$$lcssa295 = $329;$62 = $storemerge273310;
  30428. break L24;
  30429. }
  30430. $54 = $50 | $$0262311;
  30431. $55 = ((($storemerge273310)) + 1|0);
  30432. HEAP32[$5>>2] = $55;
  30433. $56 = HEAP8[$55>>0]|0;
  30434. $57 = $56 << 24 >> 24;
  30435. $58 = (($57) + -32)|0;
  30436. $59 = ($58>>>0)<(32);
  30437. if ($59) {
  30438. $$0262311 = $54;$329 = $56;$51 = $58;$storemerge273310 = $55;
  30439. } else {
  30440. $$0262$lcssa = $54;$$lcssa295 = $56;$62 = $55;
  30441. break;
  30442. }
  30443. }
  30444. } else {
  30445. $$0262$lcssa = 0;$$lcssa295 = $46;$62 = $storemerge;
  30446. }
  30447. } while(0);
  30448. $60 = ($$lcssa295<<24>>24)==(42);
  30449. if ($60) {
  30450. $61 = ((($62)) + 1|0);
  30451. $63 = HEAP8[$61>>0]|0;
  30452. $64 = $63 << 24 >> 24;
  30453. $isdigittmp276 = (($64) + -48)|0;
  30454. $isdigit277 = ($isdigittmp276>>>0)<(10);
  30455. if ($isdigit277) {
  30456. $65 = ((($62)) + 2|0);
  30457. $66 = HEAP8[$65>>0]|0;
  30458. $67 = ($66<<24>>24)==(36);
  30459. if ($67) {
  30460. $68 = (($4) + ($isdigittmp276<<2)|0);
  30461. HEAP32[$68>>2] = 10;
  30462. $69 = HEAP8[$61>>0]|0;
  30463. $70 = $69 << 24 >> 24;
  30464. $71 = (($70) + -48)|0;
  30465. $72 = (($3) + ($71<<3)|0);
  30466. $73 = $72;
  30467. $74 = $73;
  30468. $75 = HEAP32[$74>>2]|0;
  30469. $76 = (($73) + 4)|0;
  30470. $77 = $76;
  30471. $78 = HEAP32[$77>>2]|0;
  30472. $79 = ((($62)) + 3|0);
  30473. $$0259 = $75;$$2271 = 1;$storemerge278 = $79;
  30474. } else {
  30475. label = 23;
  30476. }
  30477. } else {
  30478. label = 23;
  30479. }
  30480. if ((label|0) == 23) {
  30481. label = 0;
  30482. $80 = ($$1270|0)==(0);
  30483. if (!($80)) {
  30484. $$0 = -1;
  30485. break;
  30486. }
  30487. if ($10) {
  30488. $arglist_current = HEAP32[$2>>2]|0;
  30489. $81 = $arglist_current;
  30490. $82 = ((0) + 4|0);
  30491. $expanded4 = $82;
  30492. $expanded = (($expanded4) - 1)|0;
  30493. $83 = (($81) + ($expanded))|0;
  30494. $84 = ((0) + 4|0);
  30495. $expanded8 = $84;
  30496. $expanded7 = (($expanded8) - 1)|0;
  30497. $expanded6 = $expanded7 ^ -1;
  30498. $85 = $83 & $expanded6;
  30499. $86 = $85;
  30500. $87 = HEAP32[$86>>2]|0;
  30501. $arglist_next = ((($86)) + 4|0);
  30502. HEAP32[$2>>2] = $arglist_next;
  30503. $$0259 = $87;$$2271 = 0;$storemerge278 = $61;
  30504. } else {
  30505. $$0259 = 0;$$2271 = 0;$storemerge278 = $61;
  30506. }
  30507. }
  30508. HEAP32[$5>>2] = $storemerge278;
  30509. $88 = ($$0259|0)<(0);
  30510. $89 = $$0262$lcssa | 8192;
  30511. $90 = (0 - ($$0259))|0;
  30512. $$$0262 = $88 ? $89 : $$0262$lcssa;
  30513. $$$0259 = $88 ? $90 : $$0259;
  30514. $$1260 = $$$0259;$$1263 = $$$0262;$$3272 = $$2271;$94 = $storemerge278;
  30515. } else {
  30516. $91 = (_getint($5)|0);
  30517. $92 = ($91|0)<(0);
  30518. if ($92) {
  30519. $$0 = -1;
  30520. break;
  30521. }
  30522. $$pre346 = HEAP32[$5>>2]|0;
  30523. $$1260 = $91;$$1263 = $$0262$lcssa;$$3272 = $$1270;$94 = $$pre346;
  30524. }
  30525. $93 = HEAP8[$94>>0]|0;
  30526. $95 = ($93<<24>>24)==(46);
  30527. do {
  30528. if ($95) {
  30529. $96 = ((($94)) + 1|0);
  30530. $97 = HEAP8[$96>>0]|0;
  30531. $98 = ($97<<24>>24)==(42);
  30532. if (!($98)) {
  30533. $125 = ((($94)) + 1|0);
  30534. HEAP32[$5>>2] = $125;
  30535. $126 = (_getint($5)|0);
  30536. $$pre347$pre = HEAP32[$5>>2]|0;
  30537. $$0254 = $126;$$pre347 = $$pre347$pre;
  30538. break;
  30539. }
  30540. $99 = ((($94)) + 2|0);
  30541. $100 = HEAP8[$99>>0]|0;
  30542. $101 = $100 << 24 >> 24;
  30543. $isdigittmp274 = (($101) + -48)|0;
  30544. $isdigit275 = ($isdigittmp274>>>0)<(10);
  30545. if ($isdigit275) {
  30546. $102 = ((($94)) + 3|0);
  30547. $103 = HEAP8[$102>>0]|0;
  30548. $104 = ($103<<24>>24)==(36);
  30549. if ($104) {
  30550. $105 = (($4) + ($isdigittmp274<<2)|0);
  30551. HEAP32[$105>>2] = 10;
  30552. $106 = HEAP8[$99>>0]|0;
  30553. $107 = $106 << 24 >> 24;
  30554. $108 = (($107) + -48)|0;
  30555. $109 = (($3) + ($108<<3)|0);
  30556. $110 = $109;
  30557. $111 = $110;
  30558. $112 = HEAP32[$111>>2]|0;
  30559. $113 = (($110) + 4)|0;
  30560. $114 = $113;
  30561. $115 = HEAP32[$114>>2]|0;
  30562. $116 = ((($94)) + 4|0);
  30563. HEAP32[$5>>2] = $116;
  30564. $$0254 = $112;$$pre347 = $116;
  30565. break;
  30566. }
  30567. }
  30568. $117 = ($$3272|0)==(0);
  30569. if (!($117)) {
  30570. $$0 = -1;
  30571. break L1;
  30572. }
  30573. if ($10) {
  30574. $arglist_current2 = HEAP32[$2>>2]|0;
  30575. $118 = $arglist_current2;
  30576. $119 = ((0) + 4|0);
  30577. $expanded11 = $119;
  30578. $expanded10 = (($expanded11) - 1)|0;
  30579. $120 = (($118) + ($expanded10))|0;
  30580. $121 = ((0) + 4|0);
  30581. $expanded15 = $121;
  30582. $expanded14 = (($expanded15) - 1)|0;
  30583. $expanded13 = $expanded14 ^ -1;
  30584. $122 = $120 & $expanded13;
  30585. $123 = $122;
  30586. $124 = HEAP32[$123>>2]|0;
  30587. $arglist_next3 = ((($123)) + 4|0);
  30588. HEAP32[$2>>2] = $arglist_next3;
  30589. $330 = $124;
  30590. } else {
  30591. $330 = 0;
  30592. }
  30593. HEAP32[$5>>2] = $99;
  30594. $$0254 = $330;$$pre347 = $99;
  30595. } else {
  30596. $$0254 = -1;$$pre347 = $94;
  30597. }
  30598. } while(0);
  30599. $$0252 = 0;$128 = $$pre347;
  30600. while(1) {
  30601. $127 = HEAP8[$128>>0]|0;
  30602. $129 = $127 << 24 >> 24;
  30603. $130 = (($129) + -65)|0;
  30604. $131 = ($130>>>0)>(57);
  30605. if ($131) {
  30606. $$0 = -1;
  30607. break L1;
  30608. }
  30609. $132 = ((($128)) + 1|0);
  30610. HEAP32[$5>>2] = $132;
  30611. $133 = HEAP8[$128>>0]|0;
  30612. $134 = $133 << 24 >> 24;
  30613. $135 = (($134) + -65)|0;
  30614. $136 = ((14717 + (($$0252*58)|0)|0) + ($135)|0);
  30615. $137 = HEAP8[$136>>0]|0;
  30616. $138 = $137&255;
  30617. $139 = (($138) + -1)|0;
  30618. $140 = ($139>>>0)<(8);
  30619. if ($140) {
  30620. $$0252 = $138;$128 = $132;
  30621. } else {
  30622. break;
  30623. }
  30624. }
  30625. $141 = ($137<<24>>24)==(0);
  30626. if ($141) {
  30627. $$0 = -1;
  30628. break;
  30629. }
  30630. $142 = ($137<<24>>24)==(19);
  30631. $143 = ($$0253|0)>(-1);
  30632. do {
  30633. if ($142) {
  30634. if ($143) {
  30635. $$0 = -1;
  30636. break L1;
  30637. } else {
  30638. label = 49;
  30639. }
  30640. } else {
  30641. if ($143) {
  30642. $144 = (($4) + ($$0253<<2)|0);
  30643. HEAP32[$144>>2] = $138;
  30644. $145 = (($3) + ($$0253<<3)|0);
  30645. $146 = $145;
  30646. $147 = $146;
  30647. $148 = HEAP32[$147>>2]|0;
  30648. $149 = (($146) + 4)|0;
  30649. $150 = $149;
  30650. $151 = HEAP32[$150>>2]|0;
  30651. $152 = $6;
  30652. $153 = $152;
  30653. HEAP32[$153>>2] = $148;
  30654. $154 = (($152) + 4)|0;
  30655. $155 = $154;
  30656. HEAP32[$155>>2] = $151;
  30657. label = 49;
  30658. break;
  30659. }
  30660. if (!($10)) {
  30661. $$0 = 0;
  30662. break L1;
  30663. }
  30664. _pop_arg($6,$138,$2);
  30665. }
  30666. } while(0);
  30667. if ((label|0) == 49) {
  30668. label = 0;
  30669. if (!($10)) {
  30670. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  30671. continue;
  30672. }
  30673. }
  30674. $156 = HEAP8[$128>>0]|0;
  30675. $157 = $156 << 24 >> 24;
  30676. $158 = ($$0252|0)!=(0);
  30677. $159 = $157 & 15;
  30678. $160 = ($159|0)==(3);
  30679. $or$cond281 = $158 & $160;
  30680. $161 = $157 & -33;
  30681. $$0235 = $or$cond281 ? $161 : $157;
  30682. $162 = $$1263 & 8192;
  30683. $163 = ($162|0)==(0);
  30684. $164 = $$1263 & -65537;
  30685. $$1263$ = $163 ? $$1263 : $164;
  30686. L71: do {
  30687. switch ($$0235|0) {
  30688. case 110: {
  30689. $trunc = $$0252&255;
  30690. switch ($trunc<<24>>24) {
  30691. case 0: {
  30692. $171 = HEAP32[$6>>2]|0;
  30693. HEAP32[$171>>2] = $$1248;
  30694. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  30695. continue L1;
  30696. break;
  30697. }
  30698. case 1: {
  30699. $172 = HEAP32[$6>>2]|0;
  30700. HEAP32[$172>>2] = $$1248;
  30701. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  30702. continue L1;
  30703. break;
  30704. }
  30705. case 2: {
  30706. $173 = ($$1248|0)<(0);
  30707. $174 = $173 << 31 >> 31;
  30708. $175 = HEAP32[$6>>2]|0;
  30709. $176 = $175;
  30710. $177 = $176;
  30711. HEAP32[$177>>2] = $$1248;
  30712. $178 = (($176) + 4)|0;
  30713. $179 = $178;
  30714. HEAP32[$179>>2] = $174;
  30715. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  30716. continue L1;
  30717. break;
  30718. }
  30719. case 3: {
  30720. $180 = $$1248&65535;
  30721. $181 = HEAP32[$6>>2]|0;
  30722. HEAP16[$181>>1] = $180;
  30723. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  30724. continue L1;
  30725. break;
  30726. }
  30727. case 4: {
  30728. $182 = $$1248&255;
  30729. $183 = HEAP32[$6>>2]|0;
  30730. HEAP8[$183>>0] = $182;
  30731. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  30732. continue L1;
  30733. break;
  30734. }
  30735. case 6: {
  30736. $184 = HEAP32[$6>>2]|0;
  30737. HEAP32[$184>>2] = $$1248;
  30738. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  30739. continue L1;
  30740. break;
  30741. }
  30742. case 7: {
  30743. $185 = ($$1248|0)<(0);
  30744. $186 = $185 << 31 >> 31;
  30745. $187 = HEAP32[$6>>2]|0;
  30746. $188 = $187;
  30747. $189 = $188;
  30748. HEAP32[$189>>2] = $$1248;
  30749. $190 = (($188) + 4)|0;
  30750. $191 = $190;
  30751. HEAP32[$191>>2] = $186;
  30752. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  30753. continue L1;
  30754. break;
  30755. }
  30756. default: {
  30757. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  30758. continue L1;
  30759. }
  30760. }
  30761. break;
  30762. }
  30763. case 112: {
  30764. $192 = ($$0254>>>0)>(8);
  30765. $193 = $192 ? $$0254 : 8;
  30766. $194 = $$1263$ | 8;
  30767. $$1236 = 120;$$1255 = $193;$$3265 = $194;
  30768. label = 61;
  30769. break;
  30770. }
  30771. case 88: case 120: {
  30772. $$1236 = $$0235;$$1255 = $$0254;$$3265 = $$1263$;
  30773. label = 61;
  30774. break;
  30775. }
  30776. case 111: {
  30777. $210 = $6;
  30778. $211 = $210;
  30779. $212 = HEAP32[$211>>2]|0;
  30780. $213 = (($210) + 4)|0;
  30781. $214 = $213;
  30782. $215 = HEAP32[$214>>2]|0;
  30783. $216 = (_fmt_o($212,$215,$11)|0);
  30784. $217 = $$1263$ & 8;
  30785. $218 = ($217|0)==(0);
  30786. $219 = $216;
  30787. $220 = (($12) - ($219))|0;
  30788. $221 = ($$0254|0)>($220|0);
  30789. $222 = (($220) + 1)|0;
  30790. $223 = $218 | $221;
  30791. $$0254$$0254$ = $223 ? $$0254 : $222;
  30792. $$0228 = $216;$$1233 = 0;$$1238 = 15181;$$2256 = $$0254$$0254$;$$4266 = $$1263$;$248 = $212;$250 = $215;
  30793. label = 67;
  30794. break;
  30795. }
  30796. case 105: case 100: {
  30797. $224 = $6;
  30798. $225 = $224;
  30799. $226 = HEAP32[$225>>2]|0;
  30800. $227 = (($224) + 4)|0;
  30801. $228 = $227;
  30802. $229 = HEAP32[$228>>2]|0;
  30803. $230 = ($229|0)<(0);
  30804. if ($230) {
  30805. $231 = (_i64Subtract(0,0,($226|0),($229|0))|0);
  30806. $232 = tempRet0;
  30807. $233 = $6;
  30808. $234 = $233;
  30809. HEAP32[$234>>2] = $231;
  30810. $235 = (($233) + 4)|0;
  30811. $236 = $235;
  30812. HEAP32[$236>>2] = $232;
  30813. $$0232 = 1;$$0237 = 15181;$242 = $231;$243 = $232;
  30814. label = 66;
  30815. break L71;
  30816. } else {
  30817. $237 = $$1263$ & 2048;
  30818. $238 = ($237|0)==(0);
  30819. $239 = $$1263$ & 1;
  30820. $240 = ($239|0)==(0);
  30821. $$ = $240 ? 15181 : (15183);
  30822. $$$ = $238 ? $$ : (15182);
  30823. $241 = $$1263$ & 2049;
  30824. $narrow = ($241|0)!=(0);
  30825. $$284$ = $narrow&1;
  30826. $$0232 = $$284$;$$0237 = $$$;$242 = $226;$243 = $229;
  30827. label = 66;
  30828. break L71;
  30829. }
  30830. break;
  30831. }
  30832. case 117: {
  30833. $165 = $6;
  30834. $166 = $165;
  30835. $167 = HEAP32[$166>>2]|0;
  30836. $168 = (($165) + 4)|0;
  30837. $169 = $168;
  30838. $170 = HEAP32[$169>>2]|0;
  30839. $$0232 = 0;$$0237 = 15181;$242 = $167;$243 = $170;
  30840. label = 66;
  30841. break;
  30842. }
  30843. case 99: {
  30844. $259 = $6;
  30845. $260 = $259;
  30846. $261 = HEAP32[$260>>2]|0;
  30847. $262 = (($259) + 4)|0;
  30848. $263 = $262;
  30849. $264 = HEAP32[$263>>2]|0;
  30850. $265 = $261&255;
  30851. HEAP8[$13>>0] = $265;
  30852. $$2 = $13;$$2234 = 0;$$2239 = 15181;$$2251 = $11;$$5 = 1;$$6268 = $164;
  30853. break;
  30854. }
  30855. case 109: {
  30856. $266 = (___errno_location()|0);
  30857. $267 = HEAP32[$266>>2]|0;
  30858. $268 = (_strerror($267)|0);
  30859. $$1 = $268;
  30860. label = 71;
  30861. break;
  30862. }
  30863. case 115: {
  30864. $269 = HEAP32[$6>>2]|0;
  30865. $270 = ($269|0)!=(0|0);
  30866. $271 = $270 ? $269 : 15191;
  30867. $$1 = $271;
  30868. label = 71;
  30869. break;
  30870. }
  30871. case 67: {
  30872. $278 = $6;
  30873. $279 = $278;
  30874. $280 = HEAP32[$279>>2]|0;
  30875. $281 = (($278) + 4)|0;
  30876. $282 = $281;
  30877. $283 = HEAP32[$282>>2]|0;
  30878. HEAP32[$8>>2] = $280;
  30879. HEAP32[$14>>2] = 0;
  30880. HEAP32[$6>>2] = $8;
  30881. $$4258355 = -1;$331 = $8;
  30882. label = 75;
  30883. break;
  30884. }
  30885. case 83: {
  30886. $$pre349 = HEAP32[$6>>2]|0;
  30887. $284 = ($$0254|0)==(0);
  30888. if ($284) {
  30889. _pad_674($0,32,$$1260,0,$$1263$);
  30890. $$0240$lcssa357 = 0;
  30891. label = 84;
  30892. } else {
  30893. $$4258355 = $$0254;$331 = $$pre349;
  30894. label = 75;
  30895. }
  30896. break;
  30897. }
  30898. case 65: case 71: case 70: case 69: case 97: case 103: case 102: case 101: {
  30899. $306 = +HEAPF64[$6>>3];
  30900. $307 = (_fmt_fp($0,$306,$$1260,$$0254,$$1263$,$$0235)|0);
  30901. $$0243 = $307;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  30902. continue L1;
  30903. break;
  30904. }
  30905. default: {
  30906. $$2 = $21;$$2234 = 0;$$2239 = 15181;$$2251 = $11;$$5 = $$0254;$$6268 = $$1263$;
  30907. }
  30908. }
  30909. } while(0);
  30910. L95: do {
  30911. if ((label|0) == 61) {
  30912. label = 0;
  30913. $195 = $6;
  30914. $196 = $195;
  30915. $197 = HEAP32[$196>>2]|0;
  30916. $198 = (($195) + 4)|0;
  30917. $199 = $198;
  30918. $200 = HEAP32[$199>>2]|0;
  30919. $201 = $$1236 & 32;
  30920. $202 = (_fmt_x($197,$200,$11,$201)|0);
  30921. $203 = ($197|0)==(0);
  30922. $204 = ($200|0)==(0);
  30923. $205 = $203 & $204;
  30924. $206 = $$3265 & 8;
  30925. $207 = ($206|0)==(0);
  30926. $or$cond283 = $207 | $205;
  30927. $208 = $$1236 >> 4;
  30928. $209 = (15181 + ($208)|0);
  30929. $$289 = $or$cond283 ? 15181 : $209;
  30930. $$290 = $or$cond283 ? 0 : 2;
  30931. $$0228 = $202;$$1233 = $$290;$$1238 = $$289;$$2256 = $$1255;$$4266 = $$3265;$248 = $197;$250 = $200;
  30932. label = 67;
  30933. }
  30934. else if ((label|0) == 66) {
  30935. label = 0;
  30936. $244 = (_fmt_u($242,$243,$11)|0);
  30937. $$0228 = $244;$$1233 = $$0232;$$1238 = $$0237;$$2256 = $$0254;$$4266 = $$1263$;$248 = $242;$250 = $243;
  30938. label = 67;
  30939. }
  30940. else if ((label|0) == 71) {
  30941. label = 0;
  30942. $272 = (_memchr($$1,0,$$0254)|0);
  30943. $273 = ($272|0)==(0|0);
  30944. $274 = $272;
  30945. $275 = $$1;
  30946. $276 = (($274) - ($275))|0;
  30947. $277 = (($$1) + ($$0254)|0);
  30948. $$3257 = $273 ? $$0254 : $276;
  30949. $$1250 = $273 ? $277 : $272;
  30950. $$2 = $$1;$$2234 = 0;$$2239 = 15181;$$2251 = $$1250;$$5 = $$3257;$$6268 = $164;
  30951. }
  30952. else if ((label|0) == 75) {
  30953. label = 0;
  30954. $$0229322 = $331;$$0240321 = 0;$$1244320 = 0;
  30955. while(1) {
  30956. $285 = HEAP32[$$0229322>>2]|0;
  30957. $286 = ($285|0)==(0);
  30958. if ($286) {
  30959. $$0240$lcssa = $$0240321;$$2245 = $$1244320;
  30960. break;
  30961. }
  30962. $287 = (_wctomb($9,$285)|0);
  30963. $288 = ($287|0)<(0);
  30964. $289 = (($$4258355) - ($$0240321))|0;
  30965. $290 = ($287>>>0)>($289>>>0);
  30966. $or$cond286 = $288 | $290;
  30967. if ($or$cond286) {
  30968. $$0240$lcssa = $$0240321;$$2245 = $287;
  30969. break;
  30970. }
  30971. $291 = ((($$0229322)) + 4|0);
  30972. $292 = (($287) + ($$0240321))|0;
  30973. $293 = ($$4258355>>>0)>($292>>>0);
  30974. if ($293) {
  30975. $$0229322 = $291;$$0240321 = $292;$$1244320 = $287;
  30976. } else {
  30977. $$0240$lcssa = $292;$$2245 = $287;
  30978. break;
  30979. }
  30980. }
  30981. $294 = ($$2245|0)<(0);
  30982. if ($294) {
  30983. $$0 = -1;
  30984. break L1;
  30985. }
  30986. _pad_674($0,32,$$1260,$$0240$lcssa,$$1263$);
  30987. $295 = ($$0240$lcssa|0)==(0);
  30988. if ($295) {
  30989. $$0240$lcssa357 = 0;
  30990. label = 84;
  30991. } else {
  30992. $$1230333 = $331;$$1241332 = 0;
  30993. while(1) {
  30994. $296 = HEAP32[$$1230333>>2]|0;
  30995. $297 = ($296|0)==(0);
  30996. if ($297) {
  30997. $$0240$lcssa357 = $$0240$lcssa;
  30998. label = 84;
  30999. break L95;
  31000. }
  31001. $298 = (_wctomb($9,$296)|0);
  31002. $299 = (($298) + ($$1241332))|0;
  31003. $300 = ($299|0)>($$0240$lcssa|0);
  31004. if ($300) {
  31005. $$0240$lcssa357 = $$0240$lcssa;
  31006. label = 84;
  31007. break L95;
  31008. }
  31009. $301 = ((($$1230333)) + 4|0);
  31010. _out($0,$9,$298);
  31011. $302 = ($299>>>0)<($$0240$lcssa>>>0);
  31012. if ($302) {
  31013. $$1230333 = $301;$$1241332 = $299;
  31014. } else {
  31015. $$0240$lcssa357 = $$0240$lcssa;
  31016. label = 84;
  31017. break;
  31018. }
  31019. }
  31020. }
  31021. }
  31022. } while(0);
  31023. if ((label|0) == 67) {
  31024. label = 0;
  31025. $245 = ($$2256|0)>(-1);
  31026. $246 = $$4266 & -65537;
  31027. $$$4266 = $245 ? $246 : $$4266;
  31028. $247 = ($248|0)!=(0);
  31029. $249 = ($250|0)!=(0);
  31030. $251 = $247 | $249;
  31031. $252 = ($$2256|0)!=(0);
  31032. $or$cond = $252 | $251;
  31033. $253 = $$0228;
  31034. $254 = (($12) - ($253))|0;
  31035. $255 = $251 ^ 1;
  31036. $256 = $255&1;
  31037. $257 = (($256) + ($254))|0;
  31038. $258 = ($$2256|0)>($257|0);
  31039. $$2256$ = $258 ? $$2256 : $257;
  31040. $$2256$$$2256 = $or$cond ? $$2256$ : $$2256;
  31041. $$0228$ = $or$cond ? $$0228 : $11;
  31042. $$2 = $$0228$;$$2234 = $$1233;$$2239 = $$1238;$$2251 = $11;$$5 = $$2256$$$2256;$$6268 = $$$4266;
  31043. }
  31044. else if ((label|0) == 84) {
  31045. label = 0;
  31046. $303 = $$1263$ ^ 8192;
  31047. _pad_674($0,32,$$1260,$$0240$lcssa357,$303);
  31048. $304 = ($$1260|0)>($$0240$lcssa357|0);
  31049. $305 = $304 ? $$1260 : $$0240$lcssa357;
  31050. $$0243 = $305;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31051. continue;
  31052. }
  31053. $308 = $$2251;
  31054. $309 = $$2;
  31055. $310 = (($308) - ($309))|0;
  31056. $311 = ($$5|0)<($310|0);
  31057. $$$5 = $311 ? $310 : $$5;
  31058. $312 = (($$$5) + ($$2234))|0;
  31059. $313 = ($$1260|0)<($312|0);
  31060. $$2261 = $313 ? $312 : $$1260;
  31061. _pad_674($0,32,$$2261,$312,$$6268);
  31062. _out($0,$$2239,$$2234);
  31063. $314 = $$6268 ^ 65536;
  31064. _pad_674($0,48,$$2261,$312,$314);
  31065. _pad_674($0,48,$$$5,$310,0);
  31066. _out($0,$$2,$310);
  31067. $315 = $$6268 ^ 8192;
  31068. _pad_674($0,32,$$2261,$312,$315);
  31069. $$0243 = $$2261;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31070. }
  31071. L114: do {
  31072. if ((label|0) == 87) {
  31073. $316 = ($0|0)==(0|0);
  31074. if ($316) {
  31075. $317 = ($$0269|0)==(0);
  31076. if ($317) {
  31077. $$0 = 0;
  31078. } else {
  31079. $$2242305 = 1;
  31080. while(1) {
  31081. $318 = (($4) + ($$2242305<<2)|0);
  31082. $319 = HEAP32[$318>>2]|0;
  31083. $320 = ($319|0)==(0);
  31084. if ($320) {
  31085. $$3303 = $$2242305;
  31086. break;
  31087. }
  31088. $321 = (($3) + ($$2242305<<3)|0);
  31089. _pop_arg($321,$319,$2);
  31090. $322 = (($$2242305) + 1)|0;
  31091. $323 = ($322|0)<(10);
  31092. if ($323) {
  31093. $$2242305 = $322;
  31094. } else {
  31095. $$0 = 1;
  31096. break L114;
  31097. }
  31098. }
  31099. while(1) {
  31100. $326 = (($4) + ($$3303<<2)|0);
  31101. $327 = HEAP32[$326>>2]|0;
  31102. $328 = ($327|0)==(0);
  31103. $325 = (($$3303) + 1)|0;
  31104. if (!($328)) {
  31105. $$0 = -1;
  31106. break L114;
  31107. }
  31108. $324 = ($325|0)<(10);
  31109. if ($324) {
  31110. $$3303 = $325;
  31111. } else {
  31112. $$0 = 1;
  31113. break;
  31114. }
  31115. }
  31116. }
  31117. } else {
  31118. $$0 = $$1248;
  31119. }
  31120. }
  31121. } while(0);
  31122. STACKTOP = sp;return ($$0|0);
  31123. }
  31124. function ___lockfile($0) {
  31125. $0 = $0|0;
  31126. var label = 0, sp = 0;
  31127. sp = STACKTOP;
  31128. return 0;
  31129. }
  31130. function ___unlockfile($0) {
  31131. $0 = $0|0;
  31132. var label = 0, sp = 0;
  31133. sp = STACKTOP;
  31134. return;
  31135. }
  31136. function _out($0,$1,$2) {
  31137. $0 = $0|0;
  31138. $1 = $1|0;
  31139. $2 = $2|0;
  31140. var $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  31141. sp = STACKTOP;
  31142. $3 = HEAP32[$0>>2]|0;
  31143. $4 = $3 & 32;
  31144. $5 = ($4|0)==(0);
  31145. if ($5) {
  31146. (___fwritex($1,$2,$0)|0);
  31147. }
  31148. return;
  31149. }
  31150. function _getint($0) {
  31151. $0 = $0|0;
  31152. 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;
  31153. sp = STACKTOP;
  31154. $1 = HEAP32[$0>>2]|0;
  31155. $2 = HEAP8[$1>>0]|0;
  31156. $3 = $2 << 24 >> 24;
  31157. $isdigittmp4 = (($3) + -48)|0;
  31158. $isdigit5 = ($isdigittmp4>>>0)<(10);
  31159. if ($isdigit5) {
  31160. $$06 = 0;$7 = $1;$isdigittmp7 = $isdigittmp4;
  31161. while(1) {
  31162. $4 = ($$06*10)|0;
  31163. $5 = (($isdigittmp7) + ($4))|0;
  31164. $6 = ((($7)) + 1|0);
  31165. HEAP32[$0>>2] = $6;
  31166. $8 = HEAP8[$6>>0]|0;
  31167. $9 = $8 << 24 >> 24;
  31168. $isdigittmp = (($9) + -48)|0;
  31169. $isdigit = ($isdigittmp>>>0)<(10);
  31170. if ($isdigit) {
  31171. $$06 = $5;$7 = $6;$isdigittmp7 = $isdigittmp;
  31172. } else {
  31173. $$0$lcssa = $5;
  31174. break;
  31175. }
  31176. }
  31177. } else {
  31178. $$0$lcssa = 0;
  31179. }
  31180. return ($$0$lcssa|0);
  31181. }
  31182. function _pop_arg($0,$1,$2) {
  31183. $0 = $0|0;
  31184. $1 = $1|0;
  31185. $2 = $2|0;
  31186. 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;
  31187. 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;
  31188. 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;
  31189. 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;
  31190. 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;
  31191. 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;
  31192. 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;
  31193. 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;
  31194. 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;
  31195. var $expanded88 = 0, $expanded90 = 0, $expanded91 = 0, $expanded93 = 0, $expanded94 = 0, $expanded95 = 0, label = 0, sp = 0;
  31196. sp = STACKTOP;
  31197. $3 = ($1>>>0)>(20);
  31198. L1: do {
  31199. if (!($3)) {
  31200. do {
  31201. switch ($1|0) {
  31202. case 9: {
  31203. $arglist_current = HEAP32[$2>>2]|0;
  31204. $4 = $arglist_current;
  31205. $5 = ((0) + 4|0);
  31206. $expanded28 = $5;
  31207. $expanded = (($expanded28) - 1)|0;
  31208. $6 = (($4) + ($expanded))|0;
  31209. $7 = ((0) + 4|0);
  31210. $expanded32 = $7;
  31211. $expanded31 = (($expanded32) - 1)|0;
  31212. $expanded30 = $expanded31 ^ -1;
  31213. $8 = $6 & $expanded30;
  31214. $9 = $8;
  31215. $10 = HEAP32[$9>>2]|0;
  31216. $arglist_next = ((($9)) + 4|0);
  31217. HEAP32[$2>>2] = $arglist_next;
  31218. HEAP32[$0>>2] = $10;
  31219. break L1;
  31220. break;
  31221. }
  31222. case 10: {
  31223. $arglist_current2 = HEAP32[$2>>2]|0;
  31224. $11 = $arglist_current2;
  31225. $12 = ((0) + 4|0);
  31226. $expanded35 = $12;
  31227. $expanded34 = (($expanded35) - 1)|0;
  31228. $13 = (($11) + ($expanded34))|0;
  31229. $14 = ((0) + 4|0);
  31230. $expanded39 = $14;
  31231. $expanded38 = (($expanded39) - 1)|0;
  31232. $expanded37 = $expanded38 ^ -1;
  31233. $15 = $13 & $expanded37;
  31234. $16 = $15;
  31235. $17 = HEAP32[$16>>2]|0;
  31236. $arglist_next3 = ((($16)) + 4|0);
  31237. HEAP32[$2>>2] = $arglist_next3;
  31238. $18 = ($17|0)<(0);
  31239. $19 = $18 << 31 >> 31;
  31240. $20 = $0;
  31241. $21 = $20;
  31242. HEAP32[$21>>2] = $17;
  31243. $22 = (($20) + 4)|0;
  31244. $23 = $22;
  31245. HEAP32[$23>>2] = $19;
  31246. break L1;
  31247. break;
  31248. }
  31249. case 11: {
  31250. $arglist_current5 = HEAP32[$2>>2]|0;
  31251. $24 = $arglist_current5;
  31252. $25 = ((0) + 4|0);
  31253. $expanded42 = $25;
  31254. $expanded41 = (($expanded42) - 1)|0;
  31255. $26 = (($24) + ($expanded41))|0;
  31256. $27 = ((0) + 4|0);
  31257. $expanded46 = $27;
  31258. $expanded45 = (($expanded46) - 1)|0;
  31259. $expanded44 = $expanded45 ^ -1;
  31260. $28 = $26 & $expanded44;
  31261. $29 = $28;
  31262. $30 = HEAP32[$29>>2]|0;
  31263. $arglist_next6 = ((($29)) + 4|0);
  31264. HEAP32[$2>>2] = $arglist_next6;
  31265. $31 = $0;
  31266. $32 = $31;
  31267. HEAP32[$32>>2] = $30;
  31268. $33 = (($31) + 4)|0;
  31269. $34 = $33;
  31270. HEAP32[$34>>2] = 0;
  31271. break L1;
  31272. break;
  31273. }
  31274. case 12: {
  31275. $arglist_current8 = HEAP32[$2>>2]|0;
  31276. $35 = $arglist_current8;
  31277. $36 = ((0) + 8|0);
  31278. $expanded49 = $36;
  31279. $expanded48 = (($expanded49) - 1)|0;
  31280. $37 = (($35) + ($expanded48))|0;
  31281. $38 = ((0) + 8|0);
  31282. $expanded53 = $38;
  31283. $expanded52 = (($expanded53) - 1)|0;
  31284. $expanded51 = $expanded52 ^ -1;
  31285. $39 = $37 & $expanded51;
  31286. $40 = $39;
  31287. $41 = $40;
  31288. $42 = $41;
  31289. $43 = HEAP32[$42>>2]|0;
  31290. $44 = (($41) + 4)|0;
  31291. $45 = $44;
  31292. $46 = HEAP32[$45>>2]|0;
  31293. $arglist_next9 = ((($40)) + 8|0);
  31294. HEAP32[$2>>2] = $arglist_next9;
  31295. $47 = $0;
  31296. $48 = $47;
  31297. HEAP32[$48>>2] = $43;
  31298. $49 = (($47) + 4)|0;
  31299. $50 = $49;
  31300. HEAP32[$50>>2] = $46;
  31301. break L1;
  31302. break;
  31303. }
  31304. case 13: {
  31305. $arglist_current11 = HEAP32[$2>>2]|0;
  31306. $51 = $arglist_current11;
  31307. $52 = ((0) + 4|0);
  31308. $expanded56 = $52;
  31309. $expanded55 = (($expanded56) - 1)|0;
  31310. $53 = (($51) + ($expanded55))|0;
  31311. $54 = ((0) + 4|0);
  31312. $expanded60 = $54;
  31313. $expanded59 = (($expanded60) - 1)|0;
  31314. $expanded58 = $expanded59 ^ -1;
  31315. $55 = $53 & $expanded58;
  31316. $56 = $55;
  31317. $57 = HEAP32[$56>>2]|0;
  31318. $arglist_next12 = ((($56)) + 4|0);
  31319. HEAP32[$2>>2] = $arglist_next12;
  31320. $58 = $57&65535;
  31321. $59 = $58 << 16 >> 16;
  31322. $60 = ($59|0)<(0);
  31323. $61 = $60 << 31 >> 31;
  31324. $62 = $0;
  31325. $63 = $62;
  31326. HEAP32[$63>>2] = $59;
  31327. $64 = (($62) + 4)|0;
  31328. $65 = $64;
  31329. HEAP32[$65>>2] = $61;
  31330. break L1;
  31331. break;
  31332. }
  31333. case 14: {
  31334. $arglist_current14 = HEAP32[$2>>2]|0;
  31335. $66 = $arglist_current14;
  31336. $67 = ((0) + 4|0);
  31337. $expanded63 = $67;
  31338. $expanded62 = (($expanded63) - 1)|0;
  31339. $68 = (($66) + ($expanded62))|0;
  31340. $69 = ((0) + 4|0);
  31341. $expanded67 = $69;
  31342. $expanded66 = (($expanded67) - 1)|0;
  31343. $expanded65 = $expanded66 ^ -1;
  31344. $70 = $68 & $expanded65;
  31345. $71 = $70;
  31346. $72 = HEAP32[$71>>2]|0;
  31347. $arglist_next15 = ((($71)) + 4|0);
  31348. HEAP32[$2>>2] = $arglist_next15;
  31349. $$mask31 = $72 & 65535;
  31350. $73 = $0;
  31351. $74 = $73;
  31352. HEAP32[$74>>2] = $$mask31;
  31353. $75 = (($73) + 4)|0;
  31354. $76 = $75;
  31355. HEAP32[$76>>2] = 0;
  31356. break L1;
  31357. break;
  31358. }
  31359. case 15: {
  31360. $arglist_current17 = HEAP32[$2>>2]|0;
  31361. $77 = $arglist_current17;
  31362. $78 = ((0) + 4|0);
  31363. $expanded70 = $78;
  31364. $expanded69 = (($expanded70) - 1)|0;
  31365. $79 = (($77) + ($expanded69))|0;
  31366. $80 = ((0) + 4|0);
  31367. $expanded74 = $80;
  31368. $expanded73 = (($expanded74) - 1)|0;
  31369. $expanded72 = $expanded73 ^ -1;
  31370. $81 = $79 & $expanded72;
  31371. $82 = $81;
  31372. $83 = HEAP32[$82>>2]|0;
  31373. $arglist_next18 = ((($82)) + 4|0);
  31374. HEAP32[$2>>2] = $arglist_next18;
  31375. $84 = $83&255;
  31376. $85 = $84 << 24 >> 24;
  31377. $86 = ($85|0)<(0);
  31378. $87 = $86 << 31 >> 31;
  31379. $88 = $0;
  31380. $89 = $88;
  31381. HEAP32[$89>>2] = $85;
  31382. $90 = (($88) + 4)|0;
  31383. $91 = $90;
  31384. HEAP32[$91>>2] = $87;
  31385. break L1;
  31386. break;
  31387. }
  31388. case 16: {
  31389. $arglist_current20 = HEAP32[$2>>2]|0;
  31390. $92 = $arglist_current20;
  31391. $93 = ((0) + 4|0);
  31392. $expanded77 = $93;
  31393. $expanded76 = (($expanded77) - 1)|0;
  31394. $94 = (($92) + ($expanded76))|0;
  31395. $95 = ((0) + 4|0);
  31396. $expanded81 = $95;
  31397. $expanded80 = (($expanded81) - 1)|0;
  31398. $expanded79 = $expanded80 ^ -1;
  31399. $96 = $94 & $expanded79;
  31400. $97 = $96;
  31401. $98 = HEAP32[$97>>2]|0;
  31402. $arglist_next21 = ((($97)) + 4|0);
  31403. HEAP32[$2>>2] = $arglist_next21;
  31404. $$mask = $98 & 255;
  31405. $99 = $0;
  31406. $100 = $99;
  31407. HEAP32[$100>>2] = $$mask;
  31408. $101 = (($99) + 4)|0;
  31409. $102 = $101;
  31410. HEAP32[$102>>2] = 0;
  31411. break L1;
  31412. break;
  31413. }
  31414. case 17: {
  31415. $arglist_current23 = HEAP32[$2>>2]|0;
  31416. $103 = $arglist_current23;
  31417. $104 = ((0) + 8|0);
  31418. $expanded84 = $104;
  31419. $expanded83 = (($expanded84) - 1)|0;
  31420. $105 = (($103) + ($expanded83))|0;
  31421. $106 = ((0) + 8|0);
  31422. $expanded88 = $106;
  31423. $expanded87 = (($expanded88) - 1)|0;
  31424. $expanded86 = $expanded87 ^ -1;
  31425. $107 = $105 & $expanded86;
  31426. $108 = $107;
  31427. $109 = +HEAPF64[$108>>3];
  31428. $arglist_next24 = ((($108)) + 8|0);
  31429. HEAP32[$2>>2] = $arglist_next24;
  31430. HEAPF64[$0>>3] = $109;
  31431. break L1;
  31432. break;
  31433. }
  31434. case 18: {
  31435. $arglist_current26 = HEAP32[$2>>2]|0;
  31436. $110 = $arglist_current26;
  31437. $111 = ((0) + 8|0);
  31438. $expanded91 = $111;
  31439. $expanded90 = (($expanded91) - 1)|0;
  31440. $112 = (($110) + ($expanded90))|0;
  31441. $113 = ((0) + 8|0);
  31442. $expanded95 = $113;
  31443. $expanded94 = (($expanded95) - 1)|0;
  31444. $expanded93 = $expanded94 ^ -1;
  31445. $114 = $112 & $expanded93;
  31446. $115 = $114;
  31447. $116 = +HEAPF64[$115>>3];
  31448. $arglist_next27 = ((($115)) + 8|0);
  31449. HEAP32[$2>>2] = $arglist_next27;
  31450. HEAPF64[$0>>3] = $116;
  31451. break L1;
  31452. break;
  31453. }
  31454. default: {
  31455. break L1;
  31456. }
  31457. }
  31458. } while(0);
  31459. }
  31460. } while(0);
  31461. return;
  31462. }
  31463. function _fmt_x($0,$1,$2,$3) {
  31464. $0 = $0|0;
  31465. $1 = $1|0;
  31466. $2 = $2|0;
  31467. $3 = $3|0;
  31468. 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;
  31469. var sp = 0;
  31470. sp = STACKTOP;
  31471. $4 = ($0|0)==(0);
  31472. $5 = ($1|0)==(0);
  31473. $6 = $4 & $5;
  31474. if ($6) {
  31475. $$05$lcssa = $2;
  31476. } else {
  31477. $$056 = $2;$15 = $1;$8 = $0;
  31478. while(1) {
  31479. $7 = $8 & 15;
  31480. $9 = (15233 + ($7)|0);
  31481. $10 = HEAP8[$9>>0]|0;
  31482. $11 = $10&255;
  31483. $12 = $11 | $3;
  31484. $13 = $12&255;
  31485. $14 = ((($$056)) + -1|0);
  31486. HEAP8[$14>>0] = $13;
  31487. $16 = (_bitshift64Lshr(($8|0),($15|0),4)|0);
  31488. $17 = tempRet0;
  31489. $18 = ($16|0)==(0);
  31490. $19 = ($17|0)==(0);
  31491. $20 = $18 & $19;
  31492. if ($20) {
  31493. $$05$lcssa = $14;
  31494. break;
  31495. } else {
  31496. $$056 = $14;$15 = $17;$8 = $16;
  31497. }
  31498. }
  31499. }
  31500. return ($$05$lcssa|0);
  31501. }
  31502. function _fmt_o($0,$1,$2) {
  31503. $0 = $0|0;
  31504. $1 = $1|0;
  31505. $2 = $2|0;
  31506. 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;
  31507. sp = STACKTOP;
  31508. $3 = ($0|0)==(0);
  31509. $4 = ($1|0)==(0);
  31510. $5 = $3 & $4;
  31511. if ($5) {
  31512. $$0$lcssa = $2;
  31513. } else {
  31514. $$06 = $2;$11 = $1;$7 = $0;
  31515. while(1) {
  31516. $6 = $7&255;
  31517. $8 = $6 & 7;
  31518. $9 = $8 | 48;
  31519. $10 = ((($$06)) + -1|0);
  31520. HEAP8[$10>>0] = $9;
  31521. $12 = (_bitshift64Lshr(($7|0),($11|0),3)|0);
  31522. $13 = tempRet0;
  31523. $14 = ($12|0)==(0);
  31524. $15 = ($13|0)==(0);
  31525. $16 = $14 & $15;
  31526. if ($16) {
  31527. $$0$lcssa = $10;
  31528. break;
  31529. } else {
  31530. $$06 = $10;$11 = $13;$7 = $12;
  31531. }
  31532. }
  31533. }
  31534. return ($$0$lcssa|0);
  31535. }
  31536. function _fmt_u($0,$1,$2) {
  31537. $0 = $0|0;
  31538. $1 = $1|0;
  31539. $2 = $2|0;
  31540. 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;
  31541. 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;
  31542. sp = STACKTOP;
  31543. $3 = ($1>>>0)>(0);
  31544. $4 = ($0>>>0)>(4294967295);
  31545. $5 = ($1|0)==(0);
  31546. $6 = $5 & $4;
  31547. $7 = $3 | $6;
  31548. if ($7) {
  31549. $$0914 = $2;$8 = $0;$9 = $1;
  31550. while(1) {
  31551. $10 = (___uremdi3(($8|0),($9|0),10,0)|0);
  31552. $11 = tempRet0;
  31553. $12 = $10&255;
  31554. $13 = $12 | 48;
  31555. $14 = ((($$0914)) + -1|0);
  31556. HEAP8[$14>>0] = $13;
  31557. $15 = (___udivdi3(($8|0),($9|0),10,0)|0);
  31558. $16 = tempRet0;
  31559. $17 = ($9>>>0)>(9);
  31560. $18 = ($8>>>0)>(4294967295);
  31561. $19 = ($9|0)==(9);
  31562. $20 = $19 & $18;
  31563. $21 = $17 | $20;
  31564. if ($21) {
  31565. $$0914 = $14;$8 = $15;$9 = $16;
  31566. } else {
  31567. break;
  31568. }
  31569. }
  31570. $$010$lcssa$off0 = $15;$$09$lcssa = $14;
  31571. } else {
  31572. $$010$lcssa$off0 = $0;$$09$lcssa = $2;
  31573. }
  31574. $22 = ($$010$lcssa$off0|0)==(0);
  31575. if ($22) {
  31576. $$1$lcssa = $$09$lcssa;
  31577. } else {
  31578. $$012 = $$010$lcssa$off0;$$111 = $$09$lcssa;
  31579. while(1) {
  31580. $23 = (($$012>>>0) % 10)&-1;
  31581. $24 = $23 | 48;
  31582. $25 = $24&255;
  31583. $26 = ((($$111)) + -1|0);
  31584. HEAP8[$26>>0] = $25;
  31585. $27 = (($$012>>>0) / 10)&-1;
  31586. $28 = ($$012>>>0)<(10);
  31587. if ($28) {
  31588. $$1$lcssa = $26;
  31589. break;
  31590. } else {
  31591. $$012 = $27;$$111 = $26;
  31592. }
  31593. }
  31594. }
  31595. return ($$1$lcssa|0);
  31596. }
  31597. function _strerror($0) {
  31598. $0 = $0|0;
  31599. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  31600. sp = STACKTOP;
  31601. $1 = (___pthread_self_105()|0);
  31602. $2 = ((($1)) + 188|0);
  31603. $3 = HEAP32[$2>>2]|0;
  31604. $4 = (___strerror_l($0,$3)|0);
  31605. return ($4|0);
  31606. }
  31607. function _memchr($0,$1,$2) {
  31608. $0 = $0|0;
  31609. $1 = $1|0;
  31610. $2 = $2|0;
  31611. 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;
  31612. 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;
  31613. 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;
  31614. sp = STACKTOP;
  31615. $3 = $1 & 255;
  31616. $4 = $0;
  31617. $5 = $4 & 3;
  31618. $6 = ($5|0)!=(0);
  31619. $7 = ($2|0)!=(0);
  31620. $or$cond53 = $7 & $6;
  31621. L1: do {
  31622. if ($or$cond53) {
  31623. $8 = $1&255;
  31624. $$03555 = $0;$$03654 = $2;
  31625. while(1) {
  31626. $9 = HEAP8[$$03555>>0]|0;
  31627. $10 = ($9<<24>>24)==($8<<24>>24);
  31628. if ($10) {
  31629. $$035$lcssa65 = $$03555;$$036$lcssa64 = $$03654;
  31630. label = 6;
  31631. break L1;
  31632. }
  31633. $11 = ((($$03555)) + 1|0);
  31634. $12 = (($$03654) + -1)|0;
  31635. $13 = $11;
  31636. $14 = $13 & 3;
  31637. $15 = ($14|0)!=(0);
  31638. $16 = ($12|0)!=(0);
  31639. $or$cond = $16 & $15;
  31640. if ($or$cond) {
  31641. $$03555 = $11;$$03654 = $12;
  31642. } else {
  31643. $$035$lcssa = $11;$$036$lcssa = $12;$$lcssa = $16;
  31644. label = 5;
  31645. break;
  31646. }
  31647. }
  31648. } else {
  31649. $$035$lcssa = $0;$$036$lcssa = $2;$$lcssa = $7;
  31650. label = 5;
  31651. }
  31652. } while(0);
  31653. if ((label|0) == 5) {
  31654. if ($$lcssa) {
  31655. $$035$lcssa65 = $$035$lcssa;$$036$lcssa64 = $$036$lcssa;
  31656. label = 6;
  31657. } else {
  31658. $$2 = $$035$lcssa;$$3 = 0;
  31659. }
  31660. }
  31661. L8: do {
  31662. if ((label|0) == 6) {
  31663. $17 = HEAP8[$$035$lcssa65>>0]|0;
  31664. $18 = $1&255;
  31665. $19 = ($17<<24>>24)==($18<<24>>24);
  31666. if ($19) {
  31667. $$2 = $$035$lcssa65;$$3 = $$036$lcssa64;
  31668. } else {
  31669. $20 = Math_imul($3, 16843009)|0;
  31670. $21 = ($$036$lcssa64>>>0)>(3);
  31671. L11: do {
  31672. if ($21) {
  31673. $$046 = $$035$lcssa65;$$13745 = $$036$lcssa64;
  31674. while(1) {
  31675. $22 = HEAP32[$$046>>2]|0;
  31676. $23 = $22 ^ $20;
  31677. $24 = (($23) + -16843009)|0;
  31678. $25 = $23 & -2139062144;
  31679. $26 = $25 ^ -2139062144;
  31680. $27 = $26 & $24;
  31681. $28 = ($27|0)==(0);
  31682. if (!($28)) {
  31683. break;
  31684. }
  31685. $29 = ((($$046)) + 4|0);
  31686. $30 = (($$13745) + -4)|0;
  31687. $31 = ($30>>>0)>(3);
  31688. if ($31) {
  31689. $$046 = $29;$$13745 = $30;
  31690. } else {
  31691. $$0$lcssa = $29;$$137$lcssa = $30;
  31692. label = 11;
  31693. break L11;
  31694. }
  31695. }
  31696. $$140 = $$046;$$23839 = $$13745;
  31697. } else {
  31698. $$0$lcssa = $$035$lcssa65;$$137$lcssa = $$036$lcssa64;
  31699. label = 11;
  31700. }
  31701. } while(0);
  31702. if ((label|0) == 11) {
  31703. $32 = ($$137$lcssa|0)==(0);
  31704. if ($32) {
  31705. $$2 = $$0$lcssa;$$3 = 0;
  31706. break;
  31707. } else {
  31708. $$140 = $$0$lcssa;$$23839 = $$137$lcssa;
  31709. }
  31710. }
  31711. while(1) {
  31712. $33 = HEAP8[$$140>>0]|0;
  31713. $34 = ($33<<24>>24)==($18<<24>>24);
  31714. if ($34) {
  31715. $$2 = $$140;$$3 = $$23839;
  31716. break L8;
  31717. }
  31718. $35 = ((($$140)) + 1|0);
  31719. $36 = (($$23839) + -1)|0;
  31720. $37 = ($36|0)==(0);
  31721. if ($37) {
  31722. $$2 = $35;$$3 = 0;
  31723. break;
  31724. } else {
  31725. $$140 = $35;$$23839 = $36;
  31726. }
  31727. }
  31728. }
  31729. }
  31730. } while(0);
  31731. $38 = ($$3|0)!=(0);
  31732. $39 = $38 ? $$2 : 0;
  31733. return ($39|0);
  31734. }
  31735. function _pad_674($0,$1,$2,$3,$4) {
  31736. $0 = $0|0;
  31737. $1 = $1|0;
  31738. $2 = $2|0;
  31739. $3 = $3|0;
  31740. $4 = $4|0;
  31741. 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;
  31742. sp = STACKTOP;
  31743. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  31744. $5 = sp;
  31745. $6 = $4 & 73728;
  31746. $7 = ($6|0)==(0);
  31747. $8 = ($2|0)>($3|0);
  31748. $or$cond = $8 & $7;
  31749. if ($or$cond) {
  31750. $9 = (($2) - ($3))|0;
  31751. $10 = ($9>>>0)<(256);
  31752. $11 = $10 ? $9 : 256;
  31753. _memset(($5|0),($1|0),($11|0))|0;
  31754. $12 = ($9>>>0)>(255);
  31755. if ($12) {
  31756. $13 = (($2) - ($3))|0;
  31757. $$011 = $9;
  31758. while(1) {
  31759. _out($0,$5,256);
  31760. $14 = (($$011) + -256)|0;
  31761. $15 = ($14>>>0)>(255);
  31762. if ($15) {
  31763. $$011 = $14;
  31764. } else {
  31765. break;
  31766. }
  31767. }
  31768. $16 = $13 & 255;
  31769. $$0$lcssa = $16;
  31770. } else {
  31771. $$0$lcssa = $9;
  31772. }
  31773. _out($0,$5,$$0$lcssa);
  31774. }
  31775. STACKTOP = sp;return;
  31776. }
  31777. function _wctomb($0,$1) {
  31778. $0 = $0|0;
  31779. $1 = $1|0;
  31780. var $$0 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  31781. sp = STACKTOP;
  31782. $2 = ($0|0)==(0|0);
  31783. if ($2) {
  31784. $$0 = 0;
  31785. } else {
  31786. $3 = (_wcrtomb($0,$1,0)|0);
  31787. $$0 = $3;
  31788. }
  31789. return ($$0|0);
  31790. }
  31791. function _fmt_fp($0,$1,$2,$3,$4,$5) {
  31792. $0 = $0|0;
  31793. $1 = +$1;
  31794. $2 = $2|0;
  31795. $3 = $3|0;
  31796. $4 = $4|0;
  31797. $5 = $5|0;
  31798. 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;
  31799. 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;
  31800. 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;
  31801. 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;
  31802. 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;
  31803. 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;
  31804. 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;
  31805. 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;
  31806. 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;
  31807. 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;
  31808. 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;
  31809. 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;
  31810. 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;
  31811. 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;
  31812. 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;
  31813. 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;
  31814. 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;
  31815. 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;
  31816. 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;
  31817. 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;
  31818. 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;
  31819. 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;
  31820. 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;
  31821. 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;
  31822. 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;
  31823. 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;
  31824. sp = STACKTOP;
  31825. STACKTOP = STACKTOP + 560|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(560|0);
  31826. $6 = sp + 8|0;
  31827. $7 = sp;
  31828. $8 = sp + 524|0;
  31829. $9 = $8;
  31830. $10 = sp + 512|0;
  31831. HEAP32[$7>>2] = 0;
  31832. $11 = ((($10)) + 12|0);
  31833. (___DOUBLE_BITS_675($1)|0);
  31834. $12 = tempRet0;
  31835. $13 = ($12|0)<(0);
  31836. if ($13) {
  31837. $14 = -$1;
  31838. $$0471 = $14;$$0520 = 1;$$0521 = 15198;
  31839. } else {
  31840. $15 = $4 & 2048;
  31841. $16 = ($15|0)==(0);
  31842. $17 = $4 & 1;
  31843. $18 = ($17|0)==(0);
  31844. $$ = $18 ? (15199) : (15204);
  31845. $$$ = $16 ? $$ : (15201);
  31846. $19 = $4 & 2049;
  31847. $narrow = ($19|0)!=(0);
  31848. $$534$ = $narrow&1;
  31849. $$0471 = $1;$$0520 = $$534$;$$0521 = $$$;
  31850. }
  31851. (___DOUBLE_BITS_675($$0471)|0);
  31852. $20 = tempRet0;
  31853. $21 = $20 & 2146435072;
  31854. $22 = ($21>>>0)<(2146435072);
  31855. $23 = (0)<(0);
  31856. $24 = ($21|0)==(2146435072);
  31857. $25 = $24 & $23;
  31858. $26 = $22 | $25;
  31859. do {
  31860. if ($26) {
  31861. $35 = (+_frexpl($$0471,$7));
  31862. $36 = $35 * 2.0;
  31863. $37 = $36 != 0.0;
  31864. if ($37) {
  31865. $38 = HEAP32[$7>>2]|0;
  31866. $39 = (($38) + -1)|0;
  31867. HEAP32[$7>>2] = $39;
  31868. }
  31869. $40 = $5 | 32;
  31870. $41 = ($40|0)==(97);
  31871. if ($41) {
  31872. $42 = $5 & 32;
  31873. $43 = ($42|0)==(0);
  31874. $44 = ((($$0521)) + 9|0);
  31875. $$0521$ = $43 ? $$0521 : $44;
  31876. $45 = $$0520 | 2;
  31877. $46 = ($3>>>0)>(11);
  31878. $47 = (12 - ($3))|0;
  31879. $48 = ($47|0)==(0);
  31880. $49 = $46 | $48;
  31881. do {
  31882. if ($49) {
  31883. $$1472 = $36;
  31884. } else {
  31885. $$0509582 = 8.0;$$1508583 = $47;
  31886. while(1) {
  31887. $50 = (($$1508583) + -1)|0;
  31888. $51 = $$0509582 * 16.0;
  31889. $52 = ($50|0)==(0);
  31890. if ($52) {
  31891. break;
  31892. } else {
  31893. $$0509582 = $51;$$1508583 = $50;
  31894. }
  31895. }
  31896. $53 = HEAP8[$$0521$>>0]|0;
  31897. $54 = ($53<<24>>24)==(45);
  31898. if ($54) {
  31899. $55 = -$36;
  31900. $56 = $55 - $51;
  31901. $57 = $51 + $56;
  31902. $58 = -$57;
  31903. $$1472 = $58;
  31904. break;
  31905. } else {
  31906. $59 = $36 + $51;
  31907. $60 = $59 - $51;
  31908. $$1472 = $60;
  31909. break;
  31910. }
  31911. }
  31912. } while(0);
  31913. $61 = HEAP32[$7>>2]|0;
  31914. $62 = ($61|0)<(0);
  31915. $63 = (0 - ($61))|0;
  31916. $64 = $62 ? $63 : $61;
  31917. $65 = ($64|0)<(0);
  31918. $66 = $65 << 31 >> 31;
  31919. $67 = (_fmt_u($64,$66,$11)|0);
  31920. $68 = ($67|0)==($11|0);
  31921. if ($68) {
  31922. $69 = ((($10)) + 11|0);
  31923. HEAP8[$69>>0] = 48;
  31924. $$0511 = $69;
  31925. } else {
  31926. $$0511 = $67;
  31927. }
  31928. $70 = $61 >> 31;
  31929. $71 = $70 & 2;
  31930. $72 = (($71) + 43)|0;
  31931. $73 = $72&255;
  31932. $74 = ((($$0511)) + -1|0);
  31933. HEAP8[$74>>0] = $73;
  31934. $75 = (($5) + 15)|0;
  31935. $76 = $75&255;
  31936. $77 = ((($$0511)) + -2|0);
  31937. HEAP8[$77>>0] = $76;
  31938. $notrhs = ($3|0)<(1);
  31939. $78 = $4 & 8;
  31940. $79 = ($78|0)==(0);
  31941. $$0523 = $8;$$2473 = $$1472;
  31942. while(1) {
  31943. $80 = (~~(($$2473)));
  31944. $81 = (15233 + ($80)|0);
  31945. $82 = HEAP8[$81>>0]|0;
  31946. $83 = $82&255;
  31947. $84 = $83 | $42;
  31948. $85 = $84&255;
  31949. $86 = ((($$0523)) + 1|0);
  31950. HEAP8[$$0523>>0] = $85;
  31951. $87 = (+($80|0));
  31952. $88 = $$2473 - $87;
  31953. $89 = $88 * 16.0;
  31954. $90 = $86;
  31955. $91 = (($90) - ($9))|0;
  31956. $92 = ($91|0)==(1);
  31957. if ($92) {
  31958. $notlhs = $89 == 0.0;
  31959. $or$cond3$not = $notrhs & $notlhs;
  31960. $or$cond = $79 & $or$cond3$not;
  31961. if ($or$cond) {
  31962. $$1524 = $86;
  31963. } else {
  31964. $93 = ((($$0523)) + 2|0);
  31965. HEAP8[$86>>0] = 46;
  31966. $$1524 = $93;
  31967. }
  31968. } else {
  31969. $$1524 = $86;
  31970. }
  31971. $94 = $89 != 0.0;
  31972. if ($94) {
  31973. $$0523 = $$1524;$$2473 = $89;
  31974. } else {
  31975. break;
  31976. }
  31977. }
  31978. $95 = ($3|0)!=(0);
  31979. $96 = $77;
  31980. $97 = $11;
  31981. $98 = $$1524;
  31982. $99 = (($98) - ($9))|0;
  31983. $100 = (($97) - ($96))|0;
  31984. $101 = (($99) + -2)|0;
  31985. $102 = ($101|0)<($3|0);
  31986. $or$cond537 = $95 & $102;
  31987. $103 = (($3) + 2)|0;
  31988. $$pn = $or$cond537 ? $103 : $99;
  31989. $$0525 = (($100) + ($45))|0;
  31990. $104 = (($$0525) + ($$pn))|0;
  31991. _pad_674($0,32,$2,$104,$4);
  31992. _out($0,$$0521$,$45);
  31993. $105 = $4 ^ 65536;
  31994. _pad_674($0,48,$2,$104,$105);
  31995. _out($0,$8,$99);
  31996. $106 = (($$pn) - ($99))|0;
  31997. _pad_674($0,48,$106,0,0);
  31998. _out($0,$77,$100);
  31999. $107 = $4 ^ 8192;
  32000. _pad_674($0,32,$2,$104,$107);
  32001. $$sink562 = $104;
  32002. break;
  32003. }
  32004. $108 = ($3|0)<(0);
  32005. $$539 = $108 ? 6 : $3;
  32006. if ($37) {
  32007. $109 = $36 * 268435456.0;
  32008. $110 = HEAP32[$7>>2]|0;
  32009. $111 = (($110) + -28)|0;
  32010. HEAP32[$7>>2] = $111;
  32011. $$3 = $109;$$pr = $111;
  32012. } else {
  32013. $$pre = HEAP32[$7>>2]|0;
  32014. $$3 = $36;$$pr = $$pre;
  32015. }
  32016. $112 = ($$pr|0)<(0);
  32017. $113 = ((($6)) + 288|0);
  32018. $$556 = $112 ? $6 : $113;
  32019. $$0498 = $$556;$$4 = $$3;
  32020. while(1) {
  32021. $114 = (~~(($$4))>>>0);
  32022. HEAP32[$$0498>>2] = $114;
  32023. $115 = ((($$0498)) + 4|0);
  32024. $116 = (+($114>>>0));
  32025. $117 = $$4 - $116;
  32026. $118 = $117 * 1.0E+9;
  32027. $119 = $118 != 0.0;
  32028. if ($119) {
  32029. $$0498 = $115;$$4 = $118;
  32030. } else {
  32031. break;
  32032. }
  32033. }
  32034. $120 = ($$pr|0)>(0);
  32035. if ($120) {
  32036. $$1482661 = $$556;$$1499660 = $115;$122 = $$pr;
  32037. while(1) {
  32038. $121 = ($122|0)<(29);
  32039. $123 = $121 ? $122 : 29;
  32040. $$0488653 = ((($$1499660)) + -4|0);
  32041. $124 = ($$0488653>>>0)<($$1482661>>>0);
  32042. if ($124) {
  32043. $$2483$ph = $$1482661;
  32044. } else {
  32045. $$0488655 = $$0488653;$$0497654 = 0;
  32046. while(1) {
  32047. $125 = HEAP32[$$0488655>>2]|0;
  32048. $126 = (_bitshift64Shl(($125|0),0,($123|0))|0);
  32049. $127 = tempRet0;
  32050. $128 = (_i64Add(($126|0),($127|0),($$0497654|0),0)|0);
  32051. $129 = tempRet0;
  32052. $130 = (___uremdi3(($128|0),($129|0),1000000000,0)|0);
  32053. $131 = tempRet0;
  32054. HEAP32[$$0488655>>2] = $130;
  32055. $132 = (___udivdi3(($128|0),($129|0),1000000000,0)|0);
  32056. $133 = tempRet0;
  32057. $$0488 = ((($$0488655)) + -4|0);
  32058. $134 = ($$0488>>>0)<($$1482661>>>0);
  32059. if ($134) {
  32060. break;
  32061. } else {
  32062. $$0488655 = $$0488;$$0497654 = $132;
  32063. }
  32064. }
  32065. $135 = ($132|0)==(0);
  32066. if ($135) {
  32067. $$2483$ph = $$1482661;
  32068. } else {
  32069. $136 = ((($$1482661)) + -4|0);
  32070. HEAP32[$136>>2] = $132;
  32071. $$2483$ph = $136;
  32072. }
  32073. }
  32074. $$2500 = $$1499660;
  32075. while(1) {
  32076. $137 = ($$2500>>>0)>($$2483$ph>>>0);
  32077. if (!($137)) {
  32078. break;
  32079. }
  32080. $138 = ((($$2500)) + -4|0);
  32081. $139 = HEAP32[$138>>2]|0;
  32082. $140 = ($139|0)==(0);
  32083. if ($140) {
  32084. $$2500 = $138;
  32085. } else {
  32086. break;
  32087. }
  32088. }
  32089. $141 = HEAP32[$7>>2]|0;
  32090. $142 = (($141) - ($123))|0;
  32091. HEAP32[$7>>2] = $142;
  32092. $143 = ($142|0)>(0);
  32093. if ($143) {
  32094. $$1482661 = $$2483$ph;$$1499660 = $$2500;$122 = $142;
  32095. } else {
  32096. $$1482$lcssa = $$2483$ph;$$1499$lcssa = $$2500;$$pr564 = $142;
  32097. break;
  32098. }
  32099. }
  32100. } else {
  32101. $$1482$lcssa = $$556;$$1499$lcssa = $115;$$pr564 = $$pr;
  32102. }
  32103. $144 = ($$pr564|0)<(0);
  32104. if ($144) {
  32105. $145 = (($$539) + 25)|0;
  32106. $146 = (($145|0) / 9)&-1;
  32107. $147 = (($146) + 1)|0;
  32108. $148 = ($40|0)==(102);
  32109. $$3484648 = $$1482$lcssa;$$3501647 = $$1499$lcssa;$150 = $$pr564;
  32110. while(1) {
  32111. $149 = (0 - ($150))|0;
  32112. $151 = ($149|0)<(9);
  32113. $152 = $151 ? $149 : 9;
  32114. $153 = ($$3484648>>>0)<($$3501647>>>0);
  32115. if ($153) {
  32116. $157 = 1 << $152;
  32117. $158 = (($157) + -1)|0;
  32118. $159 = 1000000000 >>> $152;
  32119. $$0487642 = 0;$$1489641 = $$3484648;
  32120. while(1) {
  32121. $160 = HEAP32[$$1489641>>2]|0;
  32122. $161 = $160 & $158;
  32123. $162 = $160 >>> $152;
  32124. $163 = (($162) + ($$0487642))|0;
  32125. HEAP32[$$1489641>>2] = $163;
  32126. $164 = Math_imul($161, $159)|0;
  32127. $165 = ((($$1489641)) + 4|0);
  32128. $166 = ($165>>>0)<($$3501647>>>0);
  32129. if ($166) {
  32130. $$0487642 = $164;$$1489641 = $165;
  32131. } else {
  32132. break;
  32133. }
  32134. }
  32135. $167 = HEAP32[$$3484648>>2]|0;
  32136. $168 = ($167|0)==(0);
  32137. $169 = ((($$3484648)) + 4|0);
  32138. $$$3484 = $168 ? $169 : $$3484648;
  32139. $170 = ($164|0)==(0);
  32140. if ($170) {
  32141. $$$3484692 = $$$3484;$$4502 = $$3501647;
  32142. } else {
  32143. $171 = ((($$3501647)) + 4|0);
  32144. HEAP32[$$3501647>>2] = $164;
  32145. $$$3484692 = $$$3484;$$4502 = $171;
  32146. }
  32147. } else {
  32148. $154 = HEAP32[$$3484648>>2]|0;
  32149. $155 = ($154|0)==(0);
  32150. $156 = ((($$3484648)) + 4|0);
  32151. $$$3484691 = $155 ? $156 : $$3484648;
  32152. $$$3484692 = $$$3484691;$$4502 = $$3501647;
  32153. }
  32154. $172 = $148 ? $$556 : $$$3484692;
  32155. $173 = $$4502;
  32156. $174 = $172;
  32157. $175 = (($173) - ($174))|0;
  32158. $176 = $175 >> 2;
  32159. $177 = ($176|0)>($147|0);
  32160. $178 = (($172) + ($147<<2)|0);
  32161. $$$4502 = $177 ? $178 : $$4502;
  32162. $179 = HEAP32[$7>>2]|0;
  32163. $180 = (($179) + ($152))|0;
  32164. HEAP32[$7>>2] = $180;
  32165. $181 = ($180|0)<(0);
  32166. if ($181) {
  32167. $$3484648 = $$$3484692;$$3501647 = $$$4502;$150 = $180;
  32168. } else {
  32169. $$3484$lcssa = $$$3484692;$$3501$lcssa = $$$4502;
  32170. break;
  32171. }
  32172. }
  32173. } else {
  32174. $$3484$lcssa = $$1482$lcssa;$$3501$lcssa = $$1499$lcssa;
  32175. }
  32176. $182 = ($$3484$lcssa>>>0)<($$3501$lcssa>>>0);
  32177. $183 = $$556;
  32178. if ($182) {
  32179. $184 = $$3484$lcssa;
  32180. $185 = (($183) - ($184))|0;
  32181. $186 = $185 >> 2;
  32182. $187 = ($186*9)|0;
  32183. $188 = HEAP32[$$3484$lcssa>>2]|0;
  32184. $189 = ($188>>>0)<(10);
  32185. if ($189) {
  32186. $$1515 = $187;
  32187. } else {
  32188. $$0514637 = $187;$$0530636 = 10;
  32189. while(1) {
  32190. $190 = ($$0530636*10)|0;
  32191. $191 = (($$0514637) + 1)|0;
  32192. $192 = ($188>>>0)<($190>>>0);
  32193. if ($192) {
  32194. $$1515 = $191;
  32195. break;
  32196. } else {
  32197. $$0514637 = $191;$$0530636 = $190;
  32198. }
  32199. }
  32200. }
  32201. } else {
  32202. $$1515 = 0;
  32203. }
  32204. $193 = ($40|0)!=(102);
  32205. $194 = $193 ? $$1515 : 0;
  32206. $195 = (($$539) - ($194))|0;
  32207. $196 = ($40|0)==(103);
  32208. $197 = ($$539|0)!=(0);
  32209. $198 = $197 & $196;
  32210. $$neg = $198 << 31 >> 31;
  32211. $199 = (($195) + ($$neg))|0;
  32212. $200 = $$3501$lcssa;
  32213. $201 = (($200) - ($183))|0;
  32214. $202 = $201 >> 2;
  32215. $203 = ($202*9)|0;
  32216. $204 = (($203) + -9)|0;
  32217. $205 = ($199|0)<($204|0);
  32218. if ($205) {
  32219. $206 = ((($$556)) + 4|0);
  32220. $207 = (($199) + 9216)|0;
  32221. $208 = (($207|0) / 9)&-1;
  32222. $209 = (($208) + -1024)|0;
  32223. $210 = (($206) + ($209<<2)|0);
  32224. $211 = (($207|0) % 9)&-1;
  32225. $$0527629 = (($211) + 1)|0;
  32226. $212 = ($$0527629|0)<(9);
  32227. if ($212) {
  32228. $$0527631 = $$0527629;$$1531630 = 10;
  32229. while(1) {
  32230. $213 = ($$1531630*10)|0;
  32231. $$0527 = (($$0527631) + 1)|0;
  32232. $exitcond = ($$0527|0)==(9);
  32233. if ($exitcond) {
  32234. $$1531$lcssa = $213;
  32235. break;
  32236. } else {
  32237. $$0527631 = $$0527;$$1531630 = $213;
  32238. }
  32239. }
  32240. } else {
  32241. $$1531$lcssa = 10;
  32242. }
  32243. $214 = HEAP32[$210>>2]|0;
  32244. $215 = (($214>>>0) % ($$1531$lcssa>>>0))&-1;
  32245. $216 = ($215|0)==(0);
  32246. $217 = ((($210)) + 4|0);
  32247. $218 = ($217|0)==($$3501$lcssa|0);
  32248. $or$cond541 = $218 & $216;
  32249. if ($or$cond541) {
  32250. $$4492 = $210;$$4518 = $$1515;$$8 = $$3484$lcssa;
  32251. } else {
  32252. $219 = (($214>>>0) / ($$1531$lcssa>>>0))&-1;
  32253. $220 = $219 & 1;
  32254. $221 = ($220|0)==(0);
  32255. $$542 = $221 ? 9007199254740992.0 : 9007199254740994.0;
  32256. $222 = (($$1531$lcssa|0) / 2)&-1;
  32257. $223 = ($215>>>0)<($222>>>0);
  32258. $224 = ($215|0)==($222|0);
  32259. $or$cond544 = $218 & $224;
  32260. $$559 = $or$cond544 ? 1.0 : 1.5;
  32261. $$$559 = $223 ? 0.5 : $$559;
  32262. $225 = ($$0520|0)==(0);
  32263. if ($225) {
  32264. $$1467 = $$$559;$$1469 = $$542;
  32265. } else {
  32266. $226 = HEAP8[$$0521>>0]|0;
  32267. $227 = ($226<<24>>24)==(45);
  32268. $228 = -$$542;
  32269. $229 = -$$$559;
  32270. $$$542 = $227 ? $228 : $$542;
  32271. $$$$559 = $227 ? $229 : $$$559;
  32272. $$1467 = $$$$559;$$1469 = $$$542;
  32273. }
  32274. $230 = (($214) - ($215))|0;
  32275. HEAP32[$210>>2] = $230;
  32276. $231 = $$1469 + $$1467;
  32277. $232 = $231 != $$1469;
  32278. if ($232) {
  32279. $233 = (($230) + ($$1531$lcssa))|0;
  32280. HEAP32[$210>>2] = $233;
  32281. $234 = ($233>>>0)>(999999999);
  32282. if ($234) {
  32283. $$5486623 = $$3484$lcssa;$$sink545622 = $210;
  32284. while(1) {
  32285. $235 = ((($$sink545622)) + -4|0);
  32286. HEAP32[$$sink545622>>2] = 0;
  32287. $236 = ($235>>>0)<($$5486623>>>0);
  32288. if ($236) {
  32289. $237 = ((($$5486623)) + -4|0);
  32290. HEAP32[$237>>2] = 0;
  32291. $$6 = $237;
  32292. } else {
  32293. $$6 = $$5486623;
  32294. }
  32295. $238 = HEAP32[$235>>2]|0;
  32296. $239 = (($238) + 1)|0;
  32297. HEAP32[$235>>2] = $239;
  32298. $240 = ($239>>>0)>(999999999);
  32299. if ($240) {
  32300. $$5486623 = $$6;$$sink545622 = $235;
  32301. } else {
  32302. $$5486$lcssa = $$6;$$sink545$lcssa = $235;
  32303. break;
  32304. }
  32305. }
  32306. } else {
  32307. $$5486$lcssa = $$3484$lcssa;$$sink545$lcssa = $210;
  32308. }
  32309. $241 = $$5486$lcssa;
  32310. $242 = (($183) - ($241))|0;
  32311. $243 = $242 >> 2;
  32312. $244 = ($243*9)|0;
  32313. $245 = HEAP32[$$5486$lcssa>>2]|0;
  32314. $246 = ($245>>>0)<(10);
  32315. if ($246) {
  32316. $$4492 = $$sink545$lcssa;$$4518 = $244;$$8 = $$5486$lcssa;
  32317. } else {
  32318. $$2516618 = $244;$$2532617 = 10;
  32319. while(1) {
  32320. $247 = ($$2532617*10)|0;
  32321. $248 = (($$2516618) + 1)|0;
  32322. $249 = ($245>>>0)<($247>>>0);
  32323. if ($249) {
  32324. $$4492 = $$sink545$lcssa;$$4518 = $248;$$8 = $$5486$lcssa;
  32325. break;
  32326. } else {
  32327. $$2516618 = $248;$$2532617 = $247;
  32328. }
  32329. }
  32330. }
  32331. } else {
  32332. $$4492 = $210;$$4518 = $$1515;$$8 = $$3484$lcssa;
  32333. }
  32334. }
  32335. $250 = ((($$4492)) + 4|0);
  32336. $251 = ($$3501$lcssa>>>0)>($250>>>0);
  32337. $$$3501 = $251 ? $250 : $$3501$lcssa;
  32338. $$5519$ph = $$4518;$$7505$ph = $$$3501;$$9$ph = $$8;
  32339. } else {
  32340. $$5519$ph = $$1515;$$7505$ph = $$3501$lcssa;$$9$ph = $$3484$lcssa;
  32341. }
  32342. $$7505 = $$7505$ph;
  32343. while(1) {
  32344. $252 = ($$7505>>>0)>($$9$ph>>>0);
  32345. if (!($252)) {
  32346. $$lcssa673 = 0;
  32347. break;
  32348. }
  32349. $253 = ((($$7505)) + -4|0);
  32350. $254 = HEAP32[$253>>2]|0;
  32351. $255 = ($254|0)==(0);
  32352. if ($255) {
  32353. $$7505 = $253;
  32354. } else {
  32355. $$lcssa673 = 1;
  32356. break;
  32357. }
  32358. }
  32359. $256 = (0 - ($$5519$ph))|0;
  32360. do {
  32361. if ($196) {
  32362. $not$ = $197 ^ 1;
  32363. $257 = $not$&1;
  32364. $$539$ = (($257) + ($$539))|0;
  32365. $258 = ($$539$|0)>($$5519$ph|0);
  32366. $259 = ($$5519$ph|0)>(-5);
  32367. $or$cond6 = $258 & $259;
  32368. if ($or$cond6) {
  32369. $260 = (($5) + -1)|0;
  32370. $$neg567 = (($$539$) + -1)|0;
  32371. $261 = (($$neg567) - ($$5519$ph))|0;
  32372. $$0479 = $260;$$2476 = $261;
  32373. } else {
  32374. $262 = (($5) + -2)|0;
  32375. $263 = (($$539$) + -1)|0;
  32376. $$0479 = $262;$$2476 = $263;
  32377. }
  32378. $264 = $4 & 8;
  32379. $265 = ($264|0)==(0);
  32380. if ($265) {
  32381. if ($$lcssa673) {
  32382. $266 = ((($$7505)) + -4|0);
  32383. $267 = HEAP32[$266>>2]|0;
  32384. $268 = ($267|0)==(0);
  32385. if ($268) {
  32386. $$2529 = 9;
  32387. } else {
  32388. $269 = (($267>>>0) % 10)&-1;
  32389. $270 = ($269|0)==(0);
  32390. if ($270) {
  32391. $$1528614 = 0;$$3533613 = 10;
  32392. while(1) {
  32393. $271 = ($$3533613*10)|0;
  32394. $272 = (($$1528614) + 1)|0;
  32395. $273 = (($267>>>0) % ($271>>>0))&-1;
  32396. $274 = ($273|0)==(0);
  32397. if ($274) {
  32398. $$1528614 = $272;$$3533613 = $271;
  32399. } else {
  32400. $$2529 = $272;
  32401. break;
  32402. }
  32403. }
  32404. } else {
  32405. $$2529 = 0;
  32406. }
  32407. }
  32408. } else {
  32409. $$2529 = 9;
  32410. }
  32411. $275 = $$0479 | 32;
  32412. $276 = ($275|0)==(102);
  32413. $277 = $$7505;
  32414. $278 = (($277) - ($183))|0;
  32415. $279 = $278 >> 2;
  32416. $280 = ($279*9)|0;
  32417. $281 = (($280) + -9)|0;
  32418. if ($276) {
  32419. $282 = (($281) - ($$2529))|0;
  32420. $283 = ($282|0)>(0);
  32421. $$546 = $283 ? $282 : 0;
  32422. $284 = ($$2476|0)<($$546|0);
  32423. $$2476$$547 = $284 ? $$2476 : $$546;
  32424. $$1480 = $$0479;$$3477 = $$2476$$547;$$pre$phi690Z2D = 0;
  32425. break;
  32426. } else {
  32427. $285 = (($281) + ($$5519$ph))|0;
  32428. $286 = (($285) - ($$2529))|0;
  32429. $287 = ($286|0)>(0);
  32430. $$548 = $287 ? $286 : 0;
  32431. $288 = ($$2476|0)<($$548|0);
  32432. $$2476$$549 = $288 ? $$2476 : $$548;
  32433. $$1480 = $$0479;$$3477 = $$2476$$549;$$pre$phi690Z2D = 0;
  32434. break;
  32435. }
  32436. } else {
  32437. $$1480 = $$0479;$$3477 = $$2476;$$pre$phi690Z2D = $264;
  32438. }
  32439. } else {
  32440. $$pre689 = $4 & 8;
  32441. $$1480 = $5;$$3477 = $$539;$$pre$phi690Z2D = $$pre689;
  32442. }
  32443. } while(0);
  32444. $289 = $$3477 | $$pre$phi690Z2D;
  32445. $290 = ($289|0)!=(0);
  32446. $291 = $290&1;
  32447. $292 = $$1480 | 32;
  32448. $293 = ($292|0)==(102);
  32449. if ($293) {
  32450. $294 = ($$5519$ph|0)>(0);
  32451. $295 = $294 ? $$5519$ph : 0;
  32452. $$2513 = 0;$$pn566 = $295;
  32453. } else {
  32454. $296 = ($$5519$ph|0)<(0);
  32455. $297 = $296 ? $256 : $$5519$ph;
  32456. $298 = ($297|0)<(0);
  32457. $299 = $298 << 31 >> 31;
  32458. $300 = (_fmt_u($297,$299,$11)|0);
  32459. $301 = $11;
  32460. $302 = $300;
  32461. $303 = (($301) - ($302))|0;
  32462. $304 = ($303|0)<(2);
  32463. if ($304) {
  32464. $$1512607 = $300;
  32465. while(1) {
  32466. $305 = ((($$1512607)) + -1|0);
  32467. HEAP8[$305>>0] = 48;
  32468. $306 = $305;
  32469. $307 = (($301) - ($306))|0;
  32470. $308 = ($307|0)<(2);
  32471. if ($308) {
  32472. $$1512607 = $305;
  32473. } else {
  32474. $$1512$lcssa = $305;
  32475. break;
  32476. }
  32477. }
  32478. } else {
  32479. $$1512$lcssa = $300;
  32480. }
  32481. $309 = $$5519$ph >> 31;
  32482. $310 = $309 & 2;
  32483. $311 = (($310) + 43)|0;
  32484. $312 = $311&255;
  32485. $313 = ((($$1512$lcssa)) + -1|0);
  32486. HEAP8[$313>>0] = $312;
  32487. $314 = $$1480&255;
  32488. $315 = ((($$1512$lcssa)) + -2|0);
  32489. HEAP8[$315>>0] = $314;
  32490. $316 = $315;
  32491. $317 = (($301) - ($316))|0;
  32492. $$2513 = $315;$$pn566 = $317;
  32493. }
  32494. $318 = (($$0520) + 1)|0;
  32495. $319 = (($318) + ($$3477))|0;
  32496. $$1526 = (($319) + ($291))|0;
  32497. $320 = (($$1526) + ($$pn566))|0;
  32498. _pad_674($0,32,$2,$320,$4);
  32499. _out($0,$$0521,$$0520);
  32500. $321 = $4 ^ 65536;
  32501. _pad_674($0,48,$2,$320,$321);
  32502. if ($293) {
  32503. $322 = ($$9$ph>>>0)>($$556>>>0);
  32504. $$0496$$9 = $322 ? $$556 : $$9$ph;
  32505. $323 = ((($8)) + 9|0);
  32506. $324 = $323;
  32507. $325 = ((($8)) + 8|0);
  32508. $$5493597 = $$0496$$9;
  32509. while(1) {
  32510. $326 = HEAP32[$$5493597>>2]|0;
  32511. $327 = (_fmt_u($326,0,$323)|0);
  32512. $328 = ($$5493597|0)==($$0496$$9|0);
  32513. if ($328) {
  32514. $334 = ($327|0)==($323|0);
  32515. if ($334) {
  32516. HEAP8[$325>>0] = 48;
  32517. $$1465 = $325;
  32518. } else {
  32519. $$1465 = $327;
  32520. }
  32521. } else {
  32522. $329 = ($327>>>0)>($8>>>0);
  32523. if ($329) {
  32524. $330 = $327;
  32525. $331 = (($330) - ($9))|0;
  32526. _memset(($8|0),48,($331|0))|0;
  32527. $$0464594 = $327;
  32528. while(1) {
  32529. $332 = ((($$0464594)) + -1|0);
  32530. $333 = ($332>>>0)>($8>>>0);
  32531. if ($333) {
  32532. $$0464594 = $332;
  32533. } else {
  32534. $$1465 = $332;
  32535. break;
  32536. }
  32537. }
  32538. } else {
  32539. $$1465 = $327;
  32540. }
  32541. }
  32542. $335 = $$1465;
  32543. $336 = (($324) - ($335))|0;
  32544. _out($0,$$1465,$336);
  32545. $337 = ((($$5493597)) + 4|0);
  32546. $338 = ($337>>>0)>($$556>>>0);
  32547. if ($338) {
  32548. break;
  32549. } else {
  32550. $$5493597 = $337;
  32551. }
  32552. }
  32553. $339 = ($289|0)==(0);
  32554. if (!($339)) {
  32555. _out($0,15249,1);
  32556. }
  32557. $340 = ($337>>>0)<($$7505>>>0);
  32558. $341 = ($$3477|0)>(0);
  32559. $342 = $340 & $341;
  32560. if ($342) {
  32561. $$4478590 = $$3477;$$6494589 = $337;
  32562. while(1) {
  32563. $343 = HEAP32[$$6494589>>2]|0;
  32564. $344 = (_fmt_u($343,0,$323)|0);
  32565. $345 = ($344>>>0)>($8>>>0);
  32566. if ($345) {
  32567. $346 = $344;
  32568. $347 = (($346) - ($9))|0;
  32569. _memset(($8|0),48,($347|0))|0;
  32570. $$0463584 = $344;
  32571. while(1) {
  32572. $348 = ((($$0463584)) + -1|0);
  32573. $349 = ($348>>>0)>($8>>>0);
  32574. if ($349) {
  32575. $$0463584 = $348;
  32576. } else {
  32577. $$0463$lcssa = $348;
  32578. break;
  32579. }
  32580. }
  32581. } else {
  32582. $$0463$lcssa = $344;
  32583. }
  32584. $350 = ($$4478590|0)<(9);
  32585. $351 = $350 ? $$4478590 : 9;
  32586. _out($0,$$0463$lcssa,$351);
  32587. $352 = ((($$6494589)) + 4|0);
  32588. $353 = (($$4478590) + -9)|0;
  32589. $354 = ($352>>>0)<($$7505>>>0);
  32590. $355 = ($$4478590|0)>(9);
  32591. $356 = $354 & $355;
  32592. if ($356) {
  32593. $$4478590 = $353;$$6494589 = $352;
  32594. } else {
  32595. $$4478$lcssa = $353;
  32596. break;
  32597. }
  32598. }
  32599. } else {
  32600. $$4478$lcssa = $$3477;
  32601. }
  32602. $357 = (($$4478$lcssa) + 9)|0;
  32603. _pad_674($0,48,$357,9,0);
  32604. } else {
  32605. $358 = ((($$9$ph)) + 4|0);
  32606. $$7505$ = $$lcssa673 ? $$7505 : $358;
  32607. $359 = ($$3477|0)>(-1);
  32608. if ($359) {
  32609. $360 = ((($8)) + 9|0);
  32610. $361 = ($$pre$phi690Z2D|0)==(0);
  32611. $362 = $360;
  32612. $363 = (0 - ($9))|0;
  32613. $364 = ((($8)) + 8|0);
  32614. $$5602 = $$3477;$$7495601 = $$9$ph;
  32615. while(1) {
  32616. $365 = HEAP32[$$7495601>>2]|0;
  32617. $366 = (_fmt_u($365,0,$360)|0);
  32618. $367 = ($366|0)==($360|0);
  32619. if ($367) {
  32620. HEAP8[$364>>0] = 48;
  32621. $$0 = $364;
  32622. } else {
  32623. $$0 = $366;
  32624. }
  32625. $368 = ($$7495601|0)==($$9$ph|0);
  32626. do {
  32627. if ($368) {
  32628. $372 = ((($$0)) + 1|0);
  32629. _out($0,$$0,1);
  32630. $373 = ($$5602|0)<(1);
  32631. $or$cond554 = $361 & $373;
  32632. if ($or$cond554) {
  32633. $$2 = $372;
  32634. break;
  32635. }
  32636. _out($0,15249,1);
  32637. $$2 = $372;
  32638. } else {
  32639. $369 = ($$0>>>0)>($8>>>0);
  32640. if (!($369)) {
  32641. $$2 = $$0;
  32642. break;
  32643. }
  32644. $scevgep684 = (($$0) + ($363)|0);
  32645. $scevgep684685 = $scevgep684;
  32646. _memset(($8|0),48,($scevgep684685|0))|0;
  32647. $$1598 = $$0;
  32648. while(1) {
  32649. $370 = ((($$1598)) + -1|0);
  32650. $371 = ($370>>>0)>($8>>>0);
  32651. if ($371) {
  32652. $$1598 = $370;
  32653. } else {
  32654. $$2 = $370;
  32655. break;
  32656. }
  32657. }
  32658. }
  32659. } while(0);
  32660. $374 = $$2;
  32661. $375 = (($362) - ($374))|0;
  32662. $376 = ($$5602|0)>($375|0);
  32663. $377 = $376 ? $375 : $$5602;
  32664. _out($0,$$2,$377);
  32665. $378 = (($$5602) - ($375))|0;
  32666. $379 = ((($$7495601)) + 4|0);
  32667. $380 = ($379>>>0)<($$7505$>>>0);
  32668. $381 = ($378|0)>(-1);
  32669. $382 = $380 & $381;
  32670. if ($382) {
  32671. $$5602 = $378;$$7495601 = $379;
  32672. } else {
  32673. $$5$lcssa = $378;
  32674. break;
  32675. }
  32676. }
  32677. } else {
  32678. $$5$lcssa = $$3477;
  32679. }
  32680. $383 = (($$5$lcssa) + 18)|0;
  32681. _pad_674($0,48,$383,18,0);
  32682. $384 = $11;
  32683. $385 = $$2513;
  32684. $386 = (($384) - ($385))|0;
  32685. _out($0,$$2513,$386);
  32686. }
  32687. $387 = $4 ^ 8192;
  32688. _pad_674($0,32,$2,$320,$387);
  32689. $$sink562 = $320;
  32690. } else {
  32691. $27 = $5 & 32;
  32692. $28 = ($27|0)!=(0);
  32693. $29 = $28 ? 15217 : 15221;
  32694. $30 = ($$0471 != $$0471) | (0.0 != 0.0);
  32695. $31 = $28 ? 15225 : 15229;
  32696. $$0510 = $30 ? $31 : $29;
  32697. $32 = (($$0520) + 3)|0;
  32698. $33 = $4 & -65537;
  32699. _pad_674($0,32,$2,$32,$33);
  32700. _out($0,$$0521,$$0520);
  32701. _out($0,$$0510,3);
  32702. $34 = $4 ^ 8192;
  32703. _pad_674($0,32,$2,$32,$34);
  32704. $$sink562 = $32;
  32705. }
  32706. } while(0);
  32707. $388 = ($$sink562|0)<($2|0);
  32708. $$555 = $388 ? $2 : $$sink562;
  32709. STACKTOP = sp;return ($$555|0);
  32710. }
  32711. function ___DOUBLE_BITS_675($0) {
  32712. $0 = +$0;
  32713. var $1 = 0, $2 = 0, label = 0, sp = 0;
  32714. sp = STACKTOP;
  32715. HEAPF64[tempDoublePtr>>3] = $0;$1 = HEAP32[tempDoublePtr>>2]|0;
  32716. $2 = HEAP32[tempDoublePtr+4>>2]|0;
  32717. tempRet0 = ($2);
  32718. return ($1|0);
  32719. }
  32720. function _frexpl($0,$1) {
  32721. $0 = +$0;
  32722. $1 = $1|0;
  32723. var $2 = 0.0, label = 0, sp = 0;
  32724. sp = STACKTOP;
  32725. $2 = (+_frexp($0,$1));
  32726. return (+$2);
  32727. }
  32728. function _frexp($0,$1) {
  32729. $0 = +$0;
  32730. $1 = $1|0;
  32731. 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;
  32732. var sp = 0;
  32733. sp = STACKTOP;
  32734. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  32735. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  32736. $4 = (_bitshift64Lshr(($2|0),($3|0),52)|0);
  32737. $5 = tempRet0;
  32738. $6 = $4&65535;
  32739. $trunc$clear = $6 & 2047;
  32740. switch ($trunc$clear<<16>>16) {
  32741. case 0: {
  32742. $7 = $0 != 0.0;
  32743. if ($7) {
  32744. $8 = $0 * 1.8446744073709552E+19;
  32745. $9 = (+_frexp($8,$1));
  32746. $10 = HEAP32[$1>>2]|0;
  32747. $11 = (($10) + -64)|0;
  32748. $$016 = $9;$storemerge = $11;
  32749. } else {
  32750. $$016 = $0;$storemerge = 0;
  32751. }
  32752. HEAP32[$1>>2] = $storemerge;
  32753. $$0 = $$016;
  32754. break;
  32755. }
  32756. case 2047: {
  32757. $$0 = $0;
  32758. break;
  32759. }
  32760. default: {
  32761. $12 = $4 & 2047;
  32762. $13 = (($12) + -1022)|0;
  32763. HEAP32[$1>>2] = $13;
  32764. $14 = $3 & -2146435073;
  32765. $15 = $14 | 1071644672;
  32766. HEAP32[tempDoublePtr>>2] = $2;HEAP32[tempDoublePtr+4>>2] = $15;$16 = +HEAPF64[tempDoublePtr>>3];
  32767. $$0 = $16;
  32768. }
  32769. }
  32770. return (+$$0);
  32771. }
  32772. function _wcrtomb($0,$1,$2) {
  32773. $0 = $0|0;
  32774. $1 = $1|0;
  32775. $2 = $2|0;
  32776. 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;
  32777. 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;
  32778. 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;
  32779. sp = STACKTOP;
  32780. $3 = ($0|0)==(0|0);
  32781. do {
  32782. if ($3) {
  32783. $$0 = 1;
  32784. } else {
  32785. $4 = ($1>>>0)<(128);
  32786. if ($4) {
  32787. $5 = $1&255;
  32788. HEAP8[$0>>0] = $5;
  32789. $$0 = 1;
  32790. break;
  32791. }
  32792. $6 = (___pthread_self_448()|0);
  32793. $7 = ((($6)) + 188|0);
  32794. $8 = HEAP32[$7>>2]|0;
  32795. $9 = HEAP32[$8>>2]|0;
  32796. $not$ = ($9|0)==(0|0);
  32797. if ($not$) {
  32798. $10 = $1 & -128;
  32799. $11 = ($10|0)==(57216);
  32800. if ($11) {
  32801. $13 = $1&255;
  32802. HEAP8[$0>>0] = $13;
  32803. $$0 = 1;
  32804. break;
  32805. } else {
  32806. $12 = (___errno_location()|0);
  32807. HEAP32[$12>>2] = 84;
  32808. $$0 = -1;
  32809. break;
  32810. }
  32811. }
  32812. $14 = ($1>>>0)<(2048);
  32813. if ($14) {
  32814. $15 = $1 >>> 6;
  32815. $16 = $15 | 192;
  32816. $17 = $16&255;
  32817. $18 = ((($0)) + 1|0);
  32818. HEAP8[$0>>0] = $17;
  32819. $19 = $1 & 63;
  32820. $20 = $19 | 128;
  32821. $21 = $20&255;
  32822. HEAP8[$18>>0] = $21;
  32823. $$0 = 2;
  32824. break;
  32825. }
  32826. $22 = ($1>>>0)<(55296);
  32827. $23 = $1 & -8192;
  32828. $24 = ($23|0)==(57344);
  32829. $or$cond = $22 | $24;
  32830. if ($or$cond) {
  32831. $25 = $1 >>> 12;
  32832. $26 = $25 | 224;
  32833. $27 = $26&255;
  32834. $28 = ((($0)) + 1|0);
  32835. HEAP8[$0>>0] = $27;
  32836. $29 = $1 >>> 6;
  32837. $30 = $29 & 63;
  32838. $31 = $30 | 128;
  32839. $32 = $31&255;
  32840. $33 = ((($0)) + 2|0);
  32841. HEAP8[$28>>0] = $32;
  32842. $34 = $1 & 63;
  32843. $35 = $34 | 128;
  32844. $36 = $35&255;
  32845. HEAP8[$33>>0] = $36;
  32846. $$0 = 3;
  32847. break;
  32848. }
  32849. $37 = (($1) + -65536)|0;
  32850. $38 = ($37>>>0)<(1048576);
  32851. if ($38) {
  32852. $39 = $1 >>> 18;
  32853. $40 = $39 | 240;
  32854. $41 = $40&255;
  32855. $42 = ((($0)) + 1|0);
  32856. HEAP8[$0>>0] = $41;
  32857. $43 = $1 >>> 12;
  32858. $44 = $43 & 63;
  32859. $45 = $44 | 128;
  32860. $46 = $45&255;
  32861. $47 = ((($0)) + 2|0);
  32862. HEAP8[$42>>0] = $46;
  32863. $48 = $1 >>> 6;
  32864. $49 = $48 & 63;
  32865. $50 = $49 | 128;
  32866. $51 = $50&255;
  32867. $52 = ((($0)) + 3|0);
  32868. HEAP8[$47>>0] = $51;
  32869. $53 = $1 & 63;
  32870. $54 = $53 | 128;
  32871. $55 = $54&255;
  32872. HEAP8[$52>>0] = $55;
  32873. $$0 = 4;
  32874. break;
  32875. } else {
  32876. $56 = (___errno_location()|0);
  32877. HEAP32[$56>>2] = 84;
  32878. $$0 = -1;
  32879. break;
  32880. }
  32881. }
  32882. } while(0);
  32883. return ($$0|0);
  32884. }
  32885. function ___pthread_self_448() {
  32886. var $0 = 0, label = 0, sp = 0;
  32887. sp = STACKTOP;
  32888. $0 = (_pthread_self()|0);
  32889. return ($0|0);
  32890. }
  32891. function ___pthread_self_105() {
  32892. var $0 = 0, label = 0, sp = 0;
  32893. sp = STACKTOP;
  32894. $0 = (_pthread_self()|0);
  32895. return ($0|0);
  32896. }
  32897. function ___strerror_l($0,$1) {
  32898. $0 = $0|0;
  32899. $1 = $1|0;
  32900. 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;
  32901. var label = 0, sp = 0;
  32902. sp = STACKTOP;
  32903. $$016 = 0;
  32904. while(1) {
  32905. $3 = (15251 + ($$016)|0);
  32906. $4 = HEAP8[$3>>0]|0;
  32907. $5 = $4&255;
  32908. $6 = ($5|0)==($0|0);
  32909. if ($6) {
  32910. label = 2;
  32911. break;
  32912. }
  32913. $7 = (($$016) + 1)|0;
  32914. $8 = ($7|0)==(87);
  32915. if ($8) {
  32916. $$01214 = 15339;$$115 = 87;
  32917. label = 5;
  32918. break;
  32919. } else {
  32920. $$016 = $7;
  32921. }
  32922. }
  32923. if ((label|0) == 2) {
  32924. $2 = ($$016|0)==(0);
  32925. if ($2) {
  32926. $$012$lcssa = 15339;
  32927. } else {
  32928. $$01214 = 15339;$$115 = $$016;
  32929. label = 5;
  32930. }
  32931. }
  32932. if ((label|0) == 5) {
  32933. while(1) {
  32934. label = 0;
  32935. $$113 = $$01214;
  32936. while(1) {
  32937. $9 = HEAP8[$$113>>0]|0;
  32938. $10 = ($9<<24>>24)==(0);
  32939. $11 = ((($$113)) + 1|0);
  32940. if ($10) {
  32941. break;
  32942. } else {
  32943. $$113 = $11;
  32944. }
  32945. }
  32946. $12 = (($$115) + -1)|0;
  32947. $13 = ($12|0)==(0);
  32948. if ($13) {
  32949. $$012$lcssa = $11;
  32950. break;
  32951. } else {
  32952. $$01214 = $11;$$115 = $12;
  32953. label = 5;
  32954. }
  32955. }
  32956. }
  32957. $14 = ((($1)) + 20|0);
  32958. $15 = HEAP32[$14>>2]|0;
  32959. $16 = (___lctrans($$012$lcssa,$15)|0);
  32960. return ($16|0);
  32961. }
  32962. function ___lctrans($0,$1) {
  32963. $0 = $0|0;
  32964. $1 = $1|0;
  32965. var $2 = 0, label = 0, sp = 0;
  32966. sp = STACKTOP;
  32967. $2 = (___lctrans_impl($0,$1)|0);
  32968. return ($2|0);
  32969. }
  32970. function ___lctrans_impl($0,$1) {
  32971. $0 = $0|0;
  32972. $1 = $1|0;
  32973. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  32974. sp = STACKTOP;
  32975. $2 = ($1|0)==(0|0);
  32976. if ($2) {
  32977. $$0 = 0;
  32978. } else {
  32979. $3 = HEAP32[$1>>2]|0;
  32980. $4 = ((($1)) + 4|0);
  32981. $5 = HEAP32[$4>>2]|0;
  32982. $6 = (___mo_lookup($3,$5,$0)|0);
  32983. $$0 = $6;
  32984. }
  32985. $7 = ($$0|0)!=(0|0);
  32986. $8 = $7 ? $$0 : $0;
  32987. return ($8|0);
  32988. }
  32989. function ___mo_lookup($0,$1,$2) {
  32990. $0 = $0|0;
  32991. $1 = $1|0;
  32992. $2 = $2|0;
  32993. 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;
  32994. 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;
  32995. 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;
  32996. 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;
  32997. sp = STACKTOP;
  32998. $3 = HEAP32[$0>>2]|0;
  32999. $4 = (($3) + 1794895138)|0;
  33000. $5 = ((($0)) + 8|0);
  33001. $6 = HEAP32[$5>>2]|0;
  33002. $7 = (_swapc($6,$4)|0);
  33003. $8 = ((($0)) + 12|0);
  33004. $9 = HEAP32[$8>>2]|0;
  33005. $10 = (_swapc($9,$4)|0);
  33006. $11 = ((($0)) + 16|0);
  33007. $12 = HEAP32[$11>>2]|0;
  33008. $13 = (_swapc($12,$4)|0);
  33009. $14 = $1 >>> 2;
  33010. $15 = ($7>>>0)<($14>>>0);
  33011. L1: do {
  33012. if ($15) {
  33013. $16 = $7 << 2;
  33014. $17 = (($1) - ($16))|0;
  33015. $18 = ($10>>>0)<($17>>>0);
  33016. $19 = ($13>>>0)<($17>>>0);
  33017. $or$cond = $18 & $19;
  33018. if ($or$cond) {
  33019. $20 = $13 | $10;
  33020. $21 = $20 & 3;
  33021. $22 = ($21|0)==(0);
  33022. if ($22) {
  33023. $23 = $10 >>> 2;
  33024. $24 = $13 >>> 2;
  33025. $$090 = 0;$$094 = $7;
  33026. while(1) {
  33027. $25 = $$094 >>> 1;
  33028. $26 = (($$090) + ($25))|0;
  33029. $27 = $26 << 1;
  33030. $28 = (($27) + ($23))|0;
  33031. $29 = (($0) + ($28<<2)|0);
  33032. $30 = HEAP32[$29>>2]|0;
  33033. $31 = (_swapc($30,$4)|0);
  33034. $32 = (($28) + 1)|0;
  33035. $33 = (($0) + ($32<<2)|0);
  33036. $34 = HEAP32[$33>>2]|0;
  33037. $35 = (_swapc($34,$4)|0);
  33038. $36 = ($35>>>0)<($1>>>0);
  33039. $37 = (($1) - ($35))|0;
  33040. $38 = ($31>>>0)<($37>>>0);
  33041. $or$cond102 = $36 & $38;
  33042. if (!($or$cond102)) {
  33043. $$4 = 0;
  33044. break L1;
  33045. }
  33046. $39 = (($35) + ($31))|0;
  33047. $40 = (($0) + ($39)|0);
  33048. $41 = HEAP8[$40>>0]|0;
  33049. $42 = ($41<<24>>24)==(0);
  33050. if (!($42)) {
  33051. $$4 = 0;
  33052. break L1;
  33053. }
  33054. $43 = (($0) + ($35)|0);
  33055. $44 = (_strcmp($2,$43)|0);
  33056. $45 = ($44|0)==(0);
  33057. if ($45) {
  33058. break;
  33059. }
  33060. $62 = ($$094|0)==(1);
  33061. $63 = ($44|0)<(0);
  33062. $64 = (($$094) - ($25))|0;
  33063. $$195 = $63 ? $25 : $64;
  33064. $$191 = $63 ? $$090 : $26;
  33065. if ($62) {
  33066. $$4 = 0;
  33067. break L1;
  33068. } else {
  33069. $$090 = $$191;$$094 = $$195;
  33070. }
  33071. }
  33072. $46 = (($27) + ($24))|0;
  33073. $47 = (($0) + ($46<<2)|0);
  33074. $48 = HEAP32[$47>>2]|0;
  33075. $49 = (_swapc($48,$4)|0);
  33076. $50 = (($46) + 1)|0;
  33077. $51 = (($0) + ($50<<2)|0);
  33078. $52 = HEAP32[$51>>2]|0;
  33079. $53 = (_swapc($52,$4)|0);
  33080. $54 = ($53>>>0)<($1>>>0);
  33081. $55 = (($1) - ($53))|0;
  33082. $56 = ($49>>>0)<($55>>>0);
  33083. $or$cond104 = $54 & $56;
  33084. if ($or$cond104) {
  33085. $57 = (($0) + ($53)|0);
  33086. $58 = (($53) + ($49))|0;
  33087. $59 = (($0) + ($58)|0);
  33088. $60 = HEAP8[$59>>0]|0;
  33089. $61 = ($60<<24>>24)==(0);
  33090. $$ = $61 ? $57 : 0;
  33091. $$4 = $$;
  33092. } else {
  33093. $$4 = 0;
  33094. }
  33095. } else {
  33096. $$4 = 0;
  33097. }
  33098. } else {
  33099. $$4 = 0;
  33100. }
  33101. } else {
  33102. $$4 = 0;
  33103. }
  33104. } while(0);
  33105. return ($$4|0);
  33106. }
  33107. function _swapc($0,$1) {
  33108. $0 = $0|0;
  33109. $1 = $1|0;
  33110. var $$ = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  33111. sp = STACKTOP;
  33112. $2 = ($1|0)==(0);
  33113. $3 = (_llvm_bswap_i32(($0|0))|0);
  33114. $$ = $2 ? $0 : $3;
  33115. return ($$|0);
  33116. }
  33117. function ___fwritex($0,$1,$2) {
  33118. $0 = $0|0;
  33119. $1 = $1|0;
  33120. $2 = $2|0;
  33121. 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;
  33122. 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;
  33123. var label = 0, sp = 0;
  33124. sp = STACKTOP;
  33125. $3 = ((($2)) + 16|0);
  33126. $4 = HEAP32[$3>>2]|0;
  33127. $5 = ($4|0)==(0|0);
  33128. if ($5) {
  33129. $7 = (___towrite($2)|0);
  33130. $8 = ($7|0)==(0);
  33131. if ($8) {
  33132. $$pre = HEAP32[$3>>2]|0;
  33133. $12 = $$pre;
  33134. label = 5;
  33135. } else {
  33136. $$1 = 0;
  33137. }
  33138. } else {
  33139. $6 = $4;
  33140. $12 = $6;
  33141. label = 5;
  33142. }
  33143. L5: do {
  33144. if ((label|0) == 5) {
  33145. $9 = ((($2)) + 20|0);
  33146. $10 = HEAP32[$9>>2]|0;
  33147. $11 = (($12) - ($10))|0;
  33148. $13 = ($11>>>0)<($1>>>0);
  33149. $14 = $10;
  33150. if ($13) {
  33151. $15 = ((($2)) + 36|0);
  33152. $16 = HEAP32[$15>>2]|0;
  33153. $17 = (FUNCTION_TABLE_iiii[$16 & 15]($2,$0,$1)|0);
  33154. $$1 = $17;
  33155. break;
  33156. }
  33157. $18 = ((($2)) + 75|0);
  33158. $19 = HEAP8[$18>>0]|0;
  33159. $20 = ($19<<24>>24)>(-1);
  33160. L10: do {
  33161. if ($20) {
  33162. $$038 = $1;
  33163. while(1) {
  33164. $21 = ($$038|0)==(0);
  33165. if ($21) {
  33166. $$139 = 0;$$141 = $0;$$143 = $1;$31 = $14;
  33167. break L10;
  33168. }
  33169. $22 = (($$038) + -1)|0;
  33170. $23 = (($0) + ($22)|0);
  33171. $24 = HEAP8[$23>>0]|0;
  33172. $25 = ($24<<24>>24)==(10);
  33173. if ($25) {
  33174. break;
  33175. } else {
  33176. $$038 = $22;
  33177. }
  33178. }
  33179. $26 = ((($2)) + 36|0);
  33180. $27 = HEAP32[$26>>2]|0;
  33181. $28 = (FUNCTION_TABLE_iiii[$27 & 15]($2,$0,$$038)|0);
  33182. $29 = ($28>>>0)<($$038>>>0);
  33183. if ($29) {
  33184. $$1 = $28;
  33185. break L5;
  33186. }
  33187. $30 = (($0) + ($$038)|0);
  33188. $$042 = (($1) - ($$038))|0;
  33189. $$pre47 = HEAP32[$9>>2]|0;
  33190. $$139 = $$038;$$141 = $30;$$143 = $$042;$31 = $$pre47;
  33191. } else {
  33192. $$139 = 0;$$141 = $0;$$143 = $1;$31 = $14;
  33193. }
  33194. } while(0);
  33195. _memcpy(($31|0),($$141|0),($$143|0))|0;
  33196. $32 = HEAP32[$9>>2]|0;
  33197. $33 = (($32) + ($$143)|0);
  33198. HEAP32[$9>>2] = $33;
  33199. $34 = (($$139) + ($$143))|0;
  33200. $$1 = $34;
  33201. }
  33202. } while(0);
  33203. return ($$1|0);
  33204. }
  33205. function ___towrite($0) {
  33206. $0 = $0|0;
  33207. 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;
  33208. var $9 = 0, label = 0, sp = 0;
  33209. sp = STACKTOP;
  33210. $1 = ((($0)) + 74|0);
  33211. $2 = HEAP8[$1>>0]|0;
  33212. $3 = $2 << 24 >> 24;
  33213. $4 = (($3) + 255)|0;
  33214. $5 = $4 | $3;
  33215. $6 = $5&255;
  33216. HEAP8[$1>>0] = $6;
  33217. $7 = HEAP32[$0>>2]|0;
  33218. $8 = $7 & 8;
  33219. $9 = ($8|0)==(0);
  33220. if ($9) {
  33221. $11 = ((($0)) + 8|0);
  33222. HEAP32[$11>>2] = 0;
  33223. $12 = ((($0)) + 4|0);
  33224. HEAP32[$12>>2] = 0;
  33225. $13 = ((($0)) + 44|0);
  33226. $14 = HEAP32[$13>>2]|0;
  33227. $15 = ((($0)) + 28|0);
  33228. HEAP32[$15>>2] = $14;
  33229. $16 = ((($0)) + 20|0);
  33230. HEAP32[$16>>2] = $14;
  33231. $17 = ((($0)) + 48|0);
  33232. $18 = HEAP32[$17>>2]|0;
  33233. $19 = (($14) + ($18)|0);
  33234. $20 = ((($0)) + 16|0);
  33235. HEAP32[$20>>2] = $19;
  33236. $$0 = 0;
  33237. } else {
  33238. $10 = $7 | 32;
  33239. HEAP32[$0>>2] = $10;
  33240. $$0 = -1;
  33241. }
  33242. return ($$0|0);
  33243. }
  33244. function _sn_write($0,$1,$2) {
  33245. $0 = $0|0;
  33246. $1 = $1|0;
  33247. $2 = $2|0;
  33248. var $$ = 0, $10 = 0, $11 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  33249. sp = STACKTOP;
  33250. $3 = ((($0)) + 16|0);
  33251. $4 = HEAP32[$3>>2]|0;
  33252. $5 = ((($0)) + 20|0);
  33253. $6 = HEAP32[$5>>2]|0;
  33254. $7 = $6;
  33255. $8 = (($4) - ($7))|0;
  33256. $9 = ($8>>>0)>($2>>>0);
  33257. $$ = $9 ? $2 : $8;
  33258. _memcpy(($6|0),($1|0),($$|0))|0;
  33259. $10 = HEAP32[$5>>2]|0;
  33260. $11 = (($10) + ($$)|0);
  33261. HEAP32[$5>>2] = $11;
  33262. return ($2|0);
  33263. }
  33264. function _strlen($0) {
  33265. $0 = $0|0;
  33266. 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;
  33267. 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;
  33268. sp = STACKTOP;
  33269. $1 = $0;
  33270. $2 = $1 & 3;
  33271. $3 = ($2|0)==(0);
  33272. L1: do {
  33273. if ($3) {
  33274. $$015$lcssa = $0;
  33275. label = 4;
  33276. } else {
  33277. $$01519 = $0;$23 = $1;
  33278. while(1) {
  33279. $4 = HEAP8[$$01519>>0]|0;
  33280. $5 = ($4<<24>>24)==(0);
  33281. if ($5) {
  33282. $$sink = $23;
  33283. break L1;
  33284. }
  33285. $6 = ((($$01519)) + 1|0);
  33286. $7 = $6;
  33287. $8 = $7 & 3;
  33288. $9 = ($8|0)==(0);
  33289. if ($9) {
  33290. $$015$lcssa = $6;
  33291. label = 4;
  33292. break;
  33293. } else {
  33294. $$01519 = $6;$23 = $7;
  33295. }
  33296. }
  33297. }
  33298. } while(0);
  33299. if ((label|0) == 4) {
  33300. $$0 = $$015$lcssa;
  33301. while(1) {
  33302. $10 = HEAP32[$$0>>2]|0;
  33303. $11 = (($10) + -16843009)|0;
  33304. $12 = $10 & -2139062144;
  33305. $13 = $12 ^ -2139062144;
  33306. $14 = $13 & $11;
  33307. $15 = ($14|0)==(0);
  33308. $16 = ((($$0)) + 4|0);
  33309. if ($15) {
  33310. $$0 = $16;
  33311. } else {
  33312. break;
  33313. }
  33314. }
  33315. $17 = $10&255;
  33316. $18 = ($17<<24>>24)==(0);
  33317. if ($18) {
  33318. $$1$lcssa = $$0;
  33319. } else {
  33320. $$pn = $$0;
  33321. while(1) {
  33322. $19 = ((($$pn)) + 1|0);
  33323. $$pre = HEAP8[$19>>0]|0;
  33324. $20 = ($$pre<<24>>24)==(0);
  33325. if ($20) {
  33326. $$1$lcssa = $19;
  33327. break;
  33328. } else {
  33329. $$pn = $19;
  33330. }
  33331. }
  33332. }
  33333. $21 = $$1$lcssa;
  33334. $$sink = $21;
  33335. }
  33336. $22 = (($$sink) - ($1))|0;
  33337. return ($22|0);
  33338. }
  33339. function _strchr($0,$1) {
  33340. $0 = $0|0;
  33341. $1 = $1|0;
  33342. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  33343. sp = STACKTOP;
  33344. $2 = (___strchrnul($0,$1)|0);
  33345. $3 = HEAP8[$2>>0]|0;
  33346. $4 = $1&255;
  33347. $5 = ($3<<24>>24)==($4<<24>>24);
  33348. $6 = $5 ? $2 : 0;
  33349. return ($6|0);
  33350. }
  33351. function ___strchrnul($0,$1) {
  33352. $0 = $0|0;
  33353. $1 = $1|0;
  33354. 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;
  33355. 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;
  33356. 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;
  33357. sp = STACKTOP;
  33358. $2 = $1 & 255;
  33359. $3 = ($2|0)==(0);
  33360. L1: do {
  33361. if ($3) {
  33362. $8 = (_strlen($0)|0);
  33363. $9 = (($0) + ($8)|0);
  33364. $$0 = $9;
  33365. } else {
  33366. $4 = $0;
  33367. $5 = $4 & 3;
  33368. $6 = ($5|0)==(0);
  33369. if ($6) {
  33370. $$030$lcssa = $0;
  33371. } else {
  33372. $7 = $1&255;
  33373. $$03039 = $0;
  33374. while(1) {
  33375. $10 = HEAP8[$$03039>>0]|0;
  33376. $11 = ($10<<24>>24)==(0);
  33377. $12 = ($10<<24>>24)==($7<<24>>24);
  33378. $or$cond = $11 | $12;
  33379. if ($or$cond) {
  33380. $$0 = $$03039;
  33381. break L1;
  33382. }
  33383. $13 = ((($$03039)) + 1|0);
  33384. $14 = $13;
  33385. $15 = $14 & 3;
  33386. $16 = ($15|0)==(0);
  33387. if ($16) {
  33388. $$030$lcssa = $13;
  33389. break;
  33390. } else {
  33391. $$03039 = $13;
  33392. }
  33393. }
  33394. }
  33395. $17 = Math_imul($2, 16843009)|0;
  33396. $18 = HEAP32[$$030$lcssa>>2]|0;
  33397. $19 = (($18) + -16843009)|0;
  33398. $20 = $18 & -2139062144;
  33399. $21 = $20 ^ -2139062144;
  33400. $22 = $21 & $19;
  33401. $23 = ($22|0)==(0);
  33402. L10: do {
  33403. if ($23) {
  33404. $$02936 = $$030$lcssa;$25 = $18;
  33405. while(1) {
  33406. $24 = $25 ^ $17;
  33407. $26 = (($24) + -16843009)|0;
  33408. $27 = $24 & -2139062144;
  33409. $28 = $27 ^ -2139062144;
  33410. $29 = $28 & $26;
  33411. $30 = ($29|0)==(0);
  33412. if (!($30)) {
  33413. $$029$lcssa = $$02936;
  33414. break L10;
  33415. }
  33416. $31 = ((($$02936)) + 4|0);
  33417. $32 = HEAP32[$31>>2]|0;
  33418. $33 = (($32) + -16843009)|0;
  33419. $34 = $32 & -2139062144;
  33420. $35 = $34 ^ -2139062144;
  33421. $36 = $35 & $33;
  33422. $37 = ($36|0)==(0);
  33423. if ($37) {
  33424. $$02936 = $31;$25 = $32;
  33425. } else {
  33426. $$029$lcssa = $31;
  33427. break;
  33428. }
  33429. }
  33430. } else {
  33431. $$029$lcssa = $$030$lcssa;
  33432. }
  33433. } while(0);
  33434. $38 = $1&255;
  33435. $$1 = $$029$lcssa;
  33436. while(1) {
  33437. $39 = HEAP8[$$1>>0]|0;
  33438. $40 = ($39<<24>>24)==(0);
  33439. $41 = ($39<<24>>24)==($38<<24>>24);
  33440. $or$cond33 = $40 | $41;
  33441. $42 = ((($$1)) + 1|0);
  33442. if ($or$cond33) {
  33443. $$0 = $$1;
  33444. break;
  33445. } else {
  33446. $$1 = $42;
  33447. }
  33448. }
  33449. }
  33450. } while(0);
  33451. return ($$0|0);
  33452. }
  33453. function _strcpy($0,$1) {
  33454. $0 = $0|0;
  33455. $1 = $1|0;
  33456. var label = 0, sp = 0;
  33457. sp = STACKTOP;
  33458. (___stpcpy($0,$1)|0);
  33459. return ($0|0);
  33460. }
  33461. function ___stpcpy($0,$1) {
  33462. $0 = $0|0;
  33463. $1 = $1|0;
  33464. 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;
  33465. 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;
  33466. var $35 = 0, $36 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  33467. sp = STACKTOP;
  33468. $2 = $1;
  33469. $3 = $0;
  33470. $4 = $2 ^ $3;
  33471. $5 = $4 & 3;
  33472. $6 = ($5|0)==(0);
  33473. L1: do {
  33474. if ($6) {
  33475. $7 = $2 & 3;
  33476. $8 = ($7|0)==(0);
  33477. if ($8) {
  33478. $$026$lcssa = $1;$$027$lcssa = $0;
  33479. } else {
  33480. $$02642 = $1;$$02741 = $0;
  33481. while(1) {
  33482. $9 = HEAP8[$$02642>>0]|0;
  33483. HEAP8[$$02741>>0] = $9;
  33484. $10 = ($9<<24>>24)==(0);
  33485. if ($10) {
  33486. $$029 = $$02741;
  33487. break L1;
  33488. }
  33489. $11 = ((($$02642)) + 1|0);
  33490. $12 = ((($$02741)) + 1|0);
  33491. $13 = $11;
  33492. $14 = $13 & 3;
  33493. $15 = ($14|0)==(0);
  33494. if ($15) {
  33495. $$026$lcssa = $11;$$027$lcssa = $12;
  33496. break;
  33497. } else {
  33498. $$02642 = $11;$$02741 = $12;
  33499. }
  33500. }
  33501. }
  33502. $16 = HEAP32[$$026$lcssa>>2]|0;
  33503. $17 = (($16) + -16843009)|0;
  33504. $18 = $16 & -2139062144;
  33505. $19 = $18 ^ -2139062144;
  33506. $20 = $19 & $17;
  33507. $21 = ($20|0)==(0);
  33508. if ($21) {
  33509. $$02536 = $$027$lcssa;$$037 = $$026$lcssa;$24 = $16;
  33510. while(1) {
  33511. $22 = ((($$037)) + 4|0);
  33512. $23 = ((($$02536)) + 4|0);
  33513. HEAP32[$$02536>>2] = $24;
  33514. $25 = HEAP32[$22>>2]|0;
  33515. $26 = (($25) + -16843009)|0;
  33516. $27 = $25 & -2139062144;
  33517. $28 = $27 ^ -2139062144;
  33518. $29 = $28 & $26;
  33519. $30 = ($29|0)==(0);
  33520. if ($30) {
  33521. $$02536 = $23;$$037 = $22;$24 = $25;
  33522. } else {
  33523. $$0$lcssa = $22;$$025$lcssa = $23;
  33524. break;
  33525. }
  33526. }
  33527. } else {
  33528. $$0$lcssa = $$026$lcssa;$$025$lcssa = $$027$lcssa;
  33529. }
  33530. $$1$ph = $$0$lcssa;$$128$ph = $$025$lcssa;
  33531. label = 8;
  33532. } else {
  33533. $$1$ph = $1;$$128$ph = $0;
  33534. label = 8;
  33535. }
  33536. } while(0);
  33537. if ((label|0) == 8) {
  33538. $31 = HEAP8[$$1$ph>>0]|0;
  33539. HEAP8[$$128$ph>>0] = $31;
  33540. $32 = ($31<<24>>24)==(0);
  33541. if ($32) {
  33542. $$029 = $$128$ph;
  33543. } else {
  33544. $$12834 = $$128$ph;$$135 = $$1$ph;
  33545. while(1) {
  33546. $33 = ((($$135)) + 1|0);
  33547. $34 = ((($$12834)) + 1|0);
  33548. $35 = HEAP8[$33>>0]|0;
  33549. HEAP8[$34>>0] = $35;
  33550. $36 = ($35<<24>>24)==(0);
  33551. if ($36) {
  33552. $$029 = $34;
  33553. break;
  33554. } else {
  33555. $$12834 = $34;$$135 = $33;
  33556. }
  33557. }
  33558. }
  33559. }
  33560. return ($$029|0);
  33561. }
  33562. function ___unlist_locked_file($0) {
  33563. $0 = $0|0;
  33564. 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;
  33565. sp = STACKTOP;
  33566. $1 = ((($0)) + 68|0);
  33567. $2 = HEAP32[$1>>2]|0;
  33568. $3 = ($2|0)==(0);
  33569. if (!($3)) {
  33570. $4 = ((($0)) + 116|0);
  33571. $5 = HEAP32[$4>>2]|0;
  33572. $6 = ($5|0)==(0|0);
  33573. $$pre = ((($0)) + 112|0);
  33574. if (!($6)) {
  33575. $7 = HEAP32[$$pre>>2]|0;
  33576. $8 = ((($5)) + 112|0);
  33577. HEAP32[$8>>2] = $7;
  33578. }
  33579. $9 = HEAP32[$$pre>>2]|0;
  33580. $10 = ($9|0)==(0|0);
  33581. if ($10) {
  33582. $12 = (___pthread_self_607()|0);
  33583. $13 = ((($12)) + 232|0);
  33584. $$sink = $13;
  33585. } else {
  33586. $11 = ((($9)) + 116|0);
  33587. $$sink = $11;
  33588. }
  33589. HEAP32[$$sink>>2] = $5;
  33590. }
  33591. return;
  33592. }
  33593. function ___pthread_self_607() {
  33594. var $0 = 0, label = 0, sp = 0;
  33595. sp = STACKTOP;
  33596. $0 = (_pthread_self()|0);
  33597. return ($0|0);
  33598. }
  33599. function _fopen($0,$1) {
  33600. $0 = $0|0;
  33601. $1 = $1|0;
  33602. 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;
  33603. var $vararg_ptr2 = 0, $vararg_ptr6 = 0, $vararg_ptr7 = 0, label = 0, sp = 0;
  33604. sp = STACKTOP;
  33605. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  33606. $vararg_buffer8 = sp + 32|0;
  33607. $vararg_buffer3 = sp + 16|0;
  33608. $vararg_buffer = sp;
  33609. $2 = HEAP8[$1>>0]|0;
  33610. $3 = $2 << 24 >> 24;
  33611. $memchr = (_memchr(17143,$3,4)|0);
  33612. $4 = ($memchr|0)==(0|0);
  33613. if ($4) {
  33614. $5 = (___errno_location()|0);
  33615. HEAP32[$5>>2] = 22;
  33616. $$0 = 0;
  33617. } else {
  33618. $6 = (___fmodeflags($1)|0);
  33619. $7 = $0;
  33620. $8 = $6 | 32768;
  33621. HEAP32[$vararg_buffer>>2] = $7;
  33622. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  33623. HEAP32[$vararg_ptr1>>2] = $8;
  33624. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  33625. HEAP32[$vararg_ptr2>>2] = 438;
  33626. $9 = (___syscall5(5,($vararg_buffer|0))|0);
  33627. $10 = (___syscall_ret($9)|0);
  33628. $11 = ($10|0)<(0);
  33629. if ($11) {
  33630. $$0 = 0;
  33631. } else {
  33632. $12 = $6 & 524288;
  33633. $13 = ($12|0)==(0);
  33634. if (!($13)) {
  33635. HEAP32[$vararg_buffer3>>2] = $10;
  33636. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  33637. HEAP32[$vararg_ptr6>>2] = 2;
  33638. $vararg_ptr7 = ((($vararg_buffer3)) + 8|0);
  33639. HEAP32[$vararg_ptr7>>2] = 1;
  33640. (___syscall221(221,($vararg_buffer3|0))|0);
  33641. }
  33642. $14 = (___fdopen($10,$1)|0);
  33643. $15 = ($14|0)==(0|0);
  33644. if ($15) {
  33645. HEAP32[$vararg_buffer8>>2] = $10;
  33646. (___syscall6(6,($vararg_buffer8|0))|0);
  33647. $$0 = 0;
  33648. } else {
  33649. $$0 = $14;
  33650. }
  33651. }
  33652. }
  33653. STACKTOP = sp;return ($$0|0);
  33654. }
  33655. function ___fmodeflags($0) {
  33656. $0 = $0|0;
  33657. 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;
  33658. var $8 = 0, $9 = 0, $not$ = 0, label = 0, sp = 0;
  33659. sp = STACKTOP;
  33660. $1 = (_strchr($0,43)|0);
  33661. $2 = ($1|0)==(0|0);
  33662. $3 = HEAP8[$0>>0]|0;
  33663. $not$ = ($3<<24>>24)!=(114);
  33664. $$ = $not$&1;
  33665. $$0 = $2 ? $$ : 2;
  33666. $4 = (_strchr($0,120)|0);
  33667. $5 = ($4|0)==(0|0);
  33668. $6 = $$0 | 128;
  33669. $$0$ = $5 ? $$0 : $6;
  33670. $7 = (_strchr($0,101)|0);
  33671. $8 = ($7|0)==(0|0);
  33672. $9 = $$0$ | 524288;
  33673. $$2 = $8 ? $$0$ : $9;
  33674. $10 = ($3<<24>>24)==(114);
  33675. $11 = $$2 | 64;
  33676. $$2$ = $10 ? $$2 : $11;
  33677. $12 = ($3<<24>>24)==(119);
  33678. $13 = $$2$ | 512;
  33679. $$4 = $12 ? $13 : $$2$;
  33680. $14 = ($3<<24>>24)==(97);
  33681. $15 = $$4 | 1024;
  33682. $$$4 = $14 ? $15 : $$4;
  33683. return ($$$4|0);
  33684. }
  33685. function ___fdopen($0,$1) {
  33686. $0 = $0|0;
  33687. $1 = $1|0;
  33688. 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;
  33689. 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;
  33690. 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;
  33691. sp = STACKTOP;
  33692. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  33693. $vararg_buffer12 = sp + 40|0;
  33694. $vararg_buffer7 = sp + 24|0;
  33695. $vararg_buffer3 = sp + 16|0;
  33696. $vararg_buffer = sp;
  33697. $2 = sp + 56|0;
  33698. $3 = HEAP8[$1>>0]|0;
  33699. $4 = $3 << 24 >> 24;
  33700. $memchr = (_memchr(17143,$4,4)|0);
  33701. $5 = ($memchr|0)==(0|0);
  33702. if ($5) {
  33703. $6 = (___errno_location()|0);
  33704. HEAP32[$6>>2] = 22;
  33705. $$0 = 0;
  33706. } else {
  33707. $7 = (_malloc(1156)|0);
  33708. $8 = ($7|0)==(0|0);
  33709. if ($8) {
  33710. $$0 = 0;
  33711. } else {
  33712. dest=$7; stop=dest+124|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  33713. $9 = (_strchr($1,43)|0);
  33714. $10 = ($9|0)==(0|0);
  33715. if ($10) {
  33716. $11 = ($3<<24>>24)==(114);
  33717. $12 = $11 ? 8 : 4;
  33718. HEAP32[$7>>2] = $12;
  33719. }
  33720. $13 = (_strchr($1,101)|0);
  33721. $14 = ($13|0)==(0|0);
  33722. if ($14) {
  33723. $16 = $3;
  33724. } else {
  33725. HEAP32[$vararg_buffer>>2] = $0;
  33726. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  33727. HEAP32[$vararg_ptr1>>2] = 2;
  33728. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  33729. HEAP32[$vararg_ptr2>>2] = 1;
  33730. (___syscall221(221,($vararg_buffer|0))|0);
  33731. $$pre = HEAP8[$1>>0]|0;
  33732. $16 = $$pre;
  33733. }
  33734. $15 = ($16<<24>>24)==(97);
  33735. if ($15) {
  33736. HEAP32[$vararg_buffer3>>2] = $0;
  33737. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  33738. HEAP32[$vararg_ptr6>>2] = 3;
  33739. $17 = (___syscall221(221,($vararg_buffer3|0))|0);
  33740. $18 = $17 & 1024;
  33741. $19 = ($18|0)==(0);
  33742. if ($19) {
  33743. $20 = $17 | 1024;
  33744. HEAP32[$vararg_buffer7>>2] = $0;
  33745. $vararg_ptr10 = ((($vararg_buffer7)) + 4|0);
  33746. HEAP32[$vararg_ptr10>>2] = 4;
  33747. $vararg_ptr11 = ((($vararg_buffer7)) + 8|0);
  33748. HEAP32[$vararg_ptr11>>2] = $20;
  33749. (___syscall221(221,($vararg_buffer7|0))|0);
  33750. }
  33751. $21 = HEAP32[$7>>2]|0;
  33752. $22 = $21 | 128;
  33753. HEAP32[$7>>2] = $22;
  33754. $29 = $22;
  33755. } else {
  33756. $$pre31 = HEAP32[$7>>2]|0;
  33757. $29 = $$pre31;
  33758. }
  33759. $23 = ((($7)) + 60|0);
  33760. HEAP32[$23>>2] = $0;
  33761. $24 = ((($7)) + 132|0);
  33762. $25 = ((($7)) + 44|0);
  33763. HEAP32[$25>>2] = $24;
  33764. $26 = ((($7)) + 48|0);
  33765. HEAP32[$26>>2] = 1024;
  33766. $27 = ((($7)) + 75|0);
  33767. HEAP8[$27>>0] = -1;
  33768. $28 = $29 & 8;
  33769. $30 = ($28|0)==(0);
  33770. if ($30) {
  33771. $31 = $2;
  33772. HEAP32[$vararg_buffer12>>2] = $0;
  33773. $vararg_ptr15 = ((($vararg_buffer12)) + 4|0);
  33774. HEAP32[$vararg_ptr15>>2] = 21523;
  33775. $vararg_ptr16 = ((($vararg_buffer12)) + 8|0);
  33776. HEAP32[$vararg_ptr16>>2] = $31;
  33777. $32 = (___syscall54(54,($vararg_buffer12|0))|0);
  33778. $33 = ($32|0)==(0);
  33779. if ($33) {
  33780. HEAP8[$27>>0] = 10;
  33781. }
  33782. }
  33783. $34 = ((($7)) + 32|0);
  33784. HEAP32[$34>>2] = 11;
  33785. $35 = ((($7)) + 36|0);
  33786. HEAP32[$35>>2] = 10;
  33787. $36 = ((($7)) + 40|0);
  33788. HEAP32[$36>>2] = 3;
  33789. $37 = ((($7)) + 12|0);
  33790. HEAP32[$37>>2] = 2;
  33791. $38 = HEAP32[(20036)>>2]|0;
  33792. $39 = ($38|0)==(0);
  33793. if ($39) {
  33794. $40 = ((($7)) + 76|0);
  33795. HEAP32[$40>>2] = -1;
  33796. }
  33797. $41 = (___ofl_add($7)|0);
  33798. $$0 = $7;
  33799. }
  33800. }
  33801. STACKTOP = sp;return ($$0|0);
  33802. }
  33803. function ___ofl_add($0) {
  33804. $0 = $0|0;
  33805. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  33806. sp = STACKTOP;
  33807. $1 = (___ofl_lock()|0);
  33808. $2 = HEAP32[$1>>2]|0;
  33809. $3 = ((($0)) + 56|0);
  33810. HEAP32[$3>>2] = $2;
  33811. $4 = HEAP32[$1>>2]|0;
  33812. $5 = ($4|0)==(0|0);
  33813. if (!($5)) {
  33814. $6 = ((($4)) + 52|0);
  33815. HEAP32[$6>>2] = $0;
  33816. }
  33817. HEAP32[$1>>2] = $0;
  33818. ___ofl_unlock();
  33819. return ($0|0);
  33820. }
  33821. function ___ofl_lock() {
  33822. var label = 0, sp = 0;
  33823. sp = STACKTOP;
  33824. ___lock((20096|0));
  33825. return (20104|0);
  33826. }
  33827. function ___ofl_unlock() {
  33828. var label = 0, sp = 0;
  33829. sp = STACKTOP;
  33830. ___unlock((20096|0));
  33831. return;
  33832. }
  33833. function _fclose($0) {
  33834. $0 = $0|0;
  33835. 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;
  33836. 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;
  33837. sp = STACKTOP;
  33838. $1 = ((($0)) + 76|0);
  33839. $2 = HEAP32[$1>>2]|0;
  33840. $3 = ($2|0)>(-1);
  33841. if ($3) {
  33842. $4 = (___lockfile($0)|0);
  33843. $29 = $4;
  33844. } else {
  33845. $29 = 0;
  33846. }
  33847. ___unlist_locked_file($0);
  33848. $5 = HEAP32[$0>>2]|0;
  33849. $6 = $5 & 1;
  33850. $7 = ($6|0)!=(0);
  33851. if (!($7)) {
  33852. $8 = (___ofl_lock()|0);
  33853. $9 = ((($0)) + 52|0);
  33854. $10 = HEAP32[$9>>2]|0;
  33855. $11 = ($10|0)==(0|0);
  33856. $12 = $10;
  33857. $$pre = ((($0)) + 56|0);
  33858. if (!($11)) {
  33859. $13 = HEAP32[$$pre>>2]|0;
  33860. $14 = ((($10)) + 56|0);
  33861. HEAP32[$14>>2] = $13;
  33862. }
  33863. $15 = HEAP32[$$pre>>2]|0;
  33864. $16 = ($15|0)==(0|0);
  33865. if (!($16)) {
  33866. $17 = ((($15)) + 52|0);
  33867. HEAP32[$17>>2] = $12;
  33868. }
  33869. $18 = HEAP32[$8>>2]|0;
  33870. $19 = ($18|0)==($0|0);
  33871. if ($19) {
  33872. HEAP32[$8>>2] = $15;
  33873. }
  33874. ___ofl_unlock();
  33875. }
  33876. $20 = (_fflush($0)|0);
  33877. $21 = ((($0)) + 12|0);
  33878. $22 = HEAP32[$21>>2]|0;
  33879. $23 = (FUNCTION_TABLE_ii[$22 & 15]($0)|0);
  33880. $24 = $23 | $20;
  33881. $25 = ((($0)) + 92|0);
  33882. $26 = HEAP32[$25>>2]|0;
  33883. $27 = ($26|0)==(0|0);
  33884. if (!($27)) {
  33885. _free($26);
  33886. }
  33887. if ($7) {
  33888. $28 = ($29|0)==(0);
  33889. if (!($28)) {
  33890. ___unlockfile($0);
  33891. }
  33892. } else {
  33893. _free($0);
  33894. }
  33895. return ($24|0);
  33896. }
  33897. function _fflush($0) {
  33898. $0 = $0|0;
  33899. 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;
  33900. 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;
  33901. sp = STACKTOP;
  33902. $1 = ($0|0)==(0|0);
  33903. do {
  33904. if ($1) {
  33905. $8 = HEAP32[1040]|0;
  33906. $9 = ($8|0)==(0|0);
  33907. if ($9) {
  33908. $29 = 0;
  33909. } else {
  33910. $10 = HEAP32[1040]|0;
  33911. $11 = (_fflush($10)|0);
  33912. $29 = $11;
  33913. }
  33914. $12 = (___ofl_lock()|0);
  33915. $$02325 = HEAP32[$12>>2]|0;
  33916. $13 = ($$02325|0)==(0|0);
  33917. if ($13) {
  33918. $$024$lcssa = $29;
  33919. } else {
  33920. $$02327 = $$02325;$$02426 = $29;
  33921. while(1) {
  33922. $14 = ((($$02327)) + 76|0);
  33923. $15 = HEAP32[$14>>2]|0;
  33924. $16 = ($15|0)>(-1);
  33925. if ($16) {
  33926. $17 = (___lockfile($$02327)|0);
  33927. $26 = $17;
  33928. } else {
  33929. $26 = 0;
  33930. }
  33931. $18 = ((($$02327)) + 20|0);
  33932. $19 = HEAP32[$18>>2]|0;
  33933. $20 = ((($$02327)) + 28|0);
  33934. $21 = HEAP32[$20>>2]|0;
  33935. $22 = ($19>>>0)>($21>>>0);
  33936. if ($22) {
  33937. $23 = (___fflush_unlocked($$02327)|0);
  33938. $24 = $23 | $$02426;
  33939. $$1 = $24;
  33940. } else {
  33941. $$1 = $$02426;
  33942. }
  33943. $25 = ($26|0)==(0);
  33944. if (!($25)) {
  33945. ___unlockfile($$02327);
  33946. }
  33947. $27 = ((($$02327)) + 56|0);
  33948. $$023 = HEAP32[$27>>2]|0;
  33949. $28 = ($$023|0)==(0|0);
  33950. if ($28) {
  33951. $$024$lcssa = $$1;
  33952. break;
  33953. } else {
  33954. $$02327 = $$023;$$02426 = $$1;
  33955. }
  33956. }
  33957. }
  33958. ___ofl_unlock();
  33959. $$0 = $$024$lcssa;
  33960. } else {
  33961. $2 = ((($0)) + 76|0);
  33962. $3 = HEAP32[$2>>2]|0;
  33963. $4 = ($3|0)>(-1);
  33964. if (!($4)) {
  33965. $5 = (___fflush_unlocked($0)|0);
  33966. $$0 = $5;
  33967. break;
  33968. }
  33969. $6 = (___lockfile($0)|0);
  33970. $phitmp = ($6|0)==(0);
  33971. $7 = (___fflush_unlocked($0)|0);
  33972. if ($phitmp) {
  33973. $$0 = $7;
  33974. } else {
  33975. ___unlockfile($0);
  33976. $$0 = $7;
  33977. }
  33978. }
  33979. } while(0);
  33980. return ($$0|0);
  33981. }
  33982. function ___fflush_unlocked($0) {
  33983. $0 = $0|0;
  33984. 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;
  33985. var $9 = 0, label = 0, sp = 0;
  33986. sp = STACKTOP;
  33987. $1 = ((($0)) + 20|0);
  33988. $2 = HEAP32[$1>>2]|0;
  33989. $3 = ((($0)) + 28|0);
  33990. $4 = HEAP32[$3>>2]|0;
  33991. $5 = ($2>>>0)>($4>>>0);
  33992. if ($5) {
  33993. $6 = ((($0)) + 36|0);
  33994. $7 = HEAP32[$6>>2]|0;
  33995. (FUNCTION_TABLE_iiii[$7 & 15]($0,0,0)|0);
  33996. $8 = HEAP32[$1>>2]|0;
  33997. $9 = ($8|0)==(0|0);
  33998. if ($9) {
  33999. $$0 = -1;
  34000. } else {
  34001. label = 3;
  34002. }
  34003. } else {
  34004. label = 3;
  34005. }
  34006. if ((label|0) == 3) {
  34007. $10 = ((($0)) + 4|0);
  34008. $11 = HEAP32[$10>>2]|0;
  34009. $12 = ((($0)) + 8|0);
  34010. $13 = HEAP32[$12>>2]|0;
  34011. $14 = ($11>>>0)<($13>>>0);
  34012. if ($14) {
  34013. $15 = $11;
  34014. $16 = $13;
  34015. $17 = (($15) - ($16))|0;
  34016. $18 = ((($0)) + 40|0);
  34017. $19 = HEAP32[$18>>2]|0;
  34018. (FUNCTION_TABLE_iiii[$19 & 15]($0,$17,1)|0);
  34019. }
  34020. $20 = ((($0)) + 16|0);
  34021. HEAP32[$20>>2] = 0;
  34022. HEAP32[$3>>2] = 0;
  34023. HEAP32[$1>>2] = 0;
  34024. HEAP32[$12>>2] = 0;
  34025. HEAP32[$10>>2] = 0;
  34026. $$0 = 0;
  34027. }
  34028. return ($$0|0);
  34029. }
  34030. function _feof($0) {
  34031. $0 = $0|0;
  34032. 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;
  34033. sp = STACKTOP;
  34034. $1 = ((($0)) + 76|0);
  34035. $2 = HEAP32[$1>>2]|0;
  34036. $3 = ($2|0)>(-1);
  34037. if ($3) {
  34038. $6 = (___lockfile($0)|0);
  34039. $phitmp = ($6|0)==(0);
  34040. $7 = HEAP32[$0>>2]|0;
  34041. $8 = $7 >>> 4;
  34042. $$lobit = $8 & 1;
  34043. if ($phitmp) {
  34044. $$lobit9 = $$lobit;
  34045. } else {
  34046. ___unlockfile($0);
  34047. $$lobit9 = $$lobit;
  34048. }
  34049. } else {
  34050. $4 = HEAP32[$0>>2]|0;
  34051. $5 = $4 >>> 4;
  34052. $$lobit8 = $5 & 1;
  34053. $$lobit9 = $$lobit8;
  34054. }
  34055. return ($$lobit9|0);
  34056. }
  34057. function _fseek($0,$1,$2) {
  34058. $0 = $0|0;
  34059. $1 = $1|0;
  34060. $2 = $2|0;
  34061. var $3 = 0, label = 0, sp = 0;
  34062. sp = STACKTOP;
  34063. $3 = (___fseeko($0,$1,$2)|0);
  34064. return ($3|0);
  34065. }
  34066. function ___fseeko($0,$1,$2) {
  34067. $0 = $0|0;
  34068. $1 = $1|0;
  34069. $2 = $2|0;
  34070. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $phitmp = 0, label = 0, sp = 0;
  34071. sp = STACKTOP;
  34072. $3 = ((($0)) + 76|0);
  34073. $4 = HEAP32[$3>>2]|0;
  34074. $5 = ($4|0)>(-1);
  34075. if ($5) {
  34076. $7 = (___lockfile($0)|0);
  34077. $phitmp = ($7|0)==(0);
  34078. $8 = (___fseeko_unlocked($0,$1,$2)|0);
  34079. if ($phitmp) {
  34080. $9 = $8;
  34081. } else {
  34082. ___unlockfile($0);
  34083. $9 = $8;
  34084. }
  34085. } else {
  34086. $6 = (___fseeko_unlocked($0,$1,$2)|0);
  34087. $9 = $6;
  34088. }
  34089. return ($9|0);
  34090. }
  34091. function ___fseeko_unlocked($0,$1,$2) {
  34092. $0 = $0|0;
  34093. $1 = $1|0;
  34094. $2 = $2|0;
  34095. 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;
  34096. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  34097. sp = STACKTOP;
  34098. $3 = ($2|0)==(1);
  34099. if ($3) {
  34100. $4 = ((($0)) + 8|0);
  34101. $5 = HEAP32[$4>>2]|0;
  34102. $6 = ((($0)) + 4|0);
  34103. $7 = HEAP32[$6>>2]|0;
  34104. $8 = (($1) - ($5))|0;
  34105. $9 = (($8) + ($7))|0;
  34106. $$019 = $9;
  34107. } else {
  34108. $$019 = $1;
  34109. }
  34110. $10 = ((($0)) + 20|0);
  34111. $11 = HEAP32[$10>>2]|0;
  34112. $12 = ((($0)) + 28|0);
  34113. $13 = HEAP32[$12>>2]|0;
  34114. $14 = ($11>>>0)>($13>>>0);
  34115. if ($14) {
  34116. $15 = ((($0)) + 36|0);
  34117. $16 = HEAP32[$15>>2]|0;
  34118. (FUNCTION_TABLE_iiii[$16 & 15]($0,0,0)|0);
  34119. $17 = HEAP32[$10>>2]|0;
  34120. $18 = ($17|0)==(0|0);
  34121. if ($18) {
  34122. $$0 = -1;
  34123. } else {
  34124. label = 5;
  34125. }
  34126. } else {
  34127. label = 5;
  34128. }
  34129. if ((label|0) == 5) {
  34130. $19 = ((($0)) + 16|0);
  34131. HEAP32[$19>>2] = 0;
  34132. HEAP32[$12>>2] = 0;
  34133. HEAP32[$10>>2] = 0;
  34134. $20 = ((($0)) + 40|0);
  34135. $21 = HEAP32[$20>>2]|0;
  34136. $22 = (FUNCTION_TABLE_iiii[$21 & 15]($0,$$019,$2)|0);
  34137. $23 = ($22|0)<(0);
  34138. if ($23) {
  34139. $$0 = -1;
  34140. } else {
  34141. $24 = ((($0)) + 8|0);
  34142. HEAP32[$24>>2] = 0;
  34143. $25 = ((($0)) + 4|0);
  34144. HEAP32[$25>>2] = 0;
  34145. $26 = HEAP32[$0>>2]|0;
  34146. $27 = $26 & -17;
  34147. HEAP32[$0>>2] = $27;
  34148. $$0 = 0;
  34149. }
  34150. }
  34151. return ($$0|0);
  34152. }
  34153. function _strstr($0,$1) {
  34154. $0 = $0|0;
  34155. $1 = $1|0;
  34156. 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;
  34157. 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;
  34158. sp = STACKTOP;
  34159. $2 = HEAP8[$1>>0]|0;
  34160. $3 = ($2<<24>>24)==(0);
  34161. do {
  34162. if ($3) {
  34163. $$0 = $0;
  34164. } else {
  34165. $4 = $2 << 24 >> 24;
  34166. $5 = (_strchr($0,$4)|0);
  34167. $6 = ($5|0)==(0|0);
  34168. if ($6) {
  34169. $$0 = 0;
  34170. } else {
  34171. $7 = ((($1)) + 1|0);
  34172. $8 = HEAP8[$7>>0]|0;
  34173. $9 = ($8<<24>>24)==(0);
  34174. if ($9) {
  34175. $$0 = $5;
  34176. } else {
  34177. $10 = ((($5)) + 1|0);
  34178. $11 = HEAP8[$10>>0]|0;
  34179. $12 = ($11<<24>>24)==(0);
  34180. if ($12) {
  34181. $$0 = 0;
  34182. } else {
  34183. $13 = ((($1)) + 2|0);
  34184. $14 = HEAP8[$13>>0]|0;
  34185. $15 = ($14<<24>>24)==(0);
  34186. if ($15) {
  34187. $16 = (_twobyte_strstr($5,$1)|0);
  34188. $$0 = $16;
  34189. break;
  34190. }
  34191. $17 = ((($5)) + 2|0);
  34192. $18 = HEAP8[$17>>0]|0;
  34193. $19 = ($18<<24>>24)==(0);
  34194. if ($19) {
  34195. $$0 = 0;
  34196. } else {
  34197. $20 = ((($1)) + 3|0);
  34198. $21 = HEAP8[$20>>0]|0;
  34199. $22 = ($21<<24>>24)==(0);
  34200. if ($22) {
  34201. $23 = (_threebyte_strstr($5,$1)|0);
  34202. $$0 = $23;
  34203. break;
  34204. }
  34205. $24 = ((($5)) + 3|0);
  34206. $25 = HEAP8[$24>>0]|0;
  34207. $26 = ($25<<24>>24)==(0);
  34208. if ($26) {
  34209. $$0 = 0;
  34210. } else {
  34211. $27 = ((($1)) + 4|0);
  34212. $28 = HEAP8[$27>>0]|0;
  34213. $29 = ($28<<24>>24)==(0);
  34214. if ($29) {
  34215. $30 = (_fourbyte_strstr($5,$1)|0);
  34216. $$0 = $30;
  34217. break;
  34218. } else {
  34219. $31 = (_twoway_strstr($5,$1)|0);
  34220. $$0 = $31;
  34221. break;
  34222. }
  34223. }
  34224. }
  34225. }
  34226. }
  34227. }
  34228. }
  34229. } while(0);
  34230. return ($$0|0);
  34231. }
  34232. function _twobyte_strstr($0,$1) {
  34233. $0 = $0|0;
  34234. $1 = $1|0;
  34235. 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;
  34236. var label = 0, sp = 0;
  34237. sp = STACKTOP;
  34238. $2 = HEAP8[$1>>0]|0;
  34239. $3 = $2&255;
  34240. $4 = $3 << 8;
  34241. $5 = ((($1)) + 1|0);
  34242. $6 = HEAP8[$5>>0]|0;
  34243. $7 = $6&255;
  34244. $8 = $4 | $7;
  34245. $9 = HEAP8[$0>>0]|0;
  34246. $10 = $9&255;
  34247. $$sink$in = $10;$$sink17$sink = $0;
  34248. while(1) {
  34249. $11 = ((($$sink17$sink)) + 1|0);
  34250. $12 = HEAP8[$11>>0]|0;
  34251. $13 = ($12<<24>>24)==(0);
  34252. if ($13) {
  34253. $$lcssa = 0;
  34254. break;
  34255. }
  34256. $$sink = $$sink$in << 8;
  34257. $14 = $12&255;
  34258. $$sink$masked = $$sink & 65280;
  34259. $15 = $14 | $$sink$masked;
  34260. $16 = ($15|0)==($8|0);
  34261. if ($16) {
  34262. $$lcssa = $$sink17$sink;
  34263. break;
  34264. } else {
  34265. $$sink$in = $15;$$sink17$sink = $11;
  34266. }
  34267. }
  34268. return ($$lcssa|0);
  34269. }
  34270. function _threebyte_strstr($0,$1) {
  34271. $0 = $0|0;
  34272. $1 = $1|0;
  34273. 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;
  34274. 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;
  34275. var $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond18 = 0, label = 0, sp = 0;
  34276. sp = STACKTOP;
  34277. $2 = HEAP8[$1>>0]|0;
  34278. $3 = $2&255;
  34279. $4 = $3 << 24;
  34280. $5 = ((($1)) + 1|0);
  34281. $6 = HEAP8[$5>>0]|0;
  34282. $7 = $6&255;
  34283. $8 = $7 << 16;
  34284. $9 = $8 | $4;
  34285. $10 = ((($1)) + 2|0);
  34286. $11 = HEAP8[$10>>0]|0;
  34287. $12 = $11&255;
  34288. $13 = $12 << 8;
  34289. $14 = $9 | $13;
  34290. $15 = HEAP8[$0>>0]|0;
  34291. $16 = $15&255;
  34292. $17 = $16 << 24;
  34293. $18 = ((($0)) + 1|0);
  34294. $19 = HEAP8[$18>>0]|0;
  34295. $20 = $19&255;
  34296. $21 = $20 << 16;
  34297. $22 = $21 | $17;
  34298. $23 = ((($0)) + 2|0);
  34299. $24 = HEAP8[$23>>0]|0;
  34300. $25 = $24&255;
  34301. $26 = $25 << 8;
  34302. $27 = $22 | $26;
  34303. $28 = ($24<<24>>24)!=(0);
  34304. $$not17 = $28 ^ 1;
  34305. $29 = ($27|0)==($14|0);
  34306. $or$cond18 = $29 | $$not17;
  34307. if ($or$cond18) {
  34308. $$016$lcssa = $23;$$lcssa = $28;
  34309. } else {
  34310. $$01619 = $23;$$020 = $27;
  34311. while(1) {
  34312. $30 = ((($$01619)) + 1|0);
  34313. $31 = HEAP8[$30>>0]|0;
  34314. $32 = $31&255;
  34315. $33 = $32 | $$020;
  34316. $34 = $33 << 8;
  34317. $35 = ($31<<24>>24)!=(0);
  34318. $$not = $35 ^ 1;
  34319. $36 = ($34|0)==($14|0);
  34320. $or$cond = $36 | $$not;
  34321. if ($or$cond) {
  34322. $$016$lcssa = $30;$$lcssa = $35;
  34323. break;
  34324. } else {
  34325. $$01619 = $30;$$020 = $34;
  34326. }
  34327. }
  34328. }
  34329. $37 = ((($$016$lcssa)) + -2|0);
  34330. $38 = $$lcssa ? $37 : 0;
  34331. return ($38|0);
  34332. }
  34333. function _fourbyte_strstr($0,$1) {
  34334. $0 = $0|0;
  34335. $1 = $1|0;
  34336. 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;
  34337. 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;
  34338. 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;
  34339. sp = STACKTOP;
  34340. $2 = HEAP8[$1>>0]|0;
  34341. $3 = $2&255;
  34342. $4 = $3 << 24;
  34343. $5 = ((($1)) + 1|0);
  34344. $6 = HEAP8[$5>>0]|0;
  34345. $7 = $6&255;
  34346. $8 = $7 << 16;
  34347. $9 = $8 | $4;
  34348. $10 = ((($1)) + 2|0);
  34349. $11 = HEAP8[$10>>0]|0;
  34350. $12 = $11&255;
  34351. $13 = $12 << 8;
  34352. $14 = $9 | $13;
  34353. $15 = ((($1)) + 3|0);
  34354. $16 = HEAP8[$15>>0]|0;
  34355. $17 = $16&255;
  34356. $18 = $14 | $17;
  34357. $19 = HEAP8[$0>>0]|0;
  34358. $20 = $19&255;
  34359. $21 = $20 << 24;
  34360. $22 = ((($0)) + 1|0);
  34361. $23 = HEAP8[$22>>0]|0;
  34362. $24 = $23&255;
  34363. $25 = $24 << 16;
  34364. $26 = $25 | $21;
  34365. $27 = ((($0)) + 2|0);
  34366. $28 = HEAP8[$27>>0]|0;
  34367. $29 = $28&255;
  34368. $30 = $29 << 8;
  34369. $31 = $26 | $30;
  34370. $32 = ((($0)) + 3|0);
  34371. $33 = HEAP8[$32>>0]|0;
  34372. $34 = $33&255;
  34373. $35 = $34 | $31;
  34374. $36 = ($33<<24>>24)!=(0);
  34375. $$not22 = $36 ^ 1;
  34376. $37 = ($35|0)==($18|0);
  34377. $or$cond23 = $37 | $$not22;
  34378. if ($or$cond23) {
  34379. $$lcssa = $36;$$sink21$lcssa = $32;
  34380. } else {
  34381. $$sink2124 = $32;$39 = $35;
  34382. while(1) {
  34383. $38 = $39 << 8;
  34384. $40 = ((($$sink2124)) + 1|0);
  34385. $41 = HEAP8[$40>>0]|0;
  34386. $42 = $41&255;
  34387. $43 = $42 | $38;
  34388. $44 = ($41<<24>>24)!=(0);
  34389. $$not = $44 ^ 1;
  34390. $45 = ($43|0)==($18|0);
  34391. $or$cond = $45 | $$not;
  34392. if ($or$cond) {
  34393. $$lcssa = $44;$$sink21$lcssa = $40;
  34394. break;
  34395. } else {
  34396. $$sink2124 = $40;$39 = $43;
  34397. }
  34398. }
  34399. }
  34400. $46 = ((($$sink21$lcssa)) + -3|0);
  34401. $47 = $$lcssa ? $46 : 0;
  34402. return ($47|0);
  34403. }
  34404. function _twoway_strstr($0,$1) {
  34405. $0 = $0|0;
  34406. $1 = $1|0;
  34407. 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;
  34408. 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;
  34409. 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;
  34410. 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;
  34411. 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;
  34412. 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;
  34413. 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;
  34414. 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;
  34415. 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;
  34416. sp = STACKTOP;
  34417. STACKTOP = STACKTOP + 1056|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1056|0);
  34418. $2 = sp + 1024|0;
  34419. $3 = sp;
  34420. ;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;
  34421. $4 = HEAP8[$1>>0]|0;
  34422. $cond265 = ($4<<24>>24)==(0);
  34423. L1: do {
  34424. if ($cond265) {
  34425. $$0175$ph$ph$lcssa220323 = 1;$$0185$ph$lcssa322 = -1;$$0187$lcssa320321 = 0;$$1176$ph$ph$lcssa211 = 1;$$1186$ph$lcssa = -1;
  34426. label = 27;
  34427. } else {
  34428. $5 = $4&255;
  34429. $$0187266 = 0;$12 = $4;$20 = $5;
  34430. while(1) {
  34431. $8 = (($0) + ($$0187266)|0);
  34432. $9 = HEAP8[$8>>0]|0;
  34433. $10 = ($9<<24>>24)==(0);
  34434. if ($10) {
  34435. $$3 = 0;
  34436. break L1;
  34437. }
  34438. $11 = $12 & 31;
  34439. $13 = $11&255;
  34440. $14 = 1 << $13;
  34441. $div188 = ($12&255) >>> 5;
  34442. $15 = $div188&255;
  34443. $16 = (($2) + ($15<<2)|0);
  34444. $17 = HEAP32[$16>>2]|0;
  34445. $18 = $17 | $14;
  34446. HEAP32[$16>>2] = $18;
  34447. $7 = (($$0187266) + 1)|0;
  34448. $19 = (($3) + ($20<<2)|0);
  34449. HEAP32[$19>>2] = $7;
  34450. $21 = (($1) + ($7)|0);
  34451. $22 = HEAP8[$21>>0]|0;
  34452. $23 = $22&255;
  34453. $cond = ($22<<24>>24)==(0);
  34454. if ($cond) {
  34455. break;
  34456. } else {
  34457. $$0187266 = $7;$12 = $22;$20 = $23;
  34458. }
  34459. }
  34460. $6 = ($7>>>0)>(1);
  34461. if ($6) {
  34462. $$0183$ph262 = 0;$$0185$ph261 = -1;$129 = 1;
  34463. L7: while(1) {
  34464. $$0175$ph$ph256 = 1;$$0183$ph200$ph255 = $$0183$ph262;$132 = $129;
  34465. while(1) {
  34466. $$0183$ph200250 = $$0183$ph200$ph255;$131 = $132;
  34467. L11: while(1) {
  34468. $$0179244 = 1;$31 = $131;
  34469. while(1) {
  34470. $27 = (($$0179244) + ($$0185$ph261))|0;
  34471. $28 = (($1) + ($27)|0);
  34472. $29 = HEAP8[$28>>0]|0;
  34473. $30 = (($1) + ($31)|0);
  34474. $32 = HEAP8[$30>>0]|0;
  34475. $33 = ($29<<24>>24)==($32<<24>>24);
  34476. if (!($33)) {
  34477. break L11;
  34478. }
  34479. $34 = ($$0179244|0)==($$0175$ph$ph256|0);
  34480. $25 = (($$0179244) + 1)|0;
  34481. if ($34) {
  34482. break;
  34483. }
  34484. $24 = (($25) + ($$0183$ph200250))|0;
  34485. $26 = ($24>>>0)<($7>>>0);
  34486. if ($26) {
  34487. $$0179244 = $25;$31 = $24;
  34488. } else {
  34489. $$0175$ph$ph$lcssa220 = $$0175$ph$ph256;$$0185$ph$lcssa = $$0185$ph261;
  34490. break L7;
  34491. }
  34492. }
  34493. $35 = (($$0175$ph$ph256) + ($$0183$ph200250))|0;
  34494. $36 = (($35) + 1)|0;
  34495. $37 = ($36>>>0)<($7>>>0);
  34496. if ($37) {
  34497. $$0183$ph200250 = $35;$131 = $36;
  34498. } else {
  34499. $$0175$ph$ph$lcssa220 = $$0175$ph$ph256;$$0185$ph$lcssa = $$0185$ph261;
  34500. break L7;
  34501. }
  34502. }
  34503. $38 = ($29&255)>($32&255);
  34504. $39 = (($31) - ($$0185$ph261))|0;
  34505. if (!($38)) {
  34506. break;
  34507. }
  34508. $43 = (($31) + 1)|0;
  34509. $44 = ($43>>>0)<($7>>>0);
  34510. if ($44) {
  34511. $$0175$ph$ph256 = $39;$$0183$ph200$ph255 = $31;$132 = $43;
  34512. } else {
  34513. $$0175$ph$ph$lcssa220 = $39;$$0185$ph$lcssa = $$0185$ph261;
  34514. break L7;
  34515. }
  34516. }
  34517. $40 = (($$0183$ph200250) + 1)|0;
  34518. $41 = (($$0183$ph200250) + 2)|0;
  34519. $42 = ($41>>>0)<($7>>>0);
  34520. if ($42) {
  34521. $$0183$ph262 = $40;$$0185$ph261 = $$0183$ph200250;$129 = $41;
  34522. } else {
  34523. $$0175$ph$ph$lcssa220 = 1;$$0185$ph$lcssa = $$0183$ph200250;
  34524. break;
  34525. }
  34526. }
  34527. if ($6) {
  34528. $$1184$ph241 = 0;$$1186$ph240 = -1;$130 = 1;
  34529. while(1) {
  34530. $$1176$ph$ph235 = 1;$$1184$ph196$ph234 = $$1184$ph241;$134 = $130;
  34531. while(1) {
  34532. $$1184$ph196229 = $$1184$ph196$ph234;$133 = $134;
  34533. L26: while(1) {
  34534. $$1180224 = 1;$52 = $133;
  34535. while(1) {
  34536. $48 = (($$1180224) + ($$1186$ph240))|0;
  34537. $49 = (($1) + ($48)|0);
  34538. $50 = HEAP8[$49>>0]|0;
  34539. $51 = (($1) + ($52)|0);
  34540. $53 = HEAP8[$51>>0]|0;
  34541. $54 = ($50<<24>>24)==($53<<24>>24);
  34542. if (!($54)) {
  34543. break L26;
  34544. }
  34545. $55 = ($$1180224|0)==($$1176$ph$ph235|0);
  34546. $46 = (($$1180224) + 1)|0;
  34547. if ($55) {
  34548. break;
  34549. }
  34550. $45 = (($46) + ($$1184$ph196229))|0;
  34551. $47 = ($45>>>0)<($7>>>0);
  34552. if ($47) {
  34553. $$1180224 = $46;$52 = $45;
  34554. } else {
  34555. $$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;
  34556. label = 27;
  34557. break L1;
  34558. }
  34559. }
  34560. $56 = (($$1176$ph$ph235) + ($$1184$ph196229))|0;
  34561. $57 = (($56) + 1)|0;
  34562. $58 = ($57>>>0)<($7>>>0);
  34563. if ($58) {
  34564. $$1184$ph196229 = $56;$133 = $57;
  34565. } else {
  34566. $$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;
  34567. label = 27;
  34568. break L1;
  34569. }
  34570. }
  34571. $59 = ($50&255)<($53&255);
  34572. $60 = (($52) - ($$1186$ph240))|0;
  34573. if (!($59)) {
  34574. break;
  34575. }
  34576. $64 = (($52) + 1)|0;
  34577. $65 = ($64>>>0)<($7>>>0);
  34578. if ($65) {
  34579. $$1176$ph$ph235 = $60;$$1184$ph196$ph234 = $52;$134 = $64;
  34580. } else {
  34581. $$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;
  34582. label = 27;
  34583. break L1;
  34584. }
  34585. }
  34586. $61 = (($$1184$ph196229) + 1)|0;
  34587. $62 = (($$1184$ph196229) + 2)|0;
  34588. $63 = ($62>>>0)<($7>>>0);
  34589. if ($63) {
  34590. $$1184$ph241 = $61;$$1186$ph240 = $$1184$ph196229;$130 = $62;
  34591. } else {
  34592. $$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;
  34593. label = 27;
  34594. break;
  34595. }
  34596. }
  34597. } else {
  34598. $$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;
  34599. label = 27;
  34600. }
  34601. } else {
  34602. $$0175$ph$ph$lcssa220323 = 1;$$0185$ph$lcssa322 = -1;$$0187$lcssa320321 = $7;$$1176$ph$ph$lcssa211 = 1;$$1186$ph$lcssa = -1;
  34603. label = 27;
  34604. }
  34605. }
  34606. } while(0);
  34607. L36: do {
  34608. if ((label|0) == 27) {
  34609. $66 = (($$1186$ph$lcssa) + 1)|0;
  34610. $67 = (($$0185$ph$lcssa322) + 1)|0;
  34611. $68 = ($66>>>0)>($67>>>0);
  34612. $$1176$$0175 = $68 ? $$1176$ph$ph$lcssa211 : $$0175$ph$ph$lcssa220323;
  34613. $$1186$$0185 = $68 ? $$1186$ph$lcssa : $$0185$ph$lcssa322;
  34614. $69 = (($1) + ($$1176$$0175)|0);
  34615. $70 = (($$1186$$0185) + 1)|0;
  34616. $71 = (_memcmp($1,$69,$70)|0);
  34617. $72 = ($71|0)==(0);
  34618. if ($72) {
  34619. $77 = (($$0187$lcssa320321) - ($$1176$$0175))|0;
  34620. $$0168 = $77;$$3178 = $$1176$$0175;
  34621. } else {
  34622. $73 = (($$0187$lcssa320321) - ($$1186$$0185))|0;
  34623. $74 = (($73) + -1)|0;
  34624. $75 = ($$1186$$0185>>>0)>($74>>>0);
  34625. $$1186$$0185$ = $75 ? $$1186$$0185 : $74;
  34626. $76 = (($$1186$$0185$) + 1)|0;
  34627. $$0168 = 0;$$3178 = $76;
  34628. }
  34629. $78 = $$0187$lcssa320321 | 63;
  34630. $79 = (($$0187$lcssa320321) + -1)|0;
  34631. $80 = ($$0168|0)!=(0);
  34632. $81 = (($$0187$lcssa320321) - ($$3178))|0;
  34633. $$0166 = $0;$$0169 = 0;$$0170 = $0;
  34634. while(1) {
  34635. $82 = $$0170;
  34636. $83 = $$0166;
  34637. $84 = (($82) - ($83))|0;
  34638. $85 = ($84>>>0)<($$0187$lcssa320321>>>0);
  34639. do {
  34640. if ($85) {
  34641. $86 = (_memchr($$0170,0,$78)|0);
  34642. $87 = ($86|0)==(0|0);
  34643. if ($87) {
  34644. $91 = (($$0170) + ($78)|0);
  34645. $$3173 = $91;
  34646. break;
  34647. } else {
  34648. $88 = $86;
  34649. $89 = (($88) - ($83))|0;
  34650. $90 = ($89>>>0)<($$0187$lcssa320321>>>0);
  34651. if ($90) {
  34652. $$3 = 0;
  34653. break L36;
  34654. } else {
  34655. $$3173 = $86;
  34656. break;
  34657. }
  34658. }
  34659. } else {
  34660. $$3173 = $$0170;
  34661. }
  34662. } while(0);
  34663. $92 = (($$0166) + ($79)|0);
  34664. $93 = HEAP8[$92>>0]|0;
  34665. $div = ($93&255) >>> 5;
  34666. $94 = $div&255;
  34667. $95 = (($2) + ($94<<2)|0);
  34668. $96 = HEAP32[$95>>2]|0;
  34669. $97 = $93 & 31;
  34670. $98 = $97&255;
  34671. $99 = 1 << $98;
  34672. $100 = $99 & $96;
  34673. $101 = ($100|0)==(0);
  34674. L50: do {
  34675. if ($101) {
  34676. $$0169$be = 0;$$2181$sink = $$0187$lcssa320321;
  34677. } else {
  34678. $102 = $93&255;
  34679. $103 = (($3) + ($102<<2)|0);
  34680. $104 = HEAP32[$103>>2]|0;
  34681. $105 = (($$0187$lcssa320321) - ($104))|0;
  34682. $106 = ($105|0)==(0);
  34683. if (!($106)) {
  34684. $107 = ($$0169|0)!=(0);
  34685. $or$cond = $80 & $107;
  34686. $108 = ($105>>>0)<($$3178>>>0);
  34687. $or$cond190 = $or$cond & $108;
  34688. $$2181 = $or$cond190 ? $81 : $105;
  34689. $$0169$be = 0;$$2181$sink = $$2181;
  34690. break;
  34691. }
  34692. $110 = ($70>>>0)>($$0169>>>0);
  34693. $111 = $110 ? $70 : $$0169;
  34694. $112 = (($1) + ($111)|0);
  34695. $113 = HEAP8[$112>>0]|0;
  34696. $cond191222 = ($113<<24>>24)==(0);
  34697. L55: do {
  34698. if ($cond191222) {
  34699. $$4 = $70;
  34700. } else {
  34701. $$3182223 = $111;$117 = $113;
  34702. while(1) {
  34703. $114 = (($$0166) + ($$3182223)|0);
  34704. $115 = HEAP8[$114>>0]|0;
  34705. $116 = ($117<<24>>24)==($115<<24>>24);
  34706. if (!($116)) {
  34707. break;
  34708. }
  34709. $118 = (($$3182223) + 1)|0;
  34710. $119 = (($1) + ($118)|0);
  34711. $120 = HEAP8[$119>>0]|0;
  34712. $cond191 = ($120<<24>>24)==(0);
  34713. if ($cond191) {
  34714. $$4 = $70;
  34715. break L55;
  34716. } else {
  34717. $$3182223 = $118;$117 = $120;
  34718. }
  34719. }
  34720. $121 = (($$3182223) - ($$1186$$0185))|0;
  34721. $$0169$be = 0;$$2181$sink = $121;
  34722. break L50;
  34723. }
  34724. } while(0);
  34725. while(1) {
  34726. $122 = ($$4>>>0)>($$0169>>>0);
  34727. if (!($122)) {
  34728. $$3 = $$0166;
  34729. break L36;
  34730. }
  34731. $123 = (($$4) + -1)|0;
  34732. $124 = (($1) + ($123)|0);
  34733. $125 = HEAP8[$124>>0]|0;
  34734. $126 = (($$0166) + ($123)|0);
  34735. $127 = HEAP8[$126>>0]|0;
  34736. $128 = ($125<<24>>24)==($127<<24>>24);
  34737. if ($128) {
  34738. $$4 = $123;
  34739. } else {
  34740. $$0169$be = $$0168;$$2181$sink = $$3178;
  34741. break;
  34742. }
  34743. }
  34744. }
  34745. } while(0);
  34746. $109 = (($$0166) + ($$2181$sink)|0);
  34747. $$0166 = $109;$$0169 = $$0169$be;$$0170 = $$3173;
  34748. }
  34749. }
  34750. } while(0);
  34751. STACKTOP = sp;return ($$3|0);
  34752. }
  34753. function _strrchr($0,$1) {
  34754. $0 = $0|0;
  34755. $1 = $1|0;
  34756. var $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  34757. sp = STACKTOP;
  34758. $2 = (_strlen($0)|0);
  34759. $3 = (($2) + 1)|0;
  34760. $4 = (___memrchr($0,$1,$3)|0);
  34761. return ($4|0);
  34762. }
  34763. function ___memrchr($0,$1,$2) {
  34764. $0 = $0|0;
  34765. $1 = $1|0;
  34766. $2 = $2|0;
  34767. var $$0 = 0, $$09 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  34768. sp = STACKTOP;
  34769. $3 = $1&255;
  34770. $$09 = $2;
  34771. while(1) {
  34772. $4 = (($$09) + -1)|0;
  34773. $5 = ($$09|0)==(0);
  34774. if ($5) {
  34775. $$0 = 0;
  34776. break;
  34777. }
  34778. $6 = (($0) + ($4)|0);
  34779. $7 = HEAP8[$6>>0]|0;
  34780. $8 = ($7<<24>>24)==($3<<24>>24);
  34781. if ($8) {
  34782. $$0 = $6;
  34783. break;
  34784. } else {
  34785. $$09 = $4;
  34786. }
  34787. }
  34788. return ($$0|0);
  34789. }
  34790. function _strspn($0,$1) {
  34791. $0 = $0|0;
  34792. $1 = $1|0;
  34793. 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;
  34794. 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;
  34795. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $div = 0, $div21 = 0, label = 0, sp = 0;
  34796. sp = STACKTOP;
  34797. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  34798. $2 = sp;
  34799. ;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;
  34800. $3 = HEAP8[$1>>0]|0;
  34801. $4 = ($3<<24>>24)==(0);
  34802. do {
  34803. if ($4) {
  34804. $$0 = 0;
  34805. } else {
  34806. $5 = ((($1)) + 1|0);
  34807. $6 = HEAP8[$5>>0]|0;
  34808. $7 = ($6<<24>>24)==(0);
  34809. if ($7) {
  34810. $$020 = $0;
  34811. while(1) {
  34812. $8 = HEAP8[$$020>>0]|0;
  34813. $9 = ($8<<24>>24)==($3<<24>>24);
  34814. $10 = ((($$020)) + 1|0);
  34815. if ($9) {
  34816. $$020 = $10;
  34817. } else {
  34818. break;
  34819. }
  34820. }
  34821. $11 = $$020;
  34822. $12 = $0;
  34823. $13 = (($11) - ($12))|0;
  34824. $$0 = $13;
  34825. break;
  34826. } else {
  34827. $$01925 = $1;$17 = $3;
  34828. }
  34829. while(1) {
  34830. $16 = $17 & 31;
  34831. $18 = $16&255;
  34832. $19 = 1 << $18;
  34833. $div21 = ($17&255) >>> 5;
  34834. $20 = $div21&255;
  34835. $21 = (($2) + ($20<<2)|0);
  34836. $22 = HEAP32[$21>>2]|0;
  34837. $23 = $22 | $19;
  34838. HEAP32[$21>>2] = $23;
  34839. $24 = ((($$01925)) + 1|0);
  34840. $25 = HEAP8[$24>>0]|0;
  34841. $26 = ($25<<24>>24)==(0);
  34842. if ($26) {
  34843. break;
  34844. } else {
  34845. $$01925 = $24;$17 = $25;
  34846. }
  34847. }
  34848. $14 = HEAP8[$0>>0]|0;
  34849. $15 = ($14<<24>>24)==(0);
  34850. L10: do {
  34851. if ($15) {
  34852. $$1$lcssa = $0;
  34853. } else {
  34854. $$123 = $0;$27 = $14;
  34855. while(1) {
  34856. $div = ($27&255) >>> 5;
  34857. $28 = $div&255;
  34858. $29 = (($2) + ($28<<2)|0);
  34859. $30 = HEAP32[$29>>2]|0;
  34860. $31 = $27 & 31;
  34861. $32 = $31&255;
  34862. $33 = 1 << $32;
  34863. $34 = $30 & $33;
  34864. $35 = ($34|0)==(0);
  34865. if ($35) {
  34866. $$1$lcssa = $$123;
  34867. break L10;
  34868. }
  34869. $36 = ((($$123)) + 1|0);
  34870. $37 = HEAP8[$36>>0]|0;
  34871. $38 = ($37<<24>>24)==(0);
  34872. if ($38) {
  34873. $$1$lcssa = $36;
  34874. break;
  34875. } else {
  34876. $$123 = $36;$27 = $37;
  34877. }
  34878. }
  34879. }
  34880. } while(0);
  34881. $39 = $$1$lcssa;
  34882. $40 = $0;
  34883. $41 = (($39) - ($40))|0;
  34884. $$0 = $41;
  34885. }
  34886. } while(0);
  34887. STACKTOP = sp;return ($$0|0);
  34888. }
  34889. function _srand($0) {
  34890. $0 = $0|0;
  34891. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  34892. sp = STACKTOP;
  34893. $1 = (($0) + -1)|0;
  34894. $2 = 17424;
  34895. $3 = $2;
  34896. HEAP32[$3>>2] = $1;
  34897. $4 = (($2) + 4)|0;
  34898. $5 = $4;
  34899. HEAP32[$5>>2] = 0;
  34900. return;
  34901. }
  34902. function _fread($0,$1,$2,$3) {
  34903. $0 = $0|0;
  34904. $1 = $1|0;
  34905. $2 = $2|0;
  34906. $3 = $3|0;
  34907. 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;
  34908. 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;
  34909. var $42 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  34910. sp = STACKTOP;
  34911. $4 = Math_imul($2, $1)|0;
  34912. $5 = ($1|0)==(0);
  34913. $$ = $5 ? 0 : $2;
  34914. $6 = ((($3)) + 76|0);
  34915. $7 = HEAP32[$6>>2]|0;
  34916. $8 = ($7|0)>(-1);
  34917. if ($8) {
  34918. $9 = (___lockfile($3)|0);
  34919. $36 = $9;
  34920. } else {
  34921. $36 = 0;
  34922. }
  34923. $10 = ((($3)) + 74|0);
  34924. $11 = HEAP8[$10>>0]|0;
  34925. $12 = $11 << 24 >> 24;
  34926. $13 = (($12) + 255)|0;
  34927. $14 = $13 | $12;
  34928. $15 = $14&255;
  34929. HEAP8[$10>>0] = $15;
  34930. $16 = ((($3)) + 8|0);
  34931. $17 = HEAP32[$16>>2]|0;
  34932. $18 = ((($3)) + 4|0);
  34933. $19 = HEAP32[$18>>2]|0;
  34934. $20 = $19;
  34935. $21 = (($17) - ($20))|0;
  34936. $22 = ($21|0)>(0);
  34937. $23 = ($21>>>0)<($4>>>0);
  34938. $$57 = $23 ? $21 : $4;
  34939. if ($22) {
  34940. $24 = (($4) - ($$57))|0;
  34941. $25 = (($0) + ($$57)|0);
  34942. _memcpy(($0|0),($19|0),($$57|0))|0;
  34943. $26 = (($19) + ($$57)|0);
  34944. HEAP32[$18>>2] = $26;
  34945. $$054$ph = $24;$$056$ph = $25;
  34946. } else {
  34947. $$054$ph = $4;$$056$ph = $0;
  34948. }
  34949. $27 = ($$054$ph|0)==(0);
  34950. L7: do {
  34951. if ($27) {
  34952. label = 13;
  34953. } else {
  34954. $28 = ((($3)) + 32|0);
  34955. $$05460 = $$054$ph;$$05659 = $$056$ph;
  34956. while(1) {
  34957. $29 = (___toread($3)|0);
  34958. $30 = ($29|0)==(0);
  34959. if (!($30)) {
  34960. break;
  34961. }
  34962. $31 = HEAP32[$28>>2]|0;
  34963. $32 = (FUNCTION_TABLE_iiii[$31 & 15]($3,$$05659,$$05460)|0);
  34964. $33 = (($32) + 1)|0;
  34965. $34 = ($33>>>0)<(2);
  34966. if ($34) {
  34967. break;
  34968. }
  34969. $39 = (($$05460) - ($32))|0;
  34970. $40 = (($$05659) + ($32)|0);
  34971. $41 = ($39|0)==(0);
  34972. if ($41) {
  34973. label = 13;
  34974. break L7;
  34975. } else {
  34976. $$05460 = $39;$$05659 = $40;
  34977. }
  34978. }
  34979. $35 = ($36|0)==(0);
  34980. if (!($35)) {
  34981. ___unlockfile($3);
  34982. }
  34983. $37 = (($4) - ($$05460))|0;
  34984. $38 = (($37>>>0) / ($1>>>0))&-1;
  34985. $$0 = $38;
  34986. }
  34987. } while(0);
  34988. if ((label|0) == 13) {
  34989. $42 = ($36|0)==(0);
  34990. if ($42) {
  34991. $$0 = $$;
  34992. } else {
  34993. ___unlockfile($3);
  34994. $$0 = $$;
  34995. }
  34996. }
  34997. return ($$0|0);
  34998. }
  34999. function _vprintf($0,$1) {
  35000. $0 = $0|0;
  35001. $1 = $1|0;
  35002. var $2 = 0, $3 = 0, label = 0, sp = 0;
  35003. sp = STACKTOP;
  35004. $2 = HEAP32[1008]|0;
  35005. $3 = (_vfprintf($2,$0,$1)|0);
  35006. return ($3|0);
  35007. }
  35008. function _strcspn($0,$1) {
  35009. $0 = $0|0;
  35010. $1 = $1|0;
  35011. 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;
  35012. 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;
  35013. var $div20 = 0, label = 0, sp = 0;
  35014. sp = STACKTOP;
  35015. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  35016. $2 = sp;
  35017. $3 = HEAP8[$1>>0]|0;
  35018. $4 = ($3<<24>>24)==(0);
  35019. L1: do {
  35020. if ($4) {
  35021. label = 3;
  35022. } else {
  35023. $5 = ((($1)) + 1|0);
  35024. $6 = HEAP8[$5>>0]|0;
  35025. $7 = ($6<<24>>24)==(0);
  35026. if ($7) {
  35027. label = 3;
  35028. } else {
  35029. ;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;
  35030. $$01824 = $1;$13 = $3;
  35031. while(1) {
  35032. $12 = $13 & 31;
  35033. $14 = $12&255;
  35034. $15 = 1 << $14;
  35035. $div20 = ($13&255) >>> 5;
  35036. $16 = $div20&255;
  35037. $17 = (($2) + ($16<<2)|0);
  35038. $18 = HEAP32[$17>>2]|0;
  35039. $19 = $18 | $15;
  35040. HEAP32[$17>>2] = $19;
  35041. $20 = ((($$01824)) + 1|0);
  35042. $21 = HEAP8[$20>>0]|0;
  35043. $22 = ($21<<24>>24)==(0);
  35044. if ($22) {
  35045. break;
  35046. } else {
  35047. $$01824 = $20;$13 = $21;
  35048. }
  35049. }
  35050. $10 = HEAP8[$0>>0]|0;
  35051. $11 = ($10<<24>>24)==(0);
  35052. if ($11) {
  35053. $$019$sink = $0;
  35054. } else {
  35055. $$01922 = $0;$23 = $10;
  35056. while(1) {
  35057. $div = ($23&255) >>> 5;
  35058. $24 = $div&255;
  35059. $25 = (($2) + ($24<<2)|0);
  35060. $26 = HEAP32[$25>>2]|0;
  35061. $27 = $23 & 31;
  35062. $28 = $27&255;
  35063. $29 = 1 << $28;
  35064. $30 = $26 & $29;
  35065. $31 = ($30|0)==(0);
  35066. if (!($31)) {
  35067. $$019$sink = $$01922;
  35068. break L1;
  35069. }
  35070. $32 = ((($$01922)) + 1|0);
  35071. $33 = HEAP8[$32>>0]|0;
  35072. $34 = ($33<<24>>24)==(0);
  35073. if ($34) {
  35074. $$019$sink = $32;
  35075. break;
  35076. } else {
  35077. $$01922 = $32;$23 = $33;
  35078. }
  35079. }
  35080. }
  35081. }
  35082. }
  35083. } while(0);
  35084. if ((label|0) == 3) {
  35085. $8 = $3 << 24 >> 24;
  35086. $9 = (___strchrnul($0,$8)|0);
  35087. $$019$sink = $9;
  35088. }
  35089. $35 = $$019$sink;
  35090. $36 = $0;
  35091. $37 = (($35) - ($36))|0;
  35092. STACKTOP = sp;return ($37|0);
  35093. }
  35094. function _strcat($0,$1) {
  35095. $0 = $0|0;
  35096. $1 = $1|0;
  35097. var $2 = 0, $3 = 0, label = 0, sp = 0;
  35098. sp = STACKTOP;
  35099. $2 = (_strlen($0)|0);
  35100. $3 = (($0) + ($2)|0);
  35101. (_strcpy($3,$1)|0);
  35102. return ($0|0);
  35103. }
  35104. function _strtok($0,$1) {
  35105. $0 = $0|0;
  35106. $1 = $1|0;
  35107. 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;
  35108. sp = STACKTOP;
  35109. $2 = ($0|0)==(0|0);
  35110. if ($2) {
  35111. $3 = HEAP32[5027]|0;
  35112. $4 = ($3|0)==(0|0);
  35113. if ($4) {
  35114. $$0 = 0;
  35115. } else {
  35116. $$010 = $3;
  35117. label = 3;
  35118. }
  35119. } else {
  35120. $$010 = $0;
  35121. label = 3;
  35122. }
  35123. do {
  35124. if ((label|0) == 3) {
  35125. $5 = (_strspn($$010,$1)|0);
  35126. $6 = (($$010) + ($5)|0);
  35127. $7 = HEAP8[$6>>0]|0;
  35128. $8 = ($7<<24>>24)==(0);
  35129. if ($8) {
  35130. HEAP32[5027] = 0;
  35131. $$0 = 0;
  35132. break;
  35133. }
  35134. $9 = (_strcspn($6,$1)|0);
  35135. $10 = (($6) + ($9)|0);
  35136. HEAP32[5027] = $10;
  35137. $11 = HEAP8[$10>>0]|0;
  35138. $12 = ($11<<24>>24)==(0);
  35139. if ($12) {
  35140. HEAP32[5027] = 0;
  35141. $$0 = $6;
  35142. break;
  35143. } else {
  35144. $13 = ((($10)) + 1|0);
  35145. HEAP32[5027] = $13;
  35146. HEAP8[$10>>0] = 0;
  35147. $$0 = $6;
  35148. break;
  35149. }
  35150. }
  35151. } while(0);
  35152. return ($$0|0);
  35153. }
  35154. function _malloc($0) {
  35155. $0 = $0|0;
  35156. 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;
  35157. 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;
  35158. 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;
  35159. 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;
  35160. 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;
  35161. 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;
  35162. 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;
  35163. 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;
  35164. 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;
  35165. 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;
  35166. 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;
  35167. 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;
  35168. 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;
  35169. 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;
  35170. 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;
  35171. 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;
  35172. 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;
  35173. 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;
  35174. 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;
  35175. 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;
  35176. 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;
  35177. 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;
  35178. 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;
  35179. 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;
  35180. 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;
  35181. 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;
  35182. 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;
  35183. 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;
  35184. 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;
  35185. 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;
  35186. 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;
  35187. 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;
  35188. 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;
  35189. 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;
  35190. 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;
  35191. 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;
  35192. 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;
  35193. 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;
  35194. 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;
  35195. 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;
  35196. 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;
  35197. 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;
  35198. 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;
  35199. 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;
  35200. 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;
  35201. 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;
  35202. 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;
  35203. 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;
  35204. 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;
  35205. 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;
  35206. 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;
  35207. 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;
  35208. 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;
  35209. 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;
  35210. 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;
  35211. 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;
  35212. 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;
  35213. 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;
  35214. 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;
  35215. sp = STACKTOP;
  35216. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  35217. $1 = sp;
  35218. $2 = ($0>>>0)<(245);
  35219. do {
  35220. if ($2) {
  35221. $3 = ($0>>>0)<(11);
  35222. $4 = (($0) + 11)|0;
  35223. $5 = $4 & -8;
  35224. $6 = $3 ? 16 : $5;
  35225. $7 = $6 >>> 3;
  35226. $8 = HEAP32[5028]|0;
  35227. $9 = $8 >>> $7;
  35228. $10 = $9 & 3;
  35229. $11 = ($10|0)==(0);
  35230. if (!($11)) {
  35231. $12 = $9 & 1;
  35232. $13 = $12 ^ 1;
  35233. $14 = (($13) + ($7))|0;
  35234. $15 = $14 << 1;
  35235. $16 = (20152 + ($15<<2)|0);
  35236. $17 = ((($16)) + 8|0);
  35237. $18 = HEAP32[$17>>2]|0;
  35238. $19 = ((($18)) + 8|0);
  35239. $20 = HEAP32[$19>>2]|0;
  35240. $21 = ($16|0)==($20|0);
  35241. do {
  35242. if ($21) {
  35243. $22 = 1 << $14;
  35244. $23 = $22 ^ -1;
  35245. $24 = $8 & $23;
  35246. HEAP32[5028] = $24;
  35247. } else {
  35248. $25 = HEAP32[(20128)>>2]|0;
  35249. $26 = ($20>>>0)<($25>>>0);
  35250. if ($26) {
  35251. _abort();
  35252. // unreachable;
  35253. }
  35254. $27 = ((($20)) + 12|0);
  35255. $28 = HEAP32[$27>>2]|0;
  35256. $29 = ($28|0)==($18|0);
  35257. if ($29) {
  35258. HEAP32[$27>>2] = $16;
  35259. HEAP32[$17>>2] = $20;
  35260. break;
  35261. } else {
  35262. _abort();
  35263. // unreachable;
  35264. }
  35265. }
  35266. } while(0);
  35267. $30 = $14 << 3;
  35268. $31 = $30 | 3;
  35269. $32 = ((($18)) + 4|0);
  35270. HEAP32[$32>>2] = $31;
  35271. $33 = (($18) + ($30)|0);
  35272. $34 = ((($33)) + 4|0);
  35273. $35 = HEAP32[$34>>2]|0;
  35274. $36 = $35 | 1;
  35275. HEAP32[$34>>2] = $36;
  35276. $$0 = $19;
  35277. STACKTOP = sp;return ($$0|0);
  35278. }
  35279. $37 = HEAP32[(20120)>>2]|0;
  35280. $38 = ($6>>>0)>($37>>>0);
  35281. if ($38) {
  35282. $39 = ($9|0)==(0);
  35283. if (!($39)) {
  35284. $40 = $9 << $7;
  35285. $41 = 2 << $7;
  35286. $42 = (0 - ($41))|0;
  35287. $43 = $41 | $42;
  35288. $44 = $40 & $43;
  35289. $45 = (0 - ($44))|0;
  35290. $46 = $44 & $45;
  35291. $47 = (($46) + -1)|0;
  35292. $48 = $47 >>> 12;
  35293. $49 = $48 & 16;
  35294. $50 = $47 >>> $49;
  35295. $51 = $50 >>> 5;
  35296. $52 = $51 & 8;
  35297. $53 = $52 | $49;
  35298. $54 = $50 >>> $52;
  35299. $55 = $54 >>> 2;
  35300. $56 = $55 & 4;
  35301. $57 = $53 | $56;
  35302. $58 = $54 >>> $56;
  35303. $59 = $58 >>> 1;
  35304. $60 = $59 & 2;
  35305. $61 = $57 | $60;
  35306. $62 = $58 >>> $60;
  35307. $63 = $62 >>> 1;
  35308. $64 = $63 & 1;
  35309. $65 = $61 | $64;
  35310. $66 = $62 >>> $64;
  35311. $67 = (($65) + ($66))|0;
  35312. $68 = $67 << 1;
  35313. $69 = (20152 + ($68<<2)|0);
  35314. $70 = ((($69)) + 8|0);
  35315. $71 = HEAP32[$70>>2]|0;
  35316. $72 = ((($71)) + 8|0);
  35317. $73 = HEAP32[$72>>2]|0;
  35318. $74 = ($69|0)==($73|0);
  35319. do {
  35320. if ($74) {
  35321. $75 = 1 << $67;
  35322. $76 = $75 ^ -1;
  35323. $77 = $8 & $76;
  35324. HEAP32[5028] = $77;
  35325. $98 = $77;
  35326. } else {
  35327. $78 = HEAP32[(20128)>>2]|0;
  35328. $79 = ($73>>>0)<($78>>>0);
  35329. if ($79) {
  35330. _abort();
  35331. // unreachable;
  35332. }
  35333. $80 = ((($73)) + 12|0);
  35334. $81 = HEAP32[$80>>2]|0;
  35335. $82 = ($81|0)==($71|0);
  35336. if ($82) {
  35337. HEAP32[$80>>2] = $69;
  35338. HEAP32[$70>>2] = $73;
  35339. $98 = $8;
  35340. break;
  35341. } else {
  35342. _abort();
  35343. // unreachable;
  35344. }
  35345. }
  35346. } while(0);
  35347. $83 = $67 << 3;
  35348. $84 = (($83) - ($6))|0;
  35349. $85 = $6 | 3;
  35350. $86 = ((($71)) + 4|0);
  35351. HEAP32[$86>>2] = $85;
  35352. $87 = (($71) + ($6)|0);
  35353. $88 = $84 | 1;
  35354. $89 = ((($87)) + 4|0);
  35355. HEAP32[$89>>2] = $88;
  35356. $90 = (($87) + ($84)|0);
  35357. HEAP32[$90>>2] = $84;
  35358. $91 = ($37|0)==(0);
  35359. if (!($91)) {
  35360. $92 = HEAP32[(20132)>>2]|0;
  35361. $93 = $37 >>> 3;
  35362. $94 = $93 << 1;
  35363. $95 = (20152 + ($94<<2)|0);
  35364. $96 = 1 << $93;
  35365. $97 = $98 & $96;
  35366. $99 = ($97|0)==(0);
  35367. if ($99) {
  35368. $100 = $98 | $96;
  35369. HEAP32[5028] = $100;
  35370. $$pre = ((($95)) + 8|0);
  35371. $$0199 = $95;$$pre$phiZ2D = $$pre;
  35372. } else {
  35373. $101 = ((($95)) + 8|0);
  35374. $102 = HEAP32[$101>>2]|0;
  35375. $103 = HEAP32[(20128)>>2]|0;
  35376. $104 = ($102>>>0)<($103>>>0);
  35377. if ($104) {
  35378. _abort();
  35379. // unreachable;
  35380. } else {
  35381. $$0199 = $102;$$pre$phiZ2D = $101;
  35382. }
  35383. }
  35384. HEAP32[$$pre$phiZ2D>>2] = $92;
  35385. $105 = ((($$0199)) + 12|0);
  35386. HEAP32[$105>>2] = $92;
  35387. $106 = ((($92)) + 8|0);
  35388. HEAP32[$106>>2] = $$0199;
  35389. $107 = ((($92)) + 12|0);
  35390. HEAP32[$107>>2] = $95;
  35391. }
  35392. HEAP32[(20120)>>2] = $84;
  35393. HEAP32[(20132)>>2] = $87;
  35394. $$0 = $72;
  35395. STACKTOP = sp;return ($$0|0);
  35396. }
  35397. $108 = HEAP32[(20116)>>2]|0;
  35398. $109 = ($108|0)==(0);
  35399. if ($109) {
  35400. $$0197 = $6;
  35401. } else {
  35402. $110 = (0 - ($108))|0;
  35403. $111 = $108 & $110;
  35404. $112 = (($111) + -1)|0;
  35405. $113 = $112 >>> 12;
  35406. $114 = $113 & 16;
  35407. $115 = $112 >>> $114;
  35408. $116 = $115 >>> 5;
  35409. $117 = $116 & 8;
  35410. $118 = $117 | $114;
  35411. $119 = $115 >>> $117;
  35412. $120 = $119 >>> 2;
  35413. $121 = $120 & 4;
  35414. $122 = $118 | $121;
  35415. $123 = $119 >>> $121;
  35416. $124 = $123 >>> 1;
  35417. $125 = $124 & 2;
  35418. $126 = $122 | $125;
  35419. $127 = $123 >>> $125;
  35420. $128 = $127 >>> 1;
  35421. $129 = $128 & 1;
  35422. $130 = $126 | $129;
  35423. $131 = $127 >>> $129;
  35424. $132 = (($130) + ($131))|0;
  35425. $133 = (20416 + ($132<<2)|0);
  35426. $134 = HEAP32[$133>>2]|0;
  35427. $135 = ((($134)) + 4|0);
  35428. $136 = HEAP32[$135>>2]|0;
  35429. $137 = $136 & -8;
  35430. $138 = (($137) - ($6))|0;
  35431. $139 = ((($134)) + 16|0);
  35432. $140 = HEAP32[$139>>2]|0;
  35433. $not$5$i = ($140|0)==(0|0);
  35434. $$sink16$i = $not$5$i&1;
  35435. $141 = (((($134)) + 16|0) + ($$sink16$i<<2)|0);
  35436. $142 = HEAP32[$141>>2]|0;
  35437. $143 = ($142|0)==(0|0);
  35438. if ($143) {
  35439. $$0192$lcssa$i = $134;$$0193$lcssa$i = $138;
  35440. } else {
  35441. $$01928$i = $134;$$01937$i = $138;$145 = $142;
  35442. while(1) {
  35443. $144 = ((($145)) + 4|0);
  35444. $146 = HEAP32[$144>>2]|0;
  35445. $147 = $146 & -8;
  35446. $148 = (($147) - ($6))|0;
  35447. $149 = ($148>>>0)<($$01937$i>>>0);
  35448. $$$0193$i = $149 ? $148 : $$01937$i;
  35449. $$$0192$i = $149 ? $145 : $$01928$i;
  35450. $150 = ((($145)) + 16|0);
  35451. $151 = HEAP32[$150>>2]|0;
  35452. $not$$i = ($151|0)==(0|0);
  35453. $$sink1$i = $not$$i&1;
  35454. $152 = (((($145)) + 16|0) + ($$sink1$i<<2)|0);
  35455. $153 = HEAP32[$152>>2]|0;
  35456. $154 = ($153|0)==(0|0);
  35457. if ($154) {
  35458. $$0192$lcssa$i = $$$0192$i;$$0193$lcssa$i = $$$0193$i;
  35459. break;
  35460. } else {
  35461. $$01928$i = $$$0192$i;$$01937$i = $$$0193$i;$145 = $153;
  35462. }
  35463. }
  35464. }
  35465. $155 = HEAP32[(20128)>>2]|0;
  35466. $156 = ($$0192$lcssa$i>>>0)<($155>>>0);
  35467. if ($156) {
  35468. _abort();
  35469. // unreachable;
  35470. }
  35471. $157 = (($$0192$lcssa$i) + ($6)|0);
  35472. $158 = ($$0192$lcssa$i>>>0)<($157>>>0);
  35473. if (!($158)) {
  35474. _abort();
  35475. // unreachable;
  35476. }
  35477. $159 = ((($$0192$lcssa$i)) + 24|0);
  35478. $160 = HEAP32[$159>>2]|0;
  35479. $161 = ((($$0192$lcssa$i)) + 12|0);
  35480. $162 = HEAP32[$161>>2]|0;
  35481. $163 = ($162|0)==($$0192$lcssa$i|0);
  35482. do {
  35483. if ($163) {
  35484. $173 = ((($$0192$lcssa$i)) + 20|0);
  35485. $174 = HEAP32[$173>>2]|0;
  35486. $175 = ($174|0)==(0|0);
  35487. if ($175) {
  35488. $176 = ((($$0192$lcssa$i)) + 16|0);
  35489. $177 = HEAP32[$176>>2]|0;
  35490. $178 = ($177|0)==(0|0);
  35491. if ($178) {
  35492. $$3$i = 0;
  35493. break;
  35494. } else {
  35495. $$1196$i = $177;$$1198$i = $176;
  35496. }
  35497. } else {
  35498. $$1196$i = $174;$$1198$i = $173;
  35499. }
  35500. while(1) {
  35501. $179 = ((($$1196$i)) + 20|0);
  35502. $180 = HEAP32[$179>>2]|0;
  35503. $181 = ($180|0)==(0|0);
  35504. if (!($181)) {
  35505. $$1196$i = $180;$$1198$i = $179;
  35506. continue;
  35507. }
  35508. $182 = ((($$1196$i)) + 16|0);
  35509. $183 = HEAP32[$182>>2]|0;
  35510. $184 = ($183|0)==(0|0);
  35511. if ($184) {
  35512. break;
  35513. } else {
  35514. $$1196$i = $183;$$1198$i = $182;
  35515. }
  35516. }
  35517. $185 = ($$1198$i>>>0)<($155>>>0);
  35518. if ($185) {
  35519. _abort();
  35520. // unreachable;
  35521. } else {
  35522. HEAP32[$$1198$i>>2] = 0;
  35523. $$3$i = $$1196$i;
  35524. break;
  35525. }
  35526. } else {
  35527. $164 = ((($$0192$lcssa$i)) + 8|0);
  35528. $165 = HEAP32[$164>>2]|0;
  35529. $166 = ($165>>>0)<($155>>>0);
  35530. if ($166) {
  35531. _abort();
  35532. // unreachable;
  35533. }
  35534. $167 = ((($165)) + 12|0);
  35535. $168 = HEAP32[$167>>2]|0;
  35536. $169 = ($168|0)==($$0192$lcssa$i|0);
  35537. if (!($169)) {
  35538. _abort();
  35539. // unreachable;
  35540. }
  35541. $170 = ((($162)) + 8|0);
  35542. $171 = HEAP32[$170>>2]|0;
  35543. $172 = ($171|0)==($$0192$lcssa$i|0);
  35544. if ($172) {
  35545. HEAP32[$167>>2] = $162;
  35546. HEAP32[$170>>2] = $165;
  35547. $$3$i = $162;
  35548. break;
  35549. } else {
  35550. _abort();
  35551. // unreachable;
  35552. }
  35553. }
  35554. } while(0);
  35555. $186 = ($160|0)==(0|0);
  35556. L73: do {
  35557. if (!($186)) {
  35558. $187 = ((($$0192$lcssa$i)) + 28|0);
  35559. $188 = HEAP32[$187>>2]|0;
  35560. $189 = (20416 + ($188<<2)|0);
  35561. $190 = HEAP32[$189>>2]|0;
  35562. $191 = ($$0192$lcssa$i|0)==($190|0);
  35563. do {
  35564. if ($191) {
  35565. HEAP32[$189>>2] = $$3$i;
  35566. $cond$i = ($$3$i|0)==(0|0);
  35567. if ($cond$i) {
  35568. $192 = 1 << $188;
  35569. $193 = $192 ^ -1;
  35570. $194 = $108 & $193;
  35571. HEAP32[(20116)>>2] = $194;
  35572. break L73;
  35573. }
  35574. } else {
  35575. $195 = HEAP32[(20128)>>2]|0;
  35576. $196 = ($160>>>0)<($195>>>0);
  35577. if ($196) {
  35578. _abort();
  35579. // unreachable;
  35580. } else {
  35581. $197 = ((($160)) + 16|0);
  35582. $198 = HEAP32[$197>>2]|0;
  35583. $not$1$i = ($198|0)!=($$0192$lcssa$i|0);
  35584. $$sink2$i = $not$1$i&1;
  35585. $199 = (((($160)) + 16|0) + ($$sink2$i<<2)|0);
  35586. HEAP32[$199>>2] = $$3$i;
  35587. $200 = ($$3$i|0)==(0|0);
  35588. if ($200) {
  35589. break L73;
  35590. } else {
  35591. break;
  35592. }
  35593. }
  35594. }
  35595. } while(0);
  35596. $201 = HEAP32[(20128)>>2]|0;
  35597. $202 = ($$3$i>>>0)<($201>>>0);
  35598. if ($202) {
  35599. _abort();
  35600. // unreachable;
  35601. }
  35602. $203 = ((($$3$i)) + 24|0);
  35603. HEAP32[$203>>2] = $160;
  35604. $204 = ((($$0192$lcssa$i)) + 16|0);
  35605. $205 = HEAP32[$204>>2]|0;
  35606. $206 = ($205|0)==(0|0);
  35607. do {
  35608. if (!($206)) {
  35609. $207 = ($205>>>0)<($201>>>0);
  35610. if ($207) {
  35611. _abort();
  35612. // unreachable;
  35613. } else {
  35614. $208 = ((($$3$i)) + 16|0);
  35615. HEAP32[$208>>2] = $205;
  35616. $209 = ((($205)) + 24|0);
  35617. HEAP32[$209>>2] = $$3$i;
  35618. break;
  35619. }
  35620. }
  35621. } while(0);
  35622. $210 = ((($$0192$lcssa$i)) + 20|0);
  35623. $211 = HEAP32[$210>>2]|0;
  35624. $212 = ($211|0)==(0|0);
  35625. if (!($212)) {
  35626. $213 = HEAP32[(20128)>>2]|0;
  35627. $214 = ($211>>>0)<($213>>>0);
  35628. if ($214) {
  35629. _abort();
  35630. // unreachable;
  35631. } else {
  35632. $215 = ((($$3$i)) + 20|0);
  35633. HEAP32[$215>>2] = $211;
  35634. $216 = ((($211)) + 24|0);
  35635. HEAP32[$216>>2] = $$3$i;
  35636. break;
  35637. }
  35638. }
  35639. }
  35640. } while(0);
  35641. $217 = ($$0193$lcssa$i>>>0)<(16);
  35642. if ($217) {
  35643. $218 = (($$0193$lcssa$i) + ($6))|0;
  35644. $219 = $218 | 3;
  35645. $220 = ((($$0192$lcssa$i)) + 4|0);
  35646. HEAP32[$220>>2] = $219;
  35647. $221 = (($$0192$lcssa$i) + ($218)|0);
  35648. $222 = ((($221)) + 4|0);
  35649. $223 = HEAP32[$222>>2]|0;
  35650. $224 = $223 | 1;
  35651. HEAP32[$222>>2] = $224;
  35652. } else {
  35653. $225 = $6 | 3;
  35654. $226 = ((($$0192$lcssa$i)) + 4|0);
  35655. HEAP32[$226>>2] = $225;
  35656. $227 = $$0193$lcssa$i | 1;
  35657. $228 = ((($157)) + 4|0);
  35658. HEAP32[$228>>2] = $227;
  35659. $229 = (($157) + ($$0193$lcssa$i)|0);
  35660. HEAP32[$229>>2] = $$0193$lcssa$i;
  35661. $230 = ($37|0)==(0);
  35662. if (!($230)) {
  35663. $231 = HEAP32[(20132)>>2]|0;
  35664. $232 = $37 >>> 3;
  35665. $233 = $232 << 1;
  35666. $234 = (20152 + ($233<<2)|0);
  35667. $235 = 1 << $232;
  35668. $236 = $8 & $235;
  35669. $237 = ($236|0)==(0);
  35670. if ($237) {
  35671. $238 = $8 | $235;
  35672. HEAP32[5028] = $238;
  35673. $$pre$i = ((($234)) + 8|0);
  35674. $$0189$i = $234;$$pre$phi$iZ2D = $$pre$i;
  35675. } else {
  35676. $239 = ((($234)) + 8|0);
  35677. $240 = HEAP32[$239>>2]|0;
  35678. $241 = HEAP32[(20128)>>2]|0;
  35679. $242 = ($240>>>0)<($241>>>0);
  35680. if ($242) {
  35681. _abort();
  35682. // unreachable;
  35683. } else {
  35684. $$0189$i = $240;$$pre$phi$iZ2D = $239;
  35685. }
  35686. }
  35687. HEAP32[$$pre$phi$iZ2D>>2] = $231;
  35688. $243 = ((($$0189$i)) + 12|0);
  35689. HEAP32[$243>>2] = $231;
  35690. $244 = ((($231)) + 8|0);
  35691. HEAP32[$244>>2] = $$0189$i;
  35692. $245 = ((($231)) + 12|0);
  35693. HEAP32[$245>>2] = $234;
  35694. }
  35695. HEAP32[(20120)>>2] = $$0193$lcssa$i;
  35696. HEAP32[(20132)>>2] = $157;
  35697. }
  35698. $246 = ((($$0192$lcssa$i)) + 8|0);
  35699. $$0 = $246;
  35700. STACKTOP = sp;return ($$0|0);
  35701. }
  35702. } else {
  35703. $$0197 = $6;
  35704. }
  35705. } else {
  35706. $247 = ($0>>>0)>(4294967231);
  35707. if ($247) {
  35708. $$0197 = -1;
  35709. } else {
  35710. $248 = (($0) + 11)|0;
  35711. $249 = $248 & -8;
  35712. $250 = HEAP32[(20116)>>2]|0;
  35713. $251 = ($250|0)==(0);
  35714. if ($251) {
  35715. $$0197 = $249;
  35716. } else {
  35717. $252 = (0 - ($249))|0;
  35718. $253 = $248 >>> 8;
  35719. $254 = ($253|0)==(0);
  35720. if ($254) {
  35721. $$0358$i = 0;
  35722. } else {
  35723. $255 = ($249>>>0)>(16777215);
  35724. if ($255) {
  35725. $$0358$i = 31;
  35726. } else {
  35727. $256 = (($253) + 1048320)|0;
  35728. $257 = $256 >>> 16;
  35729. $258 = $257 & 8;
  35730. $259 = $253 << $258;
  35731. $260 = (($259) + 520192)|0;
  35732. $261 = $260 >>> 16;
  35733. $262 = $261 & 4;
  35734. $263 = $262 | $258;
  35735. $264 = $259 << $262;
  35736. $265 = (($264) + 245760)|0;
  35737. $266 = $265 >>> 16;
  35738. $267 = $266 & 2;
  35739. $268 = $263 | $267;
  35740. $269 = (14 - ($268))|0;
  35741. $270 = $264 << $267;
  35742. $271 = $270 >>> 15;
  35743. $272 = (($269) + ($271))|0;
  35744. $273 = $272 << 1;
  35745. $274 = (($272) + 7)|0;
  35746. $275 = $249 >>> $274;
  35747. $276 = $275 & 1;
  35748. $277 = $276 | $273;
  35749. $$0358$i = $277;
  35750. }
  35751. }
  35752. $278 = (20416 + ($$0358$i<<2)|0);
  35753. $279 = HEAP32[$278>>2]|0;
  35754. $280 = ($279|0)==(0|0);
  35755. L117: do {
  35756. if ($280) {
  35757. $$2355$i = 0;$$3$i201 = 0;$$3350$i = $252;
  35758. label = 81;
  35759. } else {
  35760. $281 = ($$0358$i|0)==(31);
  35761. $282 = $$0358$i >>> 1;
  35762. $283 = (25 - ($282))|0;
  35763. $284 = $281 ? 0 : $283;
  35764. $285 = $249 << $284;
  35765. $$0342$i = 0;$$0347$i = $252;$$0353$i = $279;$$0359$i = $285;$$0362$i = 0;
  35766. while(1) {
  35767. $286 = ((($$0353$i)) + 4|0);
  35768. $287 = HEAP32[$286>>2]|0;
  35769. $288 = $287 & -8;
  35770. $289 = (($288) - ($249))|0;
  35771. $290 = ($289>>>0)<($$0347$i>>>0);
  35772. if ($290) {
  35773. $291 = ($289|0)==(0);
  35774. if ($291) {
  35775. $$415$i = $$0353$i;$$435114$i = 0;$$435713$i = $$0353$i;
  35776. label = 85;
  35777. break L117;
  35778. } else {
  35779. $$1343$i = $$0353$i;$$1348$i = $289;
  35780. }
  35781. } else {
  35782. $$1343$i = $$0342$i;$$1348$i = $$0347$i;
  35783. }
  35784. $292 = ((($$0353$i)) + 20|0);
  35785. $293 = HEAP32[$292>>2]|0;
  35786. $294 = $$0359$i >>> 31;
  35787. $295 = (((($$0353$i)) + 16|0) + ($294<<2)|0);
  35788. $296 = HEAP32[$295>>2]|0;
  35789. $297 = ($293|0)==(0|0);
  35790. $298 = ($293|0)==($296|0);
  35791. $or$cond2$i = $297 | $298;
  35792. $$1363$i = $or$cond2$i ? $$0362$i : $293;
  35793. $299 = ($296|0)==(0|0);
  35794. $not$8$i = $299 ^ 1;
  35795. $300 = $not$8$i&1;
  35796. $$0359$$i = $$0359$i << $300;
  35797. if ($299) {
  35798. $$2355$i = $$1363$i;$$3$i201 = $$1343$i;$$3350$i = $$1348$i;
  35799. label = 81;
  35800. break;
  35801. } else {
  35802. $$0342$i = $$1343$i;$$0347$i = $$1348$i;$$0353$i = $296;$$0359$i = $$0359$$i;$$0362$i = $$1363$i;
  35803. }
  35804. }
  35805. }
  35806. } while(0);
  35807. if ((label|0) == 81) {
  35808. $301 = ($$2355$i|0)==(0|0);
  35809. $302 = ($$3$i201|0)==(0|0);
  35810. $or$cond$i = $301 & $302;
  35811. if ($or$cond$i) {
  35812. $303 = 2 << $$0358$i;
  35813. $304 = (0 - ($303))|0;
  35814. $305 = $303 | $304;
  35815. $306 = $250 & $305;
  35816. $307 = ($306|0)==(0);
  35817. if ($307) {
  35818. $$0197 = $249;
  35819. break;
  35820. }
  35821. $308 = (0 - ($306))|0;
  35822. $309 = $306 & $308;
  35823. $310 = (($309) + -1)|0;
  35824. $311 = $310 >>> 12;
  35825. $312 = $311 & 16;
  35826. $313 = $310 >>> $312;
  35827. $314 = $313 >>> 5;
  35828. $315 = $314 & 8;
  35829. $316 = $315 | $312;
  35830. $317 = $313 >>> $315;
  35831. $318 = $317 >>> 2;
  35832. $319 = $318 & 4;
  35833. $320 = $316 | $319;
  35834. $321 = $317 >>> $319;
  35835. $322 = $321 >>> 1;
  35836. $323 = $322 & 2;
  35837. $324 = $320 | $323;
  35838. $325 = $321 >>> $323;
  35839. $326 = $325 >>> 1;
  35840. $327 = $326 & 1;
  35841. $328 = $324 | $327;
  35842. $329 = $325 >>> $327;
  35843. $330 = (($328) + ($329))|0;
  35844. $331 = (20416 + ($330<<2)|0);
  35845. $332 = HEAP32[$331>>2]|0;
  35846. $$4$ph$i = 0;$$4357$ph$i = $332;
  35847. } else {
  35848. $$4$ph$i = $$3$i201;$$4357$ph$i = $$2355$i;
  35849. }
  35850. $333 = ($$4357$ph$i|0)==(0|0);
  35851. if ($333) {
  35852. $$4$lcssa$i = $$4$ph$i;$$4351$lcssa$i = $$3350$i;
  35853. } else {
  35854. $$415$i = $$4$ph$i;$$435114$i = $$3350$i;$$435713$i = $$4357$ph$i;
  35855. label = 85;
  35856. }
  35857. }
  35858. if ((label|0) == 85) {
  35859. while(1) {
  35860. label = 0;
  35861. $334 = ((($$435713$i)) + 4|0);
  35862. $335 = HEAP32[$334>>2]|0;
  35863. $336 = $335 & -8;
  35864. $337 = (($336) - ($249))|0;
  35865. $338 = ($337>>>0)<($$435114$i>>>0);
  35866. $$$4351$i = $338 ? $337 : $$435114$i;
  35867. $$4357$$4$i = $338 ? $$435713$i : $$415$i;
  35868. $339 = ((($$435713$i)) + 16|0);
  35869. $340 = HEAP32[$339>>2]|0;
  35870. $not$1$i203 = ($340|0)==(0|0);
  35871. $$sink2$i204 = $not$1$i203&1;
  35872. $341 = (((($$435713$i)) + 16|0) + ($$sink2$i204<<2)|0);
  35873. $342 = HEAP32[$341>>2]|0;
  35874. $343 = ($342|0)==(0|0);
  35875. if ($343) {
  35876. $$4$lcssa$i = $$4357$$4$i;$$4351$lcssa$i = $$$4351$i;
  35877. break;
  35878. } else {
  35879. $$415$i = $$4357$$4$i;$$435114$i = $$$4351$i;$$435713$i = $342;
  35880. label = 85;
  35881. }
  35882. }
  35883. }
  35884. $344 = ($$4$lcssa$i|0)==(0|0);
  35885. if ($344) {
  35886. $$0197 = $249;
  35887. } else {
  35888. $345 = HEAP32[(20120)>>2]|0;
  35889. $346 = (($345) - ($249))|0;
  35890. $347 = ($$4351$lcssa$i>>>0)<($346>>>0);
  35891. if ($347) {
  35892. $348 = HEAP32[(20128)>>2]|0;
  35893. $349 = ($$4$lcssa$i>>>0)<($348>>>0);
  35894. if ($349) {
  35895. _abort();
  35896. // unreachable;
  35897. }
  35898. $350 = (($$4$lcssa$i) + ($249)|0);
  35899. $351 = ($$4$lcssa$i>>>0)<($350>>>0);
  35900. if (!($351)) {
  35901. _abort();
  35902. // unreachable;
  35903. }
  35904. $352 = ((($$4$lcssa$i)) + 24|0);
  35905. $353 = HEAP32[$352>>2]|0;
  35906. $354 = ((($$4$lcssa$i)) + 12|0);
  35907. $355 = HEAP32[$354>>2]|0;
  35908. $356 = ($355|0)==($$4$lcssa$i|0);
  35909. do {
  35910. if ($356) {
  35911. $366 = ((($$4$lcssa$i)) + 20|0);
  35912. $367 = HEAP32[$366>>2]|0;
  35913. $368 = ($367|0)==(0|0);
  35914. if ($368) {
  35915. $369 = ((($$4$lcssa$i)) + 16|0);
  35916. $370 = HEAP32[$369>>2]|0;
  35917. $371 = ($370|0)==(0|0);
  35918. if ($371) {
  35919. $$3372$i = 0;
  35920. break;
  35921. } else {
  35922. $$1370$i = $370;$$1374$i = $369;
  35923. }
  35924. } else {
  35925. $$1370$i = $367;$$1374$i = $366;
  35926. }
  35927. while(1) {
  35928. $372 = ((($$1370$i)) + 20|0);
  35929. $373 = HEAP32[$372>>2]|0;
  35930. $374 = ($373|0)==(0|0);
  35931. if (!($374)) {
  35932. $$1370$i = $373;$$1374$i = $372;
  35933. continue;
  35934. }
  35935. $375 = ((($$1370$i)) + 16|0);
  35936. $376 = HEAP32[$375>>2]|0;
  35937. $377 = ($376|0)==(0|0);
  35938. if ($377) {
  35939. break;
  35940. } else {
  35941. $$1370$i = $376;$$1374$i = $375;
  35942. }
  35943. }
  35944. $378 = ($$1374$i>>>0)<($348>>>0);
  35945. if ($378) {
  35946. _abort();
  35947. // unreachable;
  35948. } else {
  35949. HEAP32[$$1374$i>>2] = 0;
  35950. $$3372$i = $$1370$i;
  35951. break;
  35952. }
  35953. } else {
  35954. $357 = ((($$4$lcssa$i)) + 8|0);
  35955. $358 = HEAP32[$357>>2]|0;
  35956. $359 = ($358>>>0)<($348>>>0);
  35957. if ($359) {
  35958. _abort();
  35959. // unreachable;
  35960. }
  35961. $360 = ((($358)) + 12|0);
  35962. $361 = HEAP32[$360>>2]|0;
  35963. $362 = ($361|0)==($$4$lcssa$i|0);
  35964. if (!($362)) {
  35965. _abort();
  35966. // unreachable;
  35967. }
  35968. $363 = ((($355)) + 8|0);
  35969. $364 = HEAP32[$363>>2]|0;
  35970. $365 = ($364|0)==($$4$lcssa$i|0);
  35971. if ($365) {
  35972. HEAP32[$360>>2] = $355;
  35973. HEAP32[$363>>2] = $358;
  35974. $$3372$i = $355;
  35975. break;
  35976. } else {
  35977. _abort();
  35978. // unreachable;
  35979. }
  35980. }
  35981. } while(0);
  35982. $379 = ($353|0)==(0|0);
  35983. L164: do {
  35984. if ($379) {
  35985. $470 = $250;
  35986. } else {
  35987. $380 = ((($$4$lcssa$i)) + 28|0);
  35988. $381 = HEAP32[$380>>2]|0;
  35989. $382 = (20416 + ($381<<2)|0);
  35990. $383 = HEAP32[$382>>2]|0;
  35991. $384 = ($$4$lcssa$i|0)==($383|0);
  35992. do {
  35993. if ($384) {
  35994. HEAP32[$382>>2] = $$3372$i;
  35995. $cond$i208 = ($$3372$i|0)==(0|0);
  35996. if ($cond$i208) {
  35997. $385 = 1 << $381;
  35998. $386 = $385 ^ -1;
  35999. $387 = $250 & $386;
  36000. HEAP32[(20116)>>2] = $387;
  36001. $470 = $387;
  36002. break L164;
  36003. }
  36004. } else {
  36005. $388 = HEAP32[(20128)>>2]|0;
  36006. $389 = ($353>>>0)<($388>>>0);
  36007. if ($389) {
  36008. _abort();
  36009. // unreachable;
  36010. } else {
  36011. $390 = ((($353)) + 16|0);
  36012. $391 = HEAP32[$390>>2]|0;
  36013. $not$$i209 = ($391|0)!=($$4$lcssa$i|0);
  36014. $$sink3$i = $not$$i209&1;
  36015. $392 = (((($353)) + 16|0) + ($$sink3$i<<2)|0);
  36016. HEAP32[$392>>2] = $$3372$i;
  36017. $393 = ($$3372$i|0)==(0|0);
  36018. if ($393) {
  36019. $470 = $250;
  36020. break L164;
  36021. } else {
  36022. break;
  36023. }
  36024. }
  36025. }
  36026. } while(0);
  36027. $394 = HEAP32[(20128)>>2]|0;
  36028. $395 = ($$3372$i>>>0)<($394>>>0);
  36029. if ($395) {
  36030. _abort();
  36031. // unreachable;
  36032. }
  36033. $396 = ((($$3372$i)) + 24|0);
  36034. HEAP32[$396>>2] = $353;
  36035. $397 = ((($$4$lcssa$i)) + 16|0);
  36036. $398 = HEAP32[$397>>2]|0;
  36037. $399 = ($398|0)==(0|0);
  36038. do {
  36039. if (!($399)) {
  36040. $400 = ($398>>>0)<($394>>>0);
  36041. if ($400) {
  36042. _abort();
  36043. // unreachable;
  36044. } else {
  36045. $401 = ((($$3372$i)) + 16|0);
  36046. HEAP32[$401>>2] = $398;
  36047. $402 = ((($398)) + 24|0);
  36048. HEAP32[$402>>2] = $$3372$i;
  36049. break;
  36050. }
  36051. }
  36052. } while(0);
  36053. $403 = ((($$4$lcssa$i)) + 20|0);
  36054. $404 = HEAP32[$403>>2]|0;
  36055. $405 = ($404|0)==(0|0);
  36056. if ($405) {
  36057. $470 = $250;
  36058. } else {
  36059. $406 = HEAP32[(20128)>>2]|0;
  36060. $407 = ($404>>>0)<($406>>>0);
  36061. if ($407) {
  36062. _abort();
  36063. // unreachable;
  36064. } else {
  36065. $408 = ((($$3372$i)) + 20|0);
  36066. HEAP32[$408>>2] = $404;
  36067. $409 = ((($404)) + 24|0);
  36068. HEAP32[$409>>2] = $$3372$i;
  36069. $470 = $250;
  36070. break;
  36071. }
  36072. }
  36073. }
  36074. } while(0);
  36075. $410 = ($$4351$lcssa$i>>>0)<(16);
  36076. do {
  36077. if ($410) {
  36078. $411 = (($$4351$lcssa$i) + ($249))|0;
  36079. $412 = $411 | 3;
  36080. $413 = ((($$4$lcssa$i)) + 4|0);
  36081. HEAP32[$413>>2] = $412;
  36082. $414 = (($$4$lcssa$i) + ($411)|0);
  36083. $415 = ((($414)) + 4|0);
  36084. $416 = HEAP32[$415>>2]|0;
  36085. $417 = $416 | 1;
  36086. HEAP32[$415>>2] = $417;
  36087. } else {
  36088. $418 = $249 | 3;
  36089. $419 = ((($$4$lcssa$i)) + 4|0);
  36090. HEAP32[$419>>2] = $418;
  36091. $420 = $$4351$lcssa$i | 1;
  36092. $421 = ((($350)) + 4|0);
  36093. HEAP32[$421>>2] = $420;
  36094. $422 = (($350) + ($$4351$lcssa$i)|0);
  36095. HEAP32[$422>>2] = $$4351$lcssa$i;
  36096. $423 = $$4351$lcssa$i >>> 3;
  36097. $424 = ($$4351$lcssa$i>>>0)<(256);
  36098. if ($424) {
  36099. $425 = $423 << 1;
  36100. $426 = (20152 + ($425<<2)|0);
  36101. $427 = HEAP32[5028]|0;
  36102. $428 = 1 << $423;
  36103. $429 = $427 & $428;
  36104. $430 = ($429|0)==(0);
  36105. if ($430) {
  36106. $431 = $427 | $428;
  36107. HEAP32[5028] = $431;
  36108. $$pre$i210 = ((($426)) + 8|0);
  36109. $$0368$i = $426;$$pre$phi$i211Z2D = $$pre$i210;
  36110. } else {
  36111. $432 = ((($426)) + 8|0);
  36112. $433 = HEAP32[$432>>2]|0;
  36113. $434 = HEAP32[(20128)>>2]|0;
  36114. $435 = ($433>>>0)<($434>>>0);
  36115. if ($435) {
  36116. _abort();
  36117. // unreachable;
  36118. } else {
  36119. $$0368$i = $433;$$pre$phi$i211Z2D = $432;
  36120. }
  36121. }
  36122. HEAP32[$$pre$phi$i211Z2D>>2] = $350;
  36123. $436 = ((($$0368$i)) + 12|0);
  36124. HEAP32[$436>>2] = $350;
  36125. $437 = ((($350)) + 8|0);
  36126. HEAP32[$437>>2] = $$0368$i;
  36127. $438 = ((($350)) + 12|0);
  36128. HEAP32[$438>>2] = $426;
  36129. break;
  36130. }
  36131. $439 = $$4351$lcssa$i >>> 8;
  36132. $440 = ($439|0)==(0);
  36133. if ($440) {
  36134. $$0361$i = 0;
  36135. } else {
  36136. $441 = ($$4351$lcssa$i>>>0)>(16777215);
  36137. if ($441) {
  36138. $$0361$i = 31;
  36139. } else {
  36140. $442 = (($439) + 1048320)|0;
  36141. $443 = $442 >>> 16;
  36142. $444 = $443 & 8;
  36143. $445 = $439 << $444;
  36144. $446 = (($445) + 520192)|0;
  36145. $447 = $446 >>> 16;
  36146. $448 = $447 & 4;
  36147. $449 = $448 | $444;
  36148. $450 = $445 << $448;
  36149. $451 = (($450) + 245760)|0;
  36150. $452 = $451 >>> 16;
  36151. $453 = $452 & 2;
  36152. $454 = $449 | $453;
  36153. $455 = (14 - ($454))|0;
  36154. $456 = $450 << $453;
  36155. $457 = $456 >>> 15;
  36156. $458 = (($455) + ($457))|0;
  36157. $459 = $458 << 1;
  36158. $460 = (($458) + 7)|0;
  36159. $461 = $$4351$lcssa$i >>> $460;
  36160. $462 = $461 & 1;
  36161. $463 = $462 | $459;
  36162. $$0361$i = $463;
  36163. }
  36164. }
  36165. $464 = (20416 + ($$0361$i<<2)|0);
  36166. $465 = ((($350)) + 28|0);
  36167. HEAP32[$465>>2] = $$0361$i;
  36168. $466 = ((($350)) + 16|0);
  36169. $467 = ((($466)) + 4|0);
  36170. HEAP32[$467>>2] = 0;
  36171. HEAP32[$466>>2] = 0;
  36172. $468 = 1 << $$0361$i;
  36173. $469 = $470 & $468;
  36174. $471 = ($469|0)==(0);
  36175. if ($471) {
  36176. $472 = $470 | $468;
  36177. HEAP32[(20116)>>2] = $472;
  36178. HEAP32[$464>>2] = $350;
  36179. $473 = ((($350)) + 24|0);
  36180. HEAP32[$473>>2] = $464;
  36181. $474 = ((($350)) + 12|0);
  36182. HEAP32[$474>>2] = $350;
  36183. $475 = ((($350)) + 8|0);
  36184. HEAP32[$475>>2] = $350;
  36185. break;
  36186. }
  36187. $476 = HEAP32[$464>>2]|0;
  36188. $477 = ($$0361$i|0)==(31);
  36189. $478 = $$0361$i >>> 1;
  36190. $479 = (25 - ($478))|0;
  36191. $480 = $477 ? 0 : $479;
  36192. $481 = $$4351$lcssa$i << $480;
  36193. $$0344$i = $481;$$0345$i = $476;
  36194. while(1) {
  36195. $482 = ((($$0345$i)) + 4|0);
  36196. $483 = HEAP32[$482>>2]|0;
  36197. $484 = $483 & -8;
  36198. $485 = ($484|0)==($$4351$lcssa$i|0);
  36199. if ($485) {
  36200. label = 139;
  36201. break;
  36202. }
  36203. $486 = $$0344$i >>> 31;
  36204. $487 = (((($$0345$i)) + 16|0) + ($486<<2)|0);
  36205. $488 = $$0344$i << 1;
  36206. $489 = HEAP32[$487>>2]|0;
  36207. $490 = ($489|0)==(0|0);
  36208. if ($490) {
  36209. label = 136;
  36210. break;
  36211. } else {
  36212. $$0344$i = $488;$$0345$i = $489;
  36213. }
  36214. }
  36215. if ((label|0) == 136) {
  36216. $491 = HEAP32[(20128)>>2]|0;
  36217. $492 = ($487>>>0)<($491>>>0);
  36218. if ($492) {
  36219. _abort();
  36220. // unreachable;
  36221. } else {
  36222. HEAP32[$487>>2] = $350;
  36223. $493 = ((($350)) + 24|0);
  36224. HEAP32[$493>>2] = $$0345$i;
  36225. $494 = ((($350)) + 12|0);
  36226. HEAP32[$494>>2] = $350;
  36227. $495 = ((($350)) + 8|0);
  36228. HEAP32[$495>>2] = $350;
  36229. break;
  36230. }
  36231. }
  36232. else if ((label|0) == 139) {
  36233. $496 = ((($$0345$i)) + 8|0);
  36234. $497 = HEAP32[$496>>2]|0;
  36235. $498 = HEAP32[(20128)>>2]|0;
  36236. $499 = ($497>>>0)>=($498>>>0);
  36237. $not$9$i = ($$0345$i>>>0)>=($498>>>0);
  36238. $500 = $499 & $not$9$i;
  36239. if ($500) {
  36240. $501 = ((($497)) + 12|0);
  36241. HEAP32[$501>>2] = $350;
  36242. HEAP32[$496>>2] = $350;
  36243. $502 = ((($350)) + 8|0);
  36244. HEAP32[$502>>2] = $497;
  36245. $503 = ((($350)) + 12|0);
  36246. HEAP32[$503>>2] = $$0345$i;
  36247. $504 = ((($350)) + 24|0);
  36248. HEAP32[$504>>2] = 0;
  36249. break;
  36250. } else {
  36251. _abort();
  36252. // unreachable;
  36253. }
  36254. }
  36255. }
  36256. } while(0);
  36257. $505 = ((($$4$lcssa$i)) + 8|0);
  36258. $$0 = $505;
  36259. STACKTOP = sp;return ($$0|0);
  36260. } else {
  36261. $$0197 = $249;
  36262. }
  36263. }
  36264. }
  36265. }
  36266. }
  36267. } while(0);
  36268. $506 = HEAP32[(20120)>>2]|0;
  36269. $507 = ($506>>>0)<($$0197>>>0);
  36270. if (!($507)) {
  36271. $508 = (($506) - ($$0197))|0;
  36272. $509 = HEAP32[(20132)>>2]|0;
  36273. $510 = ($508>>>0)>(15);
  36274. if ($510) {
  36275. $511 = (($509) + ($$0197)|0);
  36276. HEAP32[(20132)>>2] = $511;
  36277. HEAP32[(20120)>>2] = $508;
  36278. $512 = $508 | 1;
  36279. $513 = ((($511)) + 4|0);
  36280. HEAP32[$513>>2] = $512;
  36281. $514 = (($511) + ($508)|0);
  36282. HEAP32[$514>>2] = $508;
  36283. $515 = $$0197 | 3;
  36284. $516 = ((($509)) + 4|0);
  36285. HEAP32[$516>>2] = $515;
  36286. } else {
  36287. HEAP32[(20120)>>2] = 0;
  36288. HEAP32[(20132)>>2] = 0;
  36289. $517 = $506 | 3;
  36290. $518 = ((($509)) + 4|0);
  36291. HEAP32[$518>>2] = $517;
  36292. $519 = (($509) + ($506)|0);
  36293. $520 = ((($519)) + 4|0);
  36294. $521 = HEAP32[$520>>2]|0;
  36295. $522 = $521 | 1;
  36296. HEAP32[$520>>2] = $522;
  36297. }
  36298. $523 = ((($509)) + 8|0);
  36299. $$0 = $523;
  36300. STACKTOP = sp;return ($$0|0);
  36301. }
  36302. $524 = HEAP32[(20124)>>2]|0;
  36303. $525 = ($524>>>0)>($$0197>>>0);
  36304. if ($525) {
  36305. $526 = (($524) - ($$0197))|0;
  36306. HEAP32[(20124)>>2] = $526;
  36307. $527 = HEAP32[(20136)>>2]|0;
  36308. $528 = (($527) + ($$0197)|0);
  36309. HEAP32[(20136)>>2] = $528;
  36310. $529 = $526 | 1;
  36311. $530 = ((($528)) + 4|0);
  36312. HEAP32[$530>>2] = $529;
  36313. $531 = $$0197 | 3;
  36314. $532 = ((($527)) + 4|0);
  36315. HEAP32[$532>>2] = $531;
  36316. $533 = ((($527)) + 8|0);
  36317. $$0 = $533;
  36318. STACKTOP = sp;return ($$0|0);
  36319. }
  36320. $534 = HEAP32[5146]|0;
  36321. $535 = ($534|0)==(0);
  36322. if ($535) {
  36323. HEAP32[(20592)>>2] = 4096;
  36324. HEAP32[(20588)>>2] = 4096;
  36325. HEAP32[(20596)>>2] = -1;
  36326. HEAP32[(20600)>>2] = -1;
  36327. HEAP32[(20604)>>2] = 0;
  36328. HEAP32[(20556)>>2] = 0;
  36329. $536 = $1;
  36330. $537 = $536 & -16;
  36331. $538 = $537 ^ 1431655768;
  36332. HEAP32[$1>>2] = $538;
  36333. HEAP32[5146] = $538;
  36334. $542 = 4096;
  36335. } else {
  36336. $$pre$i212 = HEAP32[(20592)>>2]|0;
  36337. $542 = $$pre$i212;
  36338. }
  36339. $539 = (($$0197) + 48)|0;
  36340. $540 = (($$0197) + 47)|0;
  36341. $541 = (($542) + ($540))|0;
  36342. $543 = (0 - ($542))|0;
  36343. $544 = $541 & $543;
  36344. $545 = ($544>>>0)>($$0197>>>0);
  36345. if (!($545)) {
  36346. $$0 = 0;
  36347. STACKTOP = sp;return ($$0|0);
  36348. }
  36349. $546 = HEAP32[(20552)>>2]|0;
  36350. $547 = ($546|0)==(0);
  36351. if (!($547)) {
  36352. $548 = HEAP32[(20544)>>2]|0;
  36353. $549 = (($548) + ($544))|0;
  36354. $550 = ($549>>>0)<=($548>>>0);
  36355. $551 = ($549>>>0)>($546>>>0);
  36356. $or$cond1$i = $550 | $551;
  36357. if ($or$cond1$i) {
  36358. $$0 = 0;
  36359. STACKTOP = sp;return ($$0|0);
  36360. }
  36361. }
  36362. $552 = HEAP32[(20556)>>2]|0;
  36363. $553 = $552 & 4;
  36364. $554 = ($553|0)==(0);
  36365. L244: do {
  36366. if ($554) {
  36367. $555 = HEAP32[(20136)>>2]|0;
  36368. $556 = ($555|0)==(0|0);
  36369. L246: do {
  36370. if ($556) {
  36371. label = 163;
  36372. } else {
  36373. $$0$i$i = (20560);
  36374. while(1) {
  36375. $557 = HEAP32[$$0$i$i>>2]|0;
  36376. $558 = ($557>>>0)>($555>>>0);
  36377. if (!($558)) {
  36378. $559 = ((($$0$i$i)) + 4|0);
  36379. $560 = HEAP32[$559>>2]|0;
  36380. $561 = (($557) + ($560)|0);
  36381. $562 = ($561>>>0)>($555>>>0);
  36382. if ($562) {
  36383. break;
  36384. }
  36385. }
  36386. $563 = ((($$0$i$i)) + 8|0);
  36387. $564 = HEAP32[$563>>2]|0;
  36388. $565 = ($564|0)==(0|0);
  36389. if ($565) {
  36390. label = 163;
  36391. break L246;
  36392. } else {
  36393. $$0$i$i = $564;
  36394. }
  36395. }
  36396. $588 = (($541) - ($524))|0;
  36397. $589 = $588 & $543;
  36398. $590 = ($589>>>0)<(2147483647);
  36399. if ($590) {
  36400. $591 = (_sbrk(($589|0))|0);
  36401. $592 = HEAP32[$$0$i$i>>2]|0;
  36402. $593 = HEAP32[$559>>2]|0;
  36403. $594 = (($592) + ($593)|0);
  36404. $595 = ($591|0)==($594|0);
  36405. if ($595) {
  36406. $596 = ($591|0)==((-1)|0);
  36407. if ($596) {
  36408. $$2234253237$i = $589;
  36409. } else {
  36410. $$723948$i = $589;$$749$i = $591;
  36411. label = 180;
  36412. break L244;
  36413. }
  36414. } else {
  36415. $$2247$ph$i = $591;$$2253$ph$i = $589;
  36416. label = 171;
  36417. }
  36418. } else {
  36419. $$2234253237$i = 0;
  36420. }
  36421. }
  36422. } while(0);
  36423. do {
  36424. if ((label|0) == 163) {
  36425. $566 = (_sbrk(0)|0);
  36426. $567 = ($566|0)==((-1)|0);
  36427. if ($567) {
  36428. $$2234253237$i = 0;
  36429. } else {
  36430. $568 = $566;
  36431. $569 = HEAP32[(20588)>>2]|0;
  36432. $570 = (($569) + -1)|0;
  36433. $571 = $570 & $568;
  36434. $572 = ($571|0)==(0);
  36435. $573 = (($570) + ($568))|0;
  36436. $574 = (0 - ($569))|0;
  36437. $575 = $573 & $574;
  36438. $576 = (($575) - ($568))|0;
  36439. $577 = $572 ? 0 : $576;
  36440. $$$i = (($577) + ($544))|0;
  36441. $578 = HEAP32[(20544)>>2]|0;
  36442. $579 = (($$$i) + ($578))|0;
  36443. $580 = ($$$i>>>0)>($$0197>>>0);
  36444. $581 = ($$$i>>>0)<(2147483647);
  36445. $or$cond$i214 = $580 & $581;
  36446. if ($or$cond$i214) {
  36447. $582 = HEAP32[(20552)>>2]|0;
  36448. $583 = ($582|0)==(0);
  36449. if (!($583)) {
  36450. $584 = ($579>>>0)<=($578>>>0);
  36451. $585 = ($579>>>0)>($582>>>0);
  36452. $or$cond2$i215 = $584 | $585;
  36453. if ($or$cond2$i215) {
  36454. $$2234253237$i = 0;
  36455. break;
  36456. }
  36457. }
  36458. $586 = (_sbrk(($$$i|0))|0);
  36459. $587 = ($586|0)==($566|0);
  36460. if ($587) {
  36461. $$723948$i = $$$i;$$749$i = $566;
  36462. label = 180;
  36463. break L244;
  36464. } else {
  36465. $$2247$ph$i = $586;$$2253$ph$i = $$$i;
  36466. label = 171;
  36467. }
  36468. } else {
  36469. $$2234253237$i = 0;
  36470. }
  36471. }
  36472. }
  36473. } while(0);
  36474. do {
  36475. if ((label|0) == 171) {
  36476. $597 = (0 - ($$2253$ph$i))|0;
  36477. $598 = ($$2247$ph$i|0)!=((-1)|0);
  36478. $599 = ($$2253$ph$i>>>0)<(2147483647);
  36479. $or$cond7$i = $599 & $598;
  36480. $600 = ($539>>>0)>($$2253$ph$i>>>0);
  36481. $or$cond10$i = $600 & $or$cond7$i;
  36482. if (!($or$cond10$i)) {
  36483. $610 = ($$2247$ph$i|0)==((-1)|0);
  36484. if ($610) {
  36485. $$2234253237$i = 0;
  36486. break;
  36487. } else {
  36488. $$723948$i = $$2253$ph$i;$$749$i = $$2247$ph$i;
  36489. label = 180;
  36490. break L244;
  36491. }
  36492. }
  36493. $601 = HEAP32[(20592)>>2]|0;
  36494. $602 = (($540) - ($$2253$ph$i))|0;
  36495. $603 = (($602) + ($601))|0;
  36496. $604 = (0 - ($601))|0;
  36497. $605 = $603 & $604;
  36498. $606 = ($605>>>0)<(2147483647);
  36499. if (!($606)) {
  36500. $$723948$i = $$2253$ph$i;$$749$i = $$2247$ph$i;
  36501. label = 180;
  36502. break L244;
  36503. }
  36504. $607 = (_sbrk(($605|0))|0);
  36505. $608 = ($607|0)==((-1)|0);
  36506. if ($608) {
  36507. (_sbrk(($597|0))|0);
  36508. $$2234253237$i = 0;
  36509. break;
  36510. } else {
  36511. $609 = (($605) + ($$2253$ph$i))|0;
  36512. $$723948$i = $609;$$749$i = $$2247$ph$i;
  36513. label = 180;
  36514. break L244;
  36515. }
  36516. }
  36517. } while(0);
  36518. $611 = HEAP32[(20556)>>2]|0;
  36519. $612 = $611 | 4;
  36520. HEAP32[(20556)>>2] = $612;
  36521. $$4236$i = $$2234253237$i;
  36522. label = 178;
  36523. } else {
  36524. $$4236$i = 0;
  36525. label = 178;
  36526. }
  36527. } while(0);
  36528. if ((label|0) == 178) {
  36529. $613 = ($544>>>0)<(2147483647);
  36530. if ($613) {
  36531. $614 = (_sbrk(($544|0))|0);
  36532. $615 = (_sbrk(0)|0);
  36533. $616 = ($614|0)!=((-1)|0);
  36534. $617 = ($615|0)!=((-1)|0);
  36535. $or$cond5$i = $616 & $617;
  36536. $618 = ($614>>>0)<($615>>>0);
  36537. $or$cond11$i = $618 & $or$cond5$i;
  36538. $619 = $615;
  36539. $620 = $614;
  36540. $621 = (($619) - ($620))|0;
  36541. $622 = (($$0197) + 40)|0;
  36542. $623 = ($621>>>0)>($622>>>0);
  36543. $$$4236$i = $623 ? $621 : $$4236$i;
  36544. $or$cond11$not$i = $or$cond11$i ^ 1;
  36545. $624 = ($614|0)==((-1)|0);
  36546. $not$$i216 = $623 ^ 1;
  36547. $625 = $624 | $not$$i216;
  36548. $or$cond50$i = $625 | $or$cond11$not$i;
  36549. if (!($or$cond50$i)) {
  36550. $$723948$i = $$$4236$i;$$749$i = $614;
  36551. label = 180;
  36552. }
  36553. }
  36554. }
  36555. if ((label|0) == 180) {
  36556. $626 = HEAP32[(20544)>>2]|0;
  36557. $627 = (($626) + ($$723948$i))|0;
  36558. HEAP32[(20544)>>2] = $627;
  36559. $628 = HEAP32[(20548)>>2]|0;
  36560. $629 = ($627>>>0)>($628>>>0);
  36561. if ($629) {
  36562. HEAP32[(20548)>>2] = $627;
  36563. }
  36564. $630 = HEAP32[(20136)>>2]|0;
  36565. $631 = ($630|0)==(0|0);
  36566. do {
  36567. if ($631) {
  36568. $632 = HEAP32[(20128)>>2]|0;
  36569. $633 = ($632|0)==(0|0);
  36570. $634 = ($$749$i>>>0)<($632>>>0);
  36571. $or$cond12$i = $633 | $634;
  36572. if ($or$cond12$i) {
  36573. HEAP32[(20128)>>2] = $$749$i;
  36574. }
  36575. HEAP32[(20560)>>2] = $$749$i;
  36576. HEAP32[(20564)>>2] = $$723948$i;
  36577. HEAP32[(20572)>>2] = 0;
  36578. $635 = HEAP32[5146]|0;
  36579. HEAP32[(20148)>>2] = $635;
  36580. HEAP32[(20144)>>2] = -1;
  36581. $$01$i$i = 0;
  36582. while(1) {
  36583. $636 = $$01$i$i << 1;
  36584. $637 = (20152 + ($636<<2)|0);
  36585. $638 = ((($637)) + 12|0);
  36586. HEAP32[$638>>2] = $637;
  36587. $639 = ((($637)) + 8|0);
  36588. HEAP32[$639>>2] = $637;
  36589. $640 = (($$01$i$i) + 1)|0;
  36590. $exitcond$i$i = ($640|0)==(32);
  36591. if ($exitcond$i$i) {
  36592. break;
  36593. } else {
  36594. $$01$i$i = $640;
  36595. }
  36596. }
  36597. $641 = (($$723948$i) + -40)|0;
  36598. $642 = ((($$749$i)) + 8|0);
  36599. $643 = $642;
  36600. $644 = $643 & 7;
  36601. $645 = ($644|0)==(0);
  36602. $646 = (0 - ($643))|0;
  36603. $647 = $646 & 7;
  36604. $648 = $645 ? 0 : $647;
  36605. $649 = (($$749$i) + ($648)|0);
  36606. $650 = (($641) - ($648))|0;
  36607. HEAP32[(20136)>>2] = $649;
  36608. HEAP32[(20124)>>2] = $650;
  36609. $651 = $650 | 1;
  36610. $652 = ((($649)) + 4|0);
  36611. HEAP32[$652>>2] = $651;
  36612. $653 = (($649) + ($650)|0);
  36613. $654 = ((($653)) + 4|0);
  36614. HEAP32[$654>>2] = 40;
  36615. $655 = HEAP32[(20600)>>2]|0;
  36616. HEAP32[(20140)>>2] = $655;
  36617. } else {
  36618. $$024371$i = (20560);
  36619. while(1) {
  36620. $656 = HEAP32[$$024371$i>>2]|0;
  36621. $657 = ((($$024371$i)) + 4|0);
  36622. $658 = HEAP32[$657>>2]|0;
  36623. $659 = (($656) + ($658)|0);
  36624. $660 = ($$749$i|0)==($659|0);
  36625. if ($660) {
  36626. label = 190;
  36627. break;
  36628. }
  36629. $661 = ((($$024371$i)) + 8|0);
  36630. $662 = HEAP32[$661>>2]|0;
  36631. $663 = ($662|0)==(0|0);
  36632. if ($663) {
  36633. break;
  36634. } else {
  36635. $$024371$i = $662;
  36636. }
  36637. }
  36638. if ((label|0) == 190) {
  36639. $664 = ((($$024371$i)) + 12|0);
  36640. $665 = HEAP32[$664>>2]|0;
  36641. $666 = $665 & 8;
  36642. $667 = ($666|0)==(0);
  36643. if ($667) {
  36644. $668 = ($630>>>0)>=($656>>>0);
  36645. $669 = ($630>>>0)<($$749$i>>>0);
  36646. $or$cond51$i = $669 & $668;
  36647. if ($or$cond51$i) {
  36648. $670 = (($658) + ($$723948$i))|0;
  36649. HEAP32[$657>>2] = $670;
  36650. $671 = HEAP32[(20124)>>2]|0;
  36651. $672 = ((($630)) + 8|0);
  36652. $673 = $672;
  36653. $674 = $673 & 7;
  36654. $675 = ($674|0)==(0);
  36655. $676 = (0 - ($673))|0;
  36656. $677 = $676 & 7;
  36657. $678 = $675 ? 0 : $677;
  36658. $679 = (($630) + ($678)|0);
  36659. $680 = (($$723948$i) - ($678))|0;
  36660. $681 = (($671) + ($680))|0;
  36661. HEAP32[(20136)>>2] = $679;
  36662. HEAP32[(20124)>>2] = $681;
  36663. $682 = $681 | 1;
  36664. $683 = ((($679)) + 4|0);
  36665. HEAP32[$683>>2] = $682;
  36666. $684 = (($679) + ($681)|0);
  36667. $685 = ((($684)) + 4|0);
  36668. HEAP32[$685>>2] = 40;
  36669. $686 = HEAP32[(20600)>>2]|0;
  36670. HEAP32[(20140)>>2] = $686;
  36671. break;
  36672. }
  36673. }
  36674. }
  36675. $687 = HEAP32[(20128)>>2]|0;
  36676. $688 = ($$749$i>>>0)<($687>>>0);
  36677. if ($688) {
  36678. HEAP32[(20128)>>2] = $$749$i;
  36679. $752 = $$749$i;
  36680. } else {
  36681. $752 = $687;
  36682. }
  36683. $689 = (($$749$i) + ($$723948$i)|0);
  36684. $$124470$i = (20560);
  36685. while(1) {
  36686. $690 = HEAP32[$$124470$i>>2]|0;
  36687. $691 = ($690|0)==($689|0);
  36688. if ($691) {
  36689. label = 198;
  36690. break;
  36691. }
  36692. $692 = ((($$124470$i)) + 8|0);
  36693. $693 = HEAP32[$692>>2]|0;
  36694. $694 = ($693|0)==(0|0);
  36695. if ($694) {
  36696. break;
  36697. } else {
  36698. $$124470$i = $693;
  36699. }
  36700. }
  36701. if ((label|0) == 198) {
  36702. $695 = ((($$124470$i)) + 12|0);
  36703. $696 = HEAP32[$695>>2]|0;
  36704. $697 = $696 & 8;
  36705. $698 = ($697|0)==(0);
  36706. if ($698) {
  36707. HEAP32[$$124470$i>>2] = $$749$i;
  36708. $699 = ((($$124470$i)) + 4|0);
  36709. $700 = HEAP32[$699>>2]|0;
  36710. $701 = (($700) + ($$723948$i))|0;
  36711. HEAP32[$699>>2] = $701;
  36712. $702 = ((($$749$i)) + 8|0);
  36713. $703 = $702;
  36714. $704 = $703 & 7;
  36715. $705 = ($704|0)==(0);
  36716. $706 = (0 - ($703))|0;
  36717. $707 = $706 & 7;
  36718. $708 = $705 ? 0 : $707;
  36719. $709 = (($$749$i) + ($708)|0);
  36720. $710 = ((($689)) + 8|0);
  36721. $711 = $710;
  36722. $712 = $711 & 7;
  36723. $713 = ($712|0)==(0);
  36724. $714 = (0 - ($711))|0;
  36725. $715 = $714 & 7;
  36726. $716 = $713 ? 0 : $715;
  36727. $717 = (($689) + ($716)|0);
  36728. $718 = $717;
  36729. $719 = $709;
  36730. $720 = (($718) - ($719))|0;
  36731. $721 = (($709) + ($$0197)|0);
  36732. $722 = (($720) - ($$0197))|0;
  36733. $723 = $$0197 | 3;
  36734. $724 = ((($709)) + 4|0);
  36735. HEAP32[$724>>2] = $723;
  36736. $725 = ($717|0)==($630|0);
  36737. do {
  36738. if ($725) {
  36739. $726 = HEAP32[(20124)>>2]|0;
  36740. $727 = (($726) + ($722))|0;
  36741. HEAP32[(20124)>>2] = $727;
  36742. HEAP32[(20136)>>2] = $721;
  36743. $728 = $727 | 1;
  36744. $729 = ((($721)) + 4|0);
  36745. HEAP32[$729>>2] = $728;
  36746. } else {
  36747. $730 = HEAP32[(20132)>>2]|0;
  36748. $731 = ($717|0)==($730|0);
  36749. if ($731) {
  36750. $732 = HEAP32[(20120)>>2]|0;
  36751. $733 = (($732) + ($722))|0;
  36752. HEAP32[(20120)>>2] = $733;
  36753. HEAP32[(20132)>>2] = $721;
  36754. $734 = $733 | 1;
  36755. $735 = ((($721)) + 4|0);
  36756. HEAP32[$735>>2] = $734;
  36757. $736 = (($721) + ($733)|0);
  36758. HEAP32[$736>>2] = $733;
  36759. break;
  36760. }
  36761. $737 = ((($717)) + 4|0);
  36762. $738 = HEAP32[$737>>2]|0;
  36763. $739 = $738 & 3;
  36764. $740 = ($739|0)==(1);
  36765. if ($740) {
  36766. $741 = $738 & -8;
  36767. $742 = $738 >>> 3;
  36768. $743 = ($738>>>0)<(256);
  36769. L314: do {
  36770. if ($743) {
  36771. $744 = ((($717)) + 8|0);
  36772. $745 = HEAP32[$744>>2]|0;
  36773. $746 = ((($717)) + 12|0);
  36774. $747 = HEAP32[$746>>2]|0;
  36775. $748 = $742 << 1;
  36776. $749 = (20152 + ($748<<2)|0);
  36777. $750 = ($745|0)==($749|0);
  36778. do {
  36779. if (!($750)) {
  36780. $751 = ($745>>>0)<($752>>>0);
  36781. if ($751) {
  36782. _abort();
  36783. // unreachable;
  36784. }
  36785. $753 = ((($745)) + 12|0);
  36786. $754 = HEAP32[$753>>2]|0;
  36787. $755 = ($754|0)==($717|0);
  36788. if ($755) {
  36789. break;
  36790. }
  36791. _abort();
  36792. // unreachable;
  36793. }
  36794. } while(0);
  36795. $756 = ($747|0)==($745|0);
  36796. if ($756) {
  36797. $757 = 1 << $742;
  36798. $758 = $757 ^ -1;
  36799. $759 = HEAP32[5028]|0;
  36800. $760 = $759 & $758;
  36801. HEAP32[5028] = $760;
  36802. break;
  36803. }
  36804. $761 = ($747|0)==($749|0);
  36805. do {
  36806. if ($761) {
  36807. $$pre10$i$i = ((($747)) + 8|0);
  36808. $$pre$phi11$i$iZ2D = $$pre10$i$i;
  36809. } else {
  36810. $762 = ($747>>>0)<($752>>>0);
  36811. if ($762) {
  36812. _abort();
  36813. // unreachable;
  36814. }
  36815. $763 = ((($747)) + 8|0);
  36816. $764 = HEAP32[$763>>2]|0;
  36817. $765 = ($764|0)==($717|0);
  36818. if ($765) {
  36819. $$pre$phi11$i$iZ2D = $763;
  36820. break;
  36821. }
  36822. _abort();
  36823. // unreachable;
  36824. }
  36825. } while(0);
  36826. $766 = ((($745)) + 12|0);
  36827. HEAP32[$766>>2] = $747;
  36828. HEAP32[$$pre$phi11$i$iZ2D>>2] = $745;
  36829. } else {
  36830. $767 = ((($717)) + 24|0);
  36831. $768 = HEAP32[$767>>2]|0;
  36832. $769 = ((($717)) + 12|0);
  36833. $770 = HEAP32[$769>>2]|0;
  36834. $771 = ($770|0)==($717|0);
  36835. do {
  36836. if ($771) {
  36837. $781 = ((($717)) + 16|0);
  36838. $782 = ((($781)) + 4|0);
  36839. $783 = HEAP32[$782>>2]|0;
  36840. $784 = ($783|0)==(0|0);
  36841. if ($784) {
  36842. $785 = HEAP32[$781>>2]|0;
  36843. $786 = ($785|0)==(0|0);
  36844. if ($786) {
  36845. $$3$i$i = 0;
  36846. break;
  36847. } else {
  36848. $$1291$i$i = $785;$$1293$i$i = $781;
  36849. }
  36850. } else {
  36851. $$1291$i$i = $783;$$1293$i$i = $782;
  36852. }
  36853. while(1) {
  36854. $787 = ((($$1291$i$i)) + 20|0);
  36855. $788 = HEAP32[$787>>2]|0;
  36856. $789 = ($788|0)==(0|0);
  36857. if (!($789)) {
  36858. $$1291$i$i = $788;$$1293$i$i = $787;
  36859. continue;
  36860. }
  36861. $790 = ((($$1291$i$i)) + 16|0);
  36862. $791 = HEAP32[$790>>2]|0;
  36863. $792 = ($791|0)==(0|0);
  36864. if ($792) {
  36865. break;
  36866. } else {
  36867. $$1291$i$i = $791;$$1293$i$i = $790;
  36868. }
  36869. }
  36870. $793 = ($$1293$i$i>>>0)<($752>>>0);
  36871. if ($793) {
  36872. _abort();
  36873. // unreachable;
  36874. } else {
  36875. HEAP32[$$1293$i$i>>2] = 0;
  36876. $$3$i$i = $$1291$i$i;
  36877. break;
  36878. }
  36879. } else {
  36880. $772 = ((($717)) + 8|0);
  36881. $773 = HEAP32[$772>>2]|0;
  36882. $774 = ($773>>>0)<($752>>>0);
  36883. if ($774) {
  36884. _abort();
  36885. // unreachable;
  36886. }
  36887. $775 = ((($773)) + 12|0);
  36888. $776 = HEAP32[$775>>2]|0;
  36889. $777 = ($776|0)==($717|0);
  36890. if (!($777)) {
  36891. _abort();
  36892. // unreachable;
  36893. }
  36894. $778 = ((($770)) + 8|0);
  36895. $779 = HEAP32[$778>>2]|0;
  36896. $780 = ($779|0)==($717|0);
  36897. if ($780) {
  36898. HEAP32[$775>>2] = $770;
  36899. HEAP32[$778>>2] = $773;
  36900. $$3$i$i = $770;
  36901. break;
  36902. } else {
  36903. _abort();
  36904. // unreachable;
  36905. }
  36906. }
  36907. } while(0);
  36908. $794 = ($768|0)==(0|0);
  36909. if ($794) {
  36910. break;
  36911. }
  36912. $795 = ((($717)) + 28|0);
  36913. $796 = HEAP32[$795>>2]|0;
  36914. $797 = (20416 + ($796<<2)|0);
  36915. $798 = HEAP32[$797>>2]|0;
  36916. $799 = ($717|0)==($798|0);
  36917. do {
  36918. if ($799) {
  36919. HEAP32[$797>>2] = $$3$i$i;
  36920. $cond$i$i = ($$3$i$i|0)==(0|0);
  36921. if (!($cond$i$i)) {
  36922. break;
  36923. }
  36924. $800 = 1 << $796;
  36925. $801 = $800 ^ -1;
  36926. $802 = HEAP32[(20116)>>2]|0;
  36927. $803 = $802 & $801;
  36928. HEAP32[(20116)>>2] = $803;
  36929. break L314;
  36930. } else {
  36931. $804 = HEAP32[(20128)>>2]|0;
  36932. $805 = ($768>>>0)<($804>>>0);
  36933. if ($805) {
  36934. _abort();
  36935. // unreachable;
  36936. } else {
  36937. $806 = ((($768)) + 16|0);
  36938. $807 = HEAP32[$806>>2]|0;
  36939. $not$$i17$i = ($807|0)!=($717|0);
  36940. $$sink1$i$i = $not$$i17$i&1;
  36941. $808 = (((($768)) + 16|0) + ($$sink1$i$i<<2)|0);
  36942. HEAP32[$808>>2] = $$3$i$i;
  36943. $809 = ($$3$i$i|0)==(0|0);
  36944. if ($809) {
  36945. break L314;
  36946. } else {
  36947. break;
  36948. }
  36949. }
  36950. }
  36951. } while(0);
  36952. $810 = HEAP32[(20128)>>2]|0;
  36953. $811 = ($$3$i$i>>>0)<($810>>>0);
  36954. if ($811) {
  36955. _abort();
  36956. // unreachable;
  36957. }
  36958. $812 = ((($$3$i$i)) + 24|0);
  36959. HEAP32[$812>>2] = $768;
  36960. $813 = ((($717)) + 16|0);
  36961. $814 = HEAP32[$813>>2]|0;
  36962. $815 = ($814|0)==(0|0);
  36963. do {
  36964. if (!($815)) {
  36965. $816 = ($814>>>0)<($810>>>0);
  36966. if ($816) {
  36967. _abort();
  36968. // unreachable;
  36969. } else {
  36970. $817 = ((($$3$i$i)) + 16|0);
  36971. HEAP32[$817>>2] = $814;
  36972. $818 = ((($814)) + 24|0);
  36973. HEAP32[$818>>2] = $$3$i$i;
  36974. break;
  36975. }
  36976. }
  36977. } while(0);
  36978. $819 = ((($813)) + 4|0);
  36979. $820 = HEAP32[$819>>2]|0;
  36980. $821 = ($820|0)==(0|0);
  36981. if ($821) {
  36982. break;
  36983. }
  36984. $822 = HEAP32[(20128)>>2]|0;
  36985. $823 = ($820>>>0)<($822>>>0);
  36986. if ($823) {
  36987. _abort();
  36988. // unreachable;
  36989. } else {
  36990. $824 = ((($$3$i$i)) + 20|0);
  36991. HEAP32[$824>>2] = $820;
  36992. $825 = ((($820)) + 24|0);
  36993. HEAP32[$825>>2] = $$3$i$i;
  36994. break;
  36995. }
  36996. }
  36997. } while(0);
  36998. $826 = (($717) + ($741)|0);
  36999. $827 = (($741) + ($722))|0;
  37000. $$0$i18$i = $826;$$0287$i$i = $827;
  37001. } else {
  37002. $$0$i18$i = $717;$$0287$i$i = $722;
  37003. }
  37004. $828 = ((($$0$i18$i)) + 4|0);
  37005. $829 = HEAP32[$828>>2]|0;
  37006. $830 = $829 & -2;
  37007. HEAP32[$828>>2] = $830;
  37008. $831 = $$0287$i$i | 1;
  37009. $832 = ((($721)) + 4|0);
  37010. HEAP32[$832>>2] = $831;
  37011. $833 = (($721) + ($$0287$i$i)|0);
  37012. HEAP32[$833>>2] = $$0287$i$i;
  37013. $834 = $$0287$i$i >>> 3;
  37014. $835 = ($$0287$i$i>>>0)<(256);
  37015. if ($835) {
  37016. $836 = $834 << 1;
  37017. $837 = (20152 + ($836<<2)|0);
  37018. $838 = HEAP32[5028]|0;
  37019. $839 = 1 << $834;
  37020. $840 = $838 & $839;
  37021. $841 = ($840|0)==(0);
  37022. do {
  37023. if ($841) {
  37024. $842 = $838 | $839;
  37025. HEAP32[5028] = $842;
  37026. $$pre$i19$i = ((($837)) + 8|0);
  37027. $$0295$i$i = $837;$$pre$phi$i20$iZ2D = $$pre$i19$i;
  37028. } else {
  37029. $843 = ((($837)) + 8|0);
  37030. $844 = HEAP32[$843>>2]|0;
  37031. $845 = HEAP32[(20128)>>2]|0;
  37032. $846 = ($844>>>0)<($845>>>0);
  37033. if (!($846)) {
  37034. $$0295$i$i = $844;$$pre$phi$i20$iZ2D = $843;
  37035. break;
  37036. }
  37037. _abort();
  37038. // unreachable;
  37039. }
  37040. } while(0);
  37041. HEAP32[$$pre$phi$i20$iZ2D>>2] = $721;
  37042. $847 = ((($$0295$i$i)) + 12|0);
  37043. HEAP32[$847>>2] = $721;
  37044. $848 = ((($721)) + 8|0);
  37045. HEAP32[$848>>2] = $$0295$i$i;
  37046. $849 = ((($721)) + 12|0);
  37047. HEAP32[$849>>2] = $837;
  37048. break;
  37049. }
  37050. $850 = $$0287$i$i >>> 8;
  37051. $851 = ($850|0)==(0);
  37052. do {
  37053. if ($851) {
  37054. $$0296$i$i = 0;
  37055. } else {
  37056. $852 = ($$0287$i$i>>>0)>(16777215);
  37057. if ($852) {
  37058. $$0296$i$i = 31;
  37059. break;
  37060. }
  37061. $853 = (($850) + 1048320)|0;
  37062. $854 = $853 >>> 16;
  37063. $855 = $854 & 8;
  37064. $856 = $850 << $855;
  37065. $857 = (($856) + 520192)|0;
  37066. $858 = $857 >>> 16;
  37067. $859 = $858 & 4;
  37068. $860 = $859 | $855;
  37069. $861 = $856 << $859;
  37070. $862 = (($861) + 245760)|0;
  37071. $863 = $862 >>> 16;
  37072. $864 = $863 & 2;
  37073. $865 = $860 | $864;
  37074. $866 = (14 - ($865))|0;
  37075. $867 = $861 << $864;
  37076. $868 = $867 >>> 15;
  37077. $869 = (($866) + ($868))|0;
  37078. $870 = $869 << 1;
  37079. $871 = (($869) + 7)|0;
  37080. $872 = $$0287$i$i >>> $871;
  37081. $873 = $872 & 1;
  37082. $874 = $873 | $870;
  37083. $$0296$i$i = $874;
  37084. }
  37085. } while(0);
  37086. $875 = (20416 + ($$0296$i$i<<2)|0);
  37087. $876 = ((($721)) + 28|0);
  37088. HEAP32[$876>>2] = $$0296$i$i;
  37089. $877 = ((($721)) + 16|0);
  37090. $878 = ((($877)) + 4|0);
  37091. HEAP32[$878>>2] = 0;
  37092. HEAP32[$877>>2] = 0;
  37093. $879 = HEAP32[(20116)>>2]|0;
  37094. $880 = 1 << $$0296$i$i;
  37095. $881 = $879 & $880;
  37096. $882 = ($881|0)==(0);
  37097. if ($882) {
  37098. $883 = $879 | $880;
  37099. HEAP32[(20116)>>2] = $883;
  37100. HEAP32[$875>>2] = $721;
  37101. $884 = ((($721)) + 24|0);
  37102. HEAP32[$884>>2] = $875;
  37103. $885 = ((($721)) + 12|0);
  37104. HEAP32[$885>>2] = $721;
  37105. $886 = ((($721)) + 8|0);
  37106. HEAP32[$886>>2] = $721;
  37107. break;
  37108. }
  37109. $887 = HEAP32[$875>>2]|0;
  37110. $888 = ($$0296$i$i|0)==(31);
  37111. $889 = $$0296$i$i >>> 1;
  37112. $890 = (25 - ($889))|0;
  37113. $891 = $888 ? 0 : $890;
  37114. $892 = $$0287$i$i << $891;
  37115. $$0288$i$i = $892;$$0289$i$i = $887;
  37116. while(1) {
  37117. $893 = ((($$0289$i$i)) + 4|0);
  37118. $894 = HEAP32[$893>>2]|0;
  37119. $895 = $894 & -8;
  37120. $896 = ($895|0)==($$0287$i$i|0);
  37121. if ($896) {
  37122. label = 265;
  37123. break;
  37124. }
  37125. $897 = $$0288$i$i >>> 31;
  37126. $898 = (((($$0289$i$i)) + 16|0) + ($897<<2)|0);
  37127. $899 = $$0288$i$i << 1;
  37128. $900 = HEAP32[$898>>2]|0;
  37129. $901 = ($900|0)==(0|0);
  37130. if ($901) {
  37131. label = 262;
  37132. break;
  37133. } else {
  37134. $$0288$i$i = $899;$$0289$i$i = $900;
  37135. }
  37136. }
  37137. if ((label|0) == 262) {
  37138. $902 = HEAP32[(20128)>>2]|0;
  37139. $903 = ($898>>>0)<($902>>>0);
  37140. if ($903) {
  37141. _abort();
  37142. // unreachable;
  37143. } else {
  37144. HEAP32[$898>>2] = $721;
  37145. $904 = ((($721)) + 24|0);
  37146. HEAP32[$904>>2] = $$0289$i$i;
  37147. $905 = ((($721)) + 12|0);
  37148. HEAP32[$905>>2] = $721;
  37149. $906 = ((($721)) + 8|0);
  37150. HEAP32[$906>>2] = $721;
  37151. break;
  37152. }
  37153. }
  37154. else if ((label|0) == 265) {
  37155. $907 = ((($$0289$i$i)) + 8|0);
  37156. $908 = HEAP32[$907>>2]|0;
  37157. $909 = HEAP32[(20128)>>2]|0;
  37158. $910 = ($908>>>0)>=($909>>>0);
  37159. $not$7$i$i = ($$0289$i$i>>>0)>=($909>>>0);
  37160. $911 = $910 & $not$7$i$i;
  37161. if ($911) {
  37162. $912 = ((($908)) + 12|0);
  37163. HEAP32[$912>>2] = $721;
  37164. HEAP32[$907>>2] = $721;
  37165. $913 = ((($721)) + 8|0);
  37166. HEAP32[$913>>2] = $908;
  37167. $914 = ((($721)) + 12|0);
  37168. HEAP32[$914>>2] = $$0289$i$i;
  37169. $915 = ((($721)) + 24|0);
  37170. HEAP32[$915>>2] = 0;
  37171. break;
  37172. } else {
  37173. _abort();
  37174. // unreachable;
  37175. }
  37176. }
  37177. }
  37178. } while(0);
  37179. $1047 = ((($709)) + 8|0);
  37180. $$0 = $1047;
  37181. STACKTOP = sp;return ($$0|0);
  37182. }
  37183. }
  37184. $$0$i$i$i = (20560);
  37185. while(1) {
  37186. $916 = HEAP32[$$0$i$i$i>>2]|0;
  37187. $917 = ($916>>>0)>($630>>>0);
  37188. if (!($917)) {
  37189. $918 = ((($$0$i$i$i)) + 4|0);
  37190. $919 = HEAP32[$918>>2]|0;
  37191. $920 = (($916) + ($919)|0);
  37192. $921 = ($920>>>0)>($630>>>0);
  37193. if ($921) {
  37194. break;
  37195. }
  37196. }
  37197. $922 = ((($$0$i$i$i)) + 8|0);
  37198. $923 = HEAP32[$922>>2]|0;
  37199. $$0$i$i$i = $923;
  37200. }
  37201. $924 = ((($920)) + -47|0);
  37202. $925 = ((($924)) + 8|0);
  37203. $926 = $925;
  37204. $927 = $926 & 7;
  37205. $928 = ($927|0)==(0);
  37206. $929 = (0 - ($926))|0;
  37207. $930 = $929 & 7;
  37208. $931 = $928 ? 0 : $930;
  37209. $932 = (($924) + ($931)|0);
  37210. $933 = ((($630)) + 16|0);
  37211. $934 = ($932>>>0)<($933>>>0);
  37212. $935 = $934 ? $630 : $932;
  37213. $936 = ((($935)) + 8|0);
  37214. $937 = ((($935)) + 24|0);
  37215. $938 = (($$723948$i) + -40)|0;
  37216. $939 = ((($$749$i)) + 8|0);
  37217. $940 = $939;
  37218. $941 = $940 & 7;
  37219. $942 = ($941|0)==(0);
  37220. $943 = (0 - ($940))|0;
  37221. $944 = $943 & 7;
  37222. $945 = $942 ? 0 : $944;
  37223. $946 = (($$749$i) + ($945)|0);
  37224. $947 = (($938) - ($945))|0;
  37225. HEAP32[(20136)>>2] = $946;
  37226. HEAP32[(20124)>>2] = $947;
  37227. $948 = $947 | 1;
  37228. $949 = ((($946)) + 4|0);
  37229. HEAP32[$949>>2] = $948;
  37230. $950 = (($946) + ($947)|0);
  37231. $951 = ((($950)) + 4|0);
  37232. HEAP32[$951>>2] = 40;
  37233. $952 = HEAP32[(20600)>>2]|0;
  37234. HEAP32[(20140)>>2] = $952;
  37235. $953 = ((($935)) + 4|0);
  37236. HEAP32[$953>>2] = 27;
  37237. ;HEAP32[$936>>2]=HEAP32[(20560)>>2]|0;HEAP32[$936+4>>2]=HEAP32[(20560)+4>>2]|0;HEAP32[$936+8>>2]=HEAP32[(20560)+8>>2]|0;HEAP32[$936+12>>2]=HEAP32[(20560)+12>>2]|0;
  37238. HEAP32[(20560)>>2] = $$749$i;
  37239. HEAP32[(20564)>>2] = $$723948$i;
  37240. HEAP32[(20572)>>2] = 0;
  37241. HEAP32[(20568)>>2] = $936;
  37242. $955 = $937;
  37243. while(1) {
  37244. $954 = ((($955)) + 4|0);
  37245. HEAP32[$954>>2] = 7;
  37246. $956 = ((($955)) + 8|0);
  37247. $957 = ($956>>>0)<($920>>>0);
  37248. if ($957) {
  37249. $955 = $954;
  37250. } else {
  37251. break;
  37252. }
  37253. }
  37254. $958 = ($935|0)==($630|0);
  37255. if (!($958)) {
  37256. $959 = $935;
  37257. $960 = $630;
  37258. $961 = (($959) - ($960))|0;
  37259. $962 = HEAP32[$953>>2]|0;
  37260. $963 = $962 & -2;
  37261. HEAP32[$953>>2] = $963;
  37262. $964 = $961 | 1;
  37263. $965 = ((($630)) + 4|0);
  37264. HEAP32[$965>>2] = $964;
  37265. HEAP32[$935>>2] = $961;
  37266. $966 = $961 >>> 3;
  37267. $967 = ($961>>>0)<(256);
  37268. if ($967) {
  37269. $968 = $966 << 1;
  37270. $969 = (20152 + ($968<<2)|0);
  37271. $970 = HEAP32[5028]|0;
  37272. $971 = 1 << $966;
  37273. $972 = $970 & $971;
  37274. $973 = ($972|0)==(0);
  37275. if ($973) {
  37276. $974 = $970 | $971;
  37277. HEAP32[5028] = $974;
  37278. $$pre$i$i = ((($969)) + 8|0);
  37279. $$0211$i$i = $969;$$pre$phi$i$iZ2D = $$pre$i$i;
  37280. } else {
  37281. $975 = ((($969)) + 8|0);
  37282. $976 = HEAP32[$975>>2]|0;
  37283. $977 = HEAP32[(20128)>>2]|0;
  37284. $978 = ($976>>>0)<($977>>>0);
  37285. if ($978) {
  37286. _abort();
  37287. // unreachable;
  37288. } else {
  37289. $$0211$i$i = $976;$$pre$phi$i$iZ2D = $975;
  37290. }
  37291. }
  37292. HEAP32[$$pre$phi$i$iZ2D>>2] = $630;
  37293. $979 = ((($$0211$i$i)) + 12|0);
  37294. HEAP32[$979>>2] = $630;
  37295. $980 = ((($630)) + 8|0);
  37296. HEAP32[$980>>2] = $$0211$i$i;
  37297. $981 = ((($630)) + 12|0);
  37298. HEAP32[$981>>2] = $969;
  37299. break;
  37300. }
  37301. $982 = $961 >>> 8;
  37302. $983 = ($982|0)==(0);
  37303. if ($983) {
  37304. $$0212$i$i = 0;
  37305. } else {
  37306. $984 = ($961>>>0)>(16777215);
  37307. if ($984) {
  37308. $$0212$i$i = 31;
  37309. } else {
  37310. $985 = (($982) + 1048320)|0;
  37311. $986 = $985 >>> 16;
  37312. $987 = $986 & 8;
  37313. $988 = $982 << $987;
  37314. $989 = (($988) + 520192)|0;
  37315. $990 = $989 >>> 16;
  37316. $991 = $990 & 4;
  37317. $992 = $991 | $987;
  37318. $993 = $988 << $991;
  37319. $994 = (($993) + 245760)|0;
  37320. $995 = $994 >>> 16;
  37321. $996 = $995 & 2;
  37322. $997 = $992 | $996;
  37323. $998 = (14 - ($997))|0;
  37324. $999 = $993 << $996;
  37325. $1000 = $999 >>> 15;
  37326. $1001 = (($998) + ($1000))|0;
  37327. $1002 = $1001 << 1;
  37328. $1003 = (($1001) + 7)|0;
  37329. $1004 = $961 >>> $1003;
  37330. $1005 = $1004 & 1;
  37331. $1006 = $1005 | $1002;
  37332. $$0212$i$i = $1006;
  37333. }
  37334. }
  37335. $1007 = (20416 + ($$0212$i$i<<2)|0);
  37336. $1008 = ((($630)) + 28|0);
  37337. HEAP32[$1008>>2] = $$0212$i$i;
  37338. $1009 = ((($630)) + 20|0);
  37339. HEAP32[$1009>>2] = 0;
  37340. HEAP32[$933>>2] = 0;
  37341. $1010 = HEAP32[(20116)>>2]|0;
  37342. $1011 = 1 << $$0212$i$i;
  37343. $1012 = $1010 & $1011;
  37344. $1013 = ($1012|0)==(0);
  37345. if ($1013) {
  37346. $1014 = $1010 | $1011;
  37347. HEAP32[(20116)>>2] = $1014;
  37348. HEAP32[$1007>>2] = $630;
  37349. $1015 = ((($630)) + 24|0);
  37350. HEAP32[$1015>>2] = $1007;
  37351. $1016 = ((($630)) + 12|0);
  37352. HEAP32[$1016>>2] = $630;
  37353. $1017 = ((($630)) + 8|0);
  37354. HEAP32[$1017>>2] = $630;
  37355. break;
  37356. }
  37357. $1018 = HEAP32[$1007>>2]|0;
  37358. $1019 = ($$0212$i$i|0)==(31);
  37359. $1020 = $$0212$i$i >>> 1;
  37360. $1021 = (25 - ($1020))|0;
  37361. $1022 = $1019 ? 0 : $1021;
  37362. $1023 = $961 << $1022;
  37363. $$0206$i$i = $1023;$$0207$i$i = $1018;
  37364. while(1) {
  37365. $1024 = ((($$0207$i$i)) + 4|0);
  37366. $1025 = HEAP32[$1024>>2]|0;
  37367. $1026 = $1025 & -8;
  37368. $1027 = ($1026|0)==($961|0);
  37369. if ($1027) {
  37370. label = 292;
  37371. break;
  37372. }
  37373. $1028 = $$0206$i$i >>> 31;
  37374. $1029 = (((($$0207$i$i)) + 16|0) + ($1028<<2)|0);
  37375. $1030 = $$0206$i$i << 1;
  37376. $1031 = HEAP32[$1029>>2]|0;
  37377. $1032 = ($1031|0)==(0|0);
  37378. if ($1032) {
  37379. label = 289;
  37380. break;
  37381. } else {
  37382. $$0206$i$i = $1030;$$0207$i$i = $1031;
  37383. }
  37384. }
  37385. if ((label|0) == 289) {
  37386. $1033 = HEAP32[(20128)>>2]|0;
  37387. $1034 = ($1029>>>0)<($1033>>>0);
  37388. if ($1034) {
  37389. _abort();
  37390. // unreachable;
  37391. } else {
  37392. HEAP32[$1029>>2] = $630;
  37393. $1035 = ((($630)) + 24|0);
  37394. HEAP32[$1035>>2] = $$0207$i$i;
  37395. $1036 = ((($630)) + 12|0);
  37396. HEAP32[$1036>>2] = $630;
  37397. $1037 = ((($630)) + 8|0);
  37398. HEAP32[$1037>>2] = $630;
  37399. break;
  37400. }
  37401. }
  37402. else if ((label|0) == 292) {
  37403. $1038 = ((($$0207$i$i)) + 8|0);
  37404. $1039 = HEAP32[$1038>>2]|0;
  37405. $1040 = HEAP32[(20128)>>2]|0;
  37406. $1041 = ($1039>>>0)>=($1040>>>0);
  37407. $not$$i$i = ($$0207$i$i>>>0)>=($1040>>>0);
  37408. $1042 = $1041 & $not$$i$i;
  37409. if ($1042) {
  37410. $1043 = ((($1039)) + 12|0);
  37411. HEAP32[$1043>>2] = $630;
  37412. HEAP32[$1038>>2] = $630;
  37413. $1044 = ((($630)) + 8|0);
  37414. HEAP32[$1044>>2] = $1039;
  37415. $1045 = ((($630)) + 12|0);
  37416. HEAP32[$1045>>2] = $$0207$i$i;
  37417. $1046 = ((($630)) + 24|0);
  37418. HEAP32[$1046>>2] = 0;
  37419. break;
  37420. } else {
  37421. _abort();
  37422. // unreachable;
  37423. }
  37424. }
  37425. }
  37426. }
  37427. } while(0);
  37428. $1048 = HEAP32[(20124)>>2]|0;
  37429. $1049 = ($1048>>>0)>($$0197>>>0);
  37430. if ($1049) {
  37431. $1050 = (($1048) - ($$0197))|0;
  37432. HEAP32[(20124)>>2] = $1050;
  37433. $1051 = HEAP32[(20136)>>2]|0;
  37434. $1052 = (($1051) + ($$0197)|0);
  37435. HEAP32[(20136)>>2] = $1052;
  37436. $1053 = $1050 | 1;
  37437. $1054 = ((($1052)) + 4|0);
  37438. HEAP32[$1054>>2] = $1053;
  37439. $1055 = $$0197 | 3;
  37440. $1056 = ((($1051)) + 4|0);
  37441. HEAP32[$1056>>2] = $1055;
  37442. $1057 = ((($1051)) + 8|0);
  37443. $$0 = $1057;
  37444. STACKTOP = sp;return ($$0|0);
  37445. }
  37446. }
  37447. $1058 = (___errno_location()|0);
  37448. HEAP32[$1058>>2] = 12;
  37449. $$0 = 0;
  37450. STACKTOP = sp;return ($$0|0);
  37451. }
  37452. function _free($0) {
  37453. $0 = $0|0;
  37454. 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;
  37455. 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;
  37456. 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;
  37457. 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;
  37458. 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;
  37459. 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;
  37460. 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;
  37461. 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;
  37462. 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;
  37463. 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;
  37464. 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;
  37465. 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;
  37466. 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;
  37467. 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;
  37468. 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;
  37469. 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;
  37470. 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;
  37471. var $99 = 0, $cond421 = 0, $cond422 = 0, $not$ = 0, $not$405 = 0, $not$437 = 0, label = 0, sp = 0;
  37472. sp = STACKTOP;
  37473. $1 = ($0|0)==(0|0);
  37474. if ($1) {
  37475. return;
  37476. }
  37477. $2 = ((($0)) + -8|0);
  37478. $3 = HEAP32[(20128)>>2]|0;
  37479. $4 = ($2>>>0)<($3>>>0);
  37480. if ($4) {
  37481. _abort();
  37482. // unreachable;
  37483. }
  37484. $5 = ((($0)) + -4|0);
  37485. $6 = HEAP32[$5>>2]|0;
  37486. $7 = $6 & 3;
  37487. $8 = ($7|0)==(1);
  37488. if ($8) {
  37489. _abort();
  37490. // unreachable;
  37491. }
  37492. $9 = $6 & -8;
  37493. $10 = (($2) + ($9)|0);
  37494. $11 = $6 & 1;
  37495. $12 = ($11|0)==(0);
  37496. L10: do {
  37497. if ($12) {
  37498. $13 = HEAP32[$2>>2]|0;
  37499. $14 = ($7|0)==(0);
  37500. if ($14) {
  37501. return;
  37502. }
  37503. $15 = (0 - ($13))|0;
  37504. $16 = (($2) + ($15)|0);
  37505. $17 = (($13) + ($9))|0;
  37506. $18 = ($16>>>0)<($3>>>0);
  37507. if ($18) {
  37508. _abort();
  37509. // unreachable;
  37510. }
  37511. $19 = HEAP32[(20132)>>2]|0;
  37512. $20 = ($16|0)==($19|0);
  37513. if ($20) {
  37514. $104 = ((($10)) + 4|0);
  37515. $105 = HEAP32[$104>>2]|0;
  37516. $106 = $105 & 3;
  37517. $107 = ($106|0)==(3);
  37518. if (!($107)) {
  37519. $$1 = $16;$$1382 = $17;$113 = $16;
  37520. break;
  37521. }
  37522. $108 = (($16) + ($17)|0);
  37523. $109 = ((($16)) + 4|0);
  37524. $110 = $17 | 1;
  37525. $111 = $105 & -2;
  37526. HEAP32[(20120)>>2] = $17;
  37527. HEAP32[$104>>2] = $111;
  37528. HEAP32[$109>>2] = $110;
  37529. HEAP32[$108>>2] = $17;
  37530. return;
  37531. }
  37532. $21 = $13 >>> 3;
  37533. $22 = ($13>>>0)<(256);
  37534. if ($22) {
  37535. $23 = ((($16)) + 8|0);
  37536. $24 = HEAP32[$23>>2]|0;
  37537. $25 = ((($16)) + 12|0);
  37538. $26 = HEAP32[$25>>2]|0;
  37539. $27 = $21 << 1;
  37540. $28 = (20152 + ($27<<2)|0);
  37541. $29 = ($24|0)==($28|0);
  37542. if (!($29)) {
  37543. $30 = ($24>>>0)<($3>>>0);
  37544. if ($30) {
  37545. _abort();
  37546. // unreachable;
  37547. }
  37548. $31 = ((($24)) + 12|0);
  37549. $32 = HEAP32[$31>>2]|0;
  37550. $33 = ($32|0)==($16|0);
  37551. if (!($33)) {
  37552. _abort();
  37553. // unreachable;
  37554. }
  37555. }
  37556. $34 = ($26|0)==($24|0);
  37557. if ($34) {
  37558. $35 = 1 << $21;
  37559. $36 = $35 ^ -1;
  37560. $37 = HEAP32[5028]|0;
  37561. $38 = $37 & $36;
  37562. HEAP32[5028] = $38;
  37563. $$1 = $16;$$1382 = $17;$113 = $16;
  37564. break;
  37565. }
  37566. $39 = ($26|0)==($28|0);
  37567. if ($39) {
  37568. $$pre444 = ((($26)) + 8|0);
  37569. $$pre$phi445Z2D = $$pre444;
  37570. } else {
  37571. $40 = ($26>>>0)<($3>>>0);
  37572. if ($40) {
  37573. _abort();
  37574. // unreachable;
  37575. }
  37576. $41 = ((($26)) + 8|0);
  37577. $42 = HEAP32[$41>>2]|0;
  37578. $43 = ($42|0)==($16|0);
  37579. if ($43) {
  37580. $$pre$phi445Z2D = $41;
  37581. } else {
  37582. _abort();
  37583. // unreachable;
  37584. }
  37585. }
  37586. $44 = ((($24)) + 12|0);
  37587. HEAP32[$44>>2] = $26;
  37588. HEAP32[$$pre$phi445Z2D>>2] = $24;
  37589. $$1 = $16;$$1382 = $17;$113 = $16;
  37590. break;
  37591. }
  37592. $45 = ((($16)) + 24|0);
  37593. $46 = HEAP32[$45>>2]|0;
  37594. $47 = ((($16)) + 12|0);
  37595. $48 = HEAP32[$47>>2]|0;
  37596. $49 = ($48|0)==($16|0);
  37597. do {
  37598. if ($49) {
  37599. $59 = ((($16)) + 16|0);
  37600. $60 = ((($59)) + 4|0);
  37601. $61 = HEAP32[$60>>2]|0;
  37602. $62 = ($61|0)==(0|0);
  37603. if ($62) {
  37604. $63 = HEAP32[$59>>2]|0;
  37605. $64 = ($63|0)==(0|0);
  37606. if ($64) {
  37607. $$3 = 0;
  37608. break;
  37609. } else {
  37610. $$1387 = $63;$$1390 = $59;
  37611. }
  37612. } else {
  37613. $$1387 = $61;$$1390 = $60;
  37614. }
  37615. while(1) {
  37616. $65 = ((($$1387)) + 20|0);
  37617. $66 = HEAP32[$65>>2]|0;
  37618. $67 = ($66|0)==(0|0);
  37619. if (!($67)) {
  37620. $$1387 = $66;$$1390 = $65;
  37621. continue;
  37622. }
  37623. $68 = ((($$1387)) + 16|0);
  37624. $69 = HEAP32[$68>>2]|0;
  37625. $70 = ($69|0)==(0|0);
  37626. if ($70) {
  37627. break;
  37628. } else {
  37629. $$1387 = $69;$$1390 = $68;
  37630. }
  37631. }
  37632. $71 = ($$1390>>>0)<($3>>>0);
  37633. if ($71) {
  37634. _abort();
  37635. // unreachable;
  37636. } else {
  37637. HEAP32[$$1390>>2] = 0;
  37638. $$3 = $$1387;
  37639. break;
  37640. }
  37641. } else {
  37642. $50 = ((($16)) + 8|0);
  37643. $51 = HEAP32[$50>>2]|0;
  37644. $52 = ($51>>>0)<($3>>>0);
  37645. if ($52) {
  37646. _abort();
  37647. // unreachable;
  37648. }
  37649. $53 = ((($51)) + 12|0);
  37650. $54 = HEAP32[$53>>2]|0;
  37651. $55 = ($54|0)==($16|0);
  37652. if (!($55)) {
  37653. _abort();
  37654. // unreachable;
  37655. }
  37656. $56 = ((($48)) + 8|0);
  37657. $57 = HEAP32[$56>>2]|0;
  37658. $58 = ($57|0)==($16|0);
  37659. if ($58) {
  37660. HEAP32[$53>>2] = $48;
  37661. HEAP32[$56>>2] = $51;
  37662. $$3 = $48;
  37663. break;
  37664. } else {
  37665. _abort();
  37666. // unreachable;
  37667. }
  37668. }
  37669. } while(0);
  37670. $72 = ($46|0)==(0|0);
  37671. if ($72) {
  37672. $$1 = $16;$$1382 = $17;$113 = $16;
  37673. } else {
  37674. $73 = ((($16)) + 28|0);
  37675. $74 = HEAP32[$73>>2]|0;
  37676. $75 = (20416 + ($74<<2)|0);
  37677. $76 = HEAP32[$75>>2]|0;
  37678. $77 = ($16|0)==($76|0);
  37679. do {
  37680. if ($77) {
  37681. HEAP32[$75>>2] = $$3;
  37682. $cond421 = ($$3|0)==(0|0);
  37683. if ($cond421) {
  37684. $78 = 1 << $74;
  37685. $79 = $78 ^ -1;
  37686. $80 = HEAP32[(20116)>>2]|0;
  37687. $81 = $80 & $79;
  37688. HEAP32[(20116)>>2] = $81;
  37689. $$1 = $16;$$1382 = $17;$113 = $16;
  37690. break L10;
  37691. }
  37692. } else {
  37693. $82 = HEAP32[(20128)>>2]|0;
  37694. $83 = ($46>>>0)<($82>>>0);
  37695. if ($83) {
  37696. _abort();
  37697. // unreachable;
  37698. } else {
  37699. $84 = ((($46)) + 16|0);
  37700. $85 = HEAP32[$84>>2]|0;
  37701. $not$405 = ($85|0)!=($16|0);
  37702. $$sink3 = $not$405&1;
  37703. $86 = (((($46)) + 16|0) + ($$sink3<<2)|0);
  37704. HEAP32[$86>>2] = $$3;
  37705. $87 = ($$3|0)==(0|0);
  37706. if ($87) {
  37707. $$1 = $16;$$1382 = $17;$113 = $16;
  37708. break L10;
  37709. } else {
  37710. break;
  37711. }
  37712. }
  37713. }
  37714. } while(0);
  37715. $88 = HEAP32[(20128)>>2]|0;
  37716. $89 = ($$3>>>0)<($88>>>0);
  37717. if ($89) {
  37718. _abort();
  37719. // unreachable;
  37720. }
  37721. $90 = ((($$3)) + 24|0);
  37722. HEAP32[$90>>2] = $46;
  37723. $91 = ((($16)) + 16|0);
  37724. $92 = HEAP32[$91>>2]|0;
  37725. $93 = ($92|0)==(0|0);
  37726. do {
  37727. if (!($93)) {
  37728. $94 = ($92>>>0)<($88>>>0);
  37729. if ($94) {
  37730. _abort();
  37731. // unreachable;
  37732. } else {
  37733. $95 = ((($$3)) + 16|0);
  37734. HEAP32[$95>>2] = $92;
  37735. $96 = ((($92)) + 24|0);
  37736. HEAP32[$96>>2] = $$3;
  37737. break;
  37738. }
  37739. }
  37740. } while(0);
  37741. $97 = ((($91)) + 4|0);
  37742. $98 = HEAP32[$97>>2]|0;
  37743. $99 = ($98|0)==(0|0);
  37744. if ($99) {
  37745. $$1 = $16;$$1382 = $17;$113 = $16;
  37746. } else {
  37747. $100 = HEAP32[(20128)>>2]|0;
  37748. $101 = ($98>>>0)<($100>>>0);
  37749. if ($101) {
  37750. _abort();
  37751. // unreachable;
  37752. } else {
  37753. $102 = ((($$3)) + 20|0);
  37754. HEAP32[$102>>2] = $98;
  37755. $103 = ((($98)) + 24|0);
  37756. HEAP32[$103>>2] = $$3;
  37757. $$1 = $16;$$1382 = $17;$113 = $16;
  37758. break;
  37759. }
  37760. }
  37761. }
  37762. } else {
  37763. $$1 = $2;$$1382 = $9;$113 = $2;
  37764. }
  37765. } while(0);
  37766. $112 = ($113>>>0)<($10>>>0);
  37767. if (!($112)) {
  37768. _abort();
  37769. // unreachable;
  37770. }
  37771. $114 = ((($10)) + 4|0);
  37772. $115 = HEAP32[$114>>2]|0;
  37773. $116 = $115 & 1;
  37774. $117 = ($116|0)==(0);
  37775. if ($117) {
  37776. _abort();
  37777. // unreachable;
  37778. }
  37779. $118 = $115 & 2;
  37780. $119 = ($118|0)==(0);
  37781. if ($119) {
  37782. $120 = HEAP32[(20136)>>2]|0;
  37783. $121 = ($10|0)==($120|0);
  37784. $122 = HEAP32[(20132)>>2]|0;
  37785. if ($121) {
  37786. $123 = HEAP32[(20124)>>2]|0;
  37787. $124 = (($123) + ($$1382))|0;
  37788. HEAP32[(20124)>>2] = $124;
  37789. HEAP32[(20136)>>2] = $$1;
  37790. $125 = $124 | 1;
  37791. $126 = ((($$1)) + 4|0);
  37792. HEAP32[$126>>2] = $125;
  37793. $127 = ($$1|0)==($122|0);
  37794. if (!($127)) {
  37795. return;
  37796. }
  37797. HEAP32[(20132)>>2] = 0;
  37798. HEAP32[(20120)>>2] = 0;
  37799. return;
  37800. }
  37801. $128 = ($10|0)==($122|0);
  37802. if ($128) {
  37803. $129 = HEAP32[(20120)>>2]|0;
  37804. $130 = (($129) + ($$1382))|0;
  37805. HEAP32[(20120)>>2] = $130;
  37806. HEAP32[(20132)>>2] = $113;
  37807. $131 = $130 | 1;
  37808. $132 = ((($$1)) + 4|0);
  37809. HEAP32[$132>>2] = $131;
  37810. $133 = (($113) + ($130)|0);
  37811. HEAP32[$133>>2] = $130;
  37812. return;
  37813. }
  37814. $134 = $115 & -8;
  37815. $135 = (($134) + ($$1382))|0;
  37816. $136 = $115 >>> 3;
  37817. $137 = ($115>>>0)<(256);
  37818. L108: do {
  37819. if ($137) {
  37820. $138 = ((($10)) + 8|0);
  37821. $139 = HEAP32[$138>>2]|0;
  37822. $140 = ((($10)) + 12|0);
  37823. $141 = HEAP32[$140>>2]|0;
  37824. $142 = $136 << 1;
  37825. $143 = (20152 + ($142<<2)|0);
  37826. $144 = ($139|0)==($143|0);
  37827. if (!($144)) {
  37828. $145 = HEAP32[(20128)>>2]|0;
  37829. $146 = ($139>>>0)<($145>>>0);
  37830. if ($146) {
  37831. _abort();
  37832. // unreachable;
  37833. }
  37834. $147 = ((($139)) + 12|0);
  37835. $148 = HEAP32[$147>>2]|0;
  37836. $149 = ($148|0)==($10|0);
  37837. if (!($149)) {
  37838. _abort();
  37839. // unreachable;
  37840. }
  37841. }
  37842. $150 = ($141|0)==($139|0);
  37843. if ($150) {
  37844. $151 = 1 << $136;
  37845. $152 = $151 ^ -1;
  37846. $153 = HEAP32[5028]|0;
  37847. $154 = $153 & $152;
  37848. HEAP32[5028] = $154;
  37849. break;
  37850. }
  37851. $155 = ($141|0)==($143|0);
  37852. if ($155) {
  37853. $$pre442 = ((($141)) + 8|0);
  37854. $$pre$phi443Z2D = $$pre442;
  37855. } else {
  37856. $156 = HEAP32[(20128)>>2]|0;
  37857. $157 = ($141>>>0)<($156>>>0);
  37858. if ($157) {
  37859. _abort();
  37860. // unreachable;
  37861. }
  37862. $158 = ((($141)) + 8|0);
  37863. $159 = HEAP32[$158>>2]|0;
  37864. $160 = ($159|0)==($10|0);
  37865. if ($160) {
  37866. $$pre$phi443Z2D = $158;
  37867. } else {
  37868. _abort();
  37869. // unreachable;
  37870. }
  37871. }
  37872. $161 = ((($139)) + 12|0);
  37873. HEAP32[$161>>2] = $141;
  37874. HEAP32[$$pre$phi443Z2D>>2] = $139;
  37875. } else {
  37876. $162 = ((($10)) + 24|0);
  37877. $163 = HEAP32[$162>>2]|0;
  37878. $164 = ((($10)) + 12|0);
  37879. $165 = HEAP32[$164>>2]|0;
  37880. $166 = ($165|0)==($10|0);
  37881. do {
  37882. if ($166) {
  37883. $177 = ((($10)) + 16|0);
  37884. $178 = ((($177)) + 4|0);
  37885. $179 = HEAP32[$178>>2]|0;
  37886. $180 = ($179|0)==(0|0);
  37887. if ($180) {
  37888. $181 = HEAP32[$177>>2]|0;
  37889. $182 = ($181|0)==(0|0);
  37890. if ($182) {
  37891. $$3400 = 0;
  37892. break;
  37893. } else {
  37894. $$1398 = $181;$$1402 = $177;
  37895. }
  37896. } else {
  37897. $$1398 = $179;$$1402 = $178;
  37898. }
  37899. while(1) {
  37900. $183 = ((($$1398)) + 20|0);
  37901. $184 = HEAP32[$183>>2]|0;
  37902. $185 = ($184|0)==(0|0);
  37903. if (!($185)) {
  37904. $$1398 = $184;$$1402 = $183;
  37905. continue;
  37906. }
  37907. $186 = ((($$1398)) + 16|0);
  37908. $187 = HEAP32[$186>>2]|0;
  37909. $188 = ($187|0)==(0|0);
  37910. if ($188) {
  37911. break;
  37912. } else {
  37913. $$1398 = $187;$$1402 = $186;
  37914. }
  37915. }
  37916. $189 = HEAP32[(20128)>>2]|0;
  37917. $190 = ($$1402>>>0)<($189>>>0);
  37918. if ($190) {
  37919. _abort();
  37920. // unreachable;
  37921. } else {
  37922. HEAP32[$$1402>>2] = 0;
  37923. $$3400 = $$1398;
  37924. break;
  37925. }
  37926. } else {
  37927. $167 = ((($10)) + 8|0);
  37928. $168 = HEAP32[$167>>2]|0;
  37929. $169 = HEAP32[(20128)>>2]|0;
  37930. $170 = ($168>>>0)<($169>>>0);
  37931. if ($170) {
  37932. _abort();
  37933. // unreachable;
  37934. }
  37935. $171 = ((($168)) + 12|0);
  37936. $172 = HEAP32[$171>>2]|0;
  37937. $173 = ($172|0)==($10|0);
  37938. if (!($173)) {
  37939. _abort();
  37940. // unreachable;
  37941. }
  37942. $174 = ((($165)) + 8|0);
  37943. $175 = HEAP32[$174>>2]|0;
  37944. $176 = ($175|0)==($10|0);
  37945. if ($176) {
  37946. HEAP32[$171>>2] = $165;
  37947. HEAP32[$174>>2] = $168;
  37948. $$3400 = $165;
  37949. break;
  37950. } else {
  37951. _abort();
  37952. // unreachable;
  37953. }
  37954. }
  37955. } while(0);
  37956. $191 = ($163|0)==(0|0);
  37957. if (!($191)) {
  37958. $192 = ((($10)) + 28|0);
  37959. $193 = HEAP32[$192>>2]|0;
  37960. $194 = (20416 + ($193<<2)|0);
  37961. $195 = HEAP32[$194>>2]|0;
  37962. $196 = ($10|0)==($195|0);
  37963. do {
  37964. if ($196) {
  37965. HEAP32[$194>>2] = $$3400;
  37966. $cond422 = ($$3400|0)==(0|0);
  37967. if ($cond422) {
  37968. $197 = 1 << $193;
  37969. $198 = $197 ^ -1;
  37970. $199 = HEAP32[(20116)>>2]|0;
  37971. $200 = $199 & $198;
  37972. HEAP32[(20116)>>2] = $200;
  37973. break L108;
  37974. }
  37975. } else {
  37976. $201 = HEAP32[(20128)>>2]|0;
  37977. $202 = ($163>>>0)<($201>>>0);
  37978. if ($202) {
  37979. _abort();
  37980. // unreachable;
  37981. } else {
  37982. $203 = ((($163)) + 16|0);
  37983. $204 = HEAP32[$203>>2]|0;
  37984. $not$ = ($204|0)!=($10|0);
  37985. $$sink5 = $not$&1;
  37986. $205 = (((($163)) + 16|0) + ($$sink5<<2)|0);
  37987. HEAP32[$205>>2] = $$3400;
  37988. $206 = ($$3400|0)==(0|0);
  37989. if ($206) {
  37990. break L108;
  37991. } else {
  37992. break;
  37993. }
  37994. }
  37995. }
  37996. } while(0);
  37997. $207 = HEAP32[(20128)>>2]|0;
  37998. $208 = ($$3400>>>0)<($207>>>0);
  37999. if ($208) {
  38000. _abort();
  38001. // unreachable;
  38002. }
  38003. $209 = ((($$3400)) + 24|0);
  38004. HEAP32[$209>>2] = $163;
  38005. $210 = ((($10)) + 16|0);
  38006. $211 = HEAP32[$210>>2]|0;
  38007. $212 = ($211|0)==(0|0);
  38008. do {
  38009. if (!($212)) {
  38010. $213 = ($211>>>0)<($207>>>0);
  38011. if ($213) {
  38012. _abort();
  38013. // unreachable;
  38014. } else {
  38015. $214 = ((($$3400)) + 16|0);
  38016. HEAP32[$214>>2] = $211;
  38017. $215 = ((($211)) + 24|0);
  38018. HEAP32[$215>>2] = $$3400;
  38019. break;
  38020. }
  38021. }
  38022. } while(0);
  38023. $216 = ((($210)) + 4|0);
  38024. $217 = HEAP32[$216>>2]|0;
  38025. $218 = ($217|0)==(0|0);
  38026. if (!($218)) {
  38027. $219 = HEAP32[(20128)>>2]|0;
  38028. $220 = ($217>>>0)<($219>>>0);
  38029. if ($220) {
  38030. _abort();
  38031. // unreachable;
  38032. } else {
  38033. $221 = ((($$3400)) + 20|0);
  38034. HEAP32[$221>>2] = $217;
  38035. $222 = ((($217)) + 24|0);
  38036. HEAP32[$222>>2] = $$3400;
  38037. break;
  38038. }
  38039. }
  38040. }
  38041. }
  38042. } while(0);
  38043. $223 = $135 | 1;
  38044. $224 = ((($$1)) + 4|0);
  38045. HEAP32[$224>>2] = $223;
  38046. $225 = (($113) + ($135)|0);
  38047. HEAP32[$225>>2] = $135;
  38048. $226 = HEAP32[(20132)>>2]|0;
  38049. $227 = ($$1|0)==($226|0);
  38050. if ($227) {
  38051. HEAP32[(20120)>>2] = $135;
  38052. return;
  38053. } else {
  38054. $$2 = $135;
  38055. }
  38056. } else {
  38057. $228 = $115 & -2;
  38058. HEAP32[$114>>2] = $228;
  38059. $229 = $$1382 | 1;
  38060. $230 = ((($$1)) + 4|0);
  38061. HEAP32[$230>>2] = $229;
  38062. $231 = (($113) + ($$1382)|0);
  38063. HEAP32[$231>>2] = $$1382;
  38064. $$2 = $$1382;
  38065. }
  38066. $232 = $$2 >>> 3;
  38067. $233 = ($$2>>>0)<(256);
  38068. if ($233) {
  38069. $234 = $232 << 1;
  38070. $235 = (20152 + ($234<<2)|0);
  38071. $236 = HEAP32[5028]|0;
  38072. $237 = 1 << $232;
  38073. $238 = $236 & $237;
  38074. $239 = ($238|0)==(0);
  38075. if ($239) {
  38076. $240 = $236 | $237;
  38077. HEAP32[5028] = $240;
  38078. $$pre = ((($235)) + 8|0);
  38079. $$0403 = $235;$$pre$phiZ2D = $$pre;
  38080. } else {
  38081. $241 = ((($235)) + 8|0);
  38082. $242 = HEAP32[$241>>2]|0;
  38083. $243 = HEAP32[(20128)>>2]|0;
  38084. $244 = ($242>>>0)<($243>>>0);
  38085. if ($244) {
  38086. _abort();
  38087. // unreachable;
  38088. } else {
  38089. $$0403 = $242;$$pre$phiZ2D = $241;
  38090. }
  38091. }
  38092. HEAP32[$$pre$phiZ2D>>2] = $$1;
  38093. $245 = ((($$0403)) + 12|0);
  38094. HEAP32[$245>>2] = $$1;
  38095. $246 = ((($$1)) + 8|0);
  38096. HEAP32[$246>>2] = $$0403;
  38097. $247 = ((($$1)) + 12|0);
  38098. HEAP32[$247>>2] = $235;
  38099. return;
  38100. }
  38101. $248 = $$2 >>> 8;
  38102. $249 = ($248|0)==(0);
  38103. if ($249) {
  38104. $$0396 = 0;
  38105. } else {
  38106. $250 = ($$2>>>0)>(16777215);
  38107. if ($250) {
  38108. $$0396 = 31;
  38109. } else {
  38110. $251 = (($248) + 1048320)|0;
  38111. $252 = $251 >>> 16;
  38112. $253 = $252 & 8;
  38113. $254 = $248 << $253;
  38114. $255 = (($254) + 520192)|0;
  38115. $256 = $255 >>> 16;
  38116. $257 = $256 & 4;
  38117. $258 = $257 | $253;
  38118. $259 = $254 << $257;
  38119. $260 = (($259) + 245760)|0;
  38120. $261 = $260 >>> 16;
  38121. $262 = $261 & 2;
  38122. $263 = $258 | $262;
  38123. $264 = (14 - ($263))|0;
  38124. $265 = $259 << $262;
  38125. $266 = $265 >>> 15;
  38126. $267 = (($264) + ($266))|0;
  38127. $268 = $267 << 1;
  38128. $269 = (($267) + 7)|0;
  38129. $270 = $$2 >>> $269;
  38130. $271 = $270 & 1;
  38131. $272 = $271 | $268;
  38132. $$0396 = $272;
  38133. }
  38134. }
  38135. $273 = (20416 + ($$0396<<2)|0);
  38136. $274 = ((($$1)) + 28|0);
  38137. HEAP32[$274>>2] = $$0396;
  38138. $275 = ((($$1)) + 16|0);
  38139. $276 = ((($$1)) + 20|0);
  38140. HEAP32[$276>>2] = 0;
  38141. HEAP32[$275>>2] = 0;
  38142. $277 = HEAP32[(20116)>>2]|0;
  38143. $278 = 1 << $$0396;
  38144. $279 = $277 & $278;
  38145. $280 = ($279|0)==(0);
  38146. do {
  38147. if ($280) {
  38148. $281 = $277 | $278;
  38149. HEAP32[(20116)>>2] = $281;
  38150. HEAP32[$273>>2] = $$1;
  38151. $282 = ((($$1)) + 24|0);
  38152. HEAP32[$282>>2] = $273;
  38153. $283 = ((($$1)) + 12|0);
  38154. HEAP32[$283>>2] = $$1;
  38155. $284 = ((($$1)) + 8|0);
  38156. HEAP32[$284>>2] = $$1;
  38157. } else {
  38158. $285 = HEAP32[$273>>2]|0;
  38159. $286 = ($$0396|0)==(31);
  38160. $287 = $$0396 >>> 1;
  38161. $288 = (25 - ($287))|0;
  38162. $289 = $286 ? 0 : $288;
  38163. $290 = $$2 << $289;
  38164. $$0383 = $290;$$0384 = $285;
  38165. while(1) {
  38166. $291 = ((($$0384)) + 4|0);
  38167. $292 = HEAP32[$291>>2]|0;
  38168. $293 = $292 & -8;
  38169. $294 = ($293|0)==($$2|0);
  38170. if ($294) {
  38171. label = 124;
  38172. break;
  38173. }
  38174. $295 = $$0383 >>> 31;
  38175. $296 = (((($$0384)) + 16|0) + ($295<<2)|0);
  38176. $297 = $$0383 << 1;
  38177. $298 = HEAP32[$296>>2]|0;
  38178. $299 = ($298|0)==(0|0);
  38179. if ($299) {
  38180. label = 121;
  38181. break;
  38182. } else {
  38183. $$0383 = $297;$$0384 = $298;
  38184. }
  38185. }
  38186. if ((label|0) == 121) {
  38187. $300 = HEAP32[(20128)>>2]|0;
  38188. $301 = ($296>>>0)<($300>>>0);
  38189. if ($301) {
  38190. _abort();
  38191. // unreachable;
  38192. } else {
  38193. HEAP32[$296>>2] = $$1;
  38194. $302 = ((($$1)) + 24|0);
  38195. HEAP32[$302>>2] = $$0384;
  38196. $303 = ((($$1)) + 12|0);
  38197. HEAP32[$303>>2] = $$1;
  38198. $304 = ((($$1)) + 8|0);
  38199. HEAP32[$304>>2] = $$1;
  38200. break;
  38201. }
  38202. }
  38203. else if ((label|0) == 124) {
  38204. $305 = ((($$0384)) + 8|0);
  38205. $306 = HEAP32[$305>>2]|0;
  38206. $307 = HEAP32[(20128)>>2]|0;
  38207. $308 = ($306>>>0)>=($307>>>0);
  38208. $not$437 = ($$0384>>>0)>=($307>>>0);
  38209. $309 = $308 & $not$437;
  38210. if ($309) {
  38211. $310 = ((($306)) + 12|0);
  38212. HEAP32[$310>>2] = $$1;
  38213. HEAP32[$305>>2] = $$1;
  38214. $311 = ((($$1)) + 8|0);
  38215. HEAP32[$311>>2] = $306;
  38216. $312 = ((($$1)) + 12|0);
  38217. HEAP32[$312>>2] = $$0384;
  38218. $313 = ((($$1)) + 24|0);
  38219. HEAP32[$313>>2] = 0;
  38220. break;
  38221. } else {
  38222. _abort();
  38223. // unreachable;
  38224. }
  38225. }
  38226. }
  38227. } while(0);
  38228. $314 = HEAP32[(20144)>>2]|0;
  38229. $315 = (($314) + -1)|0;
  38230. HEAP32[(20144)>>2] = $315;
  38231. $316 = ($315|0)==(0);
  38232. if ($316) {
  38233. $$0212$in$i = (20568);
  38234. } else {
  38235. return;
  38236. }
  38237. while(1) {
  38238. $$0212$i = HEAP32[$$0212$in$i>>2]|0;
  38239. $317 = ($$0212$i|0)==(0|0);
  38240. $318 = ((($$0212$i)) + 8|0);
  38241. if ($317) {
  38242. break;
  38243. } else {
  38244. $$0212$in$i = $318;
  38245. }
  38246. }
  38247. HEAP32[(20144)>>2] = -1;
  38248. return;
  38249. }
  38250. function _realloc($0,$1) {
  38251. $0 = $0|0;
  38252. $1 = $1|0;
  38253. 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;
  38254. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  38255. sp = STACKTOP;
  38256. $2 = ($0|0)==(0|0);
  38257. if ($2) {
  38258. $3 = (_malloc($1)|0);
  38259. $$1 = $3;
  38260. return ($$1|0);
  38261. }
  38262. $4 = ($1>>>0)>(4294967231);
  38263. if ($4) {
  38264. $5 = (___errno_location()|0);
  38265. HEAP32[$5>>2] = 12;
  38266. $$1 = 0;
  38267. return ($$1|0);
  38268. }
  38269. $6 = ($1>>>0)<(11);
  38270. $7 = (($1) + 11)|0;
  38271. $8 = $7 & -8;
  38272. $9 = $6 ? 16 : $8;
  38273. $10 = ((($0)) + -8|0);
  38274. $11 = (_try_realloc_chunk($10,$9)|0);
  38275. $12 = ($11|0)==(0|0);
  38276. if (!($12)) {
  38277. $13 = ((($11)) + 8|0);
  38278. $$1 = $13;
  38279. return ($$1|0);
  38280. }
  38281. $14 = (_malloc($1)|0);
  38282. $15 = ($14|0)==(0|0);
  38283. if ($15) {
  38284. $$1 = 0;
  38285. return ($$1|0);
  38286. }
  38287. $16 = ((($0)) + -4|0);
  38288. $17 = HEAP32[$16>>2]|0;
  38289. $18 = $17 & -8;
  38290. $19 = $17 & 3;
  38291. $20 = ($19|0)==(0);
  38292. $21 = $20 ? 8 : 4;
  38293. $22 = (($18) - ($21))|0;
  38294. $23 = ($22>>>0)<($1>>>0);
  38295. $24 = $23 ? $22 : $1;
  38296. _memcpy(($14|0),($0|0),($24|0))|0;
  38297. _free($0);
  38298. $$1 = $14;
  38299. return ($$1|0);
  38300. }
  38301. function _try_realloc_chunk($0,$1) {
  38302. $0 = $0|0;
  38303. $1 = $1|0;
  38304. 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;
  38305. 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;
  38306. 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;
  38307. 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;
  38308. 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;
  38309. 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;
  38310. 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;
  38311. 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;
  38312. 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;
  38313. var $cond = 0, $not$ = 0, $notlhs = 0, $notrhs = 0, $or$cond$not = 0, $or$cond3 = 0, $storemerge = 0, $storemerge1 = 0, label = 0, sp = 0;
  38314. sp = STACKTOP;
  38315. $2 = ((($0)) + 4|0);
  38316. $3 = HEAP32[$2>>2]|0;
  38317. $4 = $3 & -8;
  38318. $5 = (($0) + ($4)|0);
  38319. $6 = HEAP32[(20128)>>2]|0;
  38320. $7 = $3 & 3;
  38321. $notlhs = ($0>>>0)>=($6>>>0);
  38322. $notrhs = ($7|0)!=(1);
  38323. $or$cond$not = $notrhs & $notlhs;
  38324. $8 = ($0>>>0)<($5>>>0);
  38325. $or$cond3 = $or$cond$not & $8;
  38326. if (!($or$cond3)) {
  38327. _abort();
  38328. // unreachable;
  38329. }
  38330. $9 = ((($5)) + 4|0);
  38331. $10 = HEAP32[$9>>2]|0;
  38332. $11 = $10 & 1;
  38333. $12 = ($11|0)==(0);
  38334. if ($12) {
  38335. _abort();
  38336. // unreachable;
  38337. }
  38338. $13 = ($7|0)==(0);
  38339. if ($13) {
  38340. $14 = ($1>>>0)<(256);
  38341. if ($14) {
  38342. $$2 = 0;
  38343. return ($$2|0);
  38344. }
  38345. $15 = (($1) + 4)|0;
  38346. $16 = ($4>>>0)<($15>>>0);
  38347. if (!($16)) {
  38348. $17 = (($4) - ($1))|0;
  38349. $18 = HEAP32[(20592)>>2]|0;
  38350. $19 = $18 << 1;
  38351. $20 = ($17>>>0)>($19>>>0);
  38352. if (!($20)) {
  38353. $$2 = $0;
  38354. return ($$2|0);
  38355. }
  38356. }
  38357. $$2 = 0;
  38358. return ($$2|0);
  38359. }
  38360. $21 = ($4>>>0)<($1>>>0);
  38361. if (!($21)) {
  38362. $22 = (($4) - ($1))|0;
  38363. $23 = ($22>>>0)>(15);
  38364. if (!($23)) {
  38365. $$2 = $0;
  38366. return ($$2|0);
  38367. }
  38368. $24 = (($0) + ($1)|0);
  38369. $25 = $3 & 1;
  38370. $26 = $25 | $1;
  38371. $27 = $26 | 2;
  38372. HEAP32[$2>>2] = $27;
  38373. $28 = ((($24)) + 4|0);
  38374. $29 = $22 | 3;
  38375. HEAP32[$28>>2] = $29;
  38376. $30 = (($24) + ($22)|0);
  38377. $31 = ((($30)) + 4|0);
  38378. $32 = HEAP32[$31>>2]|0;
  38379. $33 = $32 | 1;
  38380. HEAP32[$31>>2] = $33;
  38381. _dispose_chunk($24,$22);
  38382. $$2 = $0;
  38383. return ($$2|0);
  38384. }
  38385. $34 = HEAP32[(20136)>>2]|0;
  38386. $35 = ($5|0)==($34|0);
  38387. if ($35) {
  38388. $36 = HEAP32[(20124)>>2]|0;
  38389. $37 = (($36) + ($4))|0;
  38390. $38 = ($37>>>0)>($1>>>0);
  38391. $39 = (($37) - ($1))|0;
  38392. $40 = (($0) + ($1)|0);
  38393. if (!($38)) {
  38394. $$2 = 0;
  38395. return ($$2|0);
  38396. }
  38397. $41 = $39 | 1;
  38398. $42 = ((($40)) + 4|0);
  38399. $43 = $3 & 1;
  38400. $44 = $43 | $1;
  38401. $45 = $44 | 2;
  38402. HEAP32[$2>>2] = $45;
  38403. HEAP32[$42>>2] = $41;
  38404. HEAP32[(20136)>>2] = $40;
  38405. HEAP32[(20124)>>2] = $39;
  38406. $$2 = $0;
  38407. return ($$2|0);
  38408. }
  38409. $46 = HEAP32[(20132)>>2]|0;
  38410. $47 = ($5|0)==($46|0);
  38411. if ($47) {
  38412. $48 = HEAP32[(20120)>>2]|0;
  38413. $49 = (($48) + ($4))|0;
  38414. $50 = ($49>>>0)<($1>>>0);
  38415. if ($50) {
  38416. $$2 = 0;
  38417. return ($$2|0);
  38418. }
  38419. $51 = (($49) - ($1))|0;
  38420. $52 = ($51>>>0)>(15);
  38421. $53 = $3 & 1;
  38422. if ($52) {
  38423. $54 = (($0) + ($1)|0);
  38424. $55 = (($54) + ($51)|0);
  38425. $56 = $53 | $1;
  38426. $57 = $56 | 2;
  38427. HEAP32[$2>>2] = $57;
  38428. $58 = ((($54)) + 4|0);
  38429. $59 = $51 | 1;
  38430. HEAP32[$58>>2] = $59;
  38431. HEAP32[$55>>2] = $51;
  38432. $60 = ((($55)) + 4|0);
  38433. $61 = HEAP32[$60>>2]|0;
  38434. $62 = $61 & -2;
  38435. HEAP32[$60>>2] = $62;
  38436. $storemerge = $54;$storemerge1 = $51;
  38437. } else {
  38438. $63 = $53 | $49;
  38439. $64 = $63 | 2;
  38440. HEAP32[$2>>2] = $64;
  38441. $65 = (($0) + ($49)|0);
  38442. $66 = ((($65)) + 4|0);
  38443. $67 = HEAP32[$66>>2]|0;
  38444. $68 = $67 | 1;
  38445. HEAP32[$66>>2] = $68;
  38446. $storemerge = 0;$storemerge1 = 0;
  38447. }
  38448. HEAP32[(20120)>>2] = $storemerge1;
  38449. HEAP32[(20132)>>2] = $storemerge;
  38450. $$2 = $0;
  38451. return ($$2|0);
  38452. }
  38453. $69 = $10 & 2;
  38454. $70 = ($69|0)==(0);
  38455. if (!($70)) {
  38456. $$2 = 0;
  38457. return ($$2|0);
  38458. }
  38459. $71 = $10 & -8;
  38460. $72 = (($71) + ($4))|0;
  38461. $73 = ($72>>>0)<($1>>>0);
  38462. if ($73) {
  38463. $$2 = 0;
  38464. return ($$2|0);
  38465. }
  38466. $74 = (($72) - ($1))|0;
  38467. $75 = $10 >>> 3;
  38468. $76 = ($10>>>0)<(256);
  38469. L49: do {
  38470. if ($76) {
  38471. $77 = ((($5)) + 8|0);
  38472. $78 = HEAP32[$77>>2]|0;
  38473. $79 = ((($5)) + 12|0);
  38474. $80 = HEAP32[$79>>2]|0;
  38475. $81 = $75 << 1;
  38476. $82 = (20152 + ($81<<2)|0);
  38477. $83 = ($78|0)==($82|0);
  38478. if (!($83)) {
  38479. $84 = ($78>>>0)<($6>>>0);
  38480. if ($84) {
  38481. _abort();
  38482. // unreachable;
  38483. }
  38484. $85 = ((($78)) + 12|0);
  38485. $86 = HEAP32[$85>>2]|0;
  38486. $87 = ($86|0)==($5|0);
  38487. if (!($87)) {
  38488. _abort();
  38489. // unreachable;
  38490. }
  38491. }
  38492. $88 = ($80|0)==($78|0);
  38493. if ($88) {
  38494. $89 = 1 << $75;
  38495. $90 = $89 ^ -1;
  38496. $91 = HEAP32[5028]|0;
  38497. $92 = $91 & $90;
  38498. HEAP32[5028] = $92;
  38499. break;
  38500. }
  38501. $93 = ($80|0)==($82|0);
  38502. if ($93) {
  38503. $$pre = ((($80)) + 8|0);
  38504. $$pre$phiZ2D = $$pre;
  38505. } else {
  38506. $94 = ($80>>>0)<($6>>>0);
  38507. if ($94) {
  38508. _abort();
  38509. // unreachable;
  38510. }
  38511. $95 = ((($80)) + 8|0);
  38512. $96 = HEAP32[$95>>2]|0;
  38513. $97 = ($96|0)==($5|0);
  38514. if ($97) {
  38515. $$pre$phiZ2D = $95;
  38516. } else {
  38517. _abort();
  38518. // unreachable;
  38519. }
  38520. }
  38521. $98 = ((($78)) + 12|0);
  38522. HEAP32[$98>>2] = $80;
  38523. HEAP32[$$pre$phiZ2D>>2] = $78;
  38524. } else {
  38525. $99 = ((($5)) + 24|0);
  38526. $100 = HEAP32[$99>>2]|0;
  38527. $101 = ((($5)) + 12|0);
  38528. $102 = HEAP32[$101>>2]|0;
  38529. $103 = ($102|0)==($5|0);
  38530. do {
  38531. if ($103) {
  38532. $113 = ((($5)) + 16|0);
  38533. $114 = ((($113)) + 4|0);
  38534. $115 = HEAP32[$114>>2]|0;
  38535. $116 = ($115|0)==(0|0);
  38536. if ($116) {
  38537. $117 = HEAP32[$113>>2]|0;
  38538. $118 = ($117|0)==(0|0);
  38539. if ($118) {
  38540. $$3 = 0;
  38541. break;
  38542. } else {
  38543. $$1272 = $117;$$1275 = $113;
  38544. }
  38545. } else {
  38546. $$1272 = $115;$$1275 = $114;
  38547. }
  38548. while(1) {
  38549. $119 = ((($$1272)) + 20|0);
  38550. $120 = HEAP32[$119>>2]|0;
  38551. $121 = ($120|0)==(0|0);
  38552. if (!($121)) {
  38553. $$1272 = $120;$$1275 = $119;
  38554. continue;
  38555. }
  38556. $122 = ((($$1272)) + 16|0);
  38557. $123 = HEAP32[$122>>2]|0;
  38558. $124 = ($123|0)==(0|0);
  38559. if ($124) {
  38560. break;
  38561. } else {
  38562. $$1272 = $123;$$1275 = $122;
  38563. }
  38564. }
  38565. $125 = ($$1275>>>0)<($6>>>0);
  38566. if ($125) {
  38567. _abort();
  38568. // unreachable;
  38569. } else {
  38570. HEAP32[$$1275>>2] = 0;
  38571. $$3 = $$1272;
  38572. break;
  38573. }
  38574. } else {
  38575. $104 = ((($5)) + 8|0);
  38576. $105 = HEAP32[$104>>2]|0;
  38577. $106 = ($105>>>0)<($6>>>0);
  38578. if ($106) {
  38579. _abort();
  38580. // unreachable;
  38581. }
  38582. $107 = ((($105)) + 12|0);
  38583. $108 = HEAP32[$107>>2]|0;
  38584. $109 = ($108|0)==($5|0);
  38585. if (!($109)) {
  38586. _abort();
  38587. // unreachable;
  38588. }
  38589. $110 = ((($102)) + 8|0);
  38590. $111 = HEAP32[$110>>2]|0;
  38591. $112 = ($111|0)==($5|0);
  38592. if ($112) {
  38593. HEAP32[$107>>2] = $102;
  38594. HEAP32[$110>>2] = $105;
  38595. $$3 = $102;
  38596. break;
  38597. } else {
  38598. _abort();
  38599. // unreachable;
  38600. }
  38601. }
  38602. } while(0);
  38603. $126 = ($100|0)==(0|0);
  38604. if (!($126)) {
  38605. $127 = ((($5)) + 28|0);
  38606. $128 = HEAP32[$127>>2]|0;
  38607. $129 = (20416 + ($128<<2)|0);
  38608. $130 = HEAP32[$129>>2]|0;
  38609. $131 = ($5|0)==($130|0);
  38610. do {
  38611. if ($131) {
  38612. HEAP32[$129>>2] = $$3;
  38613. $cond = ($$3|0)==(0|0);
  38614. if ($cond) {
  38615. $132 = 1 << $128;
  38616. $133 = $132 ^ -1;
  38617. $134 = HEAP32[(20116)>>2]|0;
  38618. $135 = $134 & $133;
  38619. HEAP32[(20116)>>2] = $135;
  38620. break L49;
  38621. }
  38622. } else {
  38623. $136 = HEAP32[(20128)>>2]|0;
  38624. $137 = ($100>>>0)<($136>>>0);
  38625. if ($137) {
  38626. _abort();
  38627. // unreachable;
  38628. } else {
  38629. $138 = ((($100)) + 16|0);
  38630. $139 = HEAP32[$138>>2]|0;
  38631. $not$ = ($139|0)!=($5|0);
  38632. $$sink1 = $not$&1;
  38633. $140 = (((($100)) + 16|0) + ($$sink1<<2)|0);
  38634. HEAP32[$140>>2] = $$3;
  38635. $141 = ($$3|0)==(0|0);
  38636. if ($141) {
  38637. break L49;
  38638. } else {
  38639. break;
  38640. }
  38641. }
  38642. }
  38643. } while(0);
  38644. $142 = HEAP32[(20128)>>2]|0;
  38645. $143 = ($$3>>>0)<($142>>>0);
  38646. if ($143) {
  38647. _abort();
  38648. // unreachable;
  38649. }
  38650. $144 = ((($$3)) + 24|0);
  38651. HEAP32[$144>>2] = $100;
  38652. $145 = ((($5)) + 16|0);
  38653. $146 = HEAP32[$145>>2]|0;
  38654. $147 = ($146|0)==(0|0);
  38655. do {
  38656. if (!($147)) {
  38657. $148 = ($146>>>0)<($142>>>0);
  38658. if ($148) {
  38659. _abort();
  38660. // unreachable;
  38661. } else {
  38662. $149 = ((($$3)) + 16|0);
  38663. HEAP32[$149>>2] = $146;
  38664. $150 = ((($146)) + 24|0);
  38665. HEAP32[$150>>2] = $$3;
  38666. break;
  38667. }
  38668. }
  38669. } while(0);
  38670. $151 = ((($145)) + 4|0);
  38671. $152 = HEAP32[$151>>2]|0;
  38672. $153 = ($152|0)==(0|0);
  38673. if (!($153)) {
  38674. $154 = HEAP32[(20128)>>2]|0;
  38675. $155 = ($152>>>0)<($154>>>0);
  38676. if ($155) {
  38677. _abort();
  38678. // unreachable;
  38679. } else {
  38680. $156 = ((($$3)) + 20|0);
  38681. HEAP32[$156>>2] = $152;
  38682. $157 = ((($152)) + 24|0);
  38683. HEAP32[$157>>2] = $$3;
  38684. break;
  38685. }
  38686. }
  38687. }
  38688. }
  38689. } while(0);
  38690. $158 = ($74>>>0)<(16);
  38691. $159 = $3 & 1;
  38692. if ($158) {
  38693. $160 = $72 | $159;
  38694. $161 = $160 | 2;
  38695. HEAP32[$2>>2] = $161;
  38696. $162 = (($0) + ($72)|0);
  38697. $163 = ((($162)) + 4|0);
  38698. $164 = HEAP32[$163>>2]|0;
  38699. $165 = $164 | 1;
  38700. HEAP32[$163>>2] = $165;
  38701. $$2 = $0;
  38702. return ($$2|0);
  38703. } else {
  38704. $166 = (($0) + ($1)|0);
  38705. $167 = $159 | $1;
  38706. $168 = $167 | 2;
  38707. HEAP32[$2>>2] = $168;
  38708. $169 = ((($166)) + 4|0);
  38709. $170 = $74 | 3;
  38710. HEAP32[$169>>2] = $170;
  38711. $171 = (($166) + ($74)|0);
  38712. $172 = ((($171)) + 4|0);
  38713. $173 = HEAP32[$172>>2]|0;
  38714. $174 = $173 | 1;
  38715. HEAP32[$172>>2] = $174;
  38716. _dispose_chunk($166,$74);
  38717. $$2 = $0;
  38718. return ($$2|0);
  38719. }
  38720. return (0)|0;
  38721. }
  38722. function _dispose_chunk($0,$1) {
  38723. $0 = $0|0;
  38724. $1 = $1|0;
  38725. 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;
  38726. 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;
  38727. 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;
  38728. 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;
  38729. 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;
  38730. 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;
  38731. 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;
  38732. 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;
  38733. 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;
  38734. 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;
  38735. 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;
  38736. 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;
  38737. 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;
  38738. 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;
  38739. 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;
  38740. 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;
  38741. var $97 = 0, $98 = 0, $99 = 0, $cond = 0, $cond17 = 0, $not$ = 0, $not$1 = 0, $not$19 = 0, label = 0, sp = 0;
  38742. sp = STACKTOP;
  38743. $2 = (($0) + ($1)|0);
  38744. $3 = ((($0)) + 4|0);
  38745. $4 = HEAP32[$3>>2]|0;
  38746. $5 = $4 & 1;
  38747. $6 = ($5|0)==(0);
  38748. L1: do {
  38749. if ($6) {
  38750. $7 = HEAP32[$0>>2]|0;
  38751. $8 = $4 & 3;
  38752. $9 = ($8|0)==(0);
  38753. if ($9) {
  38754. return;
  38755. }
  38756. $10 = (0 - ($7))|0;
  38757. $11 = (($0) + ($10)|0);
  38758. $12 = (($7) + ($1))|0;
  38759. $13 = HEAP32[(20128)>>2]|0;
  38760. $14 = ($11>>>0)<($13>>>0);
  38761. if ($14) {
  38762. _abort();
  38763. // unreachable;
  38764. }
  38765. $15 = HEAP32[(20132)>>2]|0;
  38766. $16 = ($11|0)==($15|0);
  38767. if ($16) {
  38768. $100 = ((($2)) + 4|0);
  38769. $101 = HEAP32[$100>>2]|0;
  38770. $102 = $101 & 3;
  38771. $103 = ($102|0)==(3);
  38772. if (!($103)) {
  38773. $$1 = $11;$$1418 = $12;
  38774. break;
  38775. }
  38776. $104 = (($11) + ($12)|0);
  38777. $105 = ((($11)) + 4|0);
  38778. $106 = $12 | 1;
  38779. $107 = $101 & -2;
  38780. HEAP32[(20120)>>2] = $12;
  38781. HEAP32[$100>>2] = $107;
  38782. HEAP32[$105>>2] = $106;
  38783. HEAP32[$104>>2] = $12;
  38784. return;
  38785. }
  38786. $17 = $7 >>> 3;
  38787. $18 = ($7>>>0)<(256);
  38788. if ($18) {
  38789. $19 = ((($11)) + 8|0);
  38790. $20 = HEAP32[$19>>2]|0;
  38791. $21 = ((($11)) + 12|0);
  38792. $22 = HEAP32[$21>>2]|0;
  38793. $23 = $17 << 1;
  38794. $24 = (20152 + ($23<<2)|0);
  38795. $25 = ($20|0)==($24|0);
  38796. if (!($25)) {
  38797. $26 = ($20>>>0)<($13>>>0);
  38798. if ($26) {
  38799. _abort();
  38800. // unreachable;
  38801. }
  38802. $27 = ((($20)) + 12|0);
  38803. $28 = HEAP32[$27>>2]|0;
  38804. $29 = ($28|0)==($11|0);
  38805. if (!($29)) {
  38806. _abort();
  38807. // unreachable;
  38808. }
  38809. }
  38810. $30 = ($22|0)==($20|0);
  38811. if ($30) {
  38812. $31 = 1 << $17;
  38813. $32 = $31 ^ -1;
  38814. $33 = HEAP32[5028]|0;
  38815. $34 = $33 & $32;
  38816. HEAP32[5028] = $34;
  38817. $$1 = $11;$$1418 = $12;
  38818. break;
  38819. }
  38820. $35 = ($22|0)==($24|0);
  38821. if ($35) {
  38822. $$pre25 = ((($22)) + 8|0);
  38823. $$pre$phi26Z2D = $$pre25;
  38824. } else {
  38825. $36 = ($22>>>0)<($13>>>0);
  38826. if ($36) {
  38827. _abort();
  38828. // unreachable;
  38829. }
  38830. $37 = ((($22)) + 8|0);
  38831. $38 = HEAP32[$37>>2]|0;
  38832. $39 = ($38|0)==($11|0);
  38833. if ($39) {
  38834. $$pre$phi26Z2D = $37;
  38835. } else {
  38836. _abort();
  38837. // unreachable;
  38838. }
  38839. }
  38840. $40 = ((($20)) + 12|0);
  38841. HEAP32[$40>>2] = $22;
  38842. HEAP32[$$pre$phi26Z2D>>2] = $20;
  38843. $$1 = $11;$$1418 = $12;
  38844. break;
  38845. }
  38846. $41 = ((($11)) + 24|0);
  38847. $42 = HEAP32[$41>>2]|0;
  38848. $43 = ((($11)) + 12|0);
  38849. $44 = HEAP32[$43>>2]|0;
  38850. $45 = ($44|0)==($11|0);
  38851. do {
  38852. if ($45) {
  38853. $55 = ((($11)) + 16|0);
  38854. $56 = ((($55)) + 4|0);
  38855. $57 = HEAP32[$56>>2]|0;
  38856. $58 = ($57|0)==(0|0);
  38857. if ($58) {
  38858. $59 = HEAP32[$55>>2]|0;
  38859. $60 = ($59|0)==(0|0);
  38860. if ($60) {
  38861. $$3 = 0;
  38862. break;
  38863. } else {
  38864. $$1426 = $59;$$1429 = $55;
  38865. }
  38866. } else {
  38867. $$1426 = $57;$$1429 = $56;
  38868. }
  38869. while(1) {
  38870. $61 = ((($$1426)) + 20|0);
  38871. $62 = HEAP32[$61>>2]|0;
  38872. $63 = ($62|0)==(0|0);
  38873. if (!($63)) {
  38874. $$1426 = $62;$$1429 = $61;
  38875. continue;
  38876. }
  38877. $64 = ((($$1426)) + 16|0);
  38878. $65 = HEAP32[$64>>2]|0;
  38879. $66 = ($65|0)==(0|0);
  38880. if ($66) {
  38881. break;
  38882. } else {
  38883. $$1426 = $65;$$1429 = $64;
  38884. }
  38885. }
  38886. $67 = ($$1429>>>0)<($13>>>0);
  38887. if ($67) {
  38888. _abort();
  38889. // unreachable;
  38890. } else {
  38891. HEAP32[$$1429>>2] = 0;
  38892. $$3 = $$1426;
  38893. break;
  38894. }
  38895. } else {
  38896. $46 = ((($11)) + 8|0);
  38897. $47 = HEAP32[$46>>2]|0;
  38898. $48 = ($47>>>0)<($13>>>0);
  38899. if ($48) {
  38900. _abort();
  38901. // unreachable;
  38902. }
  38903. $49 = ((($47)) + 12|0);
  38904. $50 = HEAP32[$49>>2]|0;
  38905. $51 = ($50|0)==($11|0);
  38906. if (!($51)) {
  38907. _abort();
  38908. // unreachable;
  38909. }
  38910. $52 = ((($44)) + 8|0);
  38911. $53 = HEAP32[$52>>2]|0;
  38912. $54 = ($53|0)==($11|0);
  38913. if ($54) {
  38914. HEAP32[$49>>2] = $44;
  38915. HEAP32[$52>>2] = $47;
  38916. $$3 = $44;
  38917. break;
  38918. } else {
  38919. _abort();
  38920. // unreachable;
  38921. }
  38922. }
  38923. } while(0);
  38924. $68 = ($42|0)==(0|0);
  38925. if ($68) {
  38926. $$1 = $11;$$1418 = $12;
  38927. } else {
  38928. $69 = ((($11)) + 28|0);
  38929. $70 = HEAP32[$69>>2]|0;
  38930. $71 = (20416 + ($70<<2)|0);
  38931. $72 = HEAP32[$71>>2]|0;
  38932. $73 = ($11|0)==($72|0);
  38933. do {
  38934. if ($73) {
  38935. HEAP32[$71>>2] = $$3;
  38936. $cond = ($$3|0)==(0|0);
  38937. if ($cond) {
  38938. $74 = 1 << $70;
  38939. $75 = $74 ^ -1;
  38940. $76 = HEAP32[(20116)>>2]|0;
  38941. $77 = $76 & $75;
  38942. HEAP32[(20116)>>2] = $77;
  38943. $$1 = $11;$$1418 = $12;
  38944. break L1;
  38945. }
  38946. } else {
  38947. $78 = HEAP32[(20128)>>2]|0;
  38948. $79 = ($42>>>0)<($78>>>0);
  38949. if ($79) {
  38950. _abort();
  38951. // unreachable;
  38952. } else {
  38953. $80 = ((($42)) + 16|0);
  38954. $81 = HEAP32[$80>>2]|0;
  38955. $not$1 = ($81|0)!=($11|0);
  38956. $$sink2 = $not$1&1;
  38957. $82 = (((($42)) + 16|0) + ($$sink2<<2)|0);
  38958. HEAP32[$82>>2] = $$3;
  38959. $83 = ($$3|0)==(0|0);
  38960. if ($83) {
  38961. $$1 = $11;$$1418 = $12;
  38962. break L1;
  38963. } else {
  38964. break;
  38965. }
  38966. }
  38967. }
  38968. } while(0);
  38969. $84 = HEAP32[(20128)>>2]|0;
  38970. $85 = ($$3>>>0)<($84>>>0);
  38971. if ($85) {
  38972. _abort();
  38973. // unreachable;
  38974. }
  38975. $86 = ((($$3)) + 24|0);
  38976. HEAP32[$86>>2] = $42;
  38977. $87 = ((($11)) + 16|0);
  38978. $88 = HEAP32[$87>>2]|0;
  38979. $89 = ($88|0)==(0|0);
  38980. do {
  38981. if (!($89)) {
  38982. $90 = ($88>>>0)<($84>>>0);
  38983. if ($90) {
  38984. _abort();
  38985. // unreachable;
  38986. } else {
  38987. $91 = ((($$3)) + 16|0);
  38988. HEAP32[$91>>2] = $88;
  38989. $92 = ((($88)) + 24|0);
  38990. HEAP32[$92>>2] = $$3;
  38991. break;
  38992. }
  38993. }
  38994. } while(0);
  38995. $93 = ((($87)) + 4|0);
  38996. $94 = HEAP32[$93>>2]|0;
  38997. $95 = ($94|0)==(0|0);
  38998. if ($95) {
  38999. $$1 = $11;$$1418 = $12;
  39000. } else {
  39001. $96 = HEAP32[(20128)>>2]|0;
  39002. $97 = ($94>>>0)<($96>>>0);
  39003. if ($97) {
  39004. _abort();
  39005. // unreachable;
  39006. } else {
  39007. $98 = ((($$3)) + 20|0);
  39008. HEAP32[$98>>2] = $94;
  39009. $99 = ((($94)) + 24|0);
  39010. HEAP32[$99>>2] = $$3;
  39011. $$1 = $11;$$1418 = $12;
  39012. break;
  39013. }
  39014. }
  39015. }
  39016. } else {
  39017. $$1 = $0;$$1418 = $1;
  39018. }
  39019. } while(0);
  39020. $108 = HEAP32[(20128)>>2]|0;
  39021. $109 = ($2>>>0)<($108>>>0);
  39022. if ($109) {
  39023. _abort();
  39024. // unreachable;
  39025. }
  39026. $110 = ((($2)) + 4|0);
  39027. $111 = HEAP32[$110>>2]|0;
  39028. $112 = $111 & 2;
  39029. $113 = ($112|0)==(0);
  39030. if ($113) {
  39031. $114 = HEAP32[(20136)>>2]|0;
  39032. $115 = ($2|0)==($114|0);
  39033. $116 = HEAP32[(20132)>>2]|0;
  39034. if ($115) {
  39035. $117 = HEAP32[(20124)>>2]|0;
  39036. $118 = (($117) + ($$1418))|0;
  39037. HEAP32[(20124)>>2] = $118;
  39038. HEAP32[(20136)>>2] = $$1;
  39039. $119 = $118 | 1;
  39040. $120 = ((($$1)) + 4|0);
  39041. HEAP32[$120>>2] = $119;
  39042. $121 = ($$1|0)==($116|0);
  39043. if (!($121)) {
  39044. return;
  39045. }
  39046. HEAP32[(20132)>>2] = 0;
  39047. HEAP32[(20120)>>2] = 0;
  39048. return;
  39049. }
  39050. $122 = ($2|0)==($116|0);
  39051. if ($122) {
  39052. $123 = HEAP32[(20120)>>2]|0;
  39053. $124 = (($123) + ($$1418))|0;
  39054. HEAP32[(20120)>>2] = $124;
  39055. HEAP32[(20132)>>2] = $$1;
  39056. $125 = $124 | 1;
  39057. $126 = ((($$1)) + 4|0);
  39058. HEAP32[$126>>2] = $125;
  39059. $127 = (($$1) + ($124)|0);
  39060. HEAP32[$127>>2] = $124;
  39061. return;
  39062. }
  39063. $128 = $111 & -8;
  39064. $129 = (($128) + ($$1418))|0;
  39065. $130 = $111 >>> 3;
  39066. $131 = ($111>>>0)<(256);
  39067. L96: do {
  39068. if ($131) {
  39069. $132 = ((($2)) + 8|0);
  39070. $133 = HEAP32[$132>>2]|0;
  39071. $134 = ((($2)) + 12|0);
  39072. $135 = HEAP32[$134>>2]|0;
  39073. $136 = $130 << 1;
  39074. $137 = (20152 + ($136<<2)|0);
  39075. $138 = ($133|0)==($137|0);
  39076. if (!($138)) {
  39077. $139 = ($133>>>0)<($108>>>0);
  39078. if ($139) {
  39079. _abort();
  39080. // unreachable;
  39081. }
  39082. $140 = ((($133)) + 12|0);
  39083. $141 = HEAP32[$140>>2]|0;
  39084. $142 = ($141|0)==($2|0);
  39085. if (!($142)) {
  39086. _abort();
  39087. // unreachable;
  39088. }
  39089. }
  39090. $143 = ($135|0)==($133|0);
  39091. if ($143) {
  39092. $144 = 1 << $130;
  39093. $145 = $144 ^ -1;
  39094. $146 = HEAP32[5028]|0;
  39095. $147 = $146 & $145;
  39096. HEAP32[5028] = $147;
  39097. break;
  39098. }
  39099. $148 = ($135|0)==($137|0);
  39100. if ($148) {
  39101. $$pre23 = ((($135)) + 8|0);
  39102. $$pre$phi24Z2D = $$pre23;
  39103. } else {
  39104. $149 = ($135>>>0)<($108>>>0);
  39105. if ($149) {
  39106. _abort();
  39107. // unreachable;
  39108. }
  39109. $150 = ((($135)) + 8|0);
  39110. $151 = HEAP32[$150>>2]|0;
  39111. $152 = ($151|0)==($2|0);
  39112. if ($152) {
  39113. $$pre$phi24Z2D = $150;
  39114. } else {
  39115. _abort();
  39116. // unreachable;
  39117. }
  39118. }
  39119. $153 = ((($133)) + 12|0);
  39120. HEAP32[$153>>2] = $135;
  39121. HEAP32[$$pre$phi24Z2D>>2] = $133;
  39122. } else {
  39123. $154 = ((($2)) + 24|0);
  39124. $155 = HEAP32[$154>>2]|0;
  39125. $156 = ((($2)) + 12|0);
  39126. $157 = HEAP32[$156>>2]|0;
  39127. $158 = ($157|0)==($2|0);
  39128. do {
  39129. if ($158) {
  39130. $168 = ((($2)) + 16|0);
  39131. $169 = ((($168)) + 4|0);
  39132. $170 = HEAP32[$169>>2]|0;
  39133. $171 = ($170|0)==(0|0);
  39134. if ($171) {
  39135. $172 = HEAP32[$168>>2]|0;
  39136. $173 = ($172|0)==(0|0);
  39137. if ($173) {
  39138. $$3435 = 0;
  39139. break;
  39140. } else {
  39141. $$1433 = $172;$$1437 = $168;
  39142. }
  39143. } else {
  39144. $$1433 = $170;$$1437 = $169;
  39145. }
  39146. while(1) {
  39147. $174 = ((($$1433)) + 20|0);
  39148. $175 = HEAP32[$174>>2]|0;
  39149. $176 = ($175|0)==(0|0);
  39150. if (!($176)) {
  39151. $$1433 = $175;$$1437 = $174;
  39152. continue;
  39153. }
  39154. $177 = ((($$1433)) + 16|0);
  39155. $178 = HEAP32[$177>>2]|0;
  39156. $179 = ($178|0)==(0|0);
  39157. if ($179) {
  39158. break;
  39159. } else {
  39160. $$1433 = $178;$$1437 = $177;
  39161. }
  39162. }
  39163. $180 = ($$1437>>>0)<($108>>>0);
  39164. if ($180) {
  39165. _abort();
  39166. // unreachable;
  39167. } else {
  39168. HEAP32[$$1437>>2] = 0;
  39169. $$3435 = $$1433;
  39170. break;
  39171. }
  39172. } else {
  39173. $159 = ((($2)) + 8|0);
  39174. $160 = HEAP32[$159>>2]|0;
  39175. $161 = ($160>>>0)<($108>>>0);
  39176. if ($161) {
  39177. _abort();
  39178. // unreachable;
  39179. }
  39180. $162 = ((($160)) + 12|0);
  39181. $163 = HEAP32[$162>>2]|0;
  39182. $164 = ($163|0)==($2|0);
  39183. if (!($164)) {
  39184. _abort();
  39185. // unreachable;
  39186. }
  39187. $165 = ((($157)) + 8|0);
  39188. $166 = HEAP32[$165>>2]|0;
  39189. $167 = ($166|0)==($2|0);
  39190. if ($167) {
  39191. HEAP32[$162>>2] = $157;
  39192. HEAP32[$165>>2] = $160;
  39193. $$3435 = $157;
  39194. break;
  39195. } else {
  39196. _abort();
  39197. // unreachable;
  39198. }
  39199. }
  39200. } while(0);
  39201. $181 = ($155|0)==(0|0);
  39202. if (!($181)) {
  39203. $182 = ((($2)) + 28|0);
  39204. $183 = HEAP32[$182>>2]|0;
  39205. $184 = (20416 + ($183<<2)|0);
  39206. $185 = HEAP32[$184>>2]|0;
  39207. $186 = ($2|0)==($185|0);
  39208. do {
  39209. if ($186) {
  39210. HEAP32[$184>>2] = $$3435;
  39211. $cond17 = ($$3435|0)==(0|0);
  39212. if ($cond17) {
  39213. $187 = 1 << $183;
  39214. $188 = $187 ^ -1;
  39215. $189 = HEAP32[(20116)>>2]|0;
  39216. $190 = $189 & $188;
  39217. HEAP32[(20116)>>2] = $190;
  39218. break L96;
  39219. }
  39220. } else {
  39221. $191 = HEAP32[(20128)>>2]|0;
  39222. $192 = ($155>>>0)<($191>>>0);
  39223. if ($192) {
  39224. _abort();
  39225. // unreachable;
  39226. } else {
  39227. $193 = ((($155)) + 16|0);
  39228. $194 = HEAP32[$193>>2]|0;
  39229. $not$ = ($194|0)!=($2|0);
  39230. $$sink4 = $not$&1;
  39231. $195 = (((($155)) + 16|0) + ($$sink4<<2)|0);
  39232. HEAP32[$195>>2] = $$3435;
  39233. $196 = ($$3435|0)==(0|0);
  39234. if ($196) {
  39235. break L96;
  39236. } else {
  39237. break;
  39238. }
  39239. }
  39240. }
  39241. } while(0);
  39242. $197 = HEAP32[(20128)>>2]|0;
  39243. $198 = ($$3435>>>0)<($197>>>0);
  39244. if ($198) {
  39245. _abort();
  39246. // unreachable;
  39247. }
  39248. $199 = ((($$3435)) + 24|0);
  39249. HEAP32[$199>>2] = $155;
  39250. $200 = ((($2)) + 16|0);
  39251. $201 = HEAP32[$200>>2]|0;
  39252. $202 = ($201|0)==(0|0);
  39253. do {
  39254. if (!($202)) {
  39255. $203 = ($201>>>0)<($197>>>0);
  39256. if ($203) {
  39257. _abort();
  39258. // unreachable;
  39259. } else {
  39260. $204 = ((($$3435)) + 16|0);
  39261. HEAP32[$204>>2] = $201;
  39262. $205 = ((($201)) + 24|0);
  39263. HEAP32[$205>>2] = $$3435;
  39264. break;
  39265. }
  39266. }
  39267. } while(0);
  39268. $206 = ((($200)) + 4|0);
  39269. $207 = HEAP32[$206>>2]|0;
  39270. $208 = ($207|0)==(0|0);
  39271. if (!($208)) {
  39272. $209 = HEAP32[(20128)>>2]|0;
  39273. $210 = ($207>>>0)<($209>>>0);
  39274. if ($210) {
  39275. _abort();
  39276. // unreachable;
  39277. } else {
  39278. $211 = ((($$3435)) + 20|0);
  39279. HEAP32[$211>>2] = $207;
  39280. $212 = ((($207)) + 24|0);
  39281. HEAP32[$212>>2] = $$3435;
  39282. break;
  39283. }
  39284. }
  39285. }
  39286. }
  39287. } while(0);
  39288. $213 = $129 | 1;
  39289. $214 = ((($$1)) + 4|0);
  39290. HEAP32[$214>>2] = $213;
  39291. $215 = (($$1) + ($129)|0);
  39292. HEAP32[$215>>2] = $129;
  39293. $216 = HEAP32[(20132)>>2]|0;
  39294. $217 = ($$1|0)==($216|0);
  39295. if ($217) {
  39296. HEAP32[(20120)>>2] = $129;
  39297. return;
  39298. } else {
  39299. $$2 = $129;
  39300. }
  39301. } else {
  39302. $218 = $111 & -2;
  39303. HEAP32[$110>>2] = $218;
  39304. $219 = $$1418 | 1;
  39305. $220 = ((($$1)) + 4|0);
  39306. HEAP32[$220>>2] = $219;
  39307. $221 = (($$1) + ($$1418)|0);
  39308. HEAP32[$221>>2] = $$1418;
  39309. $$2 = $$1418;
  39310. }
  39311. $222 = $$2 >>> 3;
  39312. $223 = ($$2>>>0)<(256);
  39313. if ($223) {
  39314. $224 = $222 << 1;
  39315. $225 = (20152 + ($224<<2)|0);
  39316. $226 = HEAP32[5028]|0;
  39317. $227 = 1 << $222;
  39318. $228 = $226 & $227;
  39319. $229 = ($228|0)==(0);
  39320. if ($229) {
  39321. $230 = $226 | $227;
  39322. HEAP32[5028] = $230;
  39323. $$pre = ((($225)) + 8|0);
  39324. $$0438 = $225;$$pre$phiZ2D = $$pre;
  39325. } else {
  39326. $231 = ((($225)) + 8|0);
  39327. $232 = HEAP32[$231>>2]|0;
  39328. $233 = HEAP32[(20128)>>2]|0;
  39329. $234 = ($232>>>0)<($233>>>0);
  39330. if ($234) {
  39331. _abort();
  39332. // unreachable;
  39333. } else {
  39334. $$0438 = $232;$$pre$phiZ2D = $231;
  39335. }
  39336. }
  39337. HEAP32[$$pre$phiZ2D>>2] = $$1;
  39338. $235 = ((($$0438)) + 12|0);
  39339. HEAP32[$235>>2] = $$1;
  39340. $236 = ((($$1)) + 8|0);
  39341. HEAP32[$236>>2] = $$0438;
  39342. $237 = ((($$1)) + 12|0);
  39343. HEAP32[$237>>2] = $225;
  39344. return;
  39345. }
  39346. $238 = $$2 >>> 8;
  39347. $239 = ($238|0)==(0);
  39348. if ($239) {
  39349. $$0431 = 0;
  39350. } else {
  39351. $240 = ($$2>>>0)>(16777215);
  39352. if ($240) {
  39353. $$0431 = 31;
  39354. } else {
  39355. $241 = (($238) + 1048320)|0;
  39356. $242 = $241 >>> 16;
  39357. $243 = $242 & 8;
  39358. $244 = $238 << $243;
  39359. $245 = (($244) + 520192)|0;
  39360. $246 = $245 >>> 16;
  39361. $247 = $246 & 4;
  39362. $248 = $247 | $243;
  39363. $249 = $244 << $247;
  39364. $250 = (($249) + 245760)|0;
  39365. $251 = $250 >>> 16;
  39366. $252 = $251 & 2;
  39367. $253 = $248 | $252;
  39368. $254 = (14 - ($253))|0;
  39369. $255 = $249 << $252;
  39370. $256 = $255 >>> 15;
  39371. $257 = (($254) + ($256))|0;
  39372. $258 = $257 << 1;
  39373. $259 = (($257) + 7)|0;
  39374. $260 = $$2 >>> $259;
  39375. $261 = $260 & 1;
  39376. $262 = $261 | $258;
  39377. $$0431 = $262;
  39378. }
  39379. }
  39380. $263 = (20416 + ($$0431<<2)|0);
  39381. $264 = ((($$1)) + 28|0);
  39382. HEAP32[$264>>2] = $$0431;
  39383. $265 = ((($$1)) + 16|0);
  39384. $266 = ((($$1)) + 20|0);
  39385. HEAP32[$266>>2] = 0;
  39386. HEAP32[$265>>2] = 0;
  39387. $267 = HEAP32[(20116)>>2]|0;
  39388. $268 = 1 << $$0431;
  39389. $269 = $267 & $268;
  39390. $270 = ($269|0)==(0);
  39391. if ($270) {
  39392. $271 = $267 | $268;
  39393. HEAP32[(20116)>>2] = $271;
  39394. HEAP32[$263>>2] = $$1;
  39395. $272 = ((($$1)) + 24|0);
  39396. HEAP32[$272>>2] = $263;
  39397. $273 = ((($$1)) + 12|0);
  39398. HEAP32[$273>>2] = $$1;
  39399. $274 = ((($$1)) + 8|0);
  39400. HEAP32[$274>>2] = $$1;
  39401. return;
  39402. }
  39403. $275 = HEAP32[$263>>2]|0;
  39404. $276 = ($$0431|0)==(31);
  39405. $277 = $$0431 >>> 1;
  39406. $278 = (25 - ($277))|0;
  39407. $279 = $276 ? 0 : $278;
  39408. $280 = $$2 << $279;
  39409. $$0419 = $280;$$0420 = $275;
  39410. while(1) {
  39411. $281 = ((($$0420)) + 4|0);
  39412. $282 = HEAP32[$281>>2]|0;
  39413. $283 = $282 & -8;
  39414. $284 = ($283|0)==($$2|0);
  39415. if ($284) {
  39416. label = 121;
  39417. break;
  39418. }
  39419. $285 = $$0419 >>> 31;
  39420. $286 = (((($$0420)) + 16|0) + ($285<<2)|0);
  39421. $287 = $$0419 << 1;
  39422. $288 = HEAP32[$286>>2]|0;
  39423. $289 = ($288|0)==(0|0);
  39424. if ($289) {
  39425. label = 118;
  39426. break;
  39427. } else {
  39428. $$0419 = $287;$$0420 = $288;
  39429. }
  39430. }
  39431. if ((label|0) == 118) {
  39432. $290 = HEAP32[(20128)>>2]|0;
  39433. $291 = ($286>>>0)<($290>>>0);
  39434. if ($291) {
  39435. _abort();
  39436. // unreachable;
  39437. }
  39438. HEAP32[$286>>2] = $$1;
  39439. $292 = ((($$1)) + 24|0);
  39440. HEAP32[$292>>2] = $$0420;
  39441. $293 = ((($$1)) + 12|0);
  39442. HEAP32[$293>>2] = $$1;
  39443. $294 = ((($$1)) + 8|0);
  39444. HEAP32[$294>>2] = $$1;
  39445. return;
  39446. }
  39447. else if ((label|0) == 121) {
  39448. $295 = ((($$0420)) + 8|0);
  39449. $296 = HEAP32[$295>>2]|0;
  39450. $297 = HEAP32[(20128)>>2]|0;
  39451. $298 = ($296>>>0)>=($297>>>0);
  39452. $not$19 = ($$0420>>>0)>=($297>>>0);
  39453. $299 = $298 & $not$19;
  39454. if (!($299)) {
  39455. _abort();
  39456. // unreachable;
  39457. }
  39458. $300 = ((($296)) + 12|0);
  39459. HEAP32[$300>>2] = $$1;
  39460. HEAP32[$295>>2] = $$1;
  39461. $301 = ((($$1)) + 8|0);
  39462. HEAP32[$301>>2] = $296;
  39463. $302 = ((($$1)) + 12|0);
  39464. HEAP32[$302>>2] = $$0420;
  39465. $303 = ((($$1)) + 24|0);
  39466. HEAP32[$303>>2] = 0;
  39467. return;
  39468. }
  39469. }
  39470. function runPostSets() {
  39471. }
  39472. function _memset(ptr, value, num) {
  39473. ptr = ptr|0; value = value|0; num = num|0;
  39474. var end = 0, aligned_end = 0, block_aligned_end = 0, value4 = 0;
  39475. end = (ptr + num)|0;
  39476. value = value & 0xff;
  39477. if ((num|0) >= 67 /* 64 bytes for an unrolled loop + 3 bytes for unaligned head*/) {
  39478. while ((ptr&3) != 0) {
  39479. HEAP8[((ptr)>>0)]=value;
  39480. ptr = (ptr+1)|0;
  39481. }
  39482. aligned_end = (end & -4)|0;
  39483. block_aligned_end = (aligned_end - 64)|0;
  39484. value4 = value | (value << 8) | (value << 16) | (value << 24);
  39485. while((ptr|0) <= (block_aligned_end|0)) {
  39486. HEAP32[((ptr)>>2)]=value4;
  39487. HEAP32[(((ptr)+(4))>>2)]=value4;
  39488. HEAP32[(((ptr)+(8))>>2)]=value4;
  39489. HEAP32[(((ptr)+(12))>>2)]=value4;
  39490. HEAP32[(((ptr)+(16))>>2)]=value4;
  39491. HEAP32[(((ptr)+(20))>>2)]=value4;
  39492. HEAP32[(((ptr)+(24))>>2)]=value4;
  39493. HEAP32[(((ptr)+(28))>>2)]=value4;
  39494. HEAP32[(((ptr)+(32))>>2)]=value4;
  39495. HEAP32[(((ptr)+(36))>>2)]=value4;
  39496. HEAP32[(((ptr)+(40))>>2)]=value4;
  39497. HEAP32[(((ptr)+(44))>>2)]=value4;
  39498. HEAP32[(((ptr)+(48))>>2)]=value4;
  39499. HEAP32[(((ptr)+(52))>>2)]=value4;
  39500. HEAP32[(((ptr)+(56))>>2)]=value4;
  39501. HEAP32[(((ptr)+(60))>>2)]=value4;
  39502. ptr = (ptr + 64)|0;
  39503. }
  39504. while ((ptr|0) < (aligned_end|0) ) {
  39505. HEAP32[((ptr)>>2)]=value4;
  39506. ptr = (ptr+4)|0;
  39507. }
  39508. }
  39509. // The remaining bytes.
  39510. while ((ptr|0) < (end|0)) {
  39511. HEAP8[((ptr)>>0)]=value;
  39512. ptr = (ptr+1)|0;
  39513. }
  39514. return (end-num)|0;
  39515. }
  39516. function _i64Subtract(a, b, c, d) {
  39517. a = a|0; b = b|0; c = c|0; d = d|0;
  39518. var l = 0, h = 0;
  39519. l = (a - c)>>>0;
  39520. h = (b - d)>>>0;
  39521. h = (b - d - (((c>>>0) > (a>>>0))|0))>>>0; // Borrow one from high word to low word on underflow.
  39522. return ((tempRet0 = h,l|0)|0);
  39523. }
  39524. function _i64Add(a, b, c, d) {
  39525. /*
  39526. x = a + b*2^32
  39527. y = c + d*2^32
  39528. result = l + h*2^32
  39529. */
  39530. a = a|0; b = b|0; c = c|0; d = d|0;
  39531. var l = 0, h = 0;
  39532. l = (a + c)>>>0;
  39533. h = (b + d + (((l>>>0) < (a>>>0))|0))>>>0; // Add carry from low word to high word on overflow.
  39534. return ((tempRet0 = h,l|0)|0);
  39535. }
  39536. function _llvm_cttz_i32(x) {
  39537. x = x|0;
  39538. var ret = 0;
  39539. ret = ((HEAP8[(((cttz_i8)+(x & 0xff))>>0)])|0);
  39540. if ((ret|0) < 8) return ret|0;
  39541. ret = ((HEAP8[(((cttz_i8)+((x >> 8)&0xff))>>0)])|0);
  39542. if ((ret|0) < 8) return (ret + 8)|0;
  39543. ret = ((HEAP8[(((cttz_i8)+((x >> 16)&0xff))>>0)])|0);
  39544. if ((ret|0) < 8) return (ret + 16)|0;
  39545. return (((HEAP8[(((cttz_i8)+(x >>> 24))>>0)])|0) + 24)|0;
  39546. }
  39547. function ___udivmoddi4($a$0, $a$1, $b$0, $b$1, $rem) {
  39548. $a$0 = $a$0 | 0;
  39549. $a$1 = $a$1 | 0;
  39550. $b$0 = $b$0 | 0;
  39551. $b$1 = $b$1 | 0;
  39552. $rem = $rem | 0;
  39553. 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;
  39554. $n_sroa_0_0_extract_trunc = $a$0;
  39555. $n_sroa_1_4_extract_shift$0 = $a$1;
  39556. $n_sroa_1_4_extract_trunc = $n_sroa_1_4_extract_shift$0;
  39557. $d_sroa_0_0_extract_trunc = $b$0;
  39558. $d_sroa_1_4_extract_shift$0 = $b$1;
  39559. $d_sroa_1_4_extract_trunc = $d_sroa_1_4_extract_shift$0;
  39560. if (($n_sroa_1_4_extract_trunc | 0) == 0) {
  39561. $4 = ($rem | 0) != 0;
  39562. if (($d_sroa_1_4_extract_trunc | 0) == 0) {
  39563. if ($4) {
  39564. HEAP32[$rem >> 2] = ($n_sroa_0_0_extract_trunc >>> 0) % ($d_sroa_0_0_extract_trunc >>> 0);
  39565. HEAP32[$rem + 4 >> 2] = 0;
  39566. }
  39567. $_0$1 = 0;
  39568. $_0$0 = ($n_sroa_0_0_extract_trunc >>> 0) / ($d_sroa_0_0_extract_trunc >>> 0) >>> 0;
  39569. return (tempRet0 = $_0$1, $_0$0) | 0;
  39570. } else {
  39571. if (!$4) {
  39572. $_0$1 = 0;
  39573. $_0$0 = 0;
  39574. return (tempRet0 = $_0$1, $_0$0) | 0;
  39575. }
  39576. HEAP32[$rem >> 2] = $a$0 & -1;
  39577. HEAP32[$rem + 4 >> 2] = $a$1 & 0;
  39578. $_0$1 = 0;
  39579. $_0$0 = 0;
  39580. return (tempRet0 = $_0$1, $_0$0) | 0;
  39581. }
  39582. }
  39583. $17 = ($d_sroa_1_4_extract_trunc | 0) == 0;
  39584. do {
  39585. if (($d_sroa_0_0_extract_trunc | 0) == 0) {
  39586. if ($17) {
  39587. if (($rem | 0) != 0) {
  39588. HEAP32[$rem >> 2] = ($n_sroa_1_4_extract_trunc >>> 0) % ($d_sroa_0_0_extract_trunc >>> 0);
  39589. HEAP32[$rem + 4 >> 2] = 0;
  39590. }
  39591. $_0$1 = 0;
  39592. $_0$0 = ($n_sroa_1_4_extract_trunc >>> 0) / ($d_sroa_0_0_extract_trunc >>> 0) >>> 0;
  39593. return (tempRet0 = $_0$1, $_0$0) | 0;
  39594. }
  39595. if (($n_sroa_0_0_extract_trunc | 0) == 0) {
  39596. if (($rem | 0) != 0) {
  39597. HEAP32[$rem >> 2] = 0;
  39598. HEAP32[$rem + 4 >> 2] = ($n_sroa_1_4_extract_trunc >>> 0) % ($d_sroa_1_4_extract_trunc >>> 0);
  39599. }
  39600. $_0$1 = 0;
  39601. $_0$0 = ($n_sroa_1_4_extract_trunc >>> 0) / ($d_sroa_1_4_extract_trunc >>> 0) >>> 0;
  39602. return (tempRet0 = $_0$1, $_0$0) | 0;
  39603. }
  39604. $37 = $d_sroa_1_4_extract_trunc - 1 | 0;
  39605. if (($37 & $d_sroa_1_4_extract_trunc | 0) == 0) {
  39606. if (($rem | 0) != 0) {
  39607. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  39608. HEAP32[$rem + 4 >> 2] = $37 & $n_sroa_1_4_extract_trunc | $a$1 & 0;
  39609. }
  39610. $_0$1 = 0;
  39611. $_0$0 = $n_sroa_1_4_extract_trunc >>> ((_llvm_cttz_i32($d_sroa_1_4_extract_trunc | 0) | 0) >>> 0);
  39612. return (tempRet0 = $_0$1, $_0$0) | 0;
  39613. }
  39614. $49 = Math_clz32($d_sroa_1_4_extract_trunc | 0) | 0;
  39615. $51 = $49 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  39616. if ($51 >>> 0 <= 30) {
  39617. $57 = $51 + 1 | 0;
  39618. $58 = 31 - $51 | 0;
  39619. $sr_1_ph = $57;
  39620. $r_sroa_0_1_ph = $n_sroa_1_4_extract_trunc << $58 | $n_sroa_0_0_extract_trunc >>> ($57 >>> 0);
  39621. $r_sroa_1_1_ph = $n_sroa_1_4_extract_trunc >>> ($57 >>> 0);
  39622. $q_sroa_0_1_ph = 0;
  39623. $q_sroa_1_1_ph = $n_sroa_0_0_extract_trunc << $58;
  39624. break;
  39625. }
  39626. if (($rem | 0) == 0) {
  39627. $_0$1 = 0;
  39628. $_0$0 = 0;
  39629. return (tempRet0 = $_0$1, $_0$0) | 0;
  39630. }
  39631. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  39632. HEAP32[$rem + 4 >> 2] = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  39633. $_0$1 = 0;
  39634. $_0$0 = 0;
  39635. return (tempRet0 = $_0$1, $_0$0) | 0;
  39636. } else {
  39637. if (!$17) {
  39638. $117 = Math_clz32($d_sroa_1_4_extract_trunc | 0) | 0;
  39639. $119 = $117 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  39640. if ($119 >>> 0 <= 31) {
  39641. $125 = $119 + 1 | 0;
  39642. $126 = 31 - $119 | 0;
  39643. $130 = $119 - 31 >> 31;
  39644. $sr_1_ph = $125;
  39645. $r_sroa_0_1_ph = $n_sroa_0_0_extract_trunc >>> ($125 >>> 0) & $130 | $n_sroa_1_4_extract_trunc << $126;
  39646. $r_sroa_1_1_ph = $n_sroa_1_4_extract_trunc >>> ($125 >>> 0) & $130;
  39647. $q_sroa_0_1_ph = 0;
  39648. $q_sroa_1_1_ph = $n_sroa_0_0_extract_trunc << $126;
  39649. break;
  39650. }
  39651. if (($rem | 0) == 0) {
  39652. $_0$1 = 0;
  39653. $_0$0 = 0;
  39654. return (tempRet0 = $_0$1, $_0$0) | 0;
  39655. }
  39656. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  39657. HEAP32[$rem + 4 >> 2] = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  39658. $_0$1 = 0;
  39659. $_0$0 = 0;
  39660. return (tempRet0 = $_0$1, $_0$0) | 0;
  39661. }
  39662. $66 = $d_sroa_0_0_extract_trunc - 1 | 0;
  39663. if (($66 & $d_sroa_0_0_extract_trunc | 0) != 0) {
  39664. $86 = (Math_clz32($d_sroa_0_0_extract_trunc | 0) | 0) + 33 | 0;
  39665. $88 = $86 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  39666. $89 = 64 - $88 | 0;
  39667. $91 = 32 - $88 | 0;
  39668. $92 = $91 >> 31;
  39669. $95 = $88 - 32 | 0;
  39670. $105 = $95 >> 31;
  39671. $sr_1_ph = $88;
  39672. $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;
  39673. $r_sroa_1_1_ph = $105 & $n_sroa_1_4_extract_trunc >>> ($88 >>> 0);
  39674. $q_sroa_0_1_ph = $n_sroa_0_0_extract_trunc << $89 & $92;
  39675. $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;
  39676. break;
  39677. }
  39678. if (($rem | 0) != 0) {
  39679. HEAP32[$rem >> 2] = $66 & $n_sroa_0_0_extract_trunc;
  39680. HEAP32[$rem + 4 >> 2] = 0;
  39681. }
  39682. if (($d_sroa_0_0_extract_trunc | 0) == 1) {
  39683. $_0$1 = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  39684. $_0$0 = 0 | $a$0 & -1;
  39685. return (tempRet0 = $_0$1, $_0$0) | 0;
  39686. } else {
  39687. $78 = _llvm_cttz_i32($d_sroa_0_0_extract_trunc | 0) | 0;
  39688. $_0$1 = 0 | $n_sroa_1_4_extract_trunc >>> ($78 >>> 0);
  39689. $_0$0 = $n_sroa_1_4_extract_trunc << 32 - $78 | $n_sroa_0_0_extract_trunc >>> ($78 >>> 0) | 0;
  39690. return (tempRet0 = $_0$1, $_0$0) | 0;
  39691. }
  39692. }
  39693. } while (0);
  39694. if (($sr_1_ph | 0) == 0) {
  39695. $q_sroa_1_1_lcssa = $q_sroa_1_1_ph;
  39696. $q_sroa_0_1_lcssa = $q_sroa_0_1_ph;
  39697. $r_sroa_1_1_lcssa = $r_sroa_1_1_ph;
  39698. $r_sroa_0_1_lcssa = $r_sroa_0_1_ph;
  39699. $carry_0_lcssa$1 = 0;
  39700. $carry_0_lcssa$0 = 0;
  39701. } else {
  39702. $d_sroa_0_0_insert_insert99$0 = 0 | $b$0 & -1;
  39703. $d_sroa_0_0_insert_insert99$1 = $d_sroa_1_4_extract_shift$0 | $b$1 & 0;
  39704. $137$0 = _i64Add($d_sroa_0_0_insert_insert99$0 | 0, $d_sroa_0_0_insert_insert99$1 | 0, -1, -1) | 0;
  39705. $137$1 = tempRet0;
  39706. $q_sroa_1_1198 = $q_sroa_1_1_ph;
  39707. $q_sroa_0_1199 = $q_sroa_0_1_ph;
  39708. $r_sroa_1_1200 = $r_sroa_1_1_ph;
  39709. $r_sroa_0_1201 = $r_sroa_0_1_ph;
  39710. $sr_1202 = $sr_1_ph;
  39711. $carry_0203 = 0;
  39712. while (1) {
  39713. $147 = $q_sroa_0_1199 >>> 31 | $q_sroa_1_1198 << 1;
  39714. $149 = $carry_0203 | $q_sroa_0_1199 << 1;
  39715. $r_sroa_0_0_insert_insert42$0 = 0 | ($r_sroa_0_1201 << 1 | $q_sroa_1_1198 >>> 31);
  39716. $r_sroa_0_0_insert_insert42$1 = $r_sroa_0_1201 >>> 31 | $r_sroa_1_1200 << 1 | 0;
  39717. _i64Subtract($137$0 | 0, $137$1 | 0, $r_sroa_0_0_insert_insert42$0 | 0, $r_sroa_0_0_insert_insert42$1 | 0) | 0;
  39718. $150$1 = tempRet0;
  39719. $151$0 = $150$1 >> 31 | (($150$1 | 0) < 0 ? -1 : 0) << 1;
  39720. $152 = $151$0 & 1;
  39721. $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;
  39722. $r_sroa_0_0_extract_trunc = $154$0;
  39723. $r_sroa_1_4_extract_trunc = tempRet0;
  39724. $155 = $sr_1202 - 1 | 0;
  39725. if (($155 | 0) == 0) {
  39726. break;
  39727. } else {
  39728. $q_sroa_1_1198 = $147;
  39729. $q_sroa_0_1199 = $149;
  39730. $r_sroa_1_1200 = $r_sroa_1_4_extract_trunc;
  39731. $r_sroa_0_1201 = $r_sroa_0_0_extract_trunc;
  39732. $sr_1202 = $155;
  39733. $carry_0203 = $152;
  39734. }
  39735. }
  39736. $q_sroa_1_1_lcssa = $147;
  39737. $q_sroa_0_1_lcssa = $149;
  39738. $r_sroa_1_1_lcssa = $r_sroa_1_4_extract_trunc;
  39739. $r_sroa_0_1_lcssa = $r_sroa_0_0_extract_trunc;
  39740. $carry_0_lcssa$1 = 0;
  39741. $carry_0_lcssa$0 = $152;
  39742. }
  39743. $q_sroa_0_0_insert_ext75$0 = $q_sroa_0_1_lcssa;
  39744. $q_sroa_0_0_insert_ext75$1 = 0;
  39745. $q_sroa_0_0_insert_insert77$1 = $q_sroa_1_1_lcssa | $q_sroa_0_0_insert_ext75$1;
  39746. if (($rem | 0) != 0) {
  39747. HEAP32[$rem >> 2] = 0 | $r_sroa_0_1_lcssa;
  39748. HEAP32[$rem + 4 >> 2] = $r_sroa_1_1_lcssa | 0;
  39749. }
  39750. $_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;
  39751. $_0$0 = ($q_sroa_0_0_insert_ext75$0 << 1 | 0 >>> 31) & -2 | $carry_0_lcssa$0;
  39752. return (tempRet0 = $_0$1, $_0$0) | 0;
  39753. }
  39754. function ___udivdi3($a$0, $a$1, $b$0, $b$1) {
  39755. $a$0 = $a$0 | 0;
  39756. $a$1 = $a$1 | 0;
  39757. $b$0 = $b$0 | 0;
  39758. $b$1 = $b$1 | 0;
  39759. var $1$0 = 0;
  39760. $1$0 = ___udivmoddi4($a$0, $a$1, $b$0, $b$1, 0) | 0;
  39761. return $1$0 | 0;
  39762. }
  39763. function _memcpy(dest, src, num) {
  39764. dest = dest|0; src = src|0; num = num|0;
  39765. var ret = 0;
  39766. var aligned_dest_end = 0;
  39767. var block_aligned_dest_end = 0;
  39768. var dest_end = 0;
  39769. // Test against a benchmarked cutoff limit for when HEAPU8.set() becomes faster to use.
  39770. if ((num|0) >=
  39771. 8192
  39772. ) {
  39773. return _emscripten_memcpy_big(dest|0, src|0, num|0)|0;
  39774. }
  39775. ret = dest|0;
  39776. dest_end = (dest + num)|0;
  39777. if ((dest&3) == (src&3)) {
  39778. // The initial unaligned < 4-byte front.
  39779. while (dest & 3) {
  39780. if ((num|0) == 0) return ret|0;
  39781. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  39782. dest = (dest+1)|0;
  39783. src = (src+1)|0;
  39784. num = (num-1)|0;
  39785. }
  39786. aligned_dest_end = (dest_end & -4)|0;
  39787. block_aligned_dest_end = (aligned_dest_end - 64)|0;
  39788. while ((dest|0) <= (block_aligned_dest_end|0) ) {
  39789. HEAP32[((dest)>>2)]=((HEAP32[((src)>>2)])|0);
  39790. HEAP32[(((dest)+(4))>>2)]=((HEAP32[(((src)+(4))>>2)])|0);
  39791. HEAP32[(((dest)+(8))>>2)]=((HEAP32[(((src)+(8))>>2)])|0);
  39792. HEAP32[(((dest)+(12))>>2)]=((HEAP32[(((src)+(12))>>2)])|0);
  39793. HEAP32[(((dest)+(16))>>2)]=((HEAP32[(((src)+(16))>>2)])|0);
  39794. HEAP32[(((dest)+(20))>>2)]=((HEAP32[(((src)+(20))>>2)])|0);
  39795. HEAP32[(((dest)+(24))>>2)]=((HEAP32[(((src)+(24))>>2)])|0);
  39796. HEAP32[(((dest)+(28))>>2)]=((HEAP32[(((src)+(28))>>2)])|0);
  39797. HEAP32[(((dest)+(32))>>2)]=((HEAP32[(((src)+(32))>>2)])|0);
  39798. HEAP32[(((dest)+(36))>>2)]=((HEAP32[(((src)+(36))>>2)])|0);
  39799. HEAP32[(((dest)+(40))>>2)]=((HEAP32[(((src)+(40))>>2)])|0);
  39800. HEAP32[(((dest)+(44))>>2)]=((HEAP32[(((src)+(44))>>2)])|0);
  39801. HEAP32[(((dest)+(48))>>2)]=((HEAP32[(((src)+(48))>>2)])|0);
  39802. HEAP32[(((dest)+(52))>>2)]=((HEAP32[(((src)+(52))>>2)])|0);
  39803. HEAP32[(((dest)+(56))>>2)]=((HEAP32[(((src)+(56))>>2)])|0);
  39804. HEAP32[(((dest)+(60))>>2)]=((HEAP32[(((src)+(60))>>2)])|0);
  39805. dest = (dest+64)|0;
  39806. src = (src+64)|0;
  39807. }
  39808. while ((dest|0) < (aligned_dest_end|0) ) {
  39809. HEAP32[((dest)>>2)]=((HEAP32[((src)>>2)])|0);
  39810. dest = (dest+4)|0;
  39811. src = (src+4)|0;
  39812. }
  39813. } else {
  39814. // In the unaligned copy case, unroll a bit as well.
  39815. aligned_dest_end = (dest_end - 4)|0;
  39816. while ((dest|0) < (aligned_dest_end|0) ) {
  39817. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  39818. HEAP8[(((dest)+(1))>>0)]=((HEAP8[(((src)+(1))>>0)])|0);
  39819. HEAP8[(((dest)+(2))>>0)]=((HEAP8[(((src)+(2))>>0)])|0);
  39820. HEAP8[(((dest)+(3))>>0)]=((HEAP8[(((src)+(3))>>0)])|0);
  39821. dest = (dest+4)|0;
  39822. src = (src+4)|0;
  39823. }
  39824. }
  39825. // The remaining unaligned < 4 byte tail.
  39826. while ((dest|0) < (dest_end|0)) {
  39827. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  39828. dest = (dest+1)|0;
  39829. src = (src+1)|0;
  39830. }
  39831. return ret|0;
  39832. }
  39833. function _memmove(dest, src, num) {
  39834. dest = dest|0; src = src|0; num = num|0;
  39835. var ret = 0;
  39836. if (((src|0) < (dest|0)) & ((dest|0) < ((src + num)|0))) {
  39837. // Unlikely case: Copy backwards in a safe manner
  39838. ret = dest;
  39839. src = (src + num)|0;
  39840. dest = (dest + num)|0;
  39841. while ((num|0) > 0) {
  39842. dest = (dest - 1)|0;
  39843. src = (src - 1)|0;
  39844. num = (num - 1)|0;
  39845. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  39846. }
  39847. dest = ret;
  39848. } else {
  39849. _memcpy(dest, src, num) | 0;
  39850. }
  39851. return dest | 0;
  39852. }
  39853. function ___uremdi3($a$0, $a$1, $b$0, $b$1) {
  39854. $a$0 = $a$0 | 0;
  39855. $a$1 = $a$1 | 0;
  39856. $b$0 = $b$0 | 0;
  39857. $b$1 = $b$1 | 0;
  39858. var $rem = 0, __stackBase__ = 0;
  39859. __stackBase__ = STACKTOP;
  39860. STACKTOP = STACKTOP + 16 | 0;
  39861. $rem = __stackBase__ | 0;
  39862. ___udivmoddi4($a$0, $a$1, $b$0, $b$1, $rem) | 0;
  39863. STACKTOP = __stackBase__;
  39864. return (tempRet0 = HEAP32[$rem + 4 >> 2] | 0, HEAP32[$rem >> 2] | 0) | 0;
  39865. }
  39866. function _roundf(f) {
  39867. f = +f;
  39868. return f >= +0 ? +Math_floor(f + +0.5) : +Math_ceil(f - +0.5); // TODO: use fround?
  39869. }
  39870. function _bitshift64Lshr(low, high, bits) {
  39871. low = low|0; high = high|0; bits = bits|0;
  39872. var ander = 0;
  39873. if ((bits|0) < 32) {
  39874. ander = ((1 << bits) - 1)|0;
  39875. tempRet0 = high >>> bits;
  39876. return (low >>> bits) | ((high&ander) << (32 - bits));
  39877. }
  39878. tempRet0 = 0;
  39879. return (high >>> (bits - 32))|0;
  39880. }
  39881. function _sbrk(increment) {
  39882. increment = increment|0;
  39883. var oldDynamicTop = 0;
  39884. var oldDynamicTopOnChange = 0;
  39885. var newDynamicTop = 0;
  39886. var totalMemory = 0;
  39887. increment = ((increment + 15) & -16)|0;
  39888. oldDynamicTop = HEAP32[DYNAMICTOP_PTR>>2]|0;
  39889. newDynamicTop = oldDynamicTop + increment | 0;
  39890. if (((increment|0) > 0 & (newDynamicTop|0) < (oldDynamicTop|0)) // Detect and fail if we would wrap around signed 32-bit int.
  39891. | (newDynamicTop|0) < 0) { // Also underflow, sbrk() should be able to be used to subtract.
  39892. abortOnCannotGrowMemory()|0;
  39893. ___setErrNo(12);
  39894. return -1;
  39895. }
  39896. HEAP32[DYNAMICTOP_PTR>>2] = newDynamicTop;
  39897. totalMemory = getTotalMemory()|0;
  39898. if ((newDynamicTop|0) > (totalMemory|0)) {
  39899. if ((enlargeMemory()|0) == 0) {
  39900. ___setErrNo(12);
  39901. HEAP32[DYNAMICTOP_PTR>>2] = oldDynamicTop;
  39902. return -1;
  39903. }
  39904. }
  39905. return oldDynamicTop|0;
  39906. }
  39907. function _bitshift64Shl(low, high, bits) {
  39908. low = low|0; high = high|0; bits = bits|0;
  39909. var ander = 0;
  39910. if ((bits|0) < 32) {
  39911. ander = ((1 << bits) - 1)|0;
  39912. tempRet0 = (high << bits) | ((low&(ander << (32 - bits))) >>> (32 - bits));
  39913. return low << bits;
  39914. }
  39915. tempRet0 = low << (bits - 32);
  39916. return 0;
  39917. }
  39918. function _llvm_bswap_i32(x) {
  39919. x = x|0;
  39920. return (((x&0xff)<<24) | (((x>>8)&0xff)<<16) | (((x>>16)&0xff)<<8) | (x>>>24))|0;
  39921. }
  39922. function dynCall_viiiii(index,a1,a2,a3,a4,a5) {
  39923. index = index|0;
  39924. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0;
  39925. FUNCTION_TABLE_viiiii[index&7](a1|0,a2|0,a3|0,a4|0,a5|0);
  39926. }
  39927. function dynCall_vd(index,a1) {
  39928. index = index|0;
  39929. a1=+a1;
  39930. FUNCTION_TABLE_vd[index&3](+a1);
  39931. }
  39932. function dynCall_vid(index,a1,a2) {
  39933. index = index|0;
  39934. a1=a1|0; a2=+a2;
  39935. FUNCTION_TABLE_vid[index&3](a1|0,+a2);
  39936. }
  39937. function dynCall_vi(index,a1) {
  39938. index = index|0;
  39939. a1=a1|0;
  39940. FUNCTION_TABLE_vi[index&31](a1|0);
  39941. }
  39942. function dynCall_vii(index,a1,a2) {
  39943. index = index|0;
  39944. a1=a1|0; a2=a2|0;
  39945. FUNCTION_TABLE_vii[index&63](a1|0,a2|0);
  39946. }
  39947. function dynCall_ii(index,a1) {
  39948. index = index|0;
  39949. a1=a1|0;
  39950. return FUNCTION_TABLE_ii[index&15](a1|0)|0;
  39951. }
  39952. function dynCall_viddd(index,a1,a2,a3,a4) {
  39953. index = index|0;
  39954. a1=a1|0; a2=+a2; a3=+a3; a4=+a4;
  39955. FUNCTION_TABLE_viddd[index&3](a1|0,+a2,+a3,+a4);
  39956. }
  39957. function dynCall_vidd(index,a1,a2,a3) {
  39958. index = index|0;
  39959. a1=a1|0; a2=+a2; a3=+a3;
  39960. FUNCTION_TABLE_vidd[index&7](a1|0,+a2,+a3);
  39961. }
  39962. function dynCall_iiii(index,a1,a2,a3) {
  39963. index = index|0;
  39964. a1=a1|0; a2=a2|0; a3=a3|0;
  39965. return FUNCTION_TABLE_iiii[index&15](a1|0,a2|0,a3|0)|0;
  39966. }
  39967. function dynCall_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8) {
  39968. index = index|0;
  39969. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0; a7=a7|0; a8=a8|0;
  39970. FUNCTION_TABLE_viiiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0,a8|0);
  39971. }
  39972. function dynCall_viiiiii(index,a1,a2,a3,a4,a5,a6) {
  39973. index = index|0;
  39974. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0;
  39975. FUNCTION_TABLE_viiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0);
  39976. }
  39977. function dynCall_viii(index,a1,a2,a3) {
  39978. index = index|0;
  39979. a1=a1|0; a2=a2|0; a3=a3|0;
  39980. FUNCTION_TABLE_viii[index&31](a1|0,a2|0,a3|0);
  39981. }
  39982. function dynCall_vidddd(index,a1,a2,a3,a4,a5) {
  39983. index = index|0;
  39984. a1=a1|0; a2=+a2; a3=+a3; a4=+a4; a5=+a5;
  39985. FUNCTION_TABLE_vidddd[index&3](a1|0,+a2,+a3,+a4,+a5);
  39986. }
  39987. function dynCall_vdi(index,a1,a2) {
  39988. index = index|0;
  39989. a1=+a1; a2=a2|0;
  39990. FUNCTION_TABLE_vdi[index&1](+a1,a2|0);
  39991. }
  39992. function dynCall_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7) {
  39993. index = index|0;
  39994. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0; a7=a7|0;
  39995. FUNCTION_TABLE_viiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0);
  39996. }
  39997. function dynCall_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9) {
  39998. index = index|0;
  39999. 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;
  40000. FUNCTION_TABLE_viiiiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0,a8|0,a9|0);
  40001. }
  40002. function dynCall_iii(index,a1,a2) {
  40003. index = index|0;
  40004. a1=a1|0; a2=a2|0;
  40005. return FUNCTION_TABLE_iii[index&3](a1|0,a2|0)|0;
  40006. }
  40007. function dynCall_i(index) {
  40008. index = index|0;
  40009. return FUNCTION_TABLE_i[index&3]()|0;
  40010. }
  40011. function dynCall_vdddddd(index,a1,a2,a3,a4,a5,a6) {
  40012. index = index|0;
  40013. a1=+a1; a2=+a2; a3=+a3; a4=+a4; a5=+a5; a6=+a6;
  40014. FUNCTION_TABLE_vdddddd[index&1](+a1,+a2,+a3,+a4,+a5,+a6);
  40015. }
  40016. function dynCall_vdddd(index,a1,a2,a3,a4) {
  40017. index = index|0;
  40018. a1=+a1; a2=+a2; a3=+a3; a4=+a4;
  40019. FUNCTION_TABLE_vdddd[index&3](+a1,+a2,+a3,+a4);
  40020. }
  40021. function dynCall_vdd(index,a1,a2) {
  40022. index = index|0;
  40023. a1=+a1; a2=+a2;
  40024. FUNCTION_TABLE_vdd[index&3](+a1,+a2);
  40025. }
  40026. function dynCall_v(index) {
  40027. index = index|0;
  40028. FUNCTION_TABLE_v[index&7]();
  40029. }
  40030. function dynCall_viid(index,a1,a2,a3) {
  40031. index = index|0;
  40032. a1=a1|0; a2=a2|0; a3=+a3;
  40033. FUNCTION_TABLE_viid[index&1](a1|0,a2|0,+a3);
  40034. }
  40035. function dynCall_viiii(index,a1,a2,a3,a4) {
  40036. index = index|0;
  40037. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0;
  40038. FUNCTION_TABLE_viiii[index&31](a1|0,a2|0,a3|0,a4|0);
  40039. }
  40040. function b0(p0,p1,p2,p3,p4) {
  40041. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0; nullFunc_viiiii(0);
  40042. }
  40043. function _emscripten_glUniform4i__wrapper(p0,p1,p2,p3,p4) {
  40044. 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);
  40045. }
  40046. function _emscripten_glFramebufferTexture2D__wrapper(p0,p1,p2,p3,p4) {
  40047. 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);
  40048. }
  40049. function _emscripten_glShaderBinary__wrapper(p0,p1,p2,p3,p4) {
  40050. 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);
  40051. }
  40052. function _emscripten_glDrawElementsInstanced__wrapper(p0,p1,p2,p3,p4) {
  40053. 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);
  40054. }
  40055. function b1(p0) {
  40056. p0 = +p0; nullFunc_vd(1);
  40057. }
  40058. function _emscripten_glClearDepth__wrapper(p0) {
  40059. p0 = +p0; _emscripten_glClearDepth(+p0);
  40060. }
  40061. function _emscripten_glClearDepthf__wrapper(p0) {
  40062. p0 = +p0; _emscripten_glClearDepthf(+p0);
  40063. }
  40064. function _emscripten_glLineWidth__wrapper(p0) {
  40065. p0 = +p0; _emscripten_glLineWidth(+p0);
  40066. }
  40067. function b2(p0,p1) {
  40068. p0 = p0|0;p1 = +p1; nullFunc_vid(2);
  40069. }
  40070. function _emscripten_glUniform1f__wrapper(p0,p1) {
  40071. p0 = p0|0;p1 = +p1; _emscripten_glUniform1f(p0|0,+p1);
  40072. }
  40073. function _emscripten_glVertexAttrib1f__wrapper(p0,p1) {
  40074. p0 = p0|0;p1 = +p1; _emscripten_glVertexAttrib1f(p0|0,+p1);
  40075. }
  40076. function b3(p0) {
  40077. p0 = p0|0; nullFunc_vi(3);
  40078. }
  40079. function _emscripten_glDeleteShader__wrapper(p0) {
  40080. p0 = p0|0; _emscripten_glDeleteShader(p0|0);
  40081. }
  40082. function _emscripten_glCompileShader__wrapper(p0) {
  40083. p0 = p0|0; _emscripten_glCompileShader(p0|0);
  40084. }
  40085. function _emscripten_glDeleteProgram__wrapper(p0) {
  40086. p0 = p0|0; _emscripten_glDeleteProgram(p0|0);
  40087. }
  40088. function _emscripten_glLinkProgram__wrapper(p0) {
  40089. p0 = p0|0; _emscripten_glLinkProgram(p0|0);
  40090. }
  40091. function _emscripten_glUseProgram__wrapper(p0) {
  40092. p0 = p0|0; _emscripten_glUseProgram(p0|0);
  40093. }
  40094. function _emscripten_glValidateProgram__wrapper(p0) {
  40095. p0 = p0|0; _emscripten_glValidateProgram(p0|0);
  40096. }
  40097. function _emscripten_glDeleteObjectARB__wrapper(p0) {
  40098. p0 = p0|0; _emscripten_glDeleteObjectARB(p0|0);
  40099. }
  40100. function _emscripten_glEnableClientState__wrapper(p0) {
  40101. p0 = p0|0; _emscripten_glEnableClientState(p0|0);
  40102. }
  40103. function _emscripten_glClientActiveTexture__wrapper(p0) {
  40104. p0 = p0|0; _emscripten_glClientActiveTexture(p0|0);
  40105. }
  40106. function _emscripten_glBindVertexArray__wrapper(p0) {
  40107. p0 = p0|0; _emscripten_glBindVertexArray(p0|0);
  40108. }
  40109. function _emscripten_glMatrixMode__wrapper(p0) {
  40110. p0 = p0|0; _emscripten_glMatrixMode(p0|0);
  40111. }
  40112. function _emscripten_glLoadMatrixf__wrapper(p0) {
  40113. p0 = p0|0; _emscripten_glLoadMatrixf(p0|0);
  40114. }
  40115. function _emscripten_glEnableVertexAttribArray__wrapper(p0) {
  40116. p0 = p0|0; _emscripten_glEnableVertexAttribArray(p0|0);
  40117. }
  40118. function _emscripten_glDisableVertexAttribArray__wrapper(p0) {
  40119. p0 = p0|0; _emscripten_glDisableVertexAttribArray(p0|0);
  40120. }
  40121. function _emscripten_glDepthFunc__wrapper(p0) {
  40122. p0 = p0|0; _emscripten_glDepthFunc(p0|0);
  40123. }
  40124. function _emscripten_glEnable__wrapper(p0) {
  40125. p0 = p0|0; _emscripten_glEnable(p0|0);
  40126. }
  40127. function _emscripten_glDisable__wrapper(p0) {
  40128. p0 = p0|0; _emscripten_glDisable(p0|0);
  40129. }
  40130. function _emscripten_glFrontFace__wrapper(p0) {
  40131. p0 = p0|0; _emscripten_glFrontFace(p0|0);
  40132. }
  40133. function _emscripten_glCullFace__wrapper(p0) {
  40134. p0 = p0|0; _emscripten_glCullFace(p0|0);
  40135. }
  40136. function _emscripten_glClear__wrapper(p0) {
  40137. p0 = p0|0; _emscripten_glClear(p0|0);
  40138. }
  40139. function _emscripten_glClearStencil__wrapper(p0) {
  40140. p0 = p0|0; _emscripten_glClearStencil(p0|0);
  40141. }
  40142. function _emscripten_glDepthMask__wrapper(p0) {
  40143. p0 = p0|0; _emscripten_glDepthMask(p0|0);
  40144. }
  40145. function _emscripten_glStencilMask__wrapper(p0) {
  40146. p0 = p0|0; _emscripten_glStencilMask(p0|0);
  40147. }
  40148. function _emscripten_glGenerateMipmap__wrapper(p0) {
  40149. p0 = p0|0; _emscripten_glGenerateMipmap(p0|0);
  40150. }
  40151. function _emscripten_glActiveTexture__wrapper(p0) {
  40152. p0 = p0|0; _emscripten_glActiveTexture(p0|0);
  40153. }
  40154. function _emscripten_glBlendEquation__wrapper(p0) {
  40155. p0 = p0|0; _emscripten_glBlendEquation(p0|0);
  40156. }
  40157. function b4(p0,p1) {
  40158. p0 = p0|0;p1 = p1|0; nullFunc_vii(4);
  40159. }
  40160. function _emscripten_glPixelStorei__wrapper(p0,p1) {
  40161. p0 = p0|0;p1 = p1|0; _emscripten_glPixelStorei(p0|0,p1|0);
  40162. }
  40163. function _emscripten_glGetIntegerv__wrapper(p0,p1) {
  40164. p0 = p0|0;p1 = p1|0; _emscripten_glGetIntegerv(p0|0,p1|0);
  40165. }
  40166. function _emscripten_glGetFloatv__wrapper(p0,p1) {
  40167. p0 = p0|0;p1 = p1|0; _emscripten_glGetFloatv(p0|0,p1|0);
  40168. }
  40169. function _emscripten_glGetBooleanv__wrapper(p0,p1) {
  40170. p0 = p0|0;p1 = p1|0; _emscripten_glGetBooleanv(p0|0,p1|0);
  40171. }
  40172. function _emscripten_glGenTextures__wrapper(p0,p1) {
  40173. p0 = p0|0;p1 = p1|0; _emscripten_glGenTextures(p0|0,p1|0);
  40174. }
  40175. function _emscripten_glDeleteTextures__wrapper(p0,p1) {
  40176. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteTextures(p0|0,p1|0);
  40177. }
  40178. function _emscripten_glBindTexture__wrapper(p0,p1) {
  40179. p0 = p0|0;p1 = p1|0; _emscripten_glBindTexture(p0|0,p1|0);
  40180. }
  40181. function _emscripten_glGenBuffers__wrapper(p0,p1) {
  40182. p0 = p0|0;p1 = p1|0; _emscripten_glGenBuffers(p0|0,p1|0);
  40183. }
  40184. function _emscripten_glDeleteBuffers__wrapper(p0,p1) {
  40185. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteBuffers(p0|0,p1|0);
  40186. }
  40187. function _emscripten_glGenRenderbuffers__wrapper(p0,p1) {
  40188. p0 = p0|0;p1 = p1|0; _emscripten_glGenRenderbuffers(p0|0,p1|0);
  40189. }
  40190. function _emscripten_glDeleteRenderbuffers__wrapper(p0,p1) {
  40191. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteRenderbuffers(p0|0,p1|0);
  40192. }
  40193. function _emscripten_glBindRenderbuffer__wrapper(p0,p1) {
  40194. p0 = p0|0;p1 = p1|0; _emscripten_glBindRenderbuffer(p0|0,p1|0);
  40195. }
  40196. function _emscripten_glUniform1i__wrapper(p0,p1) {
  40197. p0 = p0|0;p1 = p1|0; _emscripten_glUniform1i(p0|0,p1|0);
  40198. }
  40199. function _emscripten_glBindBuffer__wrapper(p0,p1) {
  40200. p0 = p0|0;p1 = p1|0; _emscripten_glBindBuffer(p0|0,p1|0);
  40201. }
  40202. function _emscripten_glVertexAttrib1fv__wrapper(p0,p1) {
  40203. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib1fv(p0|0,p1|0);
  40204. }
  40205. function _emscripten_glVertexAttrib2fv__wrapper(p0,p1) {
  40206. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib2fv(p0|0,p1|0);
  40207. }
  40208. function _emscripten_glVertexAttrib3fv__wrapper(p0,p1) {
  40209. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib3fv(p0|0,p1|0);
  40210. }
  40211. function _emscripten_glVertexAttrib4fv__wrapper(p0,p1) {
  40212. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib4fv(p0|0,p1|0);
  40213. }
  40214. function _emscripten_glAttachShader__wrapper(p0,p1) {
  40215. p0 = p0|0;p1 = p1|0; _emscripten_glAttachShader(p0|0,p1|0);
  40216. }
  40217. function _emscripten_glDetachShader__wrapper(p0,p1) {
  40218. p0 = p0|0;p1 = p1|0; _emscripten_glDetachShader(p0|0,p1|0);
  40219. }
  40220. function _emscripten_glBindFramebuffer__wrapper(p0,p1) {
  40221. p0 = p0|0;p1 = p1|0; _emscripten_glBindFramebuffer(p0|0,p1|0);
  40222. }
  40223. function _emscripten_glGenFramebuffers__wrapper(p0,p1) {
  40224. p0 = p0|0;p1 = p1|0; _emscripten_glGenFramebuffers(p0|0,p1|0);
  40225. }
  40226. function _emscripten_glDeleteFramebuffers__wrapper(p0,p1) {
  40227. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteFramebuffers(p0|0,p1|0);
  40228. }
  40229. function _emscripten_glBindProgramARB__wrapper(p0,p1) {
  40230. p0 = p0|0;p1 = p1|0; _emscripten_glBindProgramARB(p0|0,p1|0);
  40231. }
  40232. function _emscripten_glGetPointerv__wrapper(p0,p1) {
  40233. p0 = p0|0;p1 = p1|0; _emscripten_glGetPointerv(p0|0,p1|0);
  40234. }
  40235. function _emscripten_glGenVertexArrays__wrapper(p0,p1) {
  40236. p0 = p0|0;p1 = p1|0; _emscripten_glGenVertexArrays(p0|0,p1|0);
  40237. }
  40238. function _emscripten_glDeleteVertexArrays__wrapper(p0,p1) {
  40239. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteVertexArrays(p0|0,p1|0);
  40240. }
  40241. function _emscripten_glVertexAttribDivisor__wrapper(p0,p1) {
  40242. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttribDivisor(p0|0,p1|0);
  40243. }
  40244. function _emscripten_glBlendFunc__wrapper(p0,p1) {
  40245. p0 = p0|0;p1 = p1|0; _emscripten_glBlendFunc(p0|0,p1|0);
  40246. }
  40247. function _emscripten_glBlendEquationSeparate__wrapper(p0,p1) {
  40248. p0 = p0|0;p1 = p1|0; _emscripten_glBlendEquationSeparate(p0|0,p1|0);
  40249. }
  40250. function _emscripten_glStencilMaskSeparate__wrapper(p0,p1) {
  40251. p0 = p0|0;p1 = p1|0; _emscripten_glStencilMaskSeparate(p0|0,p1|0);
  40252. }
  40253. function _emscripten_glHint__wrapper(p0,p1) {
  40254. p0 = p0|0;p1 = p1|0; _emscripten_glHint(p0|0,p1|0);
  40255. }
  40256. function _emscripten_glDrawBuffers__wrapper(p0,p1) {
  40257. p0 = p0|0;p1 = p1|0; _emscripten_glDrawBuffers(p0|0,p1|0);
  40258. }
  40259. function b5(p0) {
  40260. p0 = p0|0; nullFunc_ii(5);return 0;
  40261. }
  40262. function _emscripten_glGetString__wrapper(p0) {
  40263. p0 = p0|0; return _emscripten_glGetString(p0|0)|0;
  40264. }
  40265. function _emscripten_glIsTexture__wrapper(p0) {
  40266. p0 = p0|0; return _emscripten_glIsTexture(p0|0)|0;
  40267. }
  40268. function _emscripten_glIsBuffer__wrapper(p0) {
  40269. p0 = p0|0; return _emscripten_glIsBuffer(p0|0)|0;
  40270. }
  40271. function _emscripten_glIsRenderbuffer__wrapper(p0) {
  40272. p0 = p0|0; return _emscripten_glIsRenderbuffer(p0|0)|0;
  40273. }
  40274. function _emscripten_glCreateShader__wrapper(p0) {
  40275. p0 = p0|0; return _emscripten_glCreateShader(p0|0)|0;
  40276. }
  40277. function _emscripten_glIsShader__wrapper(p0) {
  40278. p0 = p0|0; return _emscripten_glIsShader(p0|0)|0;
  40279. }
  40280. function _emscripten_glIsProgram__wrapper(p0) {
  40281. p0 = p0|0; return _emscripten_glIsProgram(p0|0)|0;
  40282. }
  40283. function _emscripten_glIsFramebuffer__wrapper(p0) {
  40284. p0 = p0|0; return _emscripten_glIsFramebuffer(p0|0)|0;
  40285. }
  40286. function _emscripten_glCheckFramebufferStatus__wrapper(p0) {
  40287. p0 = p0|0; return _emscripten_glCheckFramebufferStatus(p0|0)|0;
  40288. }
  40289. function _emscripten_glIsEnabled__wrapper(p0) {
  40290. p0 = p0|0; return _emscripten_glIsEnabled(p0|0)|0;
  40291. }
  40292. function b6(p0,p1,p2,p3) {
  40293. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; nullFunc_viddd(6);
  40294. }
  40295. function _emscripten_glUniform3f__wrapper(p0,p1,p2,p3) {
  40296. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glUniform3f(p0|0,+p1,+p2,+p3);
  40297. }
  40298. function _emscripten_glVertexAttrib3f__wrapper(p0,p1,p2,p3) {
  40299. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glVertexAttrib3f(p0|0,+p1,+p2,+p3);
  40300. }
  40301. function b7(p0,p1,p2) {
  40302. p0 = p0|0;p1 = +p1;p2 = +p2; nullFunc_vidd(7);
  40303. }
  40304. function _emscripten_glUniform2f__wrapper(p0,p1,p2) {
  40305. p0 = p0|0;p1 = +p1;p2 = +p2; _emscripten_glUniform2f(p0|0,+p1,+p2);
  40306. }
  40307. function _emscripten_glVertexAttrib2f__wrapper(p0,p1,p2) {
  40308. p0 = p0|0;p1 = +p1;p2 = +p2; _emscripten_glVertexAttrib2f(p0|0,+p1,+p2);
  40309. }
  40310. function b8(p0,p1,p2) {
  40311. p0 = p0|0;p1 = p1|0;p2 = p2|0; nullFunc_iiii(8);return 0;
  40312. }
  40313. function b9(p0,p1,p2,p3,p4,p5,p6,p7) {
  40314. 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);
  40315. }
  40316. function _emscripten_glCompressedTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  40317. 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);
  40318. }
  40319. function _emscripten_glCopyTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  40320. 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);
  40321. }
  40322. function _emscripten_glCopyTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  40323. 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);
  40324. }
  40325. function b10(p0,p1,p2,p3,p4,p5) {
  40326. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0; nullFunc_viiiiii(10);
  40327. }
  40328. function _emscripten_glDrawRangeElements__wrapper(p0,p1,p2,p3,p4,p5) {
  40329. 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);
  40330. }
  40331. function _emscripten_glVertexAttribPointer__wrapper(p0,p1,p2,p3,p4,p5) {
  40332. 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);
  40333. }
  40334. function b11(p0,p1,p2) {
  40335. p0 = p0|0;p1 = p1|0;p2 = p2|0; nullFunc_viii(11);
  40336. }
  40337. function _emscripten_glGetTexParameterfv__wrapper(p0,p1,p2) {
  40338. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetTexParameterfv(p0|0,p1|0,p2|0);
  40339. }
  40340. function _emscripten_glGetTexParameteriv__wrapper(p0,p1,p2) {
  40341. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetTexParameteriv(p0|0,p1|0,p2|0);
  40342. }
  40343. function _emscripten_glTexParameterfv__wrapper(p0,p1,p2) {
  40344. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameterfv(p0|0,p1|0,p2|0);
  40345. }
  40346. function _emscripten_glTexParameteriv__wrapper(p0,p1,p2) {
  40347. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameteriv(p0|0,p1|0,p2|0);
  40348. }
  40349. function _emscripten_glGetBufferParameteriv__wrapper(p0,p1,p2) {
  40350. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetBufferParameteriv(p0|0,p1|0,p2|0);
  40351. }
  40352. function _emscripten_glGetRenderbufferParameteriv__wrapper(p0,p1,p2) {
  40353. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetRenderbufferParameteriv(p0|0,p1|0,p2|0);
  40354. }
  40355. function _emscripten_glGetUniformfv__wrapper(p0,p1,p2) {
  40356. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetUniformfv(p0|0,p1|0,p2|0);
  40357. }
  40358. function _emscripten_glGetUniformiv__wrapper(p0,p1,p2) {
  40359. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetUniformiv(p0|0,p1|0,p2|0);
  40360. }
  40361. function _emscripten_glGetVertexAttribfv__wrapper(p0,p1,p2) {
  40362. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribfv(p0|0,p1|0,p2|0);
  40363. }
  40364. function _emscripten_glGetVertexAttribiv__wrapper(p0,p1,p2) {
  40365. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribiv(p0|0,p1|0,p2|0);
  40366. }
  40367. function _emscripten_glGetVertexAttribPointerv__wrapper(p0,p1,p2) {
  40368. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribPointerv(p0|0,p1|0,p2|0);
  40369. }
  40370. function _emscripten_glUniform2i__wrapper(p0,p1,p2) {
  40371. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2i(p0|0,p1|0,p2|0);
  40372. }
  40373. function _emscripten_glUniform1iv__wrapper(p0,p1,p2) {
  40374. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform1iv(p0|0,p1|0,p2|0);
  40375. }
  40376. function _emscripten_glUniform2iv__wrapper(p0,p1,p2) {
  40377. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2iv(p0|0,p1|0,p2|0);
  40378. }
  40379. function _emscripten_glUniform3iv__wrapper(p0,p1,p2) {
  40380. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform3iv(p0|0,p1|0,p2|0);
  40381. }
  40382. function _emscripten_glUniform4iv__wrapper(p0,p1,p2) {
  40383. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform4iv(p0|0,p1|0,p2|0);
  40384. }
  40385. function _emscripten_glUniform1fv__wrapper(p0,p1,p2) {
  40386. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform1fv(p0|0,p1|0,p2|0);
  40387. }
  40388. function _emscripten_glUniform2fv__wrapper(p0,p1,p2) {
  40389. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2fv(p0|0,p1|0,p2|0);
  40390. }
  40391. function _emscripten_glUniform3fv__wrapper(p0,p1,p2) {
  40392. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform3fv(p0|0,p1|0,p2|0);
  40393. }
  40394. function _emscripten_glUniform4fv__wrapper(p0,p1,p2) {
  40395. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform4fv(p0|0,p1|0,p2|0);
  40396. }
  40397. function _emscripten_glGetShaderiv__wrapper(p0,p1,p2) {
  40398. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetShaderiv(p0|0,p1|0,p2|0);
  40399. }
  40400. function _emscripten_glGetProgramiv__wrapper(p0,p1,p2) {
  40401. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetProgramiv(p0|0,p1|0,p2|0);
  40402. }
  40403. function _emscripten_glBindAttribLocation__wrapper(p0,p1,p2) {
  40404. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glBindAttribLocation(p0|0,p1|0,p2|0);
  40405. }
  40406. function _emscripten_glGetObjectParameterivARB__wrapper(p0,p1,p2) {
  40407. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetObjectParameterivARB(p0|0,p1|0,p2|0);
  40408. }
  40409. function _emscripten_glNormalPointer__wrapper(p0,p1,p2) {
  40410. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glNormalPointer(p0|0,p1|0,p2|0);
  40411. }
  40412. function _emscripten_glDrawArrays__wrapper(p0,p1,p2) {
  40413. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glDrawArrays(p0|0,p1|0,p2|0);
  40414. }
  40415. function _emscripten_glTexParameteri__wrapper(p0,p1,p2) {
  40416. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameteri(p0|0,p1|0,p2|0);
  40417. }
  40418. function _emscripten_glStencilFunc__wrapper(p0,p1,p2) {
  40419. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glStencilFunc(p0|0,p1|0,p2|0);
  40420. }
  40421. function _emscripten_glStencilOp__wrapper(p0,p1,p2) {
  40422. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glStencilOp(p0|0,p1|0,p2|0);
  40423. }
  40424. function b12(p0,p1,p2,p3,p4) {
  40425. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; nullFunc_vidddd(12);
  40426. }
  40427. function _emscripten_glUniform4f__wrapper(p0,p1,p2,p3,p4) {
  40428. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; _emscripten_glUniform4f(p0|0,+p1,+p2,+p3,+p4);
  40429. }
  40430. function _emscripten_glVertexAttrib4f__wrapper(p0,p1,p2,p3,p4) {
  40431. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; _emscripten_glVertexAttrib4f(p0|0,+p1,+p2,+p3,+p4);
  40432. }
  40433. function b13(p0,p1) {
  40434. p0 = +p0;p1 = p1|0; nullFunc_vdi(13);
  40435. }
  40436. function _emscripten_glSampleCoverage__wrapper(p0,p1) {
  40437. p0 = +p0;p1 = p1|0; _emscripten_glSampleCoverage(+p0,p1|0);
  40438. }
  40439. function b14(p0,p1,p2,p3,p4,p5,p6) {
  40440. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0;p6 = p6|0; nullFunc_viiiiiii(14);
  40441. }
  40442. function _emscripten_glReadPixels__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  40443. 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);
  40444. }
  40445. function _emscripten_glGetActiveUniform__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  40446. 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);
  40447. }
  40448. function _emscripten_glGetActiveAttrib__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  40449. 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);
  40450. }
  40451. function b15(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  40452. 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);
  40453. }
  40454. function _emscripten_glCompressedTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  40455. 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);
  40456. }
  40457. function _emscripten_glTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  40458. 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);
  40459. }
  40460. function _emscripten_glTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  40461. 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);
  40462. }
  40463. function b16(p0,p1) {
  40464. p0 = p0|0;p1 = p1|0; nullFunc_iii(16);return 0;
  40465. }
  40466. function _emscripten_glGetUniformLocation__wrapper(p0,p1) {
  40467. p0 = p0|0;p1 = p1|0; return _emscripten_glGetUniformLocation(p0|0,p1|0)|0;
  40468. }
  40469. function _emscripten_glGetAttribLocation__wrapper(p0,p1) {
  40470. p0 = p0|0;p1 = p1|0; return _emscripten_glGetAttribLocation(p0|0,p1|0)|0;
  40471. }
  40472. function b17() {
  40473. ; nullFunc_i(17);return 0;
  40474. }
  40475. function _emscripten_glCreateProgram__wrapper() {
  40476. ; return _emscripten_glCreateProgram()|0;
  40477. }
  40478. function _emscripten_glGetError__wrapper() {
  40479. ; return _emscripten_glGetError()|0;
  40480. }
  40481. function b18(p0,p1,p2,p3,p4,p5) {
  40482. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4;p5 = +p5; nullFunc_vdddddd(18);
  40483. }
  40484. function _emscripten_glFrustum__wrapper(p0,p1,p2,p3,p4,p5) {
  40485. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4;p5 = +p5; _emscripten_glFrustum(+p0,+p1,+p2,+p3,+p4,+p5);
  40486. }
  40487. function b19(p0,p1,p2,p3) {
  40488. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; nullFunc_vdddd(19);
  40489. }
  40490. function _emscripten_glRotatef__wrapper(p0,p1,p2,p3) {
  40491. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glRotatef(+p0,+p1,+p2,+p3);
  40492. }
  40493. function _emscripten_glClearColor__wrapper(p0,p1,p2,p3) {
  40494. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glClearColor(+p0,+p1,+p2,+p3);
  40495. }
  40496. function _emscripten_glBlendColor__wrapper(p0,p1,p2,p3) {
  40497. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glBlendColor(+p0,+p1,+p2,+p3);
  40498. }
  40499. function b20(p0,p1) {
  40500. p0 = +p0;p1 = +p1; nullFunc_vdd(20);
  40501. }
  40502. function _emscripten_glDepthRange__wrapper(p0,p1) {
  40503. p0 = +p0;p1 = +p1; _emscripten_glDepthRange(+p0,+p1);
  40504. }
  40505. function _emscripten_glDepthRangef__wrapper(p0,p1) {
  40506. p0 = +p0;p1 = +p1; _emscripten_glDepthRangef(+p0,+p1);
  40507. }
  40508. function _emscripten_glPolygonOffset__wrapper(p0,p1) {
  40509. p0 = +p0;p1 = +p1; _emscripten_glPolygonOffset(+p0,+p1);
  40510. }
  40511. function b21() {
  40512. ; nullFunc_v(21);
  40513. }
  40514. function _emscripten_glLoadIdentity__wrapper() {
  40515. ; _emscripten_glLoadIdentity();
  40516. }
  40517. function _emscripten_glReleaseShaderCompiler__wrapper() {
  40518. ; _emscripten_glReleaseShaderCompiler();
  40519. }
  40520. function _emscripten_glFinish__wrapper() {
  40521. ; _emscripten_glFinish();
  40522. }
  40523. function _emscripten_glFlush__wrapper() {
  40524. ; _emscripten_glFlush();
  40525. }
  40526. function b22(p0,p1,p2) {
  40527. p0 = p0|0;p1 = p1|0;p2 = +p2; nullFunc_viid(22);
  40528. }
  40529. function _emscripten_glTexParameterf__wrapper(p0,p1,p2) {
  40530. p0 = p0|0;p1 = p1|0;p2 = +p2; _emscripten_glTexParameterf(p0|0,p1|0,+p2);
  40531. }
  40532. function b23(p0,p1,p2,p3) {
  40533. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; nullFunc_viiii(23);
  40534. }
  40535. function _emscripten_glBufferData__wrapper(p0,p1,p2,p3) {
  40536. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBufferData(p0|0,p1|0,p2|0,p3|0);
  40537. }
  40538. function _emscripten_glBufferSubData__wrapper(p0,p1,p2,p3) {
  40539. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBufferSubData(p0|0,p1|0,p2|0,p3|0);
  40540. }
  40541. function _emscripten_glUniform3i__wrapper(p0,p1,p2,p3) {
  40542. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniform3i(p0|0,p1|0,p2|0,p3|0);
  40543. }
  40544. function _emscripten_glUniformMatrix2fv__wrapper(p0,p1,p2,p3) {
  40545. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix2fv(p0|0,p1|0,p2|0,p3|0);
  40546. }
  40547. function _emscripten_glUniformMatrix3fv__wrapper(p0,p1,p2,p3) {
  40548. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix3fv(p0|0,p1|0,p2|0,p3|0);
  40549. }
  40550. function _emscripten_glUniformMatrix4fv__wrapper(p0,p1,p2,p3) {
  40551. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix4fv(p0|0,p1|0,p2|0,p3|0);
  40552. }
  40553. function _emscripten_glGetAttachedShaders__wrapper(p0,p1,p2,p3) {
  40554. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetAttachedShaders(p0|0,p1|0,p2|0,p3|0);
  40555. }
  40556. function _emscripten_glShaderSource__wrapper(p0,p1,p2,p3) {
  40557. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glShaderSource(p0|0,p1|0,p2|0,p3|0);
  40558. }
  40559. function _emscripten_glGetShaderSource__wrapper(p0,p1,p2,p3) {
  40560. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderSource(p0|0,p1|0,p2|0,p3|0);
  40561. }
  40562. function _emscripten_glGetShaderInfoLog__wrapper(p0,p1,p2,p3) {
  40563. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderInfoLog(p0|0,p1|0,p2|0,p3|0);
  40564. }
  40565. function _emscripten_glGetShaderPrecisionFormat__wrapper(p0,p1,p2,p3) {
  40566. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderPrecisionFormat(p0|0,p1|0,p2|0,p3|0);
  40567. }
  40568. function _emscripten_glGetProgramInfoLog__wrapper(p0,p1,p2,p3) {
  40569. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetProgramInfoLog(p0|0,p1|0,p2|0,p3|0);
  40570. }
  40571. function _emscripten_glFramebufferRenderbuffer__wrapper(p0,p1,p2,p3) {
  40572. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glFramebufferRenderbuffer(p0|0,p1|0,p2|0,p3|0);
  40573. }
  40574. function _emscripten_glGetFramebufferAttachmentParameteriv__wrapper(p0,p1,p2,p3) {
  40575. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetFramebufferAttachmentParameteriv(p0|0,p1|0,p2|0,p3|0);
  40576. }
  40577. function _emscripten_glGetInfoLogARB__wrapper(p0,p1,p2,p3) {
  40578. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetInfoLogARB(p0|0,p1|0,p2|0,p3|0);
  40579. }
  40580. function _emscripten_glVertexPointer__wrapper(p0,p1,p2,p3) {
  40581. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glVertexPointer(p0|0,p1|0,p2|0,p3|0);
  40582. }
  40583. function _emscripten_glTexCoordPointer__wrapper(p0,p1,p2,p3) {
  40584. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glTexCoordPointer(p0|0,p1|0,p2|0,p3|0);
  40585. }
  40586. function _emscripten_glColorPointer__wrapper(p0,p1,p2,p3) {
  40587. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glColorPointer(p0|0,p1|0,p2|0,p3|0);
  40588. }
  40589. function _emscripten_glDrawElements__wrapper(p0,p1,p2,p3) {
  40590. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glDrawElements(p0|0,p1|0,p2|0,p3|0);
  40591. }
  40592. function _emscripten_glDrawArraysInstanced__wrapper(p0,p1,p2,p3) {
  40593. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glDrawArraysInstanced(p0|0,p1|0,p2|0,p3|0);
  40594. }
  40595. function _emscripten_glViewport__wrapper(p0,p1,p2,p3) {
  40596. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glViewport(p0|0,p1|0,p2|0,p3|0);
  40597. }
  40598. function _emscripten_glScissor__wrapper(p0,p1,p2,p3) {
  40599. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glScissor(p0|0,p1|0,p2|0,p3|0);
  40600. }
  40601. function _emscripten_glColorMask__wrapper(p0,p1,p2,p3) {
  40602. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glColorMask(p0|0,p1|0,p2|0,p3|0);
  40603. }
  40604. function _emscripten_glRenderbufferStorage__wrapper(p0,p1,p2,p3) {
  40605. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glRenderbufferStorage(p0|0,p1|0,p2|0,p3|0);
  40606. }
  40607. function _emscripten_glBlendFuncSeparate__wrapper(p0,p1,p2,p3) {
  40608. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBlendFuncSeparate(p0|0,p1|0,p2|0,p3|0);
  40609. }
  40610. function _emscripten_glStencilFuncSeparate__wrapper(p0,p1,p2,p3) {
  40611. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glStencilFuncSeparate(p0|0,p1|0,p2|0,p3|0);
  40612. }
  40613. function _emscripten_glStencilOpSeparate__wrapper(p0,p1,p2,p3) {
  40614. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glStencilOpSeparate(p0|0,p1|0,p2|0,p3|0);
  40615. }
  40616. // EMSCRIPTEN_END_FUNCS
  40617. var FUNCTION_TABLE_viiiii = [b0,_KeyCallback,_emscripten_glUniform4i__wrapper,_emscripten_glFramebufferTexture2D__wrapper,_emscripten_glShaderBinary__wrapper,_emscripten_glDrawElementsInstanced__wrapper,b0,b0];
  40618. var FUNCTION_TABLE_vd = [b1,_emscripten_glClearDepth__wrapper,_emscripten_glClearDepthf__wrapper,_emscripten_glLineWidth__wrapper];
  40619. var FUNCTION_TABLE_vid = [b2,_emscripten_glUniform1f__wrapper,_emscripten_glVertexAttrib1f__wrapper,b2];
  40620. 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
  40621. ,b3,b3,b3];
  40622. 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
  40623. ,b4,b4,b4,b4,b4];
  40624. 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];
  40625. var FUNCTION_TABLE_viddd = [b6,_emscripten_glUniform3f__wrapper,_emscripten_glVertexAttrib3f__wrapper,b6];
  40626. var FUNCTION_TABLE_vidd = [b7,_MouseCursorPosCallback,_ScrollCallback,_emscripten_glUniform2f__wrapper,_emscripten_glVertexAttrib2f__wrapper,b7,b7,b7];
  40627. 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];
  40628. var FUNCTION_TABLE_viiiiiiii = [b9,_emscripten_glCompressedTexImage2D__wrapper,_emscripten_glCopyTexImage2D__wrapper,_emscripten_glCopyTexSubImage2D__wrapper];
  40629. var FUNCTION_TABLE_viiiiii = [b10,_emscripten_glDrawRangeElements__wrapper,_emscripten_glVertexAttribPointer__wrapper,b10];
  40630. 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];
  40631. var FUNCTION_TABLE_vidddd = [b12,_emscripten_glUniform4f__wrapper,_emscripten_glVertexAttrib4f__wrapper,b12];
  40632. var FUNCTION_TABLE_vdi = [b13,_emscripten_glSampleCoverage__wrapper];
  40633. var FUNCTION_TABLE_viiiiiii = [b14,_emscripten_glReadPixels__wrapper,_emscripten_glGetActiveUniform__wrapper,_emscripten_glGetActiveAttrib__wrapper];
  40634. var FUNCTION_TABLE_viiiiiiiii = [b15,_emscripten_glCompressedTexSubImage2D__wrapper,_emscripten_glTexImage2D__wrapper,_emscripten_glTexSubImage2D__wrapper];
  40635. var FUNCTION_TABLE_iii = [b16,_emscripten_glGetUniformLocation__wrapper,_emscripten_glGetAttribLocation__wrapper,b16];
  40636. var FUNCTION_TABLE_i = [b17,_emscripten_glCreateProgram__wrapper,_emscripten_glGetError__wrapper,b17];
  40637. var FUNCTION_TABLE_vdddddd = [b18,_emscripten_glFrustum__wrapper];
  40638. var FUNCTION_TABLE_vdddd = [b19,_emscripten_glRotatef__wrapper,_emscripten_glClearColor__wrapper,_emscripten_glBlendColor__wrapper];
  40639. var FUNCTION_TABLE_vdd = [b20,_emscripten_glDepthRange__wrapper,_emscripten_glDepthRangef__wrapper,_emscripten_glPolygonOffset__wrapper];
  40640. var FUNCTION_TABLE_v = [b21,_UpdateDrawFrame,_emscripten_glLoadIdentity__wrapper,_emscripten_glReleaseShaderCompiler__wrapper,_emscripten_glFinish__wrapper,_emscripten_glFlush__wrapper,b21,b21];
  40641. var FUNCTION_TABLE_viid = [b22,_emscripten_glTexParameterf__wrapper];
  40642. 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];
  40643. return { _roundf: _roundf, _main: _main, _memset: _memset, _bitshift64Lshr: _bitshift64Lshr, _bitshift64Shl: _bitshift64Shl, _fflush: _fflush, _llvm_cttz_i32: _llvm_cttz_i32, _sbrk: _sbrk, _memcpy: _memcpy, ___errno_location: ___errno_location, ___uremdi3: ___uremdi3, _i64Subtract: _i64Subtract, ___udivmoddi4: ___udivmoddi4, _i64Add: _i64Add, _emscripten_get_global_libc: _emscripten_get_global_libc, _emscripten_GetProcAddress: _emscripten_GetProcAddress, ___udivdi3: ___udivdi3, _llvm_bswap_i32: _llvm_bswap_i32, _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 };
  40644. })
  40645. // EMSCRIPTEN_END_ASM
  40646. (Module.asmGlobalArg, Module.asmLibraryArg, buffer);
  40647. var real__roundf = asm["_roundf"]; asm["_roundf"] = function() {
  40648. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40649. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40650. return real__roundf.apply(null, arguments);
  40651. };
  40652. var real__main = asm["_main"]; asm["_main"] = function() {
  40653. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40654. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40655. return real__main.apply(null, arguments);
  40656. };
  40657. var real_stackSave = asm["stackSave"]; asm["stackSave"] = function() {
  40658. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40659. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40660. return real_stackSave.apply(null, arguments);
  40661. };
  40662. var real_getTempRet0 = asm["getTempRet0"]; asm["getTempRet0"] = function() {
  40663. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40664. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40665. return real_getTempRet0.apply(null, arguments);
  40666. };
  40667. var real__llvm_cttz_i32 = asm["_llvm_cttz_i32"]; asm["_llvm_cttz_i32"] = function() {
  40668. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40669. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40670. return real__llvm_cttz_i32.apply(null, arguments);
  40671. };
  40672. var real_setThrew = asm["setThrew"]; asm["setThrew"] = function() {
  40673. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40674. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40675. return real_setThrew.apply(null, arguments);
  40676. };
  40677. var real__bitshift64Lshr = asm["_bitshift64Lshr"]; asm["_bitshift64Lshr"] = function() {
  40678. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40679. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40680. return real__bitshift64Lshr.apply(null, arguments);
  40681. };
  40682. var real__bitshift64Shl = asm["_bitshift64Shl"]; asm["_bitshift64Shl"] = function() {
  40683. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40684. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40685. return real__bitshift64Shl.apply(null, arguments);
  40686. };
  40687. var real__fflush = asm["_fflush"]; asm["_fflush"] = function() {
  40688. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40689. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40690. return real__fflush.apply(null, arguments);
  40691. };
  40692. var real__sbrk = asm["_sbrk"]; asm["_sbrk"] = function() {
  40693. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40694. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40695. return real__sbrk.apply(null, arguments);
  40696. };
  40697. var real____errno_location = asm["___errno_location"]; asm["___errno_location"] = function() {
  40698. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40699. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40700. return real____errno_location.apply(null, arguments);
  40701. };
  40702. var real____uremdi3 = asm["___uremdi3"]; asm["___uremdi3"] = function() {
  40703. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40704. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40705. return real____uremdi3.apply(null, arguments);
  40706. };
  40707. var real_stackAlloc = asm["stackAlloc"]; asm["stackAlloc"] = function() {
  40708. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40709. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40710. return real_stackAlloc.apply(null, arguments);
  40711. };
  40712. var real__i64Subtract = asm["_i64Subtract"]; asm["_i64Subtract"] = function() {
  40713. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40714. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40715. return real__i64Subtract.apply(null, arguments);
  40716. };
  40717. var real____udivmoddi4 = asm["___udivmoddi4"]; asm["___udivmoddi4"] = function() {
  40718. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40719. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40720. return real____udivmoddi4.apply(null, arguments);
  40721. };
  40722. var real_setTempRet0 = asm["setTempRet0"]; asm["setTempRet0"] = function() {
  40723. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40724. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40725. return real_setTempRet0.apply(null, arguments);
  40726. };
  40727. var real__i64Add = asm["_i64Add"]; asm["_i64Add"] = function() {
  40728. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40729. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40730. return real__i64Add.apply(null, arguments);
  40731. };
  40732. var real__emscripten_get_global_libc = asm["_emscripten_get_global_libc"]; asm["_emscripten_get_global_libc"] = function() {
  40733. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40734. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40735. return real__emscripten_get_global_libc.apply(null, arguments);
  40736. };
  40737. var real__emscripten_GetProcAddress = asm["_emscripten_GetProcAddress"]; asm["_emscripten_GetProcAddress"] = function() {
  40738. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40739. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40740. return real__emscripten_GetProcAddress.apply(null, arguments);
  40741. };
  40742. var real____udivdi3 = asm["___udivdi3"]; asm["___udivdi3"] = function() {
  40743. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40744. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40745. return real____udivdi3.apply(null, arguments);
  40746. };
  40747. var real__llvm_bswap_i32 = asm["_llvm_bswap_i32"]; asm["_llvm_bswap_i32"] = function() {
  40748. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40749. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40750. return real__llvm_bswap_i32.apply(null, arguments);
  40751. };
  40752. var real__free = asm["_free"]; asm["_free"] = function() {
  40753. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40754. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40755. return real__free.apply(null, arguments);
  40756. };
  40757. var real_establishStackSpace = asm["establishStackSpace"]; asm["establishStackSpace"] = function() {
  40758. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40759. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40760. return real_establishStackSpace.apply(null, arguments);
  40761. };
  40762. var real__memmove = asm["_memmove"]; asm["_memmove"] = function() {
  40763. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40764. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40765. return real__memmove.apply(null, arguments);
  40766. };
  40767. var real__strstr = asm["_strstr"]; asm["_strstr"] = function() {
  40768. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40769. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40770. return real__strstr.apply(null, arguments);
  40771. };
  40772. var real_stackRestore = asm["stackRestore"]; asm["stackRestore"] = function() {
  40773. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40774. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40775. return real_stackRestore.apply(null, arguments);
  40776. };
  40777. var real__malloc = asm["_malloc"]; asm["_malloc"] = function() {
  40778. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  40779. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  40780. return real__malloc.apply(null, arguments);
  40781. };
  40782. var _roundf = Module["_roundf"] = asm["_roundf"];
  40783. var _main = Module["_main"] = asm["_main"];
  40784. var stackSave = Module["stackSave"] = asm["stackSave"];
  40785. var getTempRet0 = Module["getTempRet0"] = asm["getTempRet0"];
  40786. var _llvm_cttz_i32 = Module["_llvm_cttz_i32"] = asm["_llvm_cttz_i32"];
  40787. var setThrew = Module["setThrew"] = asm["setThrew"];
  40788. var _bitshift64Lshr = Module["_bitshift64Lshr"] = asm["_bitshift64Lshr"];
  40789. var _bitshift64Shl = Module["_bitshift64Shl"] = asm["_bitshift64Shl"];
  40790. var _fflush = Module["_fflush"] = asm["_fflush"];
  40791. var _memset = Module["_memset"] = asm["_memset"];
  40792. var _sbrk = Module["_sbrk"] = asm["_sbrk"];
  40793. var _memcpy = Module["_memcpy"] = asm["_memcpy"];
  40794. var ___errno_location = Module["___errno_location"] = asm["___errno_location"];
  40795. var ___uremdi3 = Module["___uremdi3"] = asm["___uremdi3"];
  40796. var stackAlloc = Module["stackAlloc"] = asm["stackAlloc"];
  40797. var _i64Subtract = Module["_i64Subtract"] = asm["_i64Subtract"];
  40798. var ___udivmoddi4 = Module["___udivmoddi4"] = asm["___udivmoddi4"];
  40799. var setTempRet0 = Module["setTempRet0"] = asm["setTempRet0"];
  40800. var _i64Add = Module["_i64Add"] = asm["_i64Add"];
  40801. var _emscripten_get_global_libc = Module["_emscripten_get_global_libc"] = asm["_emscripten_get_global_libc"];
  40802. var _emscripten_GetProcAddress = Module["_emscripten_GetProcAddress"] = asm["_emscripten_GetProcAddress"];
  40803. var ___udivdi3 = Module["___udivdi3"] = asm["___udivdi3"];
  40804. var _llvm_bswap_i32 = Module["_llvm_bswap_i32"] = asm["_llvm_bswap_i32"];
  40805. var _free = Module["_free"] = asm["_free"];
  40806. var runPostSets = Module["runPostSets"] = asm["runPostSets"];
  40807. var establishStackSpace = Module["establishStackSpace"] = asm["establishStackSpace"];
  40808. var _memmove = Module["_memmove"] = asm["_memmove"];
  40809. var _strstr = Module["_strstr"] = asm["_strstr"];
  40810. var stackRestore = Module["stackRestore"] = asm["stackRestore"];
  40811. var _malloc = Module["_malloc"] = asm["_malloc"];
  40812. var dynCall_viiiii = Module["dynCall_viiiii"] = asm["dynCall_viiiii"];
  40813. var dynCall_vd = Module["dynCall_vd"] = asm["dynCall_vd"];
  40814. var dynCall_vid = Module["dynCall_vid"] = asm["dynCall_vid"];
  40815. var dynCall_vi = Module["dynCall_vi"] = asm["dynCall_vi"];
  40816. var dynCall_vii = Module["dynCall_vii"] = asm["dynCall_vii"];
  40817. var dynCall_ii = Module["dynCall_ii"] = asm["dynCall_ii"];
  40818. var dynCall_viddd = Module["dynCall_viddd"] = asm["dynCall_viddd"];
  40819. var dynCall_vidd = Module["dynCall_vidd"] = asm["dynCall_vidd"];
  40820. var dynCall_iiii = Module["dynCall_iiii"] = asm["dynCall_iiii"];
  40821. var dynCall_viiiiiiii = Module["dynCall_viiiiiiii"] = asm["dynCall_viiiiiiii"];
  40822. var dynCall_viiiiii = Module["dynCall_viiiiii"] = asm["dynCall_viiiiii"];
  40823. var dynCall_viii = Module["dynCall_viii"] = asm["dynCall_viii"];
  40824. var dynCall_vidddd = Module["dynCall_vidddd"] = asm["dynCall_vidddd"];
  40825. var dynCall_vdi = Module["dynCall_vdi"] = asm["dynCall_vdi"];
  40826. var dynCall_viiiiiii = Module["dynCall_viiiiiii"] = asm["dynCall_viiiiiii"];
  40827. var dynCall_viiiiiiiii = Module["dynCall_viiiiiiiii"] = asm["dynCall_viiiiiiiii"];
  40828. var dynCall_iii = Module["dynCall_iii"] = asm["dynCall_iii"];
  40829. var dynCall_i = Module["dynCall_i"] = asm["dynCall_i"];
  40830. var dynCall_vdddddd = Module["dynCall_vdddddd"] = asm["dynCall_vdddddd"];
  40831. var dynCall_vdddd = Module["dynCall_vdddd"] = asm["dynCall_vdddd"];
  40832. var dynCall_vdd = Module["dynCall_vdd"] = asm["dynCall_vdd"];
  40833. var dynCall_v = Module["dynCall_v"] = asm["dynCall_v"];
  40834. var dynCall_viid = Module["dynCall_viid"] = asm["dynCall_viid"];
  40835. var dynCall_viiii = Module["dynCall_viiii"] = asm["dynCall_viiii"];
  40836. ;
  40837. Runtime.stackAlloc = Module['stackAlloc'];
  40838. Runtime.stackSave = Module['stackSave'];
  40839. Runtime.stackRestore = Module['stackRestore'];
  40840. Runtime.establishStackSpace = Module['establishStackSpace'];
  40841. Runtime.setTempRet0 = Module['setTempRet0'];
  40842. Runtime.getTempRet0 = Module['getTempRet0'];
  40843. // === Auto-generated postamble setup entry stuff ===
  40844. Module['asm'] = asm;
  40845. function ExitStatus(status) {
  40846. this.name = "ExitStatus";
  40847. this.message = "Program terminated with exit(" + status + ")";
  40848. this.status = status;
  40849. };
  40850. ExitStatus.prototype = new Error();
  40851. ExitStatus.prototype.constructor = ExitStatus;
  40852. var initialStackTop;
  40853. var preloadStartTime = null;
  40854. var calledMain = false;
  40855. dependenciesFulfilled = function runCaller() {
  40856. // If run has never been called, and we should call run (INVOKE_RUN is true, and Module.noInitialRun is not false)
  40857. if (!Module['calledRun']) run();
  40858. if (!Module['calledRun']) dependenciesFulfilled = runCaller; // try this again later, after new deps are fulfilled
  40859. }
  40860. Module['callMain'] = Module.callMain = function callMain(args) {
  40861. assert(runDependencies == 0, 'cannot call main when async dependencies remain! (listen on __ATMAIN__)');
  40862. assert(__ATPRERUN__.length == 0, 'cannot call main when preRun functions remain to be called');
  40863. args = args || [];
  40864. ensureInitRuntime();
  40865. var argc = args.length+1;
  40866. function pad() {
  40867. for (var i = 0; i < 4-1; i++) {
  40868. argv.push(0);
  40869. }
  40870. }
  40871. var argv = [allocate(intArrayFromString(Module['thisProgram']), 'i8', ALLOC_NORMAL) ];
  40872. pad();
  40873. for (var i = 0; i < argc-1; i = i + 1) {
  40874. argv.push(allocate(intArrayFromString(args[i]), 'i8', ALLOC_NORMAL));
  40875. pad();
  40876. }
  40877. argv.push(0);
  40878. argv = allocate(argv, 'i32', ALLOC_NORMAL);
  40879. try {
  40880. var ret = Module['_main'](argc, argv, 0);
  40881. // if we're not running an evented main loop, it's time to exit
  40882. exit(ret, /* implicit = */ true);
  40883. }
  40884. catch(e) {
  40885. if (e instanceof ExitStatus) {
  40886. // exit() throws this once it's done to make sure execution
  40887. // has been stopped completely
  40888. return;
  40889. } else if (e == 'SimulateInfiniteLoop') {
  40890. // running an evented main loop, don't immediately exit
  40891. Module['noExitRuntime'] = true;
  40892. return;
  40893. } else {
  40894. var toLog = e;
  40895. if (e && typeof e === 'object' && e.stack) {
  40896. toLog = [e, e.stack];
  40897. }
  40898. Module.printErr('exception thrown: ' + toLog);
  40899. Module['quit'](1, e);
  40900. }
  40901. } finally {
  40902. calledMain = true;
  40903. }
  40904. }
  40905. function run(args) {
  40906. args = args || Module['arguments'];
  40907. if (preloadStartTime === null) preloadStartTime = Date.now();
  40908. if (runDependencies > 0) {
  40909. Module.printErr('run() called, but dependencies remain, so not running');
  40910. return;
  40911. }
  40912. writeStackCookie();
  40913. preRun();
  40914. if (runDependencies > 0) return; // a preRun added a dependency, run will be called later
  40915. if (Module['calledRun']) return; // run may have just been called through dependencies being fulfilled just in this very frame
  40916. function doRun() {
  40917. if (Module['calledRun']) return; // run may have just been called while the async setStatus time below was happening
  40918. Module['calledRun'] = true;
  40919. if (ABORT) return;
  40920. ensureInitRuntime();
  40921. preMain();
  40922. if (ENVIRONMENT_IS_WEB && preloadStartTime !== null) {
  40923. Module.printErr('pre-main prep time: ' + (Date.now() - preloadStartTime) + ' ms');
  40924. }
  40925. if (Module['onRuntimeInitialized']) Module['onRuntimeInitialized']();
  40926. if (Module['_main'] && shouldRunNow) Module['callMain'](args);
  40927. postRun();
  40928. }
  40929. if (Module['setStatus']) {
  40930. Module['setStatus']('Running...');
  40931. setTimeout(function() {
  40932. setTimeout(function() {
  40933. Module['setStatus']('');
  40934. }, 1);
  40935. doRun();
  40936. }, 1);
  40937. } else {
  40938. doRun();
  40939. }
  40940. checkStackCookie();
  40941. }
  40942. Module['run'] = Module.run = run;
  40943. function exit(status, implicit) {
  40944. if (implicit && Module['noExitRuntime']) {
  40945. 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)');
  40946. return;
  40947. }
  40948. if (Module['noExitRuntime']) {
  40949. 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)');
  40950. } else {
  40951. ABORT = true;
  40952. EXITSTATUS = status;
  40953. STACKTOP = initialStackTop;
  40954. exitRuntime();
  40955. if (Module['onExit']) Module['onExit'](status);
  40956. }
  40957. if (ENVIRONMENT_IS_NODE) {
  40958. process['exit'](status);
  40959. }
  40960. Module['quit'](status, new ExitStatus(status));
  40961. }
  40962. Module['exit'] = Module.exit = exit;
  40963. var abortDecorators = [];
  40964. function abort(what) {
  40965. if (what !== undefined) {
  40966. Module.print(what);
  40967. Module.printErr(what);
  40968. what = JSON.stringify(what)
  40969. } else {
  40970. what = '';
  40971. }
  40972. ABORT = true;
  40973. EXITSTATUS = 1;
  40974. var extra = '';
  40975. var output = 'abort(' + what + ') at ' + stackTrace() + extra;
  40976. if (abortDecorators) {
  40977. abortDecorators.forEach(function(decorator) {
  40978. output = decorator(output, what);
  40979. });
  40980. }
  40981. throw output;
  40982. }
  40983. Module['abort'] = Module.abort = abort;
  40984. // {{PRE_RUN_ADDITIONS}}
  40985. if (Module['preInit']) {
  40986. if (typeof Module['preInit'] == 'function') Module['preInit'] = [Module['preInit']];
  40987. while (Module['preInit'].length > 0) {
  40988. Module['preInit'].pop()();
  40989. }
  40990. }
  40991. // shouldRunNow refers to calling main(), not run().
  40992. var shouldRunNow = true;
  40993. if (Module['noInitialRun']) {
  40994. shouldRunNow = false;
  40995. }
  40996. run();
  40997. // {{POST_RUN_ADDITIONS}}
  40998. // {{MODULE_ADDITIONS}}