text_bmfont_ttf.js 1.6 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184
  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 = 'text/text_bmfont_ttf.data';
  20. var REMOTE_PACKAGE_BASE = 'text_bmfont_ttf.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_text/text_bmfont_ttf.data');
  141. };
  142. Module['addRunDependency']('datafile_text/text_bmfont_ttf.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": 11125, "filename": "/resources/bmfont.fnt"}, {"audio": 0, "start": 11125, "crunched": 0, "end": 25596, "filename": "/resources/bmfont.png"}, {"audio": 0, "start": 25596, "crunched": 0, "end": 61004, "filename": "/resources/pixantiqua.ttf"}], "remote_package_size": 61004, "package_uuid": "31e67f09-93a3-471f-aac0-1897e169e508"});
  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. if (!Module['reallocBuffer']) Module['reallocBuffer'] = function(size) {
  1239. var ret;
  1240. try {
  1241. if (ArrayBuffer.transfer) {
  1242. ret = ArrayBuffer.transfer(buffer, size);
  1243. } else {
  1244. var oldHEAP8 = HEAP8;
  1245. ret = new ArrayBuffer(size);
  1246. var temp = new Int8Array(ret);
  1247. temp.set(oldHEAP8);
  1248. }
  1249. } catch(e) {
  1250. return false;
  1251. }
  1252. var success = _emscripten_replace_memory(ret);
  1253. if (!success) return false;
  1254. return ret;
  1255. };
  1256. function enlargeMemory() {
  1257. // TOTAL_MEMORY is the current size of the actual array, and DYNAMICTOP is the new top.
  1258. assert(HEAP32[DYNAMICTOP_PTR>>2] > TOTAL_MEMORY); // This function should only ever be called after the ceiling of the dynamic heap has already been bumped to exceed the current total size of the asm.js heap.
  1259. var PAGE_MULTIPLE = Module["usingWasm"] ? WASM_PAGE_SIZE : ASMJS_PAGE_SIZE; // In wasm, heap size must be a multiple of 64KB. In asm.js, they need to be multiples of 16MB.
  1260. var LIMIT = 2147483648 - PAGE_MULTIPLE; // We can do one page short of 2GB as theoretical maximum.
  1261. if (HEAP32[DYNAMICTOP_PTR>>2] > LIMIT) {
  1262. Module.printErr('Cannot enlarge memory, asked to go up to ' + HEAP32[DYNAMICTOP_PTR>>2] + ' bytes, but the limit is ' + LIMIT + ' bytes!');
  1263. return false;
  1264. }
  1265. var OLD_TOTAL_MEMORY = TOTAL_MEMORY;
  1266. TOTAL_MEMORY = Math.max(TOTAL_MEMORY, MIN_TOTAL_MEMORY); // So the loop below will not be infinite, and minimum asm.js memory size is 16MB.
  1267. while (TOTAL_MEMORY < HEAP32[DYNAMICTOP_PTR>>2]) { // Keep incrementing the heap size as long as it's less than what is requested.
  1268. if (TOTAL_MEMORY <= 536870912) {
  1269. TOTAL_MEMORY = alignUp(2 * TOTAL_MEMORY, PAGE_MULTIPLE); // Simple heuristic: double until 1GB...
  1270. } else {
  1271. TOTAL_MEMORY = Math.min(alignUp((3 * TOTAL_MEMORY + 2147483648) / 4, PAGE_MULTIPLE), LIMIT); // ..., but after that, add smaller increments towards 2GB, which we cannot reach
  1272. }
  1273. }
  1274. var start = Date.now();
  1275. var replacement = Module['reallocBuffer'](TOTAL_MEMORY);
  1276. if (!replacement || replacement.byteLength != TOTAL_MEMORY) {
  1277. Module.printErr('Failed to grow the heap from ' + OLD_TOTAL_MEMORY + ' bytes to ' + TOTAL_MEMORY + ' bytes, not enough memory!');
  1278. if (replacement) {
  1279. Module.printErr('Expected to get back a buffer of size ' + TOTAL_MEMORY + ' bytes, but instead got back a buffer of size ' + replacement.byteLength);
  1280. }
  1281. return false;
  1282. }
  1283. // everything worked
  1284. updateGlobalBuffer(replacement);
  1285. updateGlobalBufferViews();
  1286. Module.printErr('enlarged memory arrays from ' + OLD_TOTAL_MEMORY + ' to ' + TOTAL_MEMORY + ', took ' + (Date.now() - start) + ' ms (has ArrayBuffer.transfer? ' + (!!ArrayBuffer.transfer) + ')');
  1287. if (!Module["usingWasm"]) {
  1288. Module.printErr('Warning: Enlarging memory arrays, this is not fast! ' + [OLD_TOTAL_MEMORY, TOTAL_MEMORY]);
  1289. }
  1290. return true;
  1291. }
  1292. var byteLength;
  1293. try {
  1294. byteLength = Function.prototype.call.bind(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, 'byteLength').get);
  1295. byteLength(new ArrayBuffer(4)); // can fail on older ie
  1296. } catch(e) { // can fail on older node/v8
  1297. byteLength = function(buffer) { return buffer.byteLength; };
  1298. }
  1299. var TOTAL_STACK = Module['TOTAL_STACK'] || 5242880;
  1300. var TOTAL_MEMORY = Module['TOTAL_MEMORY'] || 16777216;
  1301. if (TOTAL_MEMORY < TOTAL_STACK) Module.printErr('TOTAL_MEMORY should be larger than TOTAL_STACK, was ' + TOTAL_MEMORY + '! (TOTAL_STACK=' + TOTAL_STACK + ')');
  1302. // Initialize the runtime's memory
  1303. // check for full engine support (use string 'subarray' to avoid closure compiler confusion)
  1304. assert(typeof Int32Array !== 'undefined' && typeof Float64Array !== 'undefined' && !!(new Int32Array(1)['subarray']) && !!(new Int32Array(1)['set']),
  1305. 'JS engine does not provide full typed array support');
  1306. // Use a provided buffer, if there is one, or else allocate a new one
  1307. if (Module['buffer']) {
  1308. buffer = Module['buffer'];
  1309. assert(buffer.byteLength === TOTAL_MEMORY, 'provided buffer should be ' + TOTAL_MEMORY + ' bytes, but it is ' + buffer.byteLength);
  1310. } else {
  1311. // Use a WebAssembly memory where available
  1312. {
  1313. buffer = new ArrayBuffer(TOTAL_MEMORY);
  1314. }
  1315. assert(buffer.byteLength === TOTAL_MEMORY);
  1316. }
  1317. updateGlobalBufferViews();
  1318. function getTotalMemory() {
  1319. return TOTAL_MEMORY;
  1320. }
  1321. // Endianness check (note: assumes compiler arch was little-endian)
  1322. HEAP32[0] = 0x63736d65; /* 'emsc' */
  1323. HEAP16[1] = 0x6373;
  1324. if (HEAPU8[2] !== 0x73 || HEAPU8[3] !== 0x63) throw 'Runtime error: expected the system to be little-endian!';
  1325. Module['HEAP'] = HEAP;
  1326. Module['buffer'] = buffer;
  1327. Module['HEAP8'] = HEAP8;
  1328. Module['HEAP16'] = HEAP16;
  1329. Module['HEAP32'] = HEAP32;
  1330. Module['HEAPU8'] = HEAPU8;
  1331. Module['HEAPU16'] = HEAPU16;
  1332. Module['HEAPU32'] = HEAPU32;
  1333. Module['HEAPF32'] = HEAPF32;
  1334. Module['HEAPF64'] = HEAPF64;
  1335. function callRuntimeCallbacks(callbacks) {
  1336. while(callbacks.length > 0) {
  1337. var callback = callbacks.shift();
  1338. if (typeof callback == 'function') {
  1339. callback();
  1340. continue;
  1341. }
  1342. var func = callback.func;
  1343. if (typeof func === 'number') {
  1344. if (callback.arg === undefined) {
  1345. Module['dynCall_v'](func);
  1346. } else {
  1347. Module['dynCall_vi'](func, callback.arg);
  1348. }
  1349. } else {
  1350. func(callback.arg === undefined ? null : callback.arg);
  1351. }
  1352. }
  1353. }
  1354. var __ATPRERUN__ = []; // functions called before the runtime is initialized
  1355. var __ATINIT__ = []; // functions called during startup
  1356. var __ATMAIN__ = []; // functions called when main() is to be run
  1357. var __ATEXIT__ = []; // functions called during shutdown
  1358. var __ATPOSTRUN__ = []; // functions called after the runtime has exited
  1359. var runtimeInitialized = false;
  1360. var runtimeExited = false;
  1361. function preRun() {
  1362. // compatibility - merge in anything from Module['preRun'] at this time
  1363. if (Module['preRun']) {
  1364. if (typeof Module['preRun'] == 'function') Module['preRun'] = [Module['preRun']];
  1365. while (Module['preRun'].length) {
  1366. addOnPreRun(Module['preRun'].shift());
  1367. }
  1368. }
  1369. callRuntimeCallbacks(__ATPRERUN__);
  1370. }
  1371. function ensureInitRuntime() {
  1372. checkStackCookie();
  1373. if (runtimeInitialized) return;
  1374. runtimeInitialized = true;
  1375. callRuntimeCallbacks(__ATINIT__);
  1376. }
  1377. function preMain() {
  1378. checkStackCookie();
  1379. callRuntimeCallbacks(__ATMAIN__);
  1380. }
  1381. function exitRuntime() {
  1382. checkStackCookie();
  1383. callRuntimeCallbacks(__ATEXIT__);
  1384. runtimeExited = true;
  1385. }
  1386. function postRun() {
  1387. checkStackCookie();
  1388. // compatibility - merge in anything from Module['postRun'] at this time
  1389. if (Module['postRun']) {
  1390. if (typeof Module['postRun'] == 'function') Module['postRun'] = [Module['postRun']];
  1391. while (Module['postRun'].length) {
  1392. addOnPostRun(Module['postRun'].shift());
  1393. }
  1394. }
  1395. callRuntimeCallbacks(__ATPOSTRUN__);
  1396. }
  1397. function addOnPreRun(cb) {
  1398. __ATPRERUN__.unshift(cb);
  1399. }
  1400. Module["addOnPreRun"] = addOnPreRun;
  1401. function addOnInit(cb) {
  1402. __ATINIT__.unshift(cb);
  1403. }
  1404. Module["addOnInit"] = addOnInit;
  1405. function addOnPreMain(cb) {
  1406. __ATMAIN__.unshift(cb);
  1407. }
  1408. Module["addOnPreMain"] = addOnPreMain;
  1409. function addOnExit(cb) {
  1410. __ATEXIT__.unshift(cb);
  1411. }
  1412. Module["addOnExit"] = addOnExit;
  1413. function addOnPostRun(cb) {
  1414. __ATPOSTRUN__.unshift(cb);
  1415. }
  1416. Module["addOnPostRun"] = addOnPostRun;
  1417. // Tools
  1418. function intArrayFromString(stringy, dontAddNull, length /* optional */) {
  1419. var len = length > 0 ? length : lengthBytesUTF8(stringy)+1;
  1420. var u8array = new Array(len);
  1421. var numBytesWritten = stringToUTF8Array(stringy, u8array, 0, u8array.length);
  1422. if (dontAddNull) u8array.length = numBytesWritten;
  1423. return u8array;
  1424. }
  1425. Module["intArrayFromString"] = intArrayFromString;
  1426. function intArrayToString(array) {
  1427. var ret = [];
  1428. for (var i = 0; i < array.length; i++) {
  1429. var chr = array[i];
  1430. if (chr > 0xFF) {
  1431. assert(false, 'Character code ' + chr + ' (' + String.fromCharCode(chr) + ') at offset ' + i + ' not in 0x00-0xFF.');
  1432. chr &= 0xFF;
  1433. }
  1434. ret.push(String.fromCharCode(chr));
  1435. }
  1436. return ret.join('');
  1437. }
  1438. Module["intArrayToString"] = intArrayToString;
  1439. // Deprecated: This function should not be called because it is unsafe and does not provide
  1440. // a maximum length limit of how many bytes it is allowed to write. Prefer calling the
  1441. // function stringToUTF8Array() instead, which takes in a maximum length that can be used
  1442. // to be secure from out of bounds writes.
  1443. function writeStringToMemory(string, buffer, dontAddNull) {
  1444. Runtime.warnOnce('writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!');
  1445. var lastChar, end;
  1446. if (dontAddNull) {
  1447. // stringToUTF8Array always appends null. If we don't want to do that, remember the
  1448. // character that existed at the location where the null will be placed, and restore
  1449. // that after the write (below).
  1450. end = buffer + lengthBytesUTF8(string);
  1451. lastChar = HEAP8[end];
  1452. }
  1453. stringToUTF8(string, buffer, Infinity);
  1454. if (dontAddNull) HEAP8[end] = lastChar; // Restore the value under the null character.
  1455. }
  1456. Module["writeStringToMemory"] = writeStringToMemory;
  1457. function writeArrayToMemory(array, buffer) {
  1458. assert(array.length >= 0, 'writeArrayToMemory array must have a length (should be an array or typed array)')
  1459. HEAP8.set(array, buffer);
  1460. }
  1461. Module["writeArrayToMemory"] = writeArrayToMemory;
  1462. function writeAsciiToMemory(str, buffer, dontAddNull) {
  1463. for (var i = 0; i < str.length; ++i) {
  1464. assert(str.charCodeAt(i) === str.charCodeAt(i)&0xff);
  1465. HEAP8[((buffer++)>>0)]=str.charCodeAt(i);
  1466. }
  1467. // Null-terminate the pointer to the HEAP.
  1468. if (!dontAddNull) HEAP8[((buffer)>>0)]=0;
  1469. }
  1470. Module["writeAsciiToMemory"] = writeAsciiToMemory;
  1471. function unSign(value, bits, ignore) {
  1472. if (value >= 0) {
  1473. return value;
  1474. }
  1475. 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
  1476. : Math.pow(2, bits) + value;
  1477. }
  1478. function reSign(value, bits, ignore) {
  1479. if (value <= 0) {
  1480. return value;
  1481. }
  1482. var half = bits <= 32 ? Math.abs(1 << (bits-1)) // abs is needed if bits == 32
  1483. : Math.pow(2, bits-1);
  1484. 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
  1485. // but, in general there is no perfect solution here. With 64-bit ints, we get rounding and errors
  1486. // TODO: In i64 mode 1, resign the two parts separately and safely
  1487. value = -2*half + value; // Cannot bitshift half, as it may be at the limit of the bits JS uses in bitshifts
  1488. }
  1489. return value;
  1490. }
  1491. // check for imul support, and also for correctness ( https://bugs.webkit.org/show_bug.cgi?id=126345 )
  1492. if (!Math['imul'] || Math['imul'](0xffffffff, 5) !== -5) Math['imul'] = function imul(a, b) {
  1493. var ah = a >>> 16;
  1494. var al = a & 0xffff;
  1495. var bh = b >>> 16;
  1496. var bl = b & 0xffff;
  1497. return (al*bl + ((ah*bl + al*bh) << 16))|0;
  1498. };
  1499. Math.imul = Math['imul'];
  1500. if (!Math['clz32']) Math['clz32'] = function(x) {
  1501. x = x >>> 0;
  1502. for (var i = 0; i < 32; i++) {
  1503. if (x & (1 << (31 - i))) return i;
  1504. }
  1505. return 32;
  1506. };
  1507. Math.clz32 = Math['clz32']
  1508. if (!Math['trunc']) Math['trunc'] = function(x) {
  1509. return x < 0 ? Math.ceil(x) : Math.floor(x);
  1510. };
  1511. Math.trunc = Math['trunc'];
  1512. var Math_abs = Math.abs;
  1513. var Math_cos = Math.cos;
  1514. var Math_sin = Math.sin;
  1515. var Math_tan = Math.tan;
  1516. var Math_acos = Math.acos;
  1517. var Math_asin = Math.asin;
  1518. var Math_atan = Math.atan;
  1519. var Math_atan2 = Math.atan2;
  1520. var Math_exp = Math.exp;
  1521. var Math_log = Math.log;
  1522. var Math_sqrt = Math.sqrt;
  1523. var Math_ceil = Math.ceil;
  1524. var Math_floor = Math.floor;
  1525. var Math_pow = Math.pow;
  1526. var Math_imul = Math.imul;
  1527. var Math_fround = Math.fround;
  1528. var Math_round = Math.round;
  1529. var Math_min = Math.min;
  1530. var Math_clz32 = Math.clz32;
  1531. var Math_trunc = Math.trunc;
  1532. // A counter of dependencies for calling run(). If we need to
  1533. // do asynchronous work before running, increment this and
  1534. // decrement it. Incrementing must happen in a place like
  1535. // PRE_RUN_ADDITIONS (used by emcc to add file preloading).
  1536. // Note that you can add dependencies in preRun, even though
  1537. // it happens right before run - run will be postponed until
  1538. // the dependencies are met.
  1539. var runDependencies = 0;
  1540. var runDependencyWatcher = null;
  1541. var dependenciesFulfilled = null; // overridden to take different actions when all run dependencies are fulfilled
  1542. var runDependencyTracking = {};
  1543. function getUniqueRunDependency(id) {
  1544. var orig = id;
  1545. while (1) {
  1546. if (!runDependencyTracking[id]) return id;
  1547. id = orig + Math.random();
  1548. }
  1549. return id;
  1550. }
  1551. function addRunDependency(id) {
  1552. runDependencies++;
  1553. if (Module['monitorRunDependencies']) {
  1554. Module['monitorRunDependencies'](runDependencies);
  1555. }
  1556. if (id) {
  1557. assert(!runDependencyTracking[id]);
  1558. runDependencyTracking[id] = 1;
  1559. if (runDependencyWatcher === null && typeof setInterval !== 'undefined') {
  1560. // Check for missing dependencies every few seconds
  1561. runDependencyWatcher = setInterval(function() {
  1562. if (ABORT) {
  1563. clearInterval(runDependencyWatcher);
  1564. runDependencyWatcher = null;
  1565. return;
  1566. }
  1567. var shown = false;
  1568. for (var dep in runDependencyTracking) {
  1569. if (!shown) {
  1570. shown = true;
  1571. Module.printErr('still waiting on run dependencies:');
  1572. }
  1573. Module.printErr('dependency: ' + dep);
  1574. }
  1575. if (shown) {
  1576. Module.printErr('(end of list)');
  1577. }
  1578. }, 10000);
  1579. }
  1580. } else {
  1581. Module.printErr('warning: run dependency added without ID');
  1582. }
  1583. }
  1584. Module["addRunDependency"] = addRunDependency;
  1585. function removeRunDependency(id) {
  1586. runDependencies--;
  1587. if (Module['monitorRunDependencies']) {
  1588. Module['monitorRunDependencies'](runDependencies);
  1589. }
  1590. if (id) {
  1591. assert(runDependencyTracking[id]);
  1592. delete runDependencyTracking[id];
  1593. } else {
  1594. Module.printErr('warning: run dependency removed without ID');
  1595. }
  1596. if (runDependencies == 0) {
  1597. if (runDependencyWatcher !== null) {
  1598. clearInterval(runDependencyWatcher);
  1599. runDependencyWatcher = null;
  1600. }
  1601. if (dependenciesFulfilled) {
  1602. var callback = dependenciesFulfilled;
  1603. dependenciesFulfilled = null;
  1604. callback(); // can add another dependenciesFulfilled
  1605. }
  1606. }
  1607. }
  1608. Module["removeRunDependency"] = removeRunDependency;
  1609. Module["preloadedImages"] = {}; // maps url to image data
  1610. Module["preloadedAudios"] = {}; // maps url to audio data
  1611. var memoryInitializer = null;
  1612. // === Body ===
  1613. var ASM_CONSTS = [function($0, $1) { { Module.printErr('bad name in getProcAddress: ' + [Pointer_stringify($0), Pointer_stringify($1)]); } }];
  1614. function _emscripten_asm_const_iii(code, a0, a1) {
  1615. return ASM_CONSTS[code](a0, a1);
  1616. }
  1617. STATIC_BASE = 8;
  1618. STATICTOP = STATIC_BASE + 24688;
  1619. /* global initializers */ __ATINIT__.push();
  1620. /* memory initializer */ allocate([32,3,0,0,194,1,0,0,255,255,255,255,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,2,0,0,192,3,0,0,192,4,0,0,192,5,0,0,192,6,0,0,192,7,0,0,192,8,0,0,192,9,0,0,192,10,0,0,192,11,0,0,192,12,0,0,192,13,0,0,192,14,0,0,192,15,0,0,192,16,0,0,192,17,0,0,192,18,0,0,192,19,0,0,192,20,0,0,192,21,0,0,192,22,0,0,192,23,0,0,192,24,0,0,192,25,0,0,192,26,0,0,192,27,0,0,192,28,0,0,192,29,0,0,192,30,0,0,192,31,0,0,192,0,0,0,179,1,0,0,195,2,0,0,195,3,0,0,195,4,0,0,195,5,0,0,195,6,0,0,195,7,0,0,195,8,0,0,195,9,0,0,195,10,0,0,195,11,0,0,195,12,0,0,195,13,0,0,211,14,0,0,195,15,0,0,195,0,0,12,187,1,0,12,195,2,0,12,195,3,0,12,195,4,0,12,211,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,85,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,232,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,103,92,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,232,15,0,0,10,0,0,0,100,0,0,0,232,3,0,0,16,39,0,0,160,134,1,0,64,66,15,0,128,150,152,0,0,225,245,5,95,112,137,0,255,9,47,15,84,72,73,83,32,73,83,32,65,78,32,65,110,103,101,108,67,111,100,101,32,83,80,82,73,84,69,32,70,79,78,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,72,73,83,32,83,80,82,73,84,69,32,70,79,78,84,32,104,97,115,32,98,101,101,110,32,71,69,78,69,82,65,84,69,68,32,102,114,111,109,32,97,32,84,84,70,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,116,101,120,116,93,32,101,120,97,109,112,108,101,32,45,32,98,109,102,111,110,116,32,97,110,100,32,116,116,102,32,115,112,114,105,116,101,32,102,111,110,116,115,32,108,111,97,100,105,110,103,0,114,101,115,111,117,114,99,101,115,47,98,109,102,111,110,116,46,102,110,116,0,114,101,115,111,117,114,99,101,115,47,112,105,120,97,110,116,105,113,117,97,46,116,116,102,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,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,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,67,108,97,109,112,32,109,105,114,114,111,114,32,119,114,97,112,32,109,111,100,101,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,77,97,120,105,109,117,109,32,97,110,105,115,111,116,114,111,112,105,99,32,102,105,108,116,101,114,32,108,101,118,101,108,32,115,117,112,112,111,114,116,101,100,32,105,115,32,37,105,88,0,65,110,105,115,111,116,114,111,112,105,99,32,102,105,108,116,101,114,105,110,103,32,110,111,116,32,115,117,112,112,111,114,116,101,100,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,115,116,98,105,95,95,99,111,110,118,101,114,116,95,102,111,114,109,97,116,0,109,117,108,116,105,112,108,101,32,73,72,68,82,0,98,97,100,32,73,72,68,82,32,108,101,110,0,116,111,111,32,108,97,114,103,101,0,49,47,50,47,52,47,56,47,49,54,45,98,105,116,32,111,110,108,121,0,98,97,100,32,99,116,121,112,101,0,98,97,100,32,99,111,109,112,32,109,101,116,104,111,100,0,98,97,100,32,102,105,108,116,101,114,32,109,101,116,104,111,100,0,98,97,100,32,105,110,116,101,114,108,97,99,101,32,109,101,116,104,111,100,0,48,45,112,105,120,101,108,32,105,109,97,103,101,0,102,105,114,115,116,32,110,111,116,32,73,72,68,82,0,105,110,118,97,108,105,100,32,80,76,84,69,0,116,82,78,83,32,97,102,116,101,114,32,73,68,65,84,0,116,82,78,83,32,98,101,102,111,114,101,32,80,76,84,69,0,98,97,100,32,116,82,78,83,32,108,101,110,0,116,82,78,83,32,119,105,116,104,32,97,108,112,104,97,0,0,255,85,0,17,0,0,0,1,110,111,32,80,76,84,69,0,111,117,116,111,102,100,97,116,97,0,110,111,32,73,68,65,84,0,88,88,88,88,32,80,78,71,32,99,104,117,110,107,32,110,111,116,32,107,110,111,119,110,0,115,45,62,105,109,103,95,111,117,116,95,110,32,61,61,32,52,0,115,116,98,105,95,95,100,101,95,105,112,104,111,110,101,0,111,117,116,95,110,32,61,61,32,50,32,124,124,32,111,117,116,95,110,32,61,61,32,52,0,115,116,98,105,95,95,99,111,109,112,117,116,101,95,116,114,97,110,115,112,97,114,101,110,99,121,0,115,116,98,105,95,95,99,111,109,112,117,116,101,95,116,114,97,110,115,112,97,114,101,110,99,121,49,54,0,111,117,116,95,110,32,61,61,32,115,45,62,105,109,103,95,110,32,124,124,32,111,117,116,95,110,32,61,61,32,115,45,62,105,109,103,95,110,43,49,0,115,116,98,105,95,95,99,114,101,97,116,101,95,112,110,103,95,105,109,97,103,101,95,114,97,119,0,110,111,116,32,101,110,111,117,103,104,32,112,105,120,101,108,115,0,105,109,103,95,119,105,100,116,104,95,98,121,116,101,115,32,60,61,32,120,0,0,1,0,5,6,105,109,103,95,110,43,49,32,61,61,32,111,117,116,95,110,0,105,110,118,97,108,105,100,32,102,105,108,116,101,114,0,105,109,103,95,110,32,61,61,32,51,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8], "i8", ALLOC_NONE, Runtime.GLOBAL_BASE);
  1621. /* memory initializer */ allocate([8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,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,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,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,65,108,112,104,97,32,109,97,115,107,32,109,117,115,116,32,98,101,32,115,97,109,101,32,115,105,122,101,32,97,115,32,105,109,97,103,101,0,65,108,112,104,97,32,109,97,115,107,32,99,97,110,32,110,111,116,32,98,101,32,97,112,112,108,105,101,100,32,116,111,32,99,111,109,112,114,101,115,115,101,100,32,100,97,116,97,32,102,111,114,109,97,116,115,0,91,84,69,88,32,73,68,32,37,105,93,32,78,111,32,109,105,112,109,97,112,115,32,97,118,97,105,108,97,98,108,101,32,102,111,114,32,84,82,73,76,73,78,69,65,82,32,116,101,120,116,117,114,101,32,102,105,108,116,101,114,105,110,103,0,46,114,114,101,115,0,46,116,116,102,0,46,102,110,116,0,91,37,115,93,32,83,112,114,105,116,101,70,111,110,116,32,99,111,117,108,100,32,110,111,116,32,98,101,32,108,111,97,100,101,100,44,32,117,115,105,110,103,32,100,101,102,97,117,108,116,32,102,111,110,116,0,83,112,114,105,116,101,70,111,110,116,32,100,97,116,97,32,112,97,114,115,101,100,32,99,111,114,114,101,99,116,108,121,32,102,114,111,109,32,105,109,97,103,101,0,73,109,97,103,101,32,102,105,108,101,32,108,111,97,100,101,100,32,99,111,114,114,101,99,116,108,121,32,97,115,32,83,112,114,105,116,101,70,111,110,116,0,114,116,0,91,37,115,93,32,70,78,84,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,108,105,110,101,72,101,105,103,104,116,0,108,105,110,101,72,101,105,103,104,116,61,37,105,32,98,97,115,101,61,37,105,32,115,99,97,108,101,87,61,37,105,32,115,99,97,108,101,72,61,37,105,0,91,37,115,93,32,70,111,110,116,32,115,105,122,101,58,32,37,105,0,91,37,115,93,32,70,111,110,116,32,116,101,120,116,117,114,101,32,115,99,97,108,101,58,32,37,105,120,37,105,0,102,105,108,101,0,102,105,108,101,61,34,37,49,50,56,91,94,34,93,34,0,91,37,115,93,32,70,111,110,116,32,116,101,120,116,117,114,101,32,102,105,108,101,110,97,109,101,58,32,37,115,0,99,111,117,110,116,0,99,111,117,110,116,61,37,105,0,91,37,115,93,32,70,111,110,116,32,110,117,109,32,99,104,97,114,115,58,32,37,105,0,91,37,115,93,32,70,111,110,116,32,116,101,120,116,117,114,101,32,108,111,97,100,105,110,103,32,112,97,116,104,58,32,37,115,0,99,104,97,114,32,105,100,61,37,105,32,120,61,37,105,32,121,61,37,105,32,119,105,100,116,104,61,37,105,32,104,101,105,103,104,116,61,37,105,32,120,111,102,102,115,101,116,61,37,105,32,121,111,102,102,115,101,116,61,37,105,32,120,97,100,118,97,110,99,101,61,37,105,0,91,37,115,93,32,83,112,114,105,116,101,70,111,110,116,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,85,110,108,111,97,100,101,100,32,115,112,114,105,116,101,32,102,111,110,116,32,100,97,116,97,0,91,37,115,93,32,83,112,114,105,116,101,70,111,110,116,32,99,111,117,108,100,32,110,111,116,32,98,101,32,103,101,110,101,114,97,116,101,100,44,32,117,115,105,110,103,32,100,101,102,97,117,108,116,32,102,111,110,116,0,84,84,70,32,115,112,114,105,116,101,102,111,110,116,32,108,111,97,100,105,110,103,58,32,80,114,101,100,105,99,116,101,100,32,116,101,120,116,117,114,101,32,115,105,122,101,58,32,37,105,120,37,105,0,114,98,0,91,37,115,93,32,84,84,70,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,84,84,70,32,115,112,114,105,116,101,102,111,110,116,32,108,111,97,100,105,110,103,58,32,102,105,114,115,116,32,99,104,97,114,97,99,116,101,114,32,105,115,32,110,111,116,32,83,80,65,67,69,40,51,50,41,32,99,104,97,114,97,99,116,101,114,0,84,84,70,32,115,112,114,105,116,101,102,111,110,116,32,108,111,97,100,105,110,103,58,32,78,111,116,32,97,108,108,32,116,104,101,32,99,104,97,114,97,99,116,101,114,115,32,102,105,116,32,105,110,32,116,104,101,32,102,111,110,116,0,120,43,103,119,32,60,32,112,119,0,46,47,101,120,116,101,114,110,97,108,47,115,116,98,95,116,114,117,101,116,121,112,101,46,104,0,115,116,98,116,116,95,66,97,107,101,70,111,110,116,66,105,116,109,97,112,95,105,110,116,101,114,110,97,108,0,122,45,62,100,105,114,101,99,116,105,111,110,0,115,116,98,116,116,95,95,114,97,115,116,101,114,105,122,101,95,115,111,114,116,101,100,95,101,100,103,101,115,0,122,45,62,101,121,32,62,61,32,115,99,97,110,95,121,95,116,111,112,0,101,45,62,101,121,32,62,61,32,121,95,116,111,112,0,115,116,98,116,116,95,95,102,105,108,108,95,97,99,116,105,118,101,95,101,100,103,101,115,95,110,101,119,0,101,45,62,115,121,32,60,61,32,121,95,98,111,116,116,111,109,32,38,38,32,101,45,62,101,121,32,62,61,32,121,95,116,111,112,0,120,32,62,61,32,48,32,38,38,32,120,32,60,32,108,101,110,0,102,97,98,115,40,97,114,101,97,41,32,60,61,32,49,46,48,49,102,0,121,48,32,60,32,121,49,0,115,116,98,116,116,95,95,104,97,110,100,108,101,95,99,108,105,112,112,101,100,95,101,100,103,101,0,101,45,62,115,121,32,60,61,32,101,45,62,101,121,0,120,49,32,60,61,32,120,43,49,0,120,49,32,62,61,32,120,0,120,49,32,60,61,32,120,0,120,49,32,62,61,32,120,43,49,0,120,49,32,62,61,32,120,32,38,38,32,120,49,32,60,61,32,120,43,49,0,120,48,32,62,61,32,120,32,38,38,32,120,48,32,60,61,32,120,43,49,32,38,38,32,120,49,32,62,61,32,120,32,38,38,32,120,49,32,60,61,32,120,43,49,0,122,32,33,61,32,40,40,118,111,105,100,42,41,48,41,0,115,116,98,116,116,95,95,110,101,119,95,97,99,116,105,118,101,0,33,105,110,102,111,45,62,99,102,102,46,115,105,122,101,0,115,116,98,116,116,95,95,71,101,116,71,108,121,102,79,102,102,115,101,116,0,48,0,115,116,98,116,116,95,95,99,102,102,95,105,110,116,0,110,32,62,61,32,49,32,38,38,32,110,32,60,61,32,52,0,115,116,98,116,116,95,95,98,117,102,95,103,101,116,0,115,105,122,101,32,60,32,48,120,52,48,48,48,48,48,48,48,0,115,116,98,116,116,95,95,110,101,119,95,98,117,102,0,33,40,111,32,62,32,98,45,62,115,105,122,101,32,124,124,32,111,32,60,32,48,41,0,115,116,98,116,116,95,95,98,117,102,95,115,101,101,107,0,111,102,102,115,105,122,101,32,62,61,32,49,32,38,38,32,111,102,102,115,105,122,101,32,60,61,32,52,0,115,116,98,116,116,95,95,99,102,102,95,103,101,116,95,105,110,100,101,120,0,98,48,32,62,61,32,50,56,0,115,116,98,116,116,95,95,99,102,102,95,115,107,105,112,95,111,112,101,114,97,110,100,0,105,32,62,61,32,48,32,38,38,32,105,32,60,32,99,111,117,110,116,0,115,116,98,116,116,95,95,99,102,102,95,105,110,100,101,120,95,103,101,116,0,111,117,116,112,117,116,95,99,116,120,46,110,117,109,95,118,101,114,116,105,99,101,115,32,61,61,32,99,111,117,110,116,95,99,116,120,46,110,117,109,95,118,101,114,116,105,99,101,115,0,115,116,98,116,116,95,95,71,101,116,71,108,121,112,104,83,104,97,112,101,84,50,0,115,116,98,116,116,95,95,71,101,116,71,108,121,112,104,83,104,97,112,101,84,84,0,115,116,98,116,116,95,70,105,110,100,71,108,121,112,104,73,110,100,101,120,0,117,110,105,99,111,100,101,95,99,111,100,101,112,111,105,110,116,32,60,61,32,116,116,85,83,72,79,82,84,40,100,97,116,97,32,43,32,101,110,100,67,111,117,110,116,32,43,32,50,42,105,116,101,109,41,0,99,109,97,112,0,108,111,99,97,0,104,101,97,100,0,103,108,121,102,0,104,104,101,97,0,104,109,116,120,0,107,101,114,110,0,67,70,70,32,0,109,97,120,112,0,69,88,84,0,65,82,66,0,79,69,83,0,65,78,71,76,69,0,103,108,67,114,101,97,116,101,80,114,111,103,114,97,109,79,98,106,101,99,116,0,103,108,67,114,101,97,116,101,80,114,111,103,114,97,109,0,103,108,85,115,101,80,114,111,103,114,97,109,79,98,106,101,99,116,0,103,108,85,115,101,80,114,111,103,114,97,109,0,103,108,67,114,101,97,116,101,83,104,97,100,101,114,79,98,106,101,99,116,0,103,108,67,114,101,97,116,101,83,104,97,100,101,114,0,103,108,65,116,116,97,99,104,79,98,106,101,99,116,0,103,108,65,116,116,97,99,104,83,104,97,100,101,114,0,103,108,68,101,116,97,99,104,79,98,106,101,99,116,0,103,108,68,101,116,97,99,104,83,104,97,100,101,114,0,103,108,80,105,120,101,108,83,116,111,114,101,105,0,103,108,71,101,116,83,116,114,105,110,103,0,103,108,71,101,116,73,110,116,101,103,101,114,118,0,103,108,71,101,116,70,108,111,97,116,118,0,103,108,71,101,116,66,111,111,108,101,97,110,118,0,103,108,71,101,110,84,101,120,116,117,114,101,115,0,103,108,68,101,108,101,116,101,84,101,120,116,117,114,101,115,0,103,108,67,111,109,112,114,101,115,115,101,100,84,101,120,73,109,97,103,101,50,68,0,103,108,67,111,109,112,114,101,115,115,101,100,84,101,120,83,117,98,73,109,97,103,101,50,68,0,103,108,84,101,120,73,109,97,103,101,50,68,0,103,108,84,101,120,83,117,98,73,109,97,103,101,50,68,0,103,108,82,101,97,100,80,105,120,101,108,115,0,103,108,66,105,110,100,84,101,120,116,117,114,101,0,103,108,71,101,116,84,101,120,80,97,114,97,109,101,116,101,114,102,118,0,103,108,71,101,116,84,101,120,80,97,114,97,109,101,116,101,114,105,118,0,103,108,84,101,120,80,97,114,97,109,101,116,101,114,102,118,0,103,108,84,101,120,80,97,114,97,109,101,116,101,114,105,118,0,103,108,73,115,84,101,120,116,117,114,101,0,103,108,71,101,110,66,117,102,102,101,114,115,0,103,108,68,101,108,101,116,101,66,117,102,102,101,114,115,0,103,108,71,101,116,66,117,102,102,101,114,80,97,114,97,109,101,116,101,114,105,118,0,103,108,66,117,102,102,101,114,68,97,116,97,0,103,108,66,117,102,102,101,114,83,117,98,68,97,116,97,0,103,108,73,115,66,117,102,102,101,114,0,103,108,71,101,110,82,101,110,100,101,114,98,117,102,102,101,114,115,0,103,108,68,101,108,101,116,101,82,101,110,100,101,114,98,117,102,102,101,114,115,0,103,108,66,105,110,100,82,101,110,100,101,114,98,117,102,102,101,114,0,103,108,71,101,116,82,101,110,100,101,114,98,117,102,102,101,114,80,97,114,97,109,101,116,101,114,105,118,0,103,108,73,115,82,101,110,100,101,114,98,117,102,102,101,114,0,103,108,71,101,116,85,110,105,102,111,114,109,102,118,0,103,108,71,101,116,85,110,105,102,111,114,109,105,118,0,103,108,71,101,116,85,110,105,102,111,114,109,76,111,99,97,116,105,111,110,0,103,108,71,101,116,86,101,114,116,101,120,65,116,116,114,105,98,102,118,0,103,108,71,101,116,86,101,114,116,101,120,65,116,116,114,105,98,105,118,0,103,108,71,101,116,86,101,114,116,101,120,65,116,116,114,105,98,80,111,105,110,116,101,114,118,0,103,108,71,101,116,65,99,116,105,118,101,85,110,105,102,111,114,109,0,103,108,85,110,105,102,111,114,109,49,102,0,103,108,85,110,105,102,111,114,109,50,102,0,103,108,85,110,105,102,111,114,109,51,102,0,103,108,85,110,105,102,111,114,109,52,102,0,103,108,85,110,105,102,111,114,109,49,105,0,103,108,85,110,105,102,111,114,109,50,105,0,103,108,85,110,105,102,111,114,109,51,105,0,103,108,85,110,105,102,111,114,109,52,105,0,103,108,85,110,105,102,111,114,109,49,105,118,0,103,108,85,110,105,102,111,114,109,50,105,118,0,103,108,85,110,105,102,111,114,109,51,105,118,0,103,108,85,110,105,102,111,114,109,52,105,118,0,103,108,85,110,105,102,111,114,109,49,102,118,0,103,108,85,110,105,102,111,114,109,50,102,118,0,103,108,85,110,105,102,111,114,109,51,102,118,0,103,108,85,110,105,102,111,114,109,52,102,118,0,103,108,85,110,105,102,111,114,109,77,97,116,114,105,120,50,102,118,0,103,108,85,110,105,102,111,114,109,77,97,116,114,105,120,51,102,118,0,103,108,85,110,105,102,111,114,109,77,97,116,114,105,120,52,102,118,0,103,108,66,105,110,100,66,117,102,102,101,114,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,49,102,118,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,50,102,118,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,51,102,118,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,52,102,118,0,103,108,71,101,116,65,116,116,114,105,98,76,111,99,97,116,105,111,110,0,103,108,71,101,116,65,99,116,105,118,101,65,116,116,114,105,98,0,103,108,68,101,108,101,116,101,83,104,97,100,101,114,0,103,108,71,101,116,65,116,116,97,99,104,101,100,83,104,97,100,101,114,115,0,103,108,83,104,97,100,101,114,83,111,117,114,99,101,0,103,108,71,101,116,83,104,97,100,101,114,83,111,117,114,99,101,0,103,108,67,111,109,112,105,108,101,83,104,97,100,101,114,0,103,108,71,101,116,83,104,97,100,101,114,73,110,102,111,76,111,103,0,103,108,71,101,116,83,104,97,100,101,114,105,118,0,103,108,71,101,116,80,114,111,103,114,97,109,105,118,0,103,108,73,115,83,104,97,100,101,114,0,103,108,68,101,108,101,116,101,80,114,111,103,114,97,109,0,103,108,71,101,116,83,104,97,100,101,114,80,114,101,99,105,115,105,111,110,70,111,114,109,97,116,0,103,108,76,105,110,107,80,114,111,103,114,97,109,0,103,108,71,101,116,80,114,111,103,114,97,109,73,110,102,111,76,111,103,0,103,108,86,97,108,105,100,97,116,101,80,114,111,103,114,97,109,0,103,108,73,115,80,114,111,103,114,97,109,0,103,108,66,105,110,100,65,116,116,114,105,98,76,111,99,97,116,105,111,110,0,103,108,66,105,110,100,70,114,97,109,101,98,117,102,102,101,114,0,103,108,71,101,110,70,114,97,109,101,98,117,102,102,101,114,115,0,103,108,68,101,108,101,116,101,70,114,97,109,101,98,117,102,102,101,114,115,0,103,108,70,114,97,109,101,98,117,102,102,101,114,82,101,110,100,101,114,98,117,102,102,101,114,0,103,108,70,114,97,109,101,98,117,102,102,101,114,84,101,120,116,117,114,101,50,68,0,103,108,71,101,116,70,114,97,109,101,98,117,102,102,101,114,65,116,116,97,99,104,109,101,110,116,80,97,114,97,109,101,116,101,114,105,118,0,103,108,73,115,70,114,97,109,101,98,117,102,102,101,114,0,103,108,68,101,108,101,116,101,79,98,106,101,99,116,0,103,108,71,101,116,79,98,106,101,99,116,80,97,114,97,109,101,116,101,114,105,118,0,103,108,71,101,116,73,110,102,111,76,111,103,0,103,108,66,105,110,100,80,114,111,103,114,97,109,0,103,108,71,101,116,80,111,105,110,116,101,114,118,0,103,108,68,114,97,119,82,97,110,103,101,69,108,101,109,101,110,116,115,0,103,108,69,110,97,98,108,101,67,108,105,101,110,116,83,116,97,116,101,0,103,108,86,101,114,116,101,120,80,111,105,110,116,101,114,0,103,108,84,101,120,67,111,111,114,100,80,111,105,110,116,101,114,0,103,108,78,111,114,109,97,108,80,111,105,110,116,101,114,0,103,108,67,111,108,111,114,80,111,105,110,116,101,114,0,103,108,67,108,105,101,110,116,65,99,116,105,118,101,84,101,120,116,117,114,101,0,103,108,71,101,110,86,101,114,116,101,120,65,114,114,97,121,115,0,103,108,68,101,108,101,116,101,86,101,114,116,101,120,65,114,114,97,121,115,0,103,108,66,105,110,100,86,101,114,116,101,120,65,114,114,97,121,0,103,108,77,97,116,114,105,120,77,111,100,101,0,103,108,76,111,97,100,73,100,101,110,116,105,116,121,0,103,108,76,111,97,100,77,97,116,114,105,120,102,0,103,108,70,114,117,115,116,117,109,0,103,108,82,111,116,97,116,101,102,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,80,111,105,110,116,101,114,0,103,108,69,110,97,98,108,101,86,101,114,116,101,120,65,116,116,114,105,98,65,114,114,97,121,0,103,108,68,105,115,97,98,108,101,86,101,114,116,101,120,65,116,116,114,105,98,65,114,114,97,121,0,103,108,68,114,97,119,65,114,114,97,121,115,0,103,108,68,114,97,119,69,108,101,109,101,110,116,115,0,103,108,83,104,97,100,101,114,66,105,110,97,114,121,0,103,108,82,101,108,101,97,115,101,83,104,97,100,101,114,67,111,109,112,105,108,101,114,0,103,108,71,101,116,69,114,114,111,114,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,68,105,118,105,115,111,114,0,103,108,68,114,97,119,65,114,114,97,121,115,73,110,115,116,97,110,99,101,100,0,103,108,68,114,97,119,69,108,101,109,101,110,116,115,73,110,115,116,97,110,99,101,100,0,103,108,70,105,110,105,115,104,0,103,108,70,108,117,115,104,0,103,108,67,108,101,97,114,68,101,112,116,104,0,103,108,67,108,101,97,114,68,101,112,116,104,102,0,103,108,68,101,112,116,104,70,117,110,99,0,103,108,69,110,97,98,108,101,0,103,108,68,105,115,97,98,108,101,0,103,108,70,114,111,110,116,70,97,99,101,0,103,108,67,117,108,108,70,97,99,101,0,103,108,67,108,101,97,114,0,103,108,76,105,110,101,87,105,100,116,104,0,103,108,67,108,101,97,114,83,116,101,110,99,105,108,0,103,108,68,101,112,116,104,77,97,115,107,0,103,108,83,116,101,110,99,105,108,77,97,115,107,0,103,108,67,104,101,99,107,70,114,97,109,101,98,117,102,102,101,114,83,116,97,116,117,115,0,103,108,71,101,110,101,114,97,116,101,77,105,112,109,97,112,0,103,108,65,99,116,105,118,101,84,101,120,116,117,114,101,0,103,108,66,108,101,110,100,69,113,117,97,116,105,111,110,0,103,108,73,115,69,110,97,98,108,101,100,0,103,108,66,108,101,110,100,70,117,110,99,0,103,108,66,108,101,110,100,69,113,117,97,116,105,111,110,83,101,112,97,114,97,116,101,0,103,108,68,101,112,116,104,82,97,110,103,101,0,103,108,68,101,112,116,104,82,97,110,103,101,102,0,103,108,83,116,101,110,99,105,108,77,97,115,107,83,101,112,97,114,97,116,101,0,103,108,72,105,110,116,0,103,108,80,111,108,121,103,111,110,79,102,102,115,101,116,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,49,102,0,103,108,83,97,109,112,108,101,67,111,118,101,114,97,103,101,0,103,108,84,101,120,80,97,114,97,109,101,116,101,114,105,0,103,108,84,101,120,80,97,114,97,109,101,116,101,114,102,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,50,102,0,103,108,83,116,101,110,99,105,108,70,117,110,99,0,103,108,83,116,101,110,99,105,108,79,112,0,103,108,86,105,101,119,112,111,114,116,0,103,108,67,108,101,97,114,67,111,108,111,114,0,103,108,83,99,105,115,115,111,114,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,51,102,0,103,108,67,111,108,111,114,77,97,115,107,0,103,108,82,101,110,100,101,114,98,117,102,102,101,114,83,116,111,114,97,103,101,0,103,108,66,108,101,110,100,70,117,110,99,83,101,112,97,114,97,116,101,0,103,108,66,108,101,110,100,67,111,108,111,114,0,103,108,83,116,101,110,99,105,108,70,117,110,99,83,101,112,97,114,97,116,101,0,103,108,83,116,101,110,99,105,108,79,112,83,101,112,97,114,97,116,101,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,52,102,0,103,108,67,111,112,121,84,101,120,73,109,97,103,101,50,68,0,103,108,67,111,112,121,84,101,120,83,117,98,73,109,97,103,101,50,68,0,103,108,68,114,97,119,66,117,102,102,101,114,115,0,123,32,77,111,100,117,108,101,46,112,114,105,110,116,69,114,114,40,39,98,97,100,32,110,97,109,101,32,105,110,32,103,101,116,80,114,111,99,65,100,100,114,101,115,115,58,32,39,32,43,32,91,80,111,105,110,116,101,114,95,115,116,114,105,110,103,105,102,121,40,36,48,41,44,32,80,111,105,110,116,101,114,95,115,116,114,105,110,103,105,102,121,40,36,49,41,93,41,59,32,125,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,255,255,255,255,255,255,255,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,255,255,255,255,255,255,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,4,7,3,6,5,0,17,0,10,0,17,17,17,0,0,0,0,5,0,0,0,0,0,0,9,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,15,10,17,17,17,3,10,7,0,1,19,9,11,11,0,0,9,6,11,0,0,11,0,6,17,0,0,0,17,17,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,10,10,17,17,17,0,10,0,0,2,0,9,11,0,0,0,9,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,4,13,0,0,0,0,9,14,0,0,0,0,0,14,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,15,0,0,0,0,9,16,0,0,0,0,0,16,0,0,16,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,9,11,0,0,0,0,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,45,43,32,32,32,48,88,48,120,0,40,110,117,108,108,41,0,45,48,88,43,48,88,32,48,88,45,48,120,43,48,120,32,48,120,0,105,110,102,0,73,78,70,0,78,65,78,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,46,0,84,33,34,25,13,1,2,3,17,75,28,12,16,4,11,29,18,30,39,104,110,111,112,113,98,32,5,6,15,19,20,21,26,8,22,7,40,36,23,24,9,10,14,27,31,37,35,131,130,125,38,42,43,60,61,62,63,67,71,74,77,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,105,106,107,108,114,115,116,121,122,123,124,0,73,108,108,101,103,97,108,32,98,121,116,101,32,115,101,113,117,101,110,99,101,0,68,111,109,97,105,110,32,101,114,114,111,114,0,82,101,115,117,108,116,32,110,111,116,32,114,101,112,114,101,115,101,110,116,97,98,108,101,0,78,111,116,32,97,32,116,116,121,0,80,101,114,109,105,115,115,105,111,110,32,100,101,110,105,101,100,0,79,112,101,114,97,116,105,111,110,32,110,111,116,32,112,101,114,109,105,116,116,101,100,0,78,111,32,115,117,99,104,32,102,105,108,101,32,111,114,32,100,105,114,101,99,116,111,114,121,0,78,111,32,115,117,99,104,32,112,114,111,99,101,115,115,0,70,105,108,101,32,101,120,105,115,116,115,0,86,97,108,117,101,32,116,111,111,32,108,97,114,103,101,32,102,111,114,32,100,97,116,97,32,116,121,112,101,0,78,111,32,115,112,97,99,101,32,108,101,102,116,32,111,110,32,100,101,118,105,99,101,0,79,117,116,32,111,102,32,109,101,109,111,114,121,0,82,101,115,111,117,114,99,101,32,98,117,115,121,0,73,110,116,101,114,114,117,112,116,101,100,32,115,121,115,116,101,109,32,99,97,108,108,0,82,101,115,111,117,114,99,101,32,116,101,109,112,111,114,97,114,105,108,121,32,117,110,97,118,97,105,108,97,98,108,101,0,73,110,118,97,108,105,100,32,115,101,101,107,0,67,114,111,115,115,45,100,101,118,105,99,101,32,108,105,110,107,0,82,101,97,100,45,111,110,108,121,32,102,105,108,101,32,115,121,115,116,101,109,0,68,105,114,101,99,116,111,114,121,32,110,111,116,32,101,109,112,116,121,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,112,101,101,114,0,79,112,101,114,97,116,105,111,110,32,116,105,109,101,100,32,111,117,116,0,67,111,110,110,101,99,116,105,111,110,32,114,101,102,117,115,101,100,0,72,111,115,116,32,105,115,32,100,111,119,110,0,72,111,115,116,32,105,115,32,117,110,114,101,97,99,104,97,98,108,101,0,65,100,100,114,101,115,115,32,105,110,32,117,115,101,0,66,114,111,107,101,110,32,112,105,112,101,0,73,47,79,32,101,114,114,111,114,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,32,111,114,32,97,100,100,114,101,115,115,0,66,108,111,99,107,32,100,101,118,105,99,101,32,114,101,113,117,105,114,101,100,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,0,78,111,116,32,97,32,100,105,114,101,99,116,111,114,121,0,73,115,32,97,32,100,105,114,101,99,116,111,114,121,0,84,101,120,116,32,102,105,108,101,32,98,117,115,121,0,69,120,101,99,32,102,111,114,109,97,116,32,101,114,114,111,114,0,73,110,118,97,108,105,100,32,97,114,103,117,109,101,110,116,0,65,114,103,117,109,101,110,116,32,108,105,115,116,32,116,111,111,32,108,111,110,103,0,83,121,109,98,111,108,105,99,32,108,105,110,107,32,108,111,111,112,0,70,105,108,101,110,97,109,101,32,116,111,111,32,108,111,110,103,0,84,111,111,32,109,97,110,121,32,111,112,101,110,32,102,105,108,101,115,32,105,110,32,115,121,115,116,101,109,0,78,111,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,115,32,97,118,97,105,108,97,98,108,101,0,66,97,100,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,0,78,111,32,99,104,105,108,100,32,112,114,111,99,101,115,115,0,66,97,100,32,97,100,100,114,101,115,115,0,70,105,108,101,32,116,111,111,32,108,97,114,103,101,0,84,111,111,32,109,97,110,121,32,108,105,110,107,115,0,78,111,32,108,111,99,107,115,32,97,118,97,105,108,97,98,108,101,0,82,101,115,111,117,114,99,101,32,100,101,97,100,108,111,99,107,32,119,111,117,108,100,32,111,99,99,117,114,0,83,116,97,116,101,32,110,111,116,32,114,101,99,111,118,101,114,97,98,108,101,0,80,114,101,118,105,111,117,115,32,111,119,110,101,114,32,100,105,101,100,0,79,112,101,114,97,116,105,111,110,32,99,97,110,99,101,108,101,100,0,70,117,110,99,116,105,111,110,32,110,111,116,32,105,109,112,108,101,109,101,110,116,101,100,0,78,111,32,109,101,115,115,97,103,101,32,111,102,32,100,101,115,105,114,101,100,32,116,121,112,101,0,73,100,101,110,116,105,102,105,101,114,32,114,101,109,111,118,101,100,0,68,101,118,105,99,101,32,110,111,116,32,97,32,115,116,114,101,97,109,0,78,111,32,100,97,116,97,32,97,118,97,105,108,97,98,108,101,0,68,101,118,105,99,101,32,116,105,109,101,111,117,116,0,79,117,116,32,111,102,32,115,116,114,101,97,109,115,32,114,101,115,111,117,114,99,101,115,0,76,105,110,107,32,104,97,115,32,98,101,101,110,32,115,101,118,101,114,101,100,0,80,114,111,116,111,99,111,108,32,101,114,114,111,114,0,66,97,100,32,109,101,115,115,97,103,101,0,70,105,108,101,32,100,101,115,99,114,105,112,116,111,114,32,105,110,32,98,97,100,32,115,116,97,116,101,0,78,111,116,32,97,32,115,111,99,107,101,116,0,68,101,115,116,105,110,97,116,105,111,110,32,97,100,100,114,101,115,115,32,114,101,113,117,105,114,101,100,0,77,101,115,115,97,103,101,32,116,111,111,32,108,97,114,103,101,0,80,114,111,116,111,99,111,108,32,119,114,111,110,103,32,116,121,112,101,32,102,111,114,32,115,111,99,107,101,116,0,80,114,111,116,111,99,111,108,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,80,114,111,116,111,99,111,108,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,83,111,99,107,101,116,32,116,121,112,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,78,111,116,32,115,117,112,112,111,114,116,101,100,0,80,114,111,116,111,99,111,108,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,65,100,100,114,101,115,115,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,98,121,32,112,114,111,116,111,99,111,108,0,65,100,100,114,101,115,115,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,78,101,116,119,111,114,107,32,105,115,32,100,111,119,110,0,78,101,116,119,111,114,107,32,117,110,114,101,97,99,104,97,98,108,101,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,110,101,116,119,111,114,107,0,67,111,110,110,101,99,116,105,111,110,32,97,98,111,114,116,101,100,0,78,111,32,98,117,102,102,101,114,32,115,112,97,99,101,32,97,118,97,105,108,97,98,108,101,0,83,111,99,107,101,116,32,105,115,32,99,111,110,110,101,99,116,101,100,0,83,111,99,107,101,116,32,110,111,116,32,99,111,110,110,101,99,116,101,100,0,67,97,110,110,111,116,32,115,101,110,100,32,97,102,116,101,114,32,115,111,99,107,101,116,32,115,104,117,116,100,111,119,110,0,79,112,101,114,97,116,105,111,110,32,97,108,114,101,97,100,121,32,105,110,32,112,114,111,103,114,101,115,115,0,79,112,101,114,97,116,105,111,110,32,105,110,32,112,114,111,103,114,101,115,115,0,83,116,97,108,101,32,102,105,108,101,32,104,97,110,100,108,101,0,82,101,109,111,116,101,32,73,47,79,32,101,114,114,111,114,0,81,117,111,116,97,32,101,120,99,101,101,100,101,100,0,78,111,32,109,101,100,105,117,109,32,102,111,117,110,100,0,87,114,111,110,103,32,109,101,100,105,117,109,32,116,121,112,101,0,78,111,32,101,114,114,111,114,32,105,110,102,111,114,109,97,116,105,111,110,0,0,105,110,102,105,110,105,116,121,0,110,97,110,0,114,119,97,0], "i8", ALLOC_NONE, Runtime.GLOBAL_BASE+10240);
  1622. /* no memory initializer */
  1623. var tempDoublePtr = STATICTOP; STATICTOP += 16;
  1624. assert(tempDoublePtr % 8 == 0);
  1625. function copyTempFloat(ptr) { // functions, because inlining this code increases code size too much
  1626. HEAP8[tempDoublePtr] = HEAP8[ptr];
  1627. HEAP8[tempDoublePtr+1] = HEAP8[ptr+1];
  1628. HEAP8[tempDoublePtr+2] = HEAP8[ptr+2];
  1629. HEAP8[tempDoublePtr+3] = HEAP8[ptr+3];
  1630. }
  1631. function copyTempDouble(ptr) {
  1632. HEAP8[tempDoublePtr] = HEAP8[ptr];
  1633. HEAP8[tempDoublePtr+1] = HEAP8[ptr+1];
  1634. HEAP8[tempDoublePtr+2] = HEAP8[ptr+2];
  1635. HEAP8[tempDoublePtr+3] = HEAP8[ptr+3];
  1636. HEAP8[tempDoublePtr+4] = HEAP8[ptr+4];
  1637. HEAP8[tempDoublePtr+5] = HEAP8[ptr+5];
  1638. HEAP8[tempDoublePtr+6] = HEAP8[ptr+6];
  1639. HEAP8[tempDoublePtr+7] = HEAP8[ptr+7];
  1640. }
  1641. // {{PRE_LIBRARY}}
  1642. 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 () {
  1643. GL.miniTempBuffer = new Float32Array(GL.MINI_TEMP_BUFFER_SIZE);
  1644. for (var i = 0; i < GL.MINI_TEMP_BUFFER_SIZE; i++) {
  1645. GL.miniTempBufferViews[i] = GL.miniTempBuffer.subarray(0, i+1);
  1646. }
  1647. // For functions such as glDrawBuffers, glInvalidateFramebuffer and glInvalidateSubFramebuffer that need to pass a short array to the WebGL API,
  1648. // create a set of short fixed-length arrays to avoid having to generate any garbage when calling those functions.
  1649. for (var i = 0; i < 32; i++) {
  1650. GL.tempFixedLengthArray.push(new Array(i));
  1651. }
  1652. },recordError:function recordError(errorCode) {
  1653. if (!GL.lastError) {
  1654. GL.lastError = errorCode;
  1655. }
  1656. },getNewId:function (table) {
  1657. var ret = GL.counter++;
  1658. for (var i = table.length; i < ret; i++) {
  1659. table[i] = null;
  1660. }
  1661. return ret;
  1662. },MINI_TEMP_BUFFER_SIZE:256,miniTempBuffer:null,miniTempBufferViews:[0],getSource:function (shader, count, string, length) {
  1663. var source = '';
  1664. for (var i = 0; i < count; ++i) {
  1665. var frag;
  1666. if (length) {
  1667. var len = HEAP32[(((length)+(i*4))>>2)];
  1668. if (len < 0) {
  1669. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)]);
  1670. } else {
  1671. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)], len);
  1672. }
  1673. } else {
  1674. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)]);
  1675. }
  1676. source += frag;
  1677. }
  1678. return source;
  1679. },createContext:function (canvas, webGLContextAttributes) {
  1680. if (typeof webGLContextAttributes['majorVersion'] === 'undefined' && typeof webGLContextAttributes['minorVersion'] === 'undefined') {
  1681. webGLContextAttributes['majorVersion'] = 1;
  1682. webGLContextAttributes['minorVersion'] = 0;
  1683. }
  1684. var ctx;
  1685. var errorInfo = '?';
  1686. function onContextCreationError(event) {
  1687. errorInfo = event.statusMessage || errorInfo;
  1688. }
  1689. try {
  1690. canvas.addEventListener('webglcontextcreationerror', onContextCreationError, false);
  1691. try {
  1692. if (webGLContextAttributes['majorVersion'] == 1 && webGLContextAttributes['minorVersion'] == 0) {
  1693. ctx = canvas.getContext("webgl", webGLContextAttributes) || canvas.getContext("experimental-webgl", webGLContextAttributes);
  1694. } else if (webGLContextAttributes['majorVersion'] == 2 && webGLContextAttributes['minorVersion'] == 0) {
  1695. ctx = canvas.getContext("webgl2", webGLContextAttributes) || canvas.getContext("experimental-webgl2", webGLContextAttributes);
  1696. } else {
  1697. throw 'Unsupported WebGL context version ' + majorVersion + '.' + minorVersion + '!'
  1698. }
  1699. } finally {
  1700. canvas.removeEventListener('webglcontextcreationerror', onContextCreationError, false);
  1701. }
  1702. if (!ctx) throw ':(';
  1703. } catch (e) {
  1704. Module.print('Could not create canvas: ' + [errorInfo, e, JSON.stringify(webGLContextAttributes)]);
  1705. return 0;
  1706. }
  1707. // possible GL_DEBUG entry point: ctx = wrapDebugGL(ctx);
  1708. if (!ctx) return 0;
  1709. return GL.registerContext(ctx, webGLContextAttributes);
  1710. },registerContext:function (ctx, webGLContextAttributes) {
  1711. var handle = GL.getNewId(GL.contexts);
  1712. var context = {
  1713. handle: handle,
  1714. attributes: webGLContextAttributes,
  1715. version: webGLContextAttributes['majorVersion'],
  1716. GLctx: ctx
  1717. };
  1718. // Store the created context object so that we can access the context given a canvas without having to pass the parameters again.
  1719. if (ctx.canvas) ctx.canvas.GLctxObject = context;
  1720. GL.contexts[handle] = context;
  1721. if (typeof webGLContextAttributes['enableExtensionsByDefault'] === 'undefined' || webGLContextAttributes['enableExtensionsByDefault']) {
  1722. GL.initExtensions(context);
  1723. }
  1724. return handle;
  1725. },makeContextCurrent:function (contextHandle) {
  1726. var context = GL.contexts[contextHandle];
  1727. if (!context) return false;
  1728. GLctx = Module.ctx = context.GLctx; // Active WebGL context object.
  1729. GL.currentContext = context; // Active Emscripten GL layer context object.
  1730. return true;
  1731. },getContext:function (contextHandle) {
  1732. return GL.contexts[contextHandle];
  1733. },deleteContext:function (contextHandle) {
  1734. if (GL.currentContext === GL.contexts[contextHandle]) GL.currentContext = null;
  1735. 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.
  1736. 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.
  1737. GL.contexts[contextHandle] = null;
  1738. },initExtensions:function (context) {
  1739. // If this function is called without a specific context object, init the extensions of the currently active context.
  1740. if (!context) context = GL.currentContext;
  1741. if (context.initExtensionsDone) return;
  1742. context.initExtensionsDone = true;
  1743. var GLctx = context.GLctx;
  1744. context.maxVertexAttribs = GLctx.getParameter(GLctx.MAX_VERTEX_ATTRIBS);
  1745. // Detect the presence of a few extensions manually, this GL interop layer itself will need to know if they exist.
  1746. if (context.version < 2) {
  1747. // Extension available from Firefox 26 and Google Chrome 30
  1748. var instancedArraysExt = GLctx.getExtension('ANGLE_instanced_arrays');
  1749. if (instancedArraysExt) {
  1750. GLctx['vertexAttribDivisor'] = function(index, divisor) { instancedArraysExt['vertexAttribDivisorANGLE'](index, divisor); };
  1751. GLctx['drawArraysInstanced'] = function(mode, first, count, primcount) { instancedArraysExt['drawArraysInstancedANGLE'](mode, first, count, primcount); };
  1752. GLctx['drawElementsInstanced'] = function(mode, count, type, indices, primcount) { instancedArraysExt['drawElementsInstancedANGLE'](mode, count, type, indices, primcount); };
  1753. }
  1754. // Extension available from Firefox 25 and WebKit
  1755. var vaoExt = GLctx.getExtension('OES_vertex_array_object');
  1756. if (vaoExt) {
  1757. GLctx['createVertexArray'] = function() { return vaoExt['createVertexArrayOES'](); };
  1758. GLctx['deleteVertexArray'] = function(vao) { vaoExt['deleteVertexArrayOES'](vao); };
  1759. GLctx['bindVertexArray'] = function(vao) { vaoExt['bindVertexArrayOES'](vao); };
  1760. GLctx['isVertexArray'] = function(vao) { return vaoExt['isVertexArrayOES'](vao); };
  1761. }
  1762. var drawBuffersExt = GLctx.getExtension('WEBGL_draw_buffers');
  1763. if (drawBuffersExt) {
  1764. GLctx['drawBuffers'] = function(n, bufs) { drawBuffersExt['drawBuffersWEBGL'](n, bufs); };
  1765. }
  1766. }
  1767. GLctx.disjointTimerQueryExt = GLctx.getExtension("EXT_disjoint_timer_query");
  1768. // These are the 'safe' feature-enabling extensions that don't add any performance impact related to e.g. debugging, and
  1769. // should be enabled by default so that client GLES2/GL code will not need to go through extra hoops to get its stuff working.
  1770. // As new extensions are ratified at http://www.khronos.org/registry/webgl/extensions/ , feel free to add your new extensions
  1771. // here, as long as they don't produce a performance impact for users that might not be using those extensions.
  1772. // E.g. debugging-related extensions should probably be off by default.
  1773. var automaticallyEnabledExtensions = [ "OES_texture_float", "OES_texture_half_float", "OES_standard_derivatives",
  1774. "OES_vertex_array_object", "WEBGL_compressed_texture_s3tc", "WEBGL_depth_texture",
  1775. "OES_element_index_uint", "EXT_texture_filter_anisotropic", "ANGLE_instanced_arrays",
  1776. "OES_texture_float_linear", "OES_texture_half_float_linear", "WEBGL_compressed_texture_atc",
  1777. "WEBGL_compressed_texture_pvrtc", "EXT_color_buffer_half_float", "WEBGL_color_buffer_float",
  1778. "EXT_frag_depth", "EXT_sRGB", "WEBGL_draw_buffers", "WEBGL_shared_resources",
  1779. "EXT_shader_texture_lod", "EXT_color_buffer_float"];
  1780. function shouldEnableAutomatically(extension) {
  1781. var ret = false;
  1782. automaticallyEnabledExtensions.forEach(function(include) {
  1783. if (ext.indexOf(include) != -1) {
  1784. ret = true;
  1785. }
  1786. });
  1787. return ret;
  1788. }
  1789. var exts = GLctx.getSupportedExtensions();
  1790. if (exts && exts.length > 0) {
  1791. GLctx.getSupportedExtensions().forEach(function(ext) {
  1792. if (automaticallyEnabledExtensions.indexOf(ext) != -1) {
  1793. GLctx.getExtension(ext); // Calling .getExtension enables that extension permanently, no need to store the return value to be enabled.
  1794. }
  1795. });
  1796. }
  1797. },populateUniformTable:function (program) {
  1798. var p = GL.programs[program];
  1799. GL.programInfos[program] = {
  1800. uniforms: {},
  1801. maxUniformLength: 0, // This is eagerly computed below, since we already enumerate all uniforms anyway.
  1802. maxAttributeLength: -1, // This is lazily computed and cached, computed when/if first asked, "-1" meaning not computed yet.
  1803. maxUniformBlockNameLength: -1 // Lazily computed as well
  1804. };
  1805. var ptable = GL.programInfos[program];
  1806. var utable = ptable.uniforms;
  1807. // A program's uniform table maps the string name of an uniform to an integer location of that uniform.
  1808. // The global GL.uniforms map maps integer locations to WebGLUniformLocations.
  1809. var numUniforms = GLctx.getProgramParameter(p, GLctx.ACTIVE_UNIFORMS);
  1810. for (var i = 0; i < numUniforms; ++i) {
  1811. var u = GLctx.getActiveUniform(p, i);
  1812. var name = u.name;
  1813. ptable.maxUniformLength = Math.max(ptable.maxUniformLength, name.length+1);
  1814. // Strip off any trailing array specifier we might have got, e.g. "[0]".
  1815. if (name.indexOf(']', name.length-1) !== -1) {
  1816. var ls = name.lastIndexOf('[');
  1817. name = name.slice(0, ls);
  1818. }
  1819. // Optimize memory usage slightly: If we have an array of uniforms, e.g. 'vec3 colors[3];', then
  1820. // only store the string 'colors' in utable, and 'colors[0]', 'colors[1]' and 'colors[2]' will be parsed as 'colors'+i.
  1821. // Note that for the GL.uniforms table, we still need to fetch the all WebGLUniformLocations for all the indices.
  1822. var loc = GLctx.getUniformLocation(p, name);
  1823. if (loc != null)
  1824. {
  1825. var id = GL.getNewId(GL.uniforms);
  1826. utable[name] = [u.size, id];
  1827. GL.uniforms[id] = loc;
  1828. for (var j = 1; j < u.size; ++j) {
  1829. var n = name + '['+j+']';
  1830. loc = GLctx.getUniformLocation(p, n);
  1831. id = GL.getNewId(GL.uniforms);
  1832. GL.uniforms[id] = loc;
  1833. }
  1834. }
  1835. }
  1836. }};function _emscripten_glIsRenderbuffer(renderbuffer) {
  1837. var rb = GL.renderbuffers[renderbuffer];
  1838. if (!rb) return 0;
  1839. return GLctx.isRenderbuffer(rb);
  1840. }
  1841. function _emscripten_glStencilMaskSeparate(x0, x1) { GLctx['stencilMaskSeparate'](x0, x1) }
  1842. function _emscripten_get_now() { abort() }
  1843. function _emscripten_set_main_loop_timing(mode, value) {
  1844. Browser.mainLoop.timingMode = mode;
  1845. Browser.mainLoop.timingValue = value;
  1846. if (!Browser.mainLoop.func) {
  1847. 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.');
  1848. return 1; // Return non-zero on failure, can't set timing mode when there is no main loop.
  1849. }
  1850. if (mode == 0 /*EM_TIMING_SETTIMEOUT*/) {
  1851. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_setTimeout() {
  1852. var timeUntilNextTick = Math.max(0, Browser.mainLoop.tickStartTime + value - _emscripten_get_now())|0;
  1853. setTimeout(Browser.mainLoop.runner, timeUntilNextTick); // doing this each time means that on exception, we stop
  1854. };
  1855. Browser.mainLoop.method = 'timeout';
  1856. } else if (mode == 1 /*EM_TIMING_RAF*/) {
  1857. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_rAF() {
  1858. Browser.requestAnimationFrame(Browser.mainLoop.runner);
  1859. };
  1860. Browser.mainLoop.method = 'rAF';
  1861. } else if (mode == 2 /*EM_TIMING_SETIMMEDIATE*/) {
  1862. if (!window['setImmediate']) {
  1863. // Emulate setImmediate. (note: not a complete polyfill, we don't emulate clearImmediate() to keep code size to minimum, since not needed)
  1864. var setImmediates = [];
  1865. var emscriptenMainLoopMessageId = 'setimmediate';
  1866. function Browser_setImmediate_messageHandler(event) {
  1867. if (event.source === window && event.data === emscriptenMainLoopMessageId) {
  1868. event.stopPropagation();
  1869. setImmediates.shift()();
  1870. }
  1871. }
  1872. window.addEventListener("message", Browser_setImmediate_messageHandler, true);
  1873. window['setImmediate'] = function Browser_emulated_setImmediate(func) {
  1874. setImmediates.push(func);
  1875. if (ENVIRONMENT_IS_WORKER) {
  1876. if (Module['setImmediates'] === undefined) Module['setImmediates'] = [];
  1877. Module['setImmediates'].push(func);
  1878. window.postMessage({target: emscriptenMainLoopMessageId}); // In --proxy-to-worker, route the message via proxyClient.js
  1879. } else window.postMessage(emscriptenMainLoopMessageId, "*"); // On the main thread, can just send the message to itself.
  1880. }
  1881. }
  1882. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_setImmediate() {
  1883. window['setImmediate'](Browser.mainLoop.runner);
  1884. };
  1885. Browser.mainLoop.method = 'immediate';
  1886. }
  1887. return 0;
  1888. }function _emscripten_set_main_loop(func, fps, simulateInfiniteLoop, arg, noSetTiming) {
  1889. Module['noExitRuntime'] = true;
  1890. 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.');
  1891. Browser.mainLoop.func = func;
  1892. Browser.mainLoop.arg = arg;
  1893. var browserIterationFunc;
  1894. if (typeof arg !== 'undefined') {
  1895. browserIterationFunc = function() {
  1896. Module['dynCall_vi'](func, arg);
  1897. };
  1898. } else {
  1899. browserIterationFunc = function() {
  1900. Module['dynCall_v'](func);
  1901. };
  1902. }
  1903. var thisMainLoopId = Browser.mainLoop.currentlyRunningMainloop;
  1904. Browser.mainLoop.runner = function Browser_mainLoop_runner() {
  1905. if (ABORT) return;
  1906. if (Browser.mainLoop.queue.length > 0) {
  1907. var start = Date.now();
  1908. var blocker = Browser.mainLoop.queue.shift();
  1909. blocker.func(blocker.arg);
  1910. if (Browser.mainLoop.remainingBlockers) {
  1911. var remaining = Browser.mainLoop.remainingBlockers;
  1912. var next = remaining%1 == 0 ? remaining-1 : Math.floor(remaining);
  1913. if (blocker.counted) {
  1914. Browser.mainLoop.remainingBlockers = next;
  1915. } else {
  1916. // not counted, but move the progress along a tiny bit
  1917. next = next + 0.5; // do not steal all the next one's progress
  1918. Browser.mainLoop.remainingBlockers = (8*remaining + next)/9;
  1919. }
  1920. }
  1921. console.log('main loop blocker "' + blocker.name + '" took ' + (Date.now() - start) + ' ms'); //, left: ' + Browser.mainLoop.remainingBlockers);
  1922. Browser.mainLoop.updateStatus();
  1923. // catches pause/resume main loop from blocker execution
  1924. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1925. setTimeout(Browser.mainLoop.runner, 0);
  1926. return;
  1927. }
  1928. // catch pauses from non-main loop sources
  1929. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1930. // Implement very basic swap interval control
  1931. Browser.mainLoop.currentFrameNumber = Browser.mainLoop.currentFrameNumber + 1 | 0;
  1932. if (Browser.mainLoop.timingMode == 1/*EM_TIMING_RAF*/ && Browser.mainLoop.timingValue > 1 && Browser.mainLoop.currentFrameNumber % Browser.mainLoop.timingValue != 0) {
  1933. // Not the scheduled time to render this frame - skip.
  1934. Browser.mainLoop.scheduler();
  1935. return;
  1936. } else if (Browser.mainLoop.timingMode == 0/*EM_TIMING_SETTIMEOUT*/) {
  1937. Browser.mainLoop.tickStartTime = _emscripten_get_now();
  1938. }
  1939. // Signal GL rendering layer that processing of a new frame is about to start. This helps it optimize
  1940. // VBO double-buffering and reduce GPU stalls.
  1941. if (Browser.mainLoop.method === 'timeout' && Module.ctx) {
  1942. 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!');
  1943. Browser.mainLoop.method = ''; // just warn once per call to set main loop
  1944. }
  1945. Browser.mainLoop.runIter(browserIterationFunc);
  1946. checkStackCookie();
  1947. // catch pauses from the main loop itself
  1948. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1949. // Queue new audio data. This is important to be right after the main loop invocation, so that we will immediately be able
  1950. // to queue the newest produced audio samples.
  1951. // TODO: Consider adding pre- and post- rAF callbacks so that GL.newRenderingFrameStarted() and SDL.audio.queueNewAudioData()
  1952. // do not need to be hardcoded into this function, but can be more generic.
  1953. if (typeof SDL === 'object' && SDL.audio && SDL.audio.queueNewAudioData) SDL.audio.queueNewAudioData();
  1954. Browser.mainLoop.scheduler();
  1955. }
  1956. if (!noSetTiming) {
  1957. if (fps && fps > 0) _emscripten_set_main_loop_timing(0/*EM_TIMING_SETTIMEOUT*/, 1000.0 / fps);
  1958. else _emscripten_set_main_loop_timing(1/*EM_TIMING_RAF*/, 1); // Do rAF by rendering each frame (no decimating)
  1959. Browser.mainLoop.scheduler();
  1960. }
  1961. if (simulateInfiniteLoop) {
  1962. throw 'SimulateInfiniteLoop';
  1963. }
  1964. }var Browser={mainLoop:{scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:function () {
  1965. Browser.mainLoop.scheduler = null;
  1966. Browser.mainLoop.currentlyRunningMainloop++; // Incrementing this signals the previous main loop that it's now become old, and it must return.
  1967. },resume:function () {
  1968. Browser.mainLoop.currentlyRunningMainloop++;
  1969. var timingMode = Browser.mainLoop.timingMode;
  1970. var timingValue = Browser.mainLoop.timingValue;
  1971. var func = Browser.mainLoop.func;
  1972. Browser.mainLoop.func = null;
  1973. _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 */);
  1974. _emscripten_set_main_loop_timing(timingMode, timingValue);
  1975. Browser.mainLoop.scheduler();
  1976. },updateStatus:function () {
  1977. if (Module['setStatus']) {
  1978. var message = Module['statusMessage'] || 'Please wait...';
  1979. var remaining = Browser.mainLoop.remainingBlockers;
  1980. var expected = Browser.mainLoop.expectedBlockers;
  1981. if (remaining) {
  1982. if (remaining < expected) {
  1983. Module['setStatus'](message + ' (' + (expected - remaining) + '/' + expected + ')');
  1984. } else {
  1985. Module['setStatus'](message);
  1986. }
  1987. } else {
  1988. Module['setStatus']('');
  1989. }
  1990. }
  1991. },runIter:function (func) {
  1992. if (ABORT) return;
  1993. if (Module['preMainLoop']) {
  1994. var preRet = Module['preMainLoop']();
  1995. if (preRet === false) {
  1996. return; // |return false| skips a frame
  1997. }
  1998. }
  1999. try {
  2000. func();
  2001. } catch (e) {
  2002. if (e instanceof ExitStatus) {
  2003. return;
  2004. } else {
  2005. if (e && typeof e === 'object' && e.stack) Module.printErr('exception thrown: ' + [e, e.stack]);
  2006. throw e;
  2007. }
  2008. }
  2009. if (Module['postMainLoop']) Module['postMainLoop']();
  2010. }},isFullscreen:false,pointerLock:false,moduleContextCreatedCallbacks:[],workers:[],init:function () {
  2011. if (!Module["preloadPlugins"]) Module["preloadPlugins"] = []; // needs to exist even in workers
  2012. if (Browser.initted) return;
  2013. Browser.initted = true;
  2014. try {
  2015. new Blob();
  2016. Browser.hasBlobConstructor = true;
  2017. } catch(e) {
  2018. Browser.hasBlobConstructor = false;
  2019. console.log("warning: no blob constructor, cannot create blobs with mimetypes");
  2020. }
  2021. Browser.BlobBuilder = typeof MozBlobBuilder != "undefined" ? MozBlobBuilder : (typeof WebKitBlobBuilder != "undefined" ? WebKitBlobBuilder : (!Browser.hasBlobConstructor ? console.log("warning: no BlobBuilder") : null));
  2022. Browser.URLObject = typeof window != "undefined" ? (window.URL ? window.URL : window.webkitURL) : undefined;
  2023. if (!Module.noImageDecoding && typeof Browser.URLObject === 'undefined') {
  2024. console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available.");
  2025. Module.noImageDecoding = true;
  2026. }
  2027. // Support for plugins that can process preloaded files. You can add more of these to
  2028. // your app by creating and appending to Module.preloadPlugins.
  2029. //
  2030. // Each plugin is asked if it can handle a file based on the file's name. If it can,
  2031. // it is given the file's raw data. When it is done, it calls a callback with the file's
  2032. // (possibly modified) data. For example, a plugin might decompress a file, or it
  2033. // might create some side data structure for use later (like an Image element, etc.).
  2034. var imagePlugin = {};
  2035. imagePlugin['canHandle'] = function imagePlugin_canHandle(name) {
  2036. return !Module.noImageDecoding && /\.(jpg|jpeg|png|bmp)$/i.test(name);
  2037. };
  2038. imagePlugin['handle'] = function imagePlugin_handle(byteArray, name, onload, onerror) {
  2039. var b = null;
  2040. if (Browser.hasBlobConstructor) {
  2041. try {
  2042. b = new Blob([byteArray], { type: Browser.getMimetype(name) });
  2043. if (b.size !== byteArray.length) { // Safari bug #118630
  2044. // Safari's Blob can only take an ArrayBuffer
  2045. b = new Blob([(new Uint8Array(byteArray)).buffer], { type: Browser.getMimetype(name) });
  2046. }
  2047. } catch(e) {
  2048. Runtime.warnOnce('Blob constructor present but fails: ' + e + '; falling back to blob builder');
  2049. }
  2050. }
  2051. if (!b) {
  2052. var bb = new Browser.BlobBuilder();
  2053. bb.append((new Uint8Array(byteArray)).buffer); // we need to pass a buffer, and must copy the array to get the right data range
  2054. b = bb.getBlob();
  2055. }
  2056. var url = Browser.URLObject.createObjectURL(b);
  2057. assert(typeof url == 'string', 'createObjectURL must return a url as a string');
  2058. var img = new Image();
  2059. img.onload = function img_onload() {
  2060. assert(img.complete, 'Image ' + name + ' could not be decoded');
  2061. var canvas = document.createElement('canvas');
  2062. canvas.width = img.width;
  2063. canvas.height = img.height;
  2064. var ctx = canvas.getContext('2d');
  2065. ctx.drawImage(img, 0, 0);
  2066. Module["preloadedImages"][name] = canvas;
  2067. Browser.URLObject.revokeObjectURL(url);
  2068. if (onload) onload(byteArray);
  2069. };
  2070. img.onerror = function img_onerror(event) {
  2071. console.log('Image ' + url + ' could not be decoded');
  2072. if (onerror) onerror();
  2073. };
  2074. img.src = url;
  2075. };
  2076. Module['preloadPlugins'].push(imagePlugin);
  2077. var audioPlugin = {};
  2078. audioPlugin['canHandle'] = function audioPlugin_canHandle(name) {
  2079. return !Module.noAudioDecoding && name.substr(-4) in { '.ogg': 1, '.wav': 1, '.mp3': 1 };
  2080. };
  2081. audioPlugin['handle'] = function audioPlugin_handle(byteArray, name, onload, onerror) {
  2082. var done = false;
  2083. function finish(audio) {
  2084. if (done) return;
  2085. done = true;
  2086. Module["preloadedAudios"][name] = audio;
  2087. if (onload) onload(byteArray);
  2088. }
  2089. function fail() {
  2090. if (done) return;
  2091. done = true;
  2092. Module["preloadedAudios"][name] = new Audio(); // empty shim
  2093. if (onerror) onerror();
  2094. }
  2095. if (Browser.hasBlobConstructor) {
  2096. try {
  2097. var b = new Blob([byteArray], { type: Browser.getMimetype(name) });
  2098. } catch(e) {
  2099. return fail();
  2100. }
  2101. var url = Browser.URLObject.createObjectURL(b); // XXX we never revoke this!
  2102. assert(typeof url == 'string', 'createObjectURL must return a url as a string');
  2103. var audio = new Audio();
  2104. audio.addEventListener('canplaythrough', function() { finish(audio) }, false); // use addEventListener due to chromium bug 124926
  2105. audio.onerror = function audio_onerror(event) {
  2106. if (done) return;
  2107. console.log('warning: browser could not fully decode audio ' + name + ', trying slower base64 approach');
  2108. function encode64(data) {
  2109. var BASE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
  2110. var PAD = '=';
  2111. var ret = '';
  2112. var leftchar = 0;
  2113. var leftbits = 0;
  2114. for (var i = 0; i < data.length; i++) {
  2115. leftchar = (leftchar << 8) | data[i];
  2116. leftbits += 8;
  2117. while (leftbits >= 6) {
  2118. var curr = (leftchar >> (leftbits-6)) & 0x3f;
  2119. leftbits -= 6;
  2120. ret += BASE[curr];
  2121. }
  2122. }
  2123. if (leftbits == 2) {
  2124. ret += BASE[(leftchar&3) << 4];
  2125. ret += PAD + PAD;
  2126. } else if (leftbits == 4) {
  2127. ret += BASE[(leftchar&0xf) << 2];
  2128. ret += PAD;
  2129. }
  2130. return ret;
  2131. }
  2132. audio.src = 'data:audio/x-' + name.substr(-3) + ';base64,' + encode64(byteArray);
  2133. finish(audio); // we don't wait for confirmation this worked - but it's worth trying
  2134. };
  2135. audio.src = url;
  2136. // workaround for chrome bug 124926 - we do not always get oncanplaythrough or onerror
  2137. Browser.safeSetTimeout(function() {
  2138. finish(audio); // try to use it even though it is not necessarily ready to play
  2139. }, 10000);
  2140. } else {
  2141. return fail();
  2142. }
  2143. };
  2144. Module['preloadPlugins'].push(audioPlugin);
  2145. // Canvas event setup
  2146. function pointerLockChange() {
  2147. Browser.pointerLock = document['pointerLockElement'] === Module['canvas'] ||
  2148. document['mozPointerLockElement'] === Module['canvas'] ||
  2149. document['webkitPointerLockElement'] === Module['canvas'] ||
  2150. document['msPointerLockElement'] === Module['canvas'];
  2151. }
  2152. var canvas = Module['canvas'];
  2153. if (canvas) {
  2154. // forced aspect ratio can be enabled by defining 'forcedAspectRatio' on Module
  2155. // Module['forcedAspectRatio'] = 4 / 3;
  2156. canvas.requestPointerLock = canvas['requestPointerLock'] ||
  2157. canvas['mozRequestPointerLock'] ||
  2158. canvas['webkitRequestPointerLock'] ||
  2159. canvas['msRequestPointerLock'] ||
  2160. function(){};
  2161. canvas.exitPointerLock = document['exitPointerLock'] ||
  2162. document['mozExitPointerLock'] ||
  2163. document['webkitExitPointerLock'] ||
  2164. document['msExitPointerLock'] ||
  2165. function(){}; // no-op if function does not exist
  2166. canvas.exitPointerLock = canvas.exitPointerLock.bind(document);
  2167. document.addEventListener('pointerlockchange', pointerLockChange, false);
  2168. document.addEventListener('mozpointerlockchange', pointerLockChange, false);
  2169. document.addEventListener('webkitpointerlockchange', pointerLockChange, false);
  2170. document.addEventListener('mspointerlockchange', pointerLockChange, false);
  2171. if (Module['elementPointerLock']) {
  2172. canvas.addEventListener("click", function(ev) {
  2173. if (!Browser.pointerLock && Module['canvas'].requestPointerLock) {
  2174. Module['canvas'].requestPointerLock();
  2175. ev.preventDefault();
  2176. }
  2177. }, false);
  2178. }
  2179. }
  2180. },createContext:function (canvas, useWebGL, setInModule, webGLContextAttributes) {
  2181. 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.
  2182. var ctx;
  2183. var contextHandle;
  2184. if (useWebGL) {
  2185. // For GLES2/desktop GL compatibility, adjust a few defaults to be different to WebGL defaults, so that they align better with the desktop defaults.
  2186. var contextAttributes = {
  2187. antialias: false,
  2188. alpha: false
  2189. };
  2190. if (webGLContextAttributes) {
  2191. for (var attribute in webGLContextAttributes) {
  2192. contextAttributes[attribute] = webGLContextAttributes[attribute];
  2193. }
  2194. }
  2195. contextHandle = GL.createContext(canvas, contextAttributes);
  2196. if (contextHandle) {
  2197. ctx = GL.getContext(contextHandle).GLctx;
  2198. }
  2199. } else {
  2200. ctx = canvas.getContext('2d');
  2201. }
  2202. if (!ctx) return null;
  2203. if (setInModule) {
  2204. 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');
  2205. Module.ctx = ctx;
  2206. if (useWebGL) GL.makeContextCurrent(contextHandle);
  2207. Module.useWebGL = useWebGL;
  2208. Browser.moduleContextCreatedCallbacks.forEach(function(callback) { callback() });
  2209. Browser.init();
  2210. }
  2211. return ctx;
  2212. },destroyContext:function (canvas, useWebGL, setInModule) {},fullscreenHandlersInstalled:false,lockPointer:undefined,resizeCanvas:undefined,requestFullscreen:function (lockPointer, resizeCanvas, vrDevice) {
  2213. Browser.lockPointer = lockPointer;
  2214. Browser.resizeCanvas = resizeCanvas;
  2215. Browser.vrDevice = vrDevice;
  2216. if (typeof Browser.lockPointer === 'undefined') Browser.lockPointer = true;
  2217. if (typeof Browser.resizeCanvas === 'undefined') Browser.resizeCanvas = false;
  2218. if (typeof Browser.vrDevice === 'undefined') Browser.vrDevice = null;
  2219. var canvas = Module['canvas'];
  2220. function fullscreenChange() {
  2221. Browser.isFullscreen = false;
  2222. var canvasContainer = canvas.parentNode;
  2223. if ((document['fullscreenElement'] || document['mozFullScreenElement'] ||
  2224. document['msFullscreenElement'] || document['webkitFullscreenElement'] ||
  2225. document['webkitCurrentFullScreenElement']) === canvasContainer) {
  2226. canvas.exitFullscreen = document['exitFullscreen'] ||
  2227. document['cancelFullScreen'] ||
  2228. document['mozCancelFullScreen'] ||
  2229. document['msExitFullscreen'] ||
  2230. document['webkitCancelFullScreen'] ||
  2231. function() {};
  2232. canvas.exitFullscreen = canvas.exitFullscreen.bind(document);
  2233. if (Browser.lockPointer) canvas.requestPointerLock();
  2234. Browser.isFullscreen = true;
  2235. if (Browser.resizeCanvas) Browser.setFullscreenCanvasSize();
  2236. } else {
  2237. // remove the full screen specific parent of the canvas again to restore the HTML structure from before going full screen
  2238. canvasContainer.parentNode.insertBefore(canvas, canvasContainer);
  2239. canvasContainer.parentNode.removeChild(canvasContainer);
  2240. if (Browser.resizeCanvas) Browser.setWindowedCanvasSize();
  2241. }
  2242. if (Module['onFullScreen']) Module['onFullScreen'](Browser.isFullscreen);
  2243. if (Module['onFullscreen']) Module['onFullscreen'](Browser.isFullscreen);
  2244. Browser.updateCanvasDimensions(canvas);
  2245. }
  2246. if (!Browser.fullscreenHandlersInstalled) {
  2247. Browser.fullscreenHandlersInstalled = true;
  2248. document.addEventListener('fullscreenchange', fullscreenChange, false);
  2249. document.addEventListener('mozfullscreenchange', fullscreenChange, false);
  2250. document.addEventListener('webkitfullscreenchange', fullscreenChange, false);
  2251. document.addEventListener('MSFullscreenChange', fullscreenChange, false);
  2252. }
  2253. // 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
  2254. var canvasContainer = document.createElement("div");
  2255. canvas.parentNode.insertBefore(canvasContainer, canvas);
  2256. canvasContainer.appendChild(canvas);
  2257. // use parent of canvas as full screen root to allow aspect ratio correction (Firefox stretches the root to screen size)
  2258. canvasContainer.requestFullscreen = canvasContainer['requestFullscreen'] ||
  2259. canvasContainer['mozRequestFullScreen'] ||
  2260. canvasContainer['msRequestFullscreen'] ||
  2261. (canvasContainer['webkitRequestFullscreen'] ? function() { canvasContainer['webkitRequestFullscreen'](Element['ALLOW_KEYBOARD_INPUT']) } : null) ||
  2262. (canvasContainer['webkitRequestFullScreen'] ? function() { canvasContainer['webkitRequestFullScreen'](Element['ALLOW_KEYBOARD_INPUT']) } : null);
  2263. if (vrDevice) {
  2264. canvasContainer.requestFullscreen({ vrDisplay: vrDevice });
  2265. } else {
  2266. canvasContainer.requestFullscreen();
  2267. }
  2268. },requestFullScreen:function (lockPointer, resizeCanvas, vrDevice) {
  2269. Module.printErr('Browser.requestFullScreen() is deprecated. Please call Browser.requestFullscreen instead.');
  2270. Browser.requestFullScreen = function(lockPointer, resizeCanvas, vrDevice) {
  2271. return Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice);
  2272. }
  2273. return Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice);
  2274. },nextRAF:0,fakeRequestAnimationFrame:function (func) {
  2275. // try to keep 60fps between calls to here
  2276. var now = Date.now();
  2277. if (Browser.nextRAF === 0) {
  2278. Browser.nextRAF = now + 1000/60;
  2279. } else {
  2280. while (now + 2 >= Browser.nextRAF) { // fudge a little, to avoid timer jitter causing us to do lots of delay:0
  2281. Browser.nextRAF += 1000/60;
  2282. }
  2283. }
  2284. var delay = Math.max(Browser.nextRAF - now, 0);
  2285. setTimeout(func, delay);
  2286. },requestAnimationFrame:function requestAnimationFrame(func) {
  2287. if (typeof window === 'undefined') { // Provide fallback to setTimeout if window is undefined (e.g. in Node.js)
  2288. Browser.fakeRequestAnimationFrame(func);
  2289. } else {
  2290. if (!window.requestAnimationFrame) {
  2291. window.requestAnimationFrame = window['requestAnimationFrame'] ||
  2292. window['mozRequestAnimationFrame'] ||
  2293. window['webkitRequestAnimationFrame'] ||
  2294. window['msRequestAnimationFrame'] ||
  2295. window['oRequestAnimationFrame'] ||
  2296. Browser.fakeRequestAnimationFrame;
  2297. }
  2298. window.requestAnimationFrame(func);
  2299. }
  2300. },safeCallback:function (func) {
  2301. return function() {
  2302. if (!ABORT) return func.apply(null, arguments);
  2303. };
  2304. },allowAsyncCallbacks:true,queuedAsyncCallbacks:[],pauseAsyncCallbacks:function () {
  2305. Browser.allowAsyncCallbacks = false;
  2306. },resumeAsyncCallbacks:function () { // marks future callbacks as ok to execute, and synchronously runs any remaining ones right now
  2307. Browser.allowAsyncCallbacks = true;
  2308. if (Browser.queuedAsyncCallbacks.length > 0) {
  2309. var callbacks = Browser.queuedAsyncCallbacks;
  2310. Browser.queuedAsyncCallbacks = [];
  2311. callbacks.forEach(function(func) {
  2312. func();
  2313. });
  2314. }
  2315. },safeRequestAnimationFrame:function (func) {
  2316. return Browser.requestAnimationFrame(function() {
  2317. if (ABORT) return;
  2318. if (Browser.allowAsyncCallbacks) {
  2319. func();
  2320. } else {
  2321. Browser.queuedAsyncCallbacks.push(func);
  2322. }
  2323. });
  2324. },safeSetTimeout:function (func, timeout) {
  2325. Module['noExitRuntime'] = true;
  2326. return setTimeout(function() {
  2327. if (ABORT) return;
  2328. if (Browser.allowAsyncCallbacks) {
  2329. func();
  2330. } else {
  2331. Browser.queuedAsyncCallbacks.push(func);
  2332. }
  2333. }, timeout);
  2334. },safeSetInterval:function (func, timeout) {
  2335. Module['noExitRuntime'] = true;
  2336. return setInterval(function() {
  2337. if (ABORT) return;
  2338. if (Browser.allowAsyncCallbacks) {
  2339. func();
  2340. } // drop it on the floor otherwise, next interval will kick in
  2341. }, timeout);
  2342. },getMimetype:function (name) {
  2343. return {
  2344. 'jpg': 'image/jpeg',
  2345. 'jpeg': 'image/jpeg',
  2346. 'png': 'image/png',
  2347. 'bmp': 'image/bmp',
  2348. 'ogg': 'audio/ogg',
  2349. 'wav': 'audio/wav',
  2350. 'mp3': 'audio/mpeg'
  2351. }[name.substr(name.lastIndexOf('.')+1)];
  2352. },getUserMedia:function (func) {
  2353. if(!window.getUserMedia) {
  2354. window.getUserMedia = navigator['getUserMedia'] ||
  2355. navigator['mozGetUserMedia'];
  2356. }
  2357. window.getUserMedia(func);
  2358. },getMovementX:function (event) {
  2359. return event['movementX'] ||
  2360. event['mozMovementX'] ||
  2361. event['webkitMovementX'] ||
  2362. 0;
  2363. },getMovementY:function (event) {
  2364. return event['movementY'] ||
  2365. event['mozMovementY'] ||
  2366. event['webkitMovementY'] ||
  2367. 0;
  2368. },getMouseWheelDelta:function (event) {
  2369. var delta = 0;
  2370. switch (event.type) {
  2371. case 'DOMMouseScroll':
  2372. delta = event.detail;
  2373. break;
  2374. case 'mousewheel':
  2375. delta = event.wheelDelta;
  2376. break;
  2377. case 'wheel':
  2378. delta = event['deltaY'];
  2379. break;
  2380. default:
  2381. throw 'unrecognized mouse wheel event: ' + event.type;
  2382. }
  2383. return delta;
  2384. },mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseEvent:function (event) { // event should be mousemove, mousedown or mouseup
  2385. if (Browser.pointerLock) {
  2386. // When the pointer is locked, calculate the coordinates
  2387. // based on the movement of the mouse.
  2388. // Workaround for Firefox bug 764498
  2389. if (event.type != 'mousemove' &&
  2390. ('mozMovementX' in event)) {
  2391. Browser.mouseMovementX = Browser.mouseMovementY = 0;
  2392. } else {
  2393. Browser.mouseMovementX = Browser.getMovementX(event);
  2394. Browser.mouseMovementY = Browser.getMovementY(event);
  2395. }
  2396. // check if SDL is available
  2397. if (typeof SDL != "undefined") {
  2398. Browser.mouseX = SDL.mouseX + Browser.mouseMovementX;
  2399. Browser.mouseY = SDL.mouseY + Browser.mouseMovementY;
  2400. } else {
  2401. // just add the mouse delta to the current absolut mouse position
  2402. // FIXME: ideally this should be clamped against the canvas size and zero
  2403. Browser.mouseX += Browser.mouseMovementX;
  2404. Browser.mouseY += Browser.mouseMovementY;
  2405. }
  2406. } else {
  2407. // Otherwise, calculate the movement based on the changes
  2408. // in the coordinates.
  2409. var rect = Module["canvas"].getBoundingClientRect();
  2410. var cw = Module["canvas"].width;
  2411. var ch = Module["canvas"].height;
  2412. // Neither .scrollX or .pageXOffset are defined in a spec, but
  2413. // we prefer .scrollX because it is currently in a spec draft.
  2414. // (see: http://www.w3.org/TR/2013/WD-cssom-view-20131217/)
  2415. var scrollX = ((typeof window.scrollX !== 'undefined') ? window.scrollX : window.pageXOffset);
  2416. var scrollY = ((typeof window.scrollY !== 'undefined') ? window.scrollY : window.pageYOffset);
  2417. // If this assert lands, it's likely because the browser doesn't support scrollX or pageXOffset
  2418. // and we have no viable fallback.
  2419. assert((typeof scrollX !== 'undefined') && (typeof scrollY !== 'undefined'), 'Unable to retrieve scroll position, mouse positions likely broken.');
  2420. if (event.type === 'touchstart' || event.type === 'touchend' || event.type === 'touchmove') {
  2421. var touch = event.touch;
  2422. if (touch === undefined) {
  2423. return; // the "touch" property is only defined in SDL
  2424. }
  2425. var adjustedX = touch.pageX - (scrollX + rect.left);
  2426. var adjustedY = touch.pageY - (scrollY + rect.top);
  2427. adjustedX = adjustedX * (cw / rect.width);
  2428. adjustedY = adjustedY * (ch / rect.height);
  2429. var coords = { x: adjustedX, y: adjustedY };
  2430. if (event.type === 'touchstart') {
  2431. Browser.lastTouches[touch.identifier] = coords;
  2432. Browser.touches[touch.identifier] = coords;
  2433. } else if (event.type === 'touchend' || event.type === 'touchmove') {
  2434. var last = Browser.touches[touch.identifier];
  2435. if (!last) last = coords;
  2436. Browser.lastTouches[touch.identifier] = last;
  2437. Browser.touches[touch.identifier] = coords;
  2438. }
  2439. return;
  2440. }
  2441. var x = event.pageX - (scrollX + rect.left);
  2442. var y = event.pageY - (scrollY + rect.top);
  2443. // the canvas might be CSS-scaled compared to its backbuffer;
  2444. // SDL-using content will want mouse coordinates in terms
  2445. // of backbuffer units.
  2446. x = x * (cw / rect.width);
  2447. y = y * (ch / rect.height);
  2448. Browser.mouseMovementX = x - Browser.mouseX;
  2449. Browser.mouseMovementY = y - Browser.mouseY;
  2450. Browser.mouseX = x;
  2451. Browser.mouseY = y;
  2452. }
  2453. },asyncLoad:function (url, onload, onerror, noRunDep) {
  2454. var dep = !noRunDep ? getUniqueRunDependency('al ' + url) : '';
  2455. Module['readAsync'](url, function(arrayBuffer) {
  2456. assert(arrayBuffer, 'Loading data file "' + url + '" failed (no arrayBuffer).');
  2457. onload(new Uint8Array(arrayBuffer));
  2458. if (dep) removeRunDependency(dep);
  2459. }, function(event) {
  2460. if (onerror) {
  2461. onerror();
  2462. } else {
  2463. throw 'Loading data file "' + url + '" failed.';
  2464. }
  2465. });
  2466. if (dep) addRunDependency(dep);
  2467. },resizeListeners:[],updateResizeListeners:function () {
  2468. var canvas = Module['canvas'];
  2469. Browser.resizeListeners.forEach(function(listener) {
  2470. listener(canvas.width, canvas.height);
  2471. });
  2472. },setCanvasSize:function (width, height, noUpdates) {
  2473. var canvas = Module['canvas'];
  2474. Browser.updateCanvasDimensions(canvas, width, height);
  2475. if (!noUpdates) Browser.updateResizeListeners();
  2476. },windowedWidth:0,windowedHeight:0,setFullscreenCanvasSize:function () {
  2477. // check if SDL is available
  2478. if (typeof SDL != "undefined") {
  2479. var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)];
  2480. flags = flags | 0x00800000; // set SDL_FULLSCREEN flag
  2481. HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags
  2482. }
  2483. Browser.updateResizeListeners();
  2484. },setWindowedCanvasSize:function () {
  2485. // check if SDL is available
  2486. if (typeof SDL != "undefined") {
  2487. var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)];
  2488. flags = flags & ~0x00800000; // clear SDL_FULLSCREEN flag
  2489. HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags
  2490. }
  2491. Browser.updateResizeListeners();
  2492. },updateCanvasDimensions:function (canvas, wNative, hNative) {
  2493. if (wNative && hNative) {
  2494. canvas.widthNative = wNative;
  2495. canvas.heightNative = hNative;
  2496. } else {
  2497. wNative = canvas.widthNative;
  2498. hNative = canvas.heightNative;
  2499. }
  2500. var w = wNative;
  2501. var h = hNative;
  2502. if (Module['forcedAspectRatio'] && Module['forcedAspectRatio'] > 0) {
  2503. if (w/h < Module['forcedAspectRatio']) {
  2504. w = Math.round(h * Module['forcedAspectRatio']);
  2505. } else {
  2506. h = Math.round(w / Module['forcedAspectRatio']);
  2507. }
  2508. }
  2509. if (((document['fullscreenElement'] || document['mozFullScreenElement'] ||
  2510. document['msFullscreenElement'] || document['webkitFullscreenElement'] ||
  2511. document['webkitCurrentFullScreenElement']) === canvas.parentNode) && (typeof screen != 'undefined')) {
  2512. var factor = Math.min(screen.width / w, screen.height / h);
  2513. w = Math.round(w * factor);
  2514. h = Math.round(h * factor);
  2515. }
  2516. if (Browser.resizeCanvas) {
  2517. if (canvas.width != w) canvas.width = w;
  2518. if (canvas.height != h) canvas.height = h;
  2519. if (typeof canvas.style != 'undefined') {
  2520. canvas.style.removeProperty( "width");
  2521. canvas.style.removeProperty("height");
  2522. }
  2523. } else {
  2524. if (canvas.width != wNative) canvas.width = wNative;
  2525. if (canvas.height != hNative) canvas.height = hNative;
  2526. if (typeof canvas.style != 'undefined') {
  2527. if (w != wNative || h != hNative) {
  2528. canvas.style.setProperty( "width", w + "px", "important");
  2529. canvas.style.setProperty("height", h + "px", "important");
  2530. } else {
  2531. canvas.style.removeProperty( "width");
  2532. canvas.style.removeProperty("height");
  2533. }
  2534. }
  2535. }
  2536. },wgetRequests:{},nextWgetRequestHandle:0,getNextWgetRequestHandle:function () {
  2537. var handle = Browser.nextWgetRequestHandle;
  2538. Browser.nextWgetRequestHandle++;
  2539. return handle;
  2540. }};var GLFW={Window:function (id, width, height, title, monitor, share) {
  2541. this.id = id;
  2542. this.x = 0;
  2543. this.y = 0;
  2544. this.fullscreen = false; // Used to determine if app in fullscreen mode
  2545. this.storedX = 0; // Used to store X before fullscreen
  2546. this.storedY = 0; // Used to store Y before fullscreen
  2547. this.width = width;
  2548. this.height = height;
  2549. this.storedWidth = width; // Used to store width before fullscreen
  2550. this.storedHeight = height; // Used to store height before fullscreen
  2551. this.title = title;
  2552. this.monitor = monitor;
  2553. this.share = share;
  2554. this.attributes = GLFW.hints;
  2555. this.inputModes = {
  2556. 0x00033001:0x00034001, // GLFW_CURSOR (GLFW_CURSOR_NORMAL)
  2557. 0x00033002:0, // GLFW_STICKY_KEYS
  2558. 0x00033003:0, // GLFW_STICKY_MOUSE_BUTTONS
  2559. };
  2560. this.buttons = 0;
  2561. this.keys = new Array();
  2562. this.shouldClose = 0;
  2563. this.title = null;
  2564. this.windowPosFunc = null; // GLFWwindowposfun
  2565. this.windowSizeFunc = null; // GLFWwindowsizefun
  2566. this.windowCloseFunc = null; // GLFWwindowclosefun
  2567. this.windowRefreshFunc = null; // GLFWwindowrefreshfun
  2568. this.windowFocusFunc = null; // GLFWwindowfocusfun
  2569. this.windowIconifyFunc = null; // GLFWwindowiconifyfun
  2570. this.framebufferSizeFunc = null; // GLFWframebuffersizefun
  2571. this.mouseButtonFunc = null; // GLFWmousebuttonfun
  2572. this.cursorPosFunc = null; // GLFWcursorposfun
  2573. this.cursorEnterFunc = null; // GLFWcursorenterfun
  2574. this.scrollFunc = null; // GLFWscrollfun
  2575. this.keyFunc = null; // GLFWkeyfun
  2576. this.charFunc = null; // GLFWcharfun
  2577. this.userptr = null;
  2578. },WindowFromId:function (id) {
  2579. if (id <= 0 || !GLFW.windows) return null;
  2580. return GLFW.windows[id - 1];
  2581. },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) {
  2582. switch (keycode) {
  2583. // these keycodes are only defined for GLFW3, assume they are the same for GLFW2
  2584. case 0x20:return 32; // DOM_VK_SPACE -> GLFW_KEY_SPACE
  2585. case 0xDE:return 39; // DOM_VK_QUOTE -> GLFW_KEY_APOSTROPHE
  2586. case 0xBC:return 44; // DOM_VK_COMMA -> GLFW_KEY_COMMA
  2587. case 0xAD:return 45; // DOM_VK_HYPHEN_MINUS -> GLFW_KEY_MINUS
  2588. case 0xBD:return 45; // DOM_VK_MINUS -> GLFW_KEY_MINUS
  2589. case 0xBE:return 46; // DOM_VK_PERIOD -> GLFW_KEY_PERIOD
  2590. case 0xBF:return 47; // DOM_VK_SLASH -> GLFW_KEY_SLASH
  2591. case 0x30:return 48; // DOM_VK_0 -> GLFW_KEY_0
  2592. case 0x31:return 49; // DOM_VK_1 -> GLFW_KEY_1
  2593. case 0x32:return 50; // DOM_VK_2 -> GLFW_KEY_2
  2594. case 0x33:return 51; // DOM_VK_3 -> GLFW_KEY_3
  2595. case 0x34:return 52; // DOM_VK_4 -> GLFW_KEY_4
  2596. case 0x35:return 53; // DOM_VK_5 -> GLFW_KEY_5
  2597. case 0x36:return 54; // DOM_VK_6 -> GLFW_KEY_6
  2598. case 0x37:return 55; // DOM_VK_7 -> GLFW_KEY_7
  2599. case 0x38:return 56; // DOM_VK_8 -> GLFW_KEY_8
  2600. case 0x39:return 57; // DOM_VK_9 -> GLFW_KEY_9
  2601. case 0x3B:return 59; // DOM_VK_SEMICOLON -> GLFW_KEY_SEMICOLON
  2602. case 0x3D:return 61; // DOM_VK_EQUALS -> GLFW_KEY_EQUAL
  2603. case 0xBB:return 61; // DOM_VK_EQUALS -> GLFW_KEY_EQUAL
  2604. case 0x41:return 65; // DOM_VK_A -> GLFW_KEY_A
  2605. case 0x42:return 66; // DOM_VK_B -> GLFW_KEY_B
  2606. case 0x43:return 67; // DOM_VK_C -> GLFW_KEY_C
  2607. case 0x44:return 68; // DOM_VK_D -> GLFW_KEY_D
  2608. case 0x45:return 69; // DOM_VK_E -> GLFW_KEY_E
  2609. case 0x46:return 70; // DOM_VK_F -> GLFW_KEY_F
  2610. case 0x47:return 71; // DOM_VK_G -> GLFW_KEY_G
  2611. case 0x48:return 72; // DOM_VK_H -> GLFW_KEY_H
  2612. case 0x49:return 73; // DOM_VK_I -> GLFW_KEY_I
  2613. case 0x4A:return 74; // DOM_VK_J -> GLFW_KEY_J
  2614. case 0x4B:return 75; // DOM_VK_K -> GLFW_KEY_K
  2615. case 0x4C:return 76; // DOM_VK_L -> GLFW_KEY_L
  2616. case 0x4D:return 77; // DOM_VK_M -> GLFW_KEY_M
  2617. case 0x4E:return 78; // DOM_VK_N -> GLFW_KEY_N
  2618. case 0x4F:return 79; // DOM_VK_O -> GLFW_KEY_O
  2619. case 0x50:return 80; // DOM_VK_P -> GLFW_KEY_P
  2620. case 0x51:return 81; // DOM_VK_Q -> GLFW_KEY_Q
  2621. case 0x52:return 82; // DOM_VK_R -> GLFW_KEY_R
  2622. case 0x53:return 83; // DOM_VK_S -> GLFW_KEY_S
  2623. case 0x54:return 84; // DOM_VK_T -> GLFW_KEY_T
  2624. case 0x55:return 85; // DOM_VK_U -> GLFW_KEY_U
  2625. case 0x56:return 86; // DOM_VK_V -> GLFW_KEY_V
  2626. case 0x57:return 87; // DOM_VK_W -> GLFW_KEY_W
  2627. case 0x58:return 88; // DOM_VK_X -> GLFW_KEY_X
  2628. case 0x59:return 89; // DOM_VK_Y -> GLFW_KEY_Y
  2629. case 0x5a:return 90; // DOM_VK_Z -> GLFW_KEY_Z
  2630. case 0xDB:return 91; // DOM_VK_OPEN_BRACKET -> GLFW_KEY_LEFT_BRACKET
  2631. case 0xDC:return 92; // DOM_VK_BACKSLASH -> GLFW_KEY_BACKSLASH
  2632. case 0xDD:return 93; // DOM_VK_CLOSE_BRACKET -> GLFW_KEY_RIGHT_BRACKET
  2633. case 0xC0:return 94; // DOM_VK_BACK_QUOTE -> GLFW_KEY_GRAVE_ACCENT
  2634. case 0x1B:return 256; // DOM_VK_ESCAPE -> GLFW_KEY_ESCAPE
  2635. case 0x0D:return 257; // DOM_VK_RETURN -> GLFW_KEY_ENTER
  2636. case 0x09:return 258; // DOM_VK_TAB -> GLFW_KEY_TAB
  2637. case 0x08:return 259; // DOM_VK_BACK -> GLFW_KEY_BACKSPACE
  2638. case 0x2D:return 260; // DOM_VK_INSERT -> GLFW_KEY_INSERT
  2639. case 0x2E:return 261; // DOM_VK_DELETE -> GLFW_KEY_DELETE
  2640. case 0x27:return 262; // DOM_VK_RIGHT -> GLFW_KEY_RIGHT
  2641. case 0x25:return 263; // DOM_VK_LEFT -> GLFW_KEY_LEFT
  2642. case 0x28:return 264; // DOM_VK_DOWN -> GLFW_KEY_DOWN
  2643. case 0x26:return 265; // DOM_VK_UP -> GLFW_KEY_UP
  2644. case 0x21:return 266; // DOM_VK_PAGE_UP -> GLFW_KEY_PAGE_UP
  2645. case 0x22:return 267; // DOM_VK_PAGE_DOWN -> GLFW_KEY_PAGE_DOWN
  2646. case 0x24:return 268; // DOM_VK_HOME -> GLFW_KEY_HOME
  2647. case 0x23:return 269; // DOM_VK_END -> GLFW_KEY_END
  2648. case 0x14:return 280; // DOM_VK_CAPS_LOCK -> GLFW_KEY_CAPS_LOCK
  2649. case 0x91:return 281; // DOM_VK_SCROLL_LOCK -> GLFW_KEY_SCROLL_LOCK
  2650. case 0x90:return 282; // DOM_VK_NUM_LOCK -> GLFW_KEY_NUM_LOCK
  2651. case 0x2C:return 283; // DOM_VK_SNAPSHOT -> GLFW_KEY_PRINT_SCREEN
  2652. case 0x13:return 284; // DOM_VK_PAUSE -> GLFW_KEY_PAUSE
  2653. case 0x70:return 290; // DOM_VK_F1 -> GLFW_KEY_F1
  2654. case 0x71:return 291; // DOM_VK_F2 -> GLFW_KEY_F2
  2655. case 0x72:return 292; // DOM_VK_F3 -> GLFW_KEY_F3
  2656. case 0x73:return 293; // DOM_VK_F4 -> GLFW_KEY_F4
  2657. case 0x74:return 294; // DOM_VK_F5 -> GLFW_KEY_F5
  2658. case 0x75:return 295; // DOM_VK_F6 -> GLFW_KEY_F6
  2659. case 0x76:return 296; // DOM_VK_F7 -> GLFW_KEY_F7
  2660. case 0x77:return 297; // DOM_VK_F8 -> GLFW_KEY_F8
  2661. case 0x78:return 298; // DOM_VK_F9 -> GLFW_KEY_F9
  2662. case 0x79:return 299; // DOM_VK_F10 -> GLFW_KEY_F10
  2663. case 0x7A:return 300; // DOM_VK_F11 -> GLFW_KEY_F11
  2664. case 0x7B:return 301; // DOM_VK_F12 -> GLFW_KEY_F12
  2665. case 0x7C:return 302; // DOM_VK_F13 -> GLFW_KEY_F13
  2666. case 0x7D:return 303; // DOM_VK_F14 -> GLFW_KEY_F14
  2667. case 0x7E:return 304; // DOM_VK_F15 -> GLFW_KEY_F15
  2668. case 0x7F:return 305; // DOM_VK_F16 -> GLFW_KEY_F16
  2669. case 0x80:return 306; // DOM_VK_F17 -> GLFW_KEY_F17
  2670. case 0x81:return 307; // DOM_VK_F18 -> GLFW_KEY_F18
  2671. case 0x82:return 308; // DOM_VK_F19 -> GLFW_KEY_F19
  2672. case 0x83:return 309; // DOM_VK_F20 -> GLFW_KEY_F20
  2673. case 0x84:return 310; // DOM_VK_F21 -> GLFW_KEY_F21
  2674. case 0x85:return 311; // DOM_VK_F22 -> GLFW_KEY_F22
  2675. case 0x86:return 312; // DOM_VK_F23 -> GLFW_KEY_F23
  2676. case 0x87:return 313; // DOM_VK_F24 -> GLFW_KEY_F24
  2677. case 0x88:return 314; // 0x88 (not used?) -> GLFW_KEY_F25
  2678. case 0x60:return 320; // DOM_VK_NUMPAD0 -> GLFW_KEY_KP_0
  2679. case 0x61:return 321; // DOM_VK_NUMPAD1 -> GLFW_KEY_KP_1
  2680. case 0x62:return 322; // DOM_VK_NUMPAD2 -> GLFW_KEY_KP_2
  2681. case 0x63:return 323; // DOM_VK_NUMPAD3 -> GLFW_KEY_KP_3
  2682. case 0x64:return 324; // DOM_VK_NUMPAD4 -> GLFW_KEY_KP_4
  2683. case 0x65:return 325; // DOM_VK_NUMPAD5 -> GLFW_KEY_KP_5
  2684. case 0x66:return 326; // DOM_VK_NUMPAD6 -> GLFW_KEY_KP_6
  2685. case 0x67:return 327; // DOM_VK_NUMPAD7 -> GLFW_KEY_KP_7
  2686. case 0x68:return 328; // DOM_VK_NUMPAD8 -> GLFW_KEY_KP_8
  2687. case 0x69:return 329; // DOM_VK_NUMPAD9 -> GLFW_KEY_KP_9
  2688. case 0x6E:return 330; // DOM_VK_DECIMAL -> GLFW_KEY_KP_DECIMAL
  2689. case 0x6F:return 331; // DOM_VK_DIVIDE -> GLFW_KEY_KP_DIVIDE
  2690. case 0x6A:return 332; // DOM_VK_MULTIPLY -> GLFW_KEY_KP_MULTIPLY
  2691. case 0x6D:return 333; // DOM_VK_SUBTRACT -> GLFW_KEY_KP_SUBTRACT
  2692. case 0x6B:return 334; // DOM_VK_ADD -> GLFW_KEY_KP_ADD
  2693. // case 0x0D:return 335; // DOM_VK_RETURN -> GLFW_KEY_KP_ENTER (DOM_KEY_LOCATION_RIGHT)
  2694. // case 0x61:return 336; // DOM_VK_EQUALS -> GLFW_KEY_KP_EQUAL (DOM_KEY_LOCATION_RIGHT)
  2695. case 0x10:return 340; // DOM_VK_SHIFT -> GLFW_KEY_LEFT_SHIFT
  2696. case 0x11:return 341; // DOM_VK_CONTROL -> GLFW_KEY_LEFT_CONTROL
  2697. case 0x12:return 342; // DOM_VK_ALT -> GLFW_KEY_LEFT_ALT
  2698. case 0x5B:return 343; // DOM_VK_WIN -> GLFW_KEY_LEFT_SUPER
  2699. // case 0x10:return 344; // DOM_VK_SHIFT -> GLFW_KEY_RIGHT_SHIFT (DOM_KEY_LOCATION_RIGHT)
  2700. // case 0x11:return 345; // DOM_VK_CONTROL -> GLFW_KEY_RIGHT_CONTROL (DOM_KEY_LOCATION_RIGHT)
  2701. // case 0x12:return 346; // DOM_VK_ALT -> GLFW_KEY_RIGHT_ALT (DOM_KEY_LOCATION_RIGHT)
  2702. // case 0x5B:return 347; // DOM_VK_WIN -> GLFW_KEY_RIGHT_SUPER (DOM_KEY_LOCATION_RIGHT)
  2703. case 0x5D:return 348; // DOM_VK_CONTEXT_MENU -> GLFW_KEY_MENU
  2704. // XXX: GLFW_KEY_WORLD_1, GLFW_KEY_WORLD_2 what are these?
  2705. default:return -1; // GLFW_KEY_UNKNOWN
  2706. };
  2707. },getModBits:function (win) {
  2708. var mod = 0;
  2709. if (win.keys[340]) mod |= 0x0001; // GLFW_MOD_SHIFT
  2710. if (win.keys[341]) mod |= 0x0002; // GLFW_MOD_CONTROL
  2711. if (win.keys[342]) mod |= 0x0004; // GLFW_MOD_ALT
  2712. if (win.keys[343]) mod |= 0x0008; // GLFW_MOD_SUPER
  2713. return mod;
  2714. },onKeyPress:function (event) {
  2715. if (!GLFW.active || !GLFW.active.charFunc) return;
  2716. // correct unicode charCode is only available with onKeyPress event
  2717. var charCode = event.charCode;
  2718. if (charCode == 0 || (charCode >= 0x00 && charCode <= 0x1F)) return;
  2719. Module['dynCall_vii'](GLFW.active.charFunc, GLFW.active.id, charCode);
  2720. },onKeyChanged:function (event, status) {
  2721. if (!GLFW.active) return;
  2722. var key = GLFW.DOMToGLFWKeyCode(event.keyCode);
  2723. if (key == -1) return;
  2724. var repeat = status && GLFW.active.keys[key];
  2725. GLFW.active.keys[key] = status;
  2726. if (!GLFW.active.keyFunc) return;
  2727. if (repeat) status = 2; // GLFW_REPEAT
  2728. Module['dynCall_viiiii'](GLFW.active.keyFunc, GLFW.active.id, key, event.keyCode, status, GLFW.getModBits(GLFW.active));
  2729. },onKeydown:function (event) {
  2730. GLFW.onKeyChanged(event, 1); // GLFW_PRESS or GLFW_REPEAT
  2731. // This logic comes directly from the sdl implementation. We cannot
  2732. // call preventDefault on all keydown events otherwise onKeyPress will
  2733. // not get called
  2734. if (event.keyCode === 8 /* backspace */ || event.keyCode === 9 /* tab */) {
  2735. event.preventDefault();
  2736. }
  2737. },onKeyup:function (event) {
  2738. GLFW.onKeyChanged(event, 0); // GLFW_RELEASE
  2739. },onMousemove:function (event) {
  2740. if (!GLFW.active) return;
  2741. Browser.calculateMouseEvent(event);
  2742. if (event.target != Module["canvas"] || !GLFW.active.cursorPosFunc) return;
  2743. Module['dynCall_vidd'](GLFW.active.cursorPosFunc, GLFW.active.id, Browser.mouseX, Browser.mouseY);
  2744. },DOMToGLFWMouseButton:function (event) {
  2745. // DOM and glfw have different button codes.
  2746. // See http://www.w3schools.com/jsref/event_button.asp.
  2747. var eventButton = event['button'];
  2748. if (eventButton > 0) {
  2749. if (eventButton == 1) {
  2750. eventButton = 2;
  2751. } else {
  2752. eventButton = 1;
  2753. }
  2754. }
  2755. return eventButton;
  2756. },onMouseenter:function (event) {
  2757. if (!GLFW.active) return;
  2758. if (event.target != Module["canvas"] || !GLFW.active.cursorEnterFunc) return;
  2759. Module['dynCall_vii'](GLFW.active.cursorEnterFunc, GLFW.active.id, 1);
  2760. },onMouseleave:function (event) {
  2761. if (!GLFW.active) return;
  2762. if (event.target != Module["canvas"] || !GLFW.active.cursorEnterFunc) return;
  2763. Module['dynCall_vii'](GLFW.active.cursorEnterFunc, GLFW.active.id, 0);
  2764. },onMouseButtonChanged:function (event, status) {
  2765. if (!GLFW.active) return;
  2766. Browser.calculateMouseEvent(event);
  2767. if (event.target != Module["canvas"]) return;
  2768. eventButton = GLFW.DOMToGLFWMouseButton(event);
  2769. if (status == 1) { // GLFW_PRESS
  2770. GLFW.active.buttons |= (1 << eventButton);
  2771. try {
  2772. event.target.setCapture();
  2773. } catch (e) {}
  2774. } else { // GLFW_RELEASE
  2775. GLFW.active.buttons &= ~(1 << eventButton);
  2776. }
  2777. if (!GLFW.active.mouseButtonFunc) return;
  2778. Module['dynCall_viiii'](GLFW.active.mouseButtonFunc, GLFW.active.id, eventButton, status, GLFW.getModBits(GLFW.active));
  2779. },onMouseButtonDown:function (event) {
  2780. if (!GLFW.active) return;
  2781. GLFW.onMouseButtonChanged(event, 1); // GLFW_PRESS
  2782. },onMouseButtonUp:function (event) {
  2783. if (!GLFW.active) return;
  2784. GLFW.onMouseButtonChanged(event, 0); // GLFW_RELEASE
  2785. },onMouseWheel:function (event) {
  2786. // Note the minus sign that flips browser wheel direction (positive direction scrolls page down) to native wheel direction (positive direction is mouse wheel up)
  2787. var delta = -Browser.getMouseWheelDelta(event);
  2788. 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.
  2789. GLFW.wheelPos += delta;
  2790. if (!GLFW.active || !GLFW.active.scrollFunc || event.target != Module['canvas']) return;
  2791. var sx = 0;
  2792. var sy = 0;
  2793. if (event.type == 'mousewheel') {
  2794. sx = event.wheelDeltaX;
  2795. sy = event.wheelDeltaY;
  2796. } else {
  2797. sx = event.deltaX;
  2798. sy = event.deltaY;
  2799. }
  2800. Module['dynCall_vidd'](GLFW.active.scrollFunc, GLFW.active.id, sx, sy);
  2801. event.preventDefault();
  2802. },onCanvasResize:function (width, height) {
  2803. if (!GLFW.active) return;
  2804. var resizeNeeded = true;
  2805. // If the client is requestiong fullscreen mode
  2806. if (document["fullscreen"] || document["fullScreen"] || document["mozFullScreen"] || document["webkitIsFullScreen"]) {
  2807. GLFW.active.storedX = GLFW.active.x;
  2808. GLFW.active.storedY = GLFW.active.y;
  2809. GLFW.active.storedWidth = GLFW.active.width;
  2810. GLFW.active.storedHeight = GLFW.active.height;
  2811. GLFW.active.x = GLFW.active.y = 0;
  2812. GLFW.active.width = screen.width;
  2813. GLFW.active.height = screen.height;
  2814. GLFW.active.fullscreen = true;
  2815. // If the client is reverting from fullscreen mode
  2816. } else if (GLFW.active.fullscreen == true) {
  2817. GLFW.active.x = GLFW.active.storedX;
  2818. GLFW.active.y = GLFW.active.storedY;
  2819. GLFW.active.width = GLFW.active.storedWidth;
  2820. GLFW.active.height = GLFW.active.storedHeight;
  2821. GLFW.active.fullscreen = false;
  2822. // If the width/height values do not match current active window sizes
  2823. } else if (GLFW.active.width != width || GLFW.active.height != height) {
  2824. GLFW.active.width = width;
  2825. GLFW.active.height = height;
  2826. } else {
  2827. resizeNeeded = false;
  2828. }
  2829. // If any of the above conditions were true, we need to resize the canvas
  2830. if (resizeNeeded) {
  2831. // resets the canvas size to counter the aspect preservation of Browser.updateCanvasDimensions
  2832. Browser.setCanvasSize(GLFW.active.width, GLFW.active.height, true);
  2833. // TODO: Client dimensions (clientWidth/clientHeight) vs pixel dimensions (width/height) of
  2834. // the canvas should drive window and framebuffer size respectfully.
  2835. GLFW.onWindowSizeChanged();
  2836. GLFW.onFramebufferSizeChanged();
  2837. }
  2838. },onWindowSizeChanged:function () {
  2839. if (!GLFW.active) return;
  2840. if (!GLFW.active.windowSizeFunc) return;
  2841. Module['dynCall_viii'](GLFW.active.windowSizeFunc, GLFW.active.id, GLFW.active.width, GLFW.active.height);
  2842. },onFramebufferSizeChanged:function () {
  2843. if (!GLFW.active) return;
  2844. if (!GLFW.active.framebufferSizeFunc) return;
  2845. Module['dynCall_viii'](GLFW.active.framebufferSizeFunc, GLFW.active.id, GLFW.active.width, GLFW.active.height);
  2846. },requestFullscreen:function () {
  2847. var RFS = Module["canvas"]['requestFullscreen'] ||
  2848. Module["canvas"]['mozRequestFullScreen'] ||
  2849. Module["canvas"]['webkitRequestFullScreen'] ||
  2850. (function() {});
  2851. RFS.apply(Module["canvas"], []);
  2852. },requestFullScreen:function () {
  2853. Module.printErr('GLFW.requestFullScreen() is deprecated. Please call GLFW.requestFullscreen instead.');
  2854. GLFW.requestFullScreen = function() {
  2855. return GLFW.requestFullscreen();
  2856. }
  2857. return GLFW.requestFullscreen();
  2858. },exitFullscreen:function () {
  2859. var CFS = document['exitFullscreen'] ||
  2860. document['cancelFullScreen'] ||
  2861. document['mozCancelFullScreen'] ||
  2862. document['webkitCancelFullScreen'] ||
  2863. (function() {});
  2864. CFS.apply(document, []);
  2865. },cancelFullScreen:function () {
  2866. Module.printErr('GLFW.cancelFullScreen() is deprecated. Please call GLFW.exitFullscreen instead.');
  2867. GLFW.cancelFullScreen = function() {
  2868. return GLFW.exitFullscreen();
  2869. }
  2870. return GLFW.exitFullscreen();
  2871. },getTime:function () {
  2872. return _emscripten_get_now() / 1000;
  2873. },setWindowTitle:function (winid, title) {
  2874. var win = GLFW.WindowFromId(winid);
  2875. if (!win) return;
  2876. win.title = Pointer_stringify(title);
  2877. if (GLFW.active.id == win.id) {
  2878. document.title = win.title;
  2879. }
  2880. },setKeyCallback:function (winid, cbfun) {
  2881. var win = GLFW.WindowFromId(winid);
  2882. if (!win) return;
  2883. win.keyFunc = cbfun;
  2884. },setCharCallback:function (winid, cbfun) {
  2885. var win = GLFW.WindowFromId(winid);
  2886. if (!win) return;
  2887. win.charFunc = cbfun;
  2888. },setMouseButtonCallback:function (winid, cbfun) {
  2889. var win = GLFW.WindowFromId(winid);
  2890. if (!win) return;
  2891. win.mouseButtonFunc = cbfun;
  2892. },setCursorPosCallback:function (winid, cbfun) {
  2893. var win = GLFW.WindowFromId(winid);
  2894. if (!win) return;
  2895. win.cursorPosFunc = cbfun;
  2896. },setScrollCallback:function (winid, cbfun) {
  2897. var win = GLFW.WindowFromId(winid);
  2898. if (!win) return;
  2899. win.scrollFunc = cbfun;
  2900. },setWindowSizeCallback:function (winid, cbfun) {
  2901. var win = GLFW.WindowFromId(winid);
  2902. if (!win) return;
  2903. win.windowSizeFunc = cbfun;
  2904. },setWindowCloseCallback:function (winid, cbfun) {
  2905. var win = GLFW.WindowFromId(winid);
  2906. if (!win) return;
  2907. win.windowCloseFunc = cbfun;
  2908. },setWindowRefreshCallback:function (winid, cbfun) {
  2909. var win = GLFW.WindowFromId(winid);
  2910. if (!win) return;
  2911. win.windowRefreshFunc = cbfun;
  2912. },onClickRequestPointerLock:function (e) {
  2913. if (!Browser.pointerLock && Module['canvas'].requestPointerLock) {
  2914. Module['canvas'].requestPointerLock();
  2915. e.preventDefault();
  2916. }
  2917. },setInputMode:function (winid, mode, value) {
  2918. var win = GLFW.WindowFromId(winid);
  2919. if (!win) return;
  2920. switch(mode) {
  2921. case 0x00033001: { // GLFW_CURSOR
  2922. switch(value) {
  2923. case 0x00034001: { // GLFW_CURSOR_NORMAL
  2924. win.inputModes[mode] = value;
  2925. Module['canvas'].removeEventListener('click', GLFW.onClickRequestPointerLock, true);
  2926. Module['canvas'].exitPointerLock();
  2927. break;
  2928. }
  2929. case 0x00034002: { // GLFW_CURSOR_HIDDEN
  2930. console.log("glfwSetInputMode called with GLFW_CURSOR_HIDDEN value not implemented.");
  2931. break;
  2932. }
  2933. case 0x00034003: { // GLFW_CURSOR_DISABLED
  2934. win.inputModes[mode] = value;
  2935. Module['canvas'].addEventListener('click', GLFW.onClickRequestPointerLock, true);
  2936. Module['canvas'].requestPointerLock();
  2937. break;
  2938. }
  2939. default: {
  2940. console.log("glfwSetInputMode called with unknown value parameter value: " + value + ".");
  2941. break;
  2942. }
  2943. }
  2944. break;
  2945. }
  2946. case 0x00033002: { // GLFW_STICKY_KEYS
  2947. console.log("glfwSetInputMode called with GLFW_STICKY_KEYS mode not implemented.");
  2948. break;
  2949. }
  2950. case 0x00033003: { // GLFW_STICKY_MOUSE_BUTTONS
  2951. console.log("glfwSetInputMode called with GLFW_STICKY_MOUSE_BUTTONS mode not implemented.");
  2952. break;
  2953. }
  2954. default: {
  2955. console.log("glfwSetInputMode called with unknown mode parameter value: " + mode + ".");
  2956. break;
  2957. }
  2958. }
  2959. },getKey:function (winid, key) {
  2960. var win = GLFW.WindowFromId(winid);
  2961. if (!win) return 0;
  2962. return win.keys[key];
  2963. },getMouseButton:function (winid, button) {
  2964. var win = GLFW.WindowFromId(winid);
  2965. if (!win) return 0;
  2966. return (win.buttons & (1 << button)) > 0;
  2967. },getCursorPos:function (winid, x, y) {
  2968. setValue(x, Browser.mouseX, 'double');
  2969. setValue(y, Browser.mouseY, 'double');
  2970. },getMousePos:function (winid, x, y) {
  2971. setValue(x, Browser.mouseX, 'i32');
  2972. setValue(y, Browser.mouseY, 'i32');
  2973. },setCursorPos:function (winid, x, y) {
  2974. },getWindowPos:function (winid, x, y) {
  2975. var wx = 0;
  2976. var wy = 0;
  2977. var win = GLFW.WindowFromId(winid);
  2978. if (win) {
  2979. wx = win.x;
  2980. wy = win.y;
  2981. }
  2982. setValue(x, wx, 'i32');
  2983. setValue(y, wy, 'i32');
  2984. },setWindowPos:function (winid, x, y) {
  2985. var win = GLFW.WindowFromId(winid);
  2986. if (!win) return;
  2987. win.x = x;
  2988. win.y = y;
  2989. },getWindowSize:function (winid, width, height) {
  2990. var ww = 0;
  2991. var wh = 0;
  2992. var win = GLFW.WindowFromId(winid);
  2993. if (win) {
  2994. ww = win.width;
  2995. wh = win.height;
  2996. }
  2997. setValue(width, ww, 'i32');
  2998. setValue(height, wh, 'i32');
  2999. },setWindowSize:function (winid, width, height) {
  3000. var win = GLFW.WindowFromId(winid);
  3001. if (!win) return;
  3002. if (GLFW.active.id == win.id) {
  3003. if (width == screen.width && height == screen.height) {
  3004. GLFW.requestFullscreen();
  3005. } else {
  3006. GLFW.exitFullscreen();
  3007. Browser.setCanvasSize(width, height);
  3008. win.width = width;
  3009. win.height = height;
  3010. }
  3011. }
  3012. if (!win.windowSizeFunc) return;
  3013. Module['dynCall_viii'](win.windowSizeFunc, win.id, width, height);
  3014. },createWindow:function (width, height, title, monitor, share) {
  3015. var i, id;
  3016. for (i = 0; i < GLFW.windows.length && GLFW.windows[i] !== null; i++);
  3017. if (i > 0) throw "glfwCreateWindow only supports one window at time currently";
  3018. // id for window
  3019. id = i + 1;
  3020. // not valid
  3021. if (width <= 0 || height <= 0) return 0;
  3022. if (monitor) {
  3023. GLFW.requestFullscreen();
  3024. } else {
  3025. Browser.setCanvasSize(width, height);
  3026. }
  3027. // Create context when there are no existing alive windows
  3028. for (i = 0; i < GLFW.windows.length && GLFW.windows[i] == null; i++);
  3029. if (i == GLFW.windows.length) {
  3030. var contextAttributes = {
  3031. antialias: (GLFW.hints[0x0002100D] > 1), // GLFW_SAMPLES
  3032. depth: (GLFW.hints[0x00021005] > 0), // GLFW_DEPTH_BITS
  3033. stencil: (GLFW.hints[0x00021006] > 0), // GLFW_STENCIL_BITS
  3034. alpha: (GLFW.hints[0x00021004] > 0) // GLFW_ALPHA_BITS
  3035. }
  3036. Module.ctx = Browser.createContext(Module['canvas'], true, true, contextAttributes);
  3037. }
  3038. // If context creation failed, do not return a valid window
  3039. if (!Module.ctx) return 0;
  3040. // Get non alive id
  3041. var win = new GLFW.Window(id, width, height, title, monitor, share);
  3042. // Set window to array
  3043. if (id - 1 == GLFW.windows.length) {
  3044. GLFW.windows.push(win);
  3045. } else {
  3046. GLFW.windows[id - 1] = win;
  3047. }
  3048. GLFW.active = win;
  3049. return win.id;
  3050. },destroyWindow:function (winid) {
  3051. var win = GLFW.WindowFromId(winid);
  3052. if (!win) return;
  3053. if (win.windowCloseFunc)
  3054. Module['dynCall_vi'](win.windowCloseFunc, win.id);
  3055. GLFW.windows[win.id - 1] = null;
  3056. if (GLFW.active.id == win.id)
  3057. GLFW.active = null;
  3058. // Destroy context when no alive windows
  3059. for (var i = 0; i < GLFW.windows.length; i++)
  3060. if (GLFW.windows[i] !== null) return;
  3061. Module.ctx = Browser.destroyContext(Module['canvas'], true, true);
  3062. },swapBuffers:function (winid) {
  3063. },GLFW2ParamToGLFW3Param:function (param) {
  3064. table = {
  3065. 0x00030001:0, // GLFW_MOUSE_CURSOR
  3066. 0x00030002:0, // GLFW_STICKY_KEYS
  3067. 0x00030003:0, // GLFW_STICKY_MOUSE_BUTTONS
  3068. 0x00030004:0, // GLFW_SYSTEM_KEYS
  3069. 0x00030005:0, // GLFW_KEY_REPEAT
  3070. 0x00030006:0, // GLFW_AUTO_POLL_EVENTS
  3071. 0x00020001:0, // GLFW_OPENED
  3072. 0x00020002:0, // GLFW_ACTIVE
  3073. 0x00020003:0, // GLFW_ICONIFIED
  3074. 0x00020004:0, // GLFW_ACCELERATED
  3075. 0x00020005:0x00021001, // GLFW_RED_BITS
  3076. 0x00020006:0x00021002, // GLFW_GREEN_BITS
  3077. 0x00020007:0x00021003, // GLFW_BLUE_BITS
  3078. 0x00020008:0x00021004, // GLFW_ALPHA_BITS
  3079. 0x00020009:0x00021005, // GLFW_DEPTH_BITS
  3080. 0x0002000A:0x00021006, // GLFW_STENCIL_BITS
  3081. 0x0002000B:0x0002100F, // GLFW_REFRESH_RATE
  3082. 0x0002000C:0x00021007, // GLFW_ACCUM_RED_BITS
  3083. 0x0002000D:0x00021008, // GLFW_ACCUM_GREEN_BITS
  3084. 0x0002000E:0x00021009, // GLFW_ACCUM_BLUE_BITS
  3085. 0x0002000F:0x0002100A, // GLFW_ACCUM_ALPHA_BITS
  3086. 0x00020010:0x0002100B, // GLFW_AUX_BUFFERS
  3087. 0x00020011:0x0002100C, // GLFW_STEREO
  3088. 0x00020012:0, // GLFW_WINDOW_NO_RESIZE
  3089. 0x00020013:0x0002100D, // GLFW_FSAA_SAMPLES
  3090. 0x00020014:0x00022002, // GLFW_OPENGL_VERSION_MAJOR
  3091. 0x00020015:0x00022003, // GLFW_OPENGL_VERSION_MINOR
  3092. 0x00020016:0x00022006, // GLFW_OPENGL_FORWARD_COMPAT
  3093. 0x00020017:0x00022007, // GLFW_OPENGL_DEBUG_CONTEXT
  3094. 0x00020018:0x00022008, // GLFW_OPENGL_PROFILE
  3095. };
  3096. return table[param];
  3097. }};function _glfwGetVideoModes(monitor, count) {
  3098. setValue(count, 0, 'i32');
  3099. return 0;
  3100. }
  3101. function _glLinkProgram(program) {
  3102. GLctx.linkProgram(GL.programs[program]);
  3103. GL.programInfos[program] = null; // uniforms no longer keep the same names after linking
  3104. GL.populateUniformTable(program);
  3105. }
  3106. function _glBindTexture(target, texture) {
  3107. GLctx.bindTexture(target, texture ? GL.textures[texture] : null);
  3108. }
  3109. function _emscripten_glStencilFunc(x0, x1, x2) { GLctx['stencilFunc'](x0, x1, x2) }
  3110. function _glGetString(name_) {
  3111. if (GL.stringCache[name_]) return GL.stringCache[name_];
  3112. var ret;
  3113. switch(name_) {
  3114. case 0x1F00 /* GL_VENDOR */:
  3115. case 0x1F01 /* GL_RENDERER */:
  3116. case 0x9245 /* UNMASKED_VENDOR_WEBGL */:
  3117. case 0x9246 /* UNMASKED_RENDERER_WEBGL */:
  3118. ret = allocate(intArrayFromString(GLctx.getParameter(name_)), 'i8', ALLOC_NORMAL);
  3119. break;
  3120. case 0x1F02 /* GL_VERSION */:
  3121. var glVersion = GLctx.getParameter(GLctx.VERSION);
  3122. // return GLES version string corresponding to the version of the WebGL context
  3123. {
  3124. glVersion = 'OpenGL ES 2.0 (' + glVersion + ')';
  3125. }
  3126. ret = allocate(intArrayFromString(glVersion), 'i8', ALLOC_NORMAL);
  3127. break;
  3128. case 0x1F03 /* GL_EXTENSIONS */:
  3129. var exts = GLctx.getSupportedExtensions();
  3130. var gl_exts = [];
  3131. for (var i = 0; i < exts.length; ++i) {
  3132. gl_exts.push(exts[i]);
  3133. gl_exts.push("GL_" + exts[i]);
  3134. }
  3135. ret = allocate(intArrayFromString(gl_exts.join(' ')), 'i8', ALLOC_NORMAL);
  3136. break;
  3137. case 0x8B8C /* GL_SHADING_LANGUAGE_VERSION */:
  3138. var glslVersion = GLctx.getParameter(GLctx.SHADING_LANGUAGE_VERSION);
  3139. // extract the version number 'N.M' from the string 'WebGL GLSL ES N.M ...'
  3140. var ver_re = /^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/;
  3141. var ver_num = glslVersion.match(ver_re);
  3142. if (ver_num !== null) {
  3143. if (ver_num[1].length == 3) ver_num[1] = ver_num[1] + '0'; // ensure minor version has 2 digits
  3144. glslVersion = 'OpenGL ES GLSL ES ' + ver_num[1] + ' (' + glslVersion + ')';
  3145. }
  3146. ret = allocate(intArrayFromString(glslVersion), 'i8', ALLOC_NORMAL);
  3147. break;
  3148. default:
  3149. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  3150. return 0;
  3151. }
  3152. GL.stringCache[name_] = ret;
  3153. return ret;
  3154. }
  3155. function _emscripten_glUniform3iv(location, count, value) {
  3156. GLctx.uniform3iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*12)>>2));
  3157. }
  3158. function _emscripten_glShaderSource(shader, count, string, length) {
  3159. var source = GL.getSource(shader, count, string, length);
  3160. GLctx.shaderSource(GL.shaders[shader], source);
  3161. }
  3162. function _emscripten_glReleaseShaderCompiler() {
  3163. // NOP (as allowed by GLES 2.0 spec)
  3164. }
  3165. function _glfwSetScrollCallback(winid, cbfun) {
  3166. GLFW.setScrollCallback(winid, cbfun);
  3167. }
  3168. function _emscripten_glTexParameterf(x0, x1, x2) { GLctx['texParameterf'](x0, x1, x2) }
  3169. function _emscripten_glTexParameteri(x0, x1, x2) { GLctx['texParameteri'](x0, x1, x2) }
  3170. function _glCompileShader(shader) {
  3171. GLctx.compileShader(GL.shaders[shader]);
  3172. }
  3173. 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};
  3174. 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"};
  3175. function ___setErrNo(value) {
  3176. if (Module['___errno_location']) HEAP32[((Module['___errno_location']())>>2)]=value;
  3177. else Module.printErr('failed to set errno from JS');
  3178. return value;
  3179. }
  3180. var PATH={splitPath:function (filename) {
  3181. var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
  3182. return splitPathRe.exec(filename).slice(1);
  3183. },normalizeArray:function (parts, allowAboveRoot) {
  3184. // if the path tries to go above the root, `up` ends up > 0
  3185. var up = 0;
  3186. for (var i = parts.length - 1; i >= 0; i--) {
  3187. var last = parts[i];
  3188. if (last === '.') {
  3189. parts.splice(i, 1);
  3190. } else if (last === '..') {
  3191. parts.splice(i, 1);
  3192. up++;
  3193. } else if (up) {
  3194. parts.splice(i, 1);
  3195. up--;
  3196. }
  3197. }
  3198. // if the path is allowed to go above the root, restore leading ..s
  3199. if (allowAboveRoot) {
  3200. for (; up--; up) {
  3201. parts.unshift('..');
  3202. }
  3203. }
  3204. return parts;
  3205. },normalize:function (path) {
  3206. var isAbsolute = path.charAt(0) === '/',
  3207. trailingSlash = path.substr(-1) === '/';
  3208. // Normalize the path
  3209. path = PATH.normalizeArray(path.split('/').filter(function(p) {
  3210. return !!p;
  3211. }), !isAbsolute).join('/');
  3212. if (!path && !isAbsolute) {
  3213. path = '.';
  3214. }
  3215. if (path && trailingSlash) {
  3216. path += '/';
  3217. }
  3218. return (isAbsolute ? '/' : '') + path;
  3219. },dirname:function (path) {
  3220. var result = PATH.splitPath(path),
  3221. root = result[0],
  3222. dir = result[1];
  3223. if (!root && !dir) {
  3224. // No dirname whatsoever
  3225. return '.';
  3226. }
  3227. if (dir) {
  3228. // It has a dirname, strip trailing slash
  3229. dir = dir.substr(0, dir.length - 1);
  3230. }
  3231. return root + dir;
  3232. },basename:function (path) {
  3233. // EMSCRIPTEN return '/'' for '/', not an empty string
  3234. if (path === '/') return '/';
  3235. var lastSlash = path.lastIndexOf('/');
  3236. if (lastSlash === -1) return path;
  3237. return path.substr(lastSlash+1);
  3238. },extname:function (path) {
  3239. return PATH.splitPath(path)[3];
  3240. },join:function () {
  3241. var paths = Array.prototype.slice.call(arguments, 0);
  3242. return PATH.normalize(paths.join('/'));
  3243. },join2:function (l, r) {
  3244. return PATH.normalize(l + '/' + r);
  3245. },resolve:function () {
  3246. var resolvedPath = '',
  3247. resolvedAbsolute = false;
  3248. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  3249. var path = (i >= 0) ? arguments[i] : FS.cwd();
  3250. // Skip empty and invalid entries
  3251. if (typeof path !== 'string') {
  3252. throw new TypeError('Arguments to path.resolve must be strings');
  3253. } else if (!path) {
  3254. return ''; // an invalid portion invalidates the whole thing
  3255. }
  3256. resolvedPath = path + '/' + resolvedPath;
  3257. resolvedAbsolute = path.charAt(0) === '/';
  3258. }
  3259. // At this point the path should be resolved to a full absolute path, but
  3260. // handle relative paths to be safe (might happen when process.cwd() fails)
  3261. resolvedPath = PATH.normalizeArray(resolvedPath.split('/').filter(function(p) {
  3262. return !!p;
  3263. }), !resolvedAbsolute).join('/');
  3264. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  3265. },relative:function (from, to) {
  3266. from = PATH.resolve(from).substr(1);
  3267. to = PATH.resolve(to).substr(1);
  3268. function trim(arr) {
  3269. var start = 0;
  3270. for (; start < arr.length; start++) {
  3271. if (arr[start] !== '') break;
  3272. }
  3273. var end = arr.length - 1;
  3274. for (; end >= 0; end--) {
  3275. if (arr[end] !== '') break;
  3276. }
  3277. if (start > end) return [];
  3278. return arr.slice(start, end - start + 1);
  3279. }
  3280. var fromParts = trim(from.split('/'));
  3281. var toParts = trim(to.split('/'));
  3282. var length = Math.min(fromParts.length, toParts.length);
  3283. var samePartsLength = length;
  3284. for (var i = 0; i < length; i++) {
  3285. if (fromParts[i] !== toParts[i]) {
  3286. samePartsLength = i;
  3287. break;
  3288. }
  3289. }
  3290. var outputParts = [];
  3291. for (var i = samePartsLength; i < fromParts.length; i++) {
  3292. outputParts.push('..');
  3293. }
  3294. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  3295. return outputParts.join('/');
  3296. }};
  3297. var TTY={ttys:[],init:function () {
  3298. // https://github.com/kripken/emscripten/pull/1555
  3299. // if (ENVIRONMENT_IS_NODE) {
  3300. // // currently, FS.init does not distinguish if process.stdin is a file or TTY
  3301. // // device, it always assumes it's a TTY device. because of this, we're forcing
  3302. // // process.stdin to UTF8 encoding to at least make stdin reading compatible
  3303. // // with text files until FS.init can be refactored.
  3304. // process['stdin']['setEncoding']('utf8');
  3305. // }
  3306. },shutdown:function () {
  3307. // https://github.com/kripken/emscripten/pull/1555
  3308. // if (ENVIRONMENT_IS_NODE) {
  3309. // // inolen: any idea as to why node -e 'process.stdin.read()' wouldn't exit immediately (with process.stdin being a tty)?
  3310. // // 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
  3311. // // inolen: I thought read() in that case was a synchronous operation that just grabbed some amount of buffered data if it exists?
  3312. // // isaacs: it is. but it also triggers a _read() call, which calls readStart() on the handle
  3313. // // isaacs: do process.stdin.pause() and i'd think it'd probably close the pending call
  3314. // process['stdin']['pause']();
  3315. // }
  3316. },register:function (dev, ops) {
  3317. TTY.ttys[dev] = { input: [], output: [], ops: ops };
  3318. FS.registerDevice(dev, TTY.stream_ops);
  3319. },stream_ops:{open:function (stream) {
  3320. var tty = TTY.ttys[stream.node.rdev];
  3321. if (!tty) {
  3322. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3323. }
  3324. stream.tty = tty;
  3325. stream.seekable = false;
  3326. },close:function (stream) {
  3327. // flush any pending line data
  3328. stream.tty.ops.flush(stream.tty);
  3329. },flush:function (stream) {
  3330. stream.tty.ops.flush(stream.tty);
  3331. },read:function (stream, buffer, offset, length, pos /* ignored */) {
  3332. if (!stream.tty || !stream.tty.ops.get_char) {
  3333. throw new FS.ErrnoError(ERRNO_CODES.ENXIO);
  3334. }
  3335. var bytesRead = 0;
  3336. for (var i = 0; i < length; i++) {
  3337. var result;
  3338. try {
  3339. result = stream.tty.ops.get_char(stream.tty);
  3340. } catch (e) {
  3341. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  3342. }
  3343. if (result === undefined && bytesRead === 0) {
  3344. throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
  3345. }
  3346. if (result === null || result === undefined) break;
  3347. bytesRead++;
  3348. buffer[offset+i] = result;
  3349. }
  3350. if (bytesRead) {
  3351. stream.node.timestamp = Date.now();
  3352. }
  3353. return bytesRead;
  3354. },write:function (stream, buffer, offset, length, pos) {
  3355. if (!stream.tty || !stream.tty.ops.put_char) {
  3356. throw new FS.ErrnoError(ERRNO_CODES.ENXIO);
  3357. }
  3358. for (var i = 0; i < length; i++) {
  3359. try {
  3360. stream.tty.ops.put_char(stream.tty, buffer[offset+i]);
  3361. } catch (e) {
  3362. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  3363. }
  3364. }
  3365. if (length) {
  3366. stream.node.timestamp = Date.now();
  3367. }
  3368. return i;
  3369. }},default_tty_ops:{get_char:function (tty) {
  3370. if (!tty.input.length) {
  3371. var result = null;
  3372. if (ENVIRONMENT_IS_NODE) {
  3373. // we will read data by chunks of BUFSIZE
  3374. var BUFSIZE = 256;
  3375. var buf = new Buffer(BUFSIZE);
  3376. var bytesRead = 0;
  3377. var isPosixPlatform = (process.platform != 'win32'); // Node doesn't offer a direct check, so test by exclusion
  3378. var fd = process.stdin.fd;
  3379. if (isPosixPlatform) {
  3380. // Linux and Mac cannot use process.stdin.fd (which isn't set up as sync)
  3381. var usingDevice = false;
  3382. try {
  3383. fd = fs.openSync('/dev/stdin', 'r');
  3384. usingDevice = true;
  3385. } catch (e) {}
  3386. }
  3387. try {
  3388. bytesRead = fs.readSync(fd, buf, 0, BUFSIZE, null);
  3389. } catch(e) {
  3390. // Cross-platform differences: on Windows, reading EOF throws an exception, but on other OSes,
  3391. // reading EOF returns 0. Uniformize behavior by treating the EOF exception to return 0.
  3392. if (e.toString().indexOf('EOF') != -1) bytesRead = 0;
  3393. else throw e;
  3394. }
  3395. if (usingDevice) { fs.closeSync(fd); }
  3396. if (bytesRead > 0) {
  3397. result = buf.slice(0, bytesRead).toString('utf-8');
  3398. } else {
  3399. result = null;
  3400. }
  3401. } else if (typeof window != 'undefined' &&
  3402. typeof window.prompt == 'function') {
  3403. // Browser.
  3404. result = window.prompt('Input: '); // returns null on cancel
  3405. if (result !== null) {
  3406. result += '\n';
  3407. }
  3408. } else if (typeof readline == 'function') {
  3409. // Command line.
  3410. result = readline();
  3411. if (result !== null) {
  3412. result += '\n';
  3413. }
  3414. }
  3415. if (!result) {
  3416. return null;
  3417. }
  3418. tty.input = intArrayFromString(result, true);
  3419. }
  3420. return tty.input.shift();
  3421. },put_char:function (tty, val) {
  3422. if (val === null || val === 10) {
  3423. Module['print'](UTF8ArrayToString(tty.output, 0));
  3424. tty.output = [];
  3425. } else {
  3426. if (val != 0) tty.output.push(val); // val == 0 would cut text output off in the middle.
  3427. }
  3428. },flush:function (tty) {
  3429. if (tty.output && tty.output.length > 0) {
  3430. Module['print'](UTF8ArrayToString(tty.output, 0));
  3431. tty.output = [];
  3432. }
  3433. }},default_tty1_ops:{put_char:function (tty, val) {
  3434. if (val === null || val === 10) {
  3435. Module['printErr'](UTF8ArrayToString(tty.output, 0));
  3436. tty.output = [];
  3437. } else {
  3438. if (val != 0) tty.output.push(val);
  3439. }
  3440. },flush:function (tty) {
  3441. if (tty.output && tty.output.length > 0) {
  3442. Module['printErr'](UTF8ArrayToString(tty.output, 0));
  3443. tty.output = [];
  3444. }
  3445. }}};
  3446. var MEMFS={ops_table:null,mount:function (mount) {
  3447. return MEMFS.createNode(null, '/', 16384 | 511 /* 0777 */, 0);
  3448. },createNode:function (parent, name, mode, dev) {
  3449. if (FS.isBlkdev(mode) || FS.isFIFO(mode)) {
  3450. // no supported
  3451. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  3452. }
  3453. if (!MEMFS.ops_table) {
  3454. MEMFS.ops_table = {
  3455. dir: {
  3456. node: {
  3457. getattr: MEMFS.node_ops.getattr,
  3458. setattr: MEMFS.node_ops.setattr,
  3459. lookup: MEMFS.node_ops.lookup,
  3460. mknod: MEMFS.node_ops.mknod,
  3461. rename: MEMFS.node_ops.rename,
  3462. unlink: MEMFS.node_ops.unlink,
  3463. rmdir: MEMFS.node_ops.rmdir,
  3464. readdir: MEMFS.node_ops.readdir,
  3465. symlink: MEMFS.node_ops.symlink
  3466. },
  3467. stream: {
  3468. llseek: MEMFS.stream_ops.llseek
  3469. }
  3470. },
  3471. file: {
  3472. node: {
  3473. getattr: MEMFS.node_ops.getattr,
  3474. setattr: MEMFS.node_ops.setattr
  3475. },
  3476. stream: {
  3477. llseek: MEMFS.stream_ops.llseek,
  3478. read: MEMFS.stream_ops.read,
  3479. write: MEMFS.stream_ops.write,
  3480. allocate: MEMFS.stream_ops.allocate,
  3481. mmap: MEMFS.stream_ops.mmap,
  3482. msync: MEMFS.stream_ops.msync
  3483. }
  3484. },
  3485. link: {
  3486. node: {
  3487. getattr: MEMFS.node_ops.getattr,
  3488. setattr: MEMFS.node_ops.setattr,
  3489. readlink: MEMFS.node_ops.readlink
  3490. },
  3491. stream: {}
  3492. },
  3493. chrdev: {
  3494. node: {
  3495. getattr: MEMFS.node_ops.getattr,
  3496. setattr: MEMFS.node_ops.setattr
  3497. },
  3498. stream: FS.chrdev_stream_ops
  3499. }
  3500. };
  3501. }
  3502. var node = FS.createNode(parent, name, mode, dev);
  3503. if (FS.isDir(node.mode)) {
  3504. node.node_ops = MEMFS.ops_table.dir.node;
  3505. node.stream_ops = MEMFS.ops_table.dir.stream;
  3506. node.contents = {};
  3507. } else if (FS.isFile(node.mode)) {
  3508. node.node_ops = MEMFS.ops_table.file.node;
  3509. node.stream_ops = MEMFS.ops_table.file.stream;
  3510. node.usedBytes = 0; // The actual number of bytes used in the typed array, as opposed to contents.length which gives the whole capacity.
  3511. // 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
  3512. // for performance, and used by default. However, typed arrays are not resizable like normal JS arrays are, so there is a small disk size
  3513. // penalty involved for appending file writes that continuously grow a file similar to std::vector capacity vs used -scheme.
  3514. node.contents = null;
  3515. } else if (FS.isLink(node.mode)) {
  3516. node.node_ops = MEMFS.ops_table.link.node;
  3517. node.stream_ops = MEMFS.ops_table.link.stream;
  3518. } else if (FS.isChrdev(node.mode)) {
  3519. node.node_ops = MEMFS.ops_table.chrdev.node;
  3520. node.stream_ops = MEMFS.ops_table.chrdev.stream;
  3521. }
  3522. node.timestamp = Date.now();
  3523. // add the new node to the parent
  3524. if (parent) {
  3525. parent.contents[name] = node;
  3526. }
  3527. return node;
  3528. },getFileDataAsRegularArray:function (node) {
  3529. if (node.contents && node.contents.subarray) {
  3530. var arr = [];
  3531. for (var i = 0; i < node.usedBytes; ++i) arr.push(node.contents[i]);
  3532. return arr; // Returns a copy of the original data.
  3533. }
  3534. return node.contents; // No-op, the file contents are already in a JS array. Return as-is.
  3535. },getFileDataAsTypedArray:function (node) {
  3536. if (!node.contents) return new Uint8Array;
  3537. if (node.contents.subarray) return node.contents.subarray(0, node.usedBytes); // Make sure to not return excess unused bytes.
  3538. return new Uint8Array(node.contents);
  3539. },expandFileStorage:function (node, newCapacity) {
  3540. // 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
  3541. // instead of a typed array. This makes resizing the array more flexible because we can just .push() elements at the back to
  3542. // increase the size.
  3543. if (node.contents && node.contents.subarray && newCapacity > node.contents.length) {
  3544. node.contents = MEMFS.getFileDataAsRegularArray(node);
  3545. node.usedBytes = node.contents.length; // We might be writing to a lazy-loaded file which had overridden this property, so force-reset it.
  3546. }
  3547. 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.
  3548. var prevCapacity = node.contents ? node.contents.length : 0;
  3549. if (prevCapacity >= newCapacity) return; // No need to expand, the storage was already large enough.
  3550. // Don't expand strictly to the given requested limit if it's only a very small increase, but instead geometrically grow capacity.
  3551. // For small filesizes (<1MB), perform size*2 geometric increase, but for large sizes, do a much more conservative size*1.125 increase to
  3552. // avoid overshooting the allocation cap by a very large margin.
  3553. var CAPACITY_DOUBLING_MAX = 1024 * 1024;
  3554. newCapacity = Math.max(newCapacity, (prevCapacity * (prevCapacity < CAPACITY_DOUBLING_MAX ? 2.0 : 1.125)) | 0);
  3555. if (prevCapacity != 0) newCapacity = Math.max(newCapacity, 256); // At minimum allocate 256b for each file when expanding.
  3556. var oldContents = node.contents;
  3557. node.contents = new Uint8Array(newCapacity); // Allocate new storage.
  3558. if (node.usedBytes > 0) node.contents.set(oldContents.subarray(0, node.usedBytes), 0); // Copy old data over to the new storage.
  3559. return;
  3560. }
  3561. // Not using a typed array to back the file storage. Use a standard JS array instead.
  3562. if (!node.contents && newCapacity > 0) node.contents = [];
  3563. while (node.contents.length < newCapacity) node.contents.push(0);
  3564. },resizeFileStorage:function (node, newSize) {
  3565. if (node.usedBytes == newSize) return;
  3566. if (newSize == 0) {
  3567. node.contents = null; // Fully decommit when requesting a resize to zero.
  3568. node.usedBytes = 0;
  3569. return;
  3570. }
  3571. if (!node.contents || node.contents.subarray) { // Resize a typed array if that is being used as the backing store.
  3572. var oldContents = node.contents;
  3573. node.contents = new Uint8Array(new ArrayBuffer(newSize)); // Allocate new storage.
  3574. if (oldContents) {
  3575. node.contents.set(oldContents.subarray(0, Math.min(newSize, node.usedBytes))); // Copy old data over to the new storage.
  3576. }
  3577. node.usedBytes = newSize;
  3578. return;
  3579. }
  3580. // Backing with a JS array.
  3581. if (!node.contents) node.contents = [];
  3582. if (node.contents.length > newSize) node.contents.length = newSize;
  3583. else while (node.contents.length < newSize) node.contents.push(0);
  3584. node.usedBytes = newSize;
  3585. },node_ops:{getattr:function (node) {
  3586. var attr = {};
  3587. // device numbers reuse inode numbers.
  3588. attr.dev = FS.isChrdev(node.mode) ? node.id : 1;
  3589. attr.ino = node.id;
  3590. attr.mode = node.mode;
  3591. attr.nlink = 1;
  3592. attr.uid = 0;
  3593. attr.gid = 0;
  3594. attr.rdev = node.rdev;
  3595. if (FS.isDir(node.mode)) {
  3596. attr.size = 4096;
  3597. } else if (FS.isFile(node.mode)) {
  3598. attr.size = node.usedBytes;
  3599. } else if (FS.isLink(node.mode)) {
  3600. attr.size = node.link.length;
  3601. } else {
  3602. attr.size = 0;
  3603. }
  3604. attr.atime = new Date(node.timestamp);
  3605. attr.mtime = new Date(node.timestamp);
  3606. attr.ctime = new Date(node.timestamp);
  3607. // NOTE: In our implementation, st_blocks = Math.ceil(st_size/st_blksize),
  3608. // but this is not required by the standard.
  3609. attr.blksize = 4096;
  3610. attr.blocks = Math.ceil(attr.size / attr.blksize);
  3611. return attr;
  3612. },setattr:function (node, attr) {
  3613. if (attr.mode !== undefined) {
  3614. node.mode = attr.mode;
  3615. }
  3616. if (attr.timestamp !== undefined) {
  3617. node.timestamp = attr.timestamp;
  3618. }
  3619. if (attr.size !== undefined) {
  3620. MEMFS.resizeFileStorage(node, attr.size);
  3621. }
  3622. },lookup:function (parent, name) {
  3623. throw FS.genericErrors[ERRNO_CODES.ENOENT];
  3624. },mknod:function (parent, name, mode, dev) {
  3625. return MEMFS.createNode(parent, name, mode, dev);
  3626. },rename:function (old_node, new_dir, new_name) {
  3627. // if we're overwriting a directory at new_name, make sure it's empty.
  3628. if (FS.isDir(old_node.mode)) {
  3629. var new_node;
  3630. try {
  3631. new_node = FS.lookupNode(new_dir, new_name);
  3632. } catch (e) {
  3633. }
  3634. if (new_node) {
  3635. for (var i in new_node.contents) {
  3636. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  3637. }
  3638. }
  3639. }
  3640. // do the internal rewiring
  3641. delete old_node.parent.contents[old_node.name];
  3642. old_node.name = new_name;
  3643. new_dir.contents[new_name] = old_node;
  3644. old_node.parent = new_dir;
  3645. },unlink:function (parent, name) {
  3646. delete parent.contents[name];
  3647. },rmdir:function (parent, name) {
  3648. var node = FS.lookupNode(parent, name);
  3649. for (var i in node.contents) {
  3650. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  3651. }
  3652. delete parent.contents[name];
  3653. },readdir:function (node) {
  3654. var entries = ['.', '..']
  3655. for (var key in node.contents) {
  3656. if (!node.contents.hasOwnProperty(key)) {
  3657. continue;
  3658. }
  3659. entries.push(key);
  3660. }
  3661. return entries;
  3662. },symlink:function (parent, newname, oldpath) {
  3663. var node = MEMFS.createNode(parent, newname, 511 /* 0777 */ | 40960, 0);
  3664. node.link = oldpath;
  3665. return node;
  3666. },readlink:function (node) {
  3667. if (!FS.isLink(node.mode)) {
  3668. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3669. }
  3670. return node.link;
  3671. }},stream_ops:{read:function (stream, buffer, offset, length, position) {
  3672. var contents = stream.node.contents;
  3673. if (position >= stream.node.usedBytes) return 0;
  3674. var size = Math.min(stream.node.usedBytes - position, length);
  3675. assert(size >= 0);
  3676. if (size > 8 && contents.subarray) { // non-trivial, and typed array
  3677. buffer.set(contents.subarray(position, position + size), offset);
  3678. } else {
  3679. for (var i = 0; i < size; i++) buffer[offset + i] = contents[position + i];
  3680. }
  3681. return size;
  3682. },write:function (stream, buffer, offset, length, position, canOwn) {
  3683. if (!length) return 0;
  3684. var node = stream.node;
  3685. node.timestamp = Date.now();
  3686. if (buffer.subarray && (!node.contents || node.contents.subarray)) { // This write is from a typed array to a typed array?
  3687. if (canOwn) {
  3688. assert(position === 0, 'canOwn must imply no weird position inside the file');
  3689. node.contents = buffer.subarray(offset, offset + length);
  3690. node.usedBytes = length;
  3691. return length;
  3692. } 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.
  3693. node.contents = new Uint8Array(buffer.subarray(offset, offset + length));
  3694. node.usedBytes = length;
  3695. return length;
  3696. } else if (position + length <= node.usedBytes) { // Writing to an already allocated and used subrange of the file?
  3697. node.contents.set(buffer.subarray(offset, offset + length), position);
  3698. return length;
  3699. }
  3700. }
  3701. // Appending to an existing file and we need to reallocate, or source data did not come as a typed array.
  3702. MEMFS.expandFileStorage(node, position+length);
  3703. if (node.contents.subarray && buffer.subarray) node.contents.set(buffer.subarray(offset, offset + length), position); // Use typed array write if available.
  3704. else {
  3705. for (var i = 0; i < length; i++) {
  3706. node.contents[position + i] = buffer[offset + i]; // Or fall back to manual write if not.
  3707. }
  3708. }
  3709. node.usedBytes = Math.max(node.usedBytes, position+length);
  3710. return length;
  3711. },llseek:function (stream, offset, whence) {
  3712. var position = offset;
  3713. if (whence === 1) { // SEEK_CUR.
  3714. position += stream.position;
  3715. } else if (whence === 2) { // SEEK_END.
  3716. if (FS.isFile(stream.node.mode)) {
  3717. position += stream.node.usedBytes;
  3718. }
  3719. }
  3720. if (position < 0) {
  3721. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3722. }
  3723. return position;
  3724. },allocate:function (stream, offset, length) {
  3725. MEMFS.expandFileStorage(stream.node, offset + length);
  3726. stream.node.usedBytes = Math.max(stream.node.usedBytes, offset + length);
  3727. },mmap:function (stream, buffer, offset, length, position, prot, flags) {
  3728. if (!FS.isFile(stream.node.mode)) {
  3729. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3730. }
  3731. var ptr;
  3732. var allocated;
  3733. var contents = stream.node.contents;
  3734. // Only make a new copy when MAP_PRIVATE is specified.
  3735. if ( !(flags & 2) &&
  3736. (contents.buffer === buffer || contents.buffer === buffer.buffer) ) {
  3737. // We can't emulate MAP_SHARED when the file is not backed by the buffer
  3738. // we're mapping to (e.g. the HEAP buffer).
  3739. allocated = false;
  3740. ptr = contents.byteOffset;
  3741. } else {
  3742. // Try to avoid unnecessary slices.
  3743. if (position > 0 || position + length < stream.node.usedBytes) {
  3744. if (contents.subarray) {
  3745. contents = contents.subarray(position, position + length);
  3746. } else {
  3747. contents = Array.prototype.slice.call(contents, position, position + length);
  3748. }
  3749. }
  3750. allocated = true;
  3751. ptr = _malloc(length);
  3752. if (!ptr) {
  3753. throw new FS.ErrnoError(ERRNO_CODES.ENOMEM);
  3754. }
  3755. buffer.set(contents, ptr);
  3756. }
  3757. return { ptr: ptr, allocated: allocated };
  3758. },msync:function (stream, buffer, offset, length, mmapFlags) {
  3759. if (!FS.isFile(stream.node.mode)) {
  3760. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3761. }
  3762. if (mmapFlags & 2) {
  3763. // MAP_PRIVATE calls need not to be synced back to underlying fs
  3764. return 0;
  3765. }
  3766. var bytesWritten = MEMFS.stream_ops.write(stream, buffer, 0, length, offset, false);
  3767. // should we check if bytesWritten and length are the same?
  3768. return 0;
  3769. }}};
  3770. var IDBFS={dbs:{},indexedDB:function () {
  3771. if (typeof indexedDB !== 'undefined') return indexedDB;
  3772. var ret = null;
  3773. if (typeof window === 'object') ret = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
  3774. assert(ret, 'IDBFS used, but indexedDB not supported');
  3775. return ret;
  3776. },DB_VERSION:21,DB_STORE_NAME:"FILE_DATA",mount:function (mount) {
  3777. // reuse all of the core MEMFS functionality
  3778. return MEMFS.mount.apply(null, arguments);
  3779. },syncfs:function (mount, populate, callback) {
  3780. IDBFS.getLocalSet(mount, function(err, local) {
  3781. if (err) return callback(err);
  3782. IDBFS.getRemoteSet(mount, function(err, remote) {
  3783. if (err) return callback(err);
  3784. var src = populate ? remote : local;
  3785. var dst = populate ? local : remote;
  3786. IDBFS.reconcile(src, dst, callback);
  3787. });
  3788. });
  3789. },getDB:function (name, callback) {
  3790. // check the cache first
  3791. var db = IDBFS.dbs[name];
  3792. if (db) {
  3793. return callback(null, db);
  3794. }
  3795. var req;
  3796. try {
  3797. req = IDBFS.indexedDB().open(name, IDBFS.DB_VERSION);
  3798. } catch (e) {
  3799. return callback(e);
  3800. }
  3801. if (!req) {
  3802. return callback("Unable to connect to IndexedDB");
  3803. }
  3804. req.onupgradeneeded = function(e) {
  3805. var db = e.target.result;
  3806. var transaction = e.target.transaction;
  3807. var fileStore;
  3808. if (db.objectStoreNames.contains(IDBFS.DB_STORE_NAME)) {
  3809. fileStore = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3810. } else {
  3811. fileStore = db.createObjectStore(IDBFS.DB_STORE_NAME);
  3812. }
  3813. if (!fileStore.indexNames.contains('timestamp')) {
  3814. fileStore.createIndex('timestamp', 'timestamp', { unique: false });
  3815. }
  3816. };
  3817. req.onsuccess = function() {
  3818. db = req.result;
  3819. // add to the cache
  3820. IDBFS.dbs[name] = db;
  3821. callback(null, db);
  3822. };
  3823. req.onerror = function(e) {
  3824. callback(this.error);
  3825. e.preventDefault();
  3826. };
  3827. },getLocalSet:function (mount, callback) {
  3828. var entries = {};
  3829. function isRealDir(p) {
  3830. return p !== '.' && p !== '..';
  3831. };
  3832. function toAbsolute(root) {
  3833. return function(p) {
  3834. return PATH.join2(root, p);
  3835. }
  3836. };
  3837. var check = FS.readdir(mount.mountpoint).filter(isRealDir).map(toAbsolute(mount.mountpoint));
  3838. while (check.length) {
  3839. var path = check.pop();
  3840. var stat;
  3841. try {
  3842. stat = FS.stat(path);
  3843. } catch (e) {
  3844. return callback(e);
  3845. }
  3846. if (FS.isDir(stat.mode)) {
  3847. check.push.apply(check, FS.readdir(path).filter(isRealDir).map(toAbsolute(path)));
  3848. }
  3849. entries[path] = { timestamp: stat.mtime };
  3850. }
  3851. return callback(null, { type: 'local', entries: entries });
  3852. },getRemoteSet:function (mount, callback) {
  3853. var entries = {};
  3854. IDBFS.getDB(mount.mountpoint, function(err, db) {
  3855. if (err) return callback(err);
  3856. var transaction = db.transaction([IDBFS.DB_STORE_NAME], 'readonly');
  3857. transaction.onerror = function(e) {
  3858. callback(this.error);
  3859. e.preventDefault();
  3860. };
  3861. var store = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3862. var index = store.index('timestamp');
  3863. index.openKeyCursor().onsuccess = function(event) {
  3864. var cursor = event.target.result;
  3865. if (!cursor) {
  3866. return callback(null, { type: 'remote', db: db, entries: entries });
  3867. }
  3868. entries[cursor.primaryKey] = { timestamp: cursor.key };
  3869. cursor.continue();
  3870. };
  3871. });
  3872. },loadLocalEntry:function (path, callback) {
  3873. var stat, node;
  3874. try {
  3875. var lookup = FS.lookupPath(path);
  3876. node = lookup.node;
  3877. stat = FS.stat(path);
  3878. } catch (e) {
  3879. return callback(e);
  3880. }
  3881. if (FS.isDir(stat.mode)) {
  3882. return callback(null, { timestamp: stat.mtime, mode: stat.mode });
  3883. } else if (FS.isFile(stat.mode)) {
  3884. // Performance consideration: storing a normal JavaScript array to a IndexedDB is much slower than storing a typed array.
  3885. // Therefore always convert the file contents to a typed array first before writing the data to IndexedDB.
  3886. node.contents = MEMFS.getFileDataAsTypedArray(node);
  3887. return callback(null, { timestamp: stat.mtime, mode: stat.mode, contents: node.contents });
  3888. } else {
  3889. return callback(new Error('node type not supported'));
  3890. }
  3891. },storeLocalEntry:function (path, entry, callback) {
  3892. try {
  3893. if (FS.isDir(entry.mode)) {
  3894. FS.mkdir(path, entry.mode);
  3895. } else if (FS.isFile(entry.mode)) {
  3896. FS.writeFile(path, entry.contents, { encoding: 'binary', canOwn: true });
  3897. } else {
  3898. return callback(new Error('node type not supported'));
  3899. }
  3900. FS.chmod(path, entry.mode);
  3901. FS.utime(path, entry.timestamp, entry.timestamp);
  3902. } catch (e) {
  3903. return callback(e);
  3904. }
  3905. callback(null);
  3906. },removeLocalEntry:function (path, callback) {
  3907. try {
  3908. var lookup = FS.lookupPath(path);
  3909. var stat = FS.stat(path);
  3910. if (FS.isDir(stat.mode)) {
  3911. FS.rmdir(path);
  3912. } else if (FS.isFile(stat.mode)) {
  3913. FS.unlink(path);
  3914. }
  3915. } catch (e) {
  3916. return callback(e);
  3917. }
  3918. callback(null);
  3919. },loadRemoteEntry:function (store, path, callback) {
  3920. var req = store.get(path);
  3921. req.onsuccess = function(event) { callback(null, event.target.result); };
  3922. req.onerror = function(e) {
  3923. callback(this.error);
  3924. e.preventDefault();
  3925. };
  3926. },storeRemoteEntry:function (store, path, entry, callback) {
  3927. var req = store.put(entry, path);
  3928. req.onsuccess = function() { callback(null); };
  3929. req.onerror = function(e) {
  3930. callback(this.error);
  3931. e.preventDefault();
  3932. };
  3933. },removeRemoteEntry:function (store, path, callback) {
  3934. var req = store.delete(path);
  3935. req.onsuccess = function() { callback(null); };
  3936. req.onerror = function(e) {
  3937. callback(this.error);
  3938. e.preventDefault();
  3939. };
  3940. },reconcile:function (src, dst, callback) {
  3941. var total = 0;
  3942. var create = [];
  3943. Object.keys(src.entries).forEach(function (key) {
  3944. var e = src.entries[key];
  3945. var e2 = dst.entries[key];
  3946. if (!e2 || e.timestamp > e2.timestamp) {
  3947. create.push(key);
  3948. total++;
  3949. }
  3950. });
  3951. var remove = [];
  3952. Object.keys(dst.entries).forEach(function (key) {
  3953. var e = dst.entries[key];
  3954. var e2 = src.entries[key];
  3955. if (!e2) {
  3956. remove.push(key);
  3957. total++;
  3958. }
  3959. });
  3960. if (!total) {
  3961. return callback(null);
  3962. }
  3963. var errored = false;
  3964. var completed = 0;
  3965. var db = src.type === 'remote' ? src.db : dst.db;
  3966. var transaction = db.transaction([IDBFS.DB_STORE_NAME], 'readwrite');
  3967. var store = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3968. function done(err) {
  3969. if (err) {
  3970. if (!done.errored) {
  3971. done.errored = true;
  3972. return callback(err);
  3973. }
  3974. return;
  3975. }
  3976. if (++completed >= total) {
  3977. return callback(null);
  3978. }
  3979. };
  3980. transaction.onerror = function(e) {
  3981. done(this.error);
  3982. e.preventDefault();
  3983. };
  3984. // sort paths in ascending order so directory entries are created
  3985. // before the files inside them
  3986. create.sort().forEach(function (path) {
  3987. if (dst.type === 'local') {
  3988. IDBFS.loadRemoteEntry(store, path, function (err, entry) {
  3989. if (err) return done(err);
  3990. IDBFS.storeLocalEntry(path, entry, done);
  3991. });
  3992. } else {
  3993. IDBFS.loadLocalEntry(path, function (err, entry) {
  3994. if (err) return done(err);
  3995. IDBFS.storeRemoteEntry(store, path, entry, done);
  3996. });
  3997. }
  3998. });
  3999. // sort paths in descending order so files are deleted before their
  4000. // parent directories
  4001. remove.sort().reverse().forEach(function(path) {
  4002. if (dst.type === 'local') {
  4003. IDBFS.removeLocalEntry(path, done);
  4004. } else {
  4005. IDBFS.removeRemoteEntry(store, path, done);
  4006. }
  4007. });
  4008. }};
  4009. var NODEFS={isWindows:false,staticInit:function () {
  4010. NODEFS.isWindows = !!process.platform.match(/^win/);
  4011. },mount:function (mount) {
  4012. assert(ENVIRONMENT_IS_NODE);
  4013. return NODEFS.createNode(null, '/', NODEFS.getMode(mount.opts.root), 0);
  4014. },createNode:function (parent, name, mode, dev) {
  4015. if (!FS.isDir(mode) && !FS.isFile(mode) && !FS.isLink(mode)) {
  4016. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4017. }
  4018. var node = FS.createNode(parent, name, mode);
  4019. node.node_ops = NODEFS.node_ops;
  4020. node.stream_ops = NODEFS.stream_ops;
  4021. return node;
  4022. },getMode:function (path) {
  4023. var stat;
  4024. try {
  4025. stat = fs.lstatSync(path);
  4026. if (NODEFS.isWindows) {
  4027. // On Windows, directories return permission bits 'rw-rw-rw-', even though they have 'rwxrwxrwx', so
  4028. // propagate write bits to execute bits.
  4029. stat.mode = stat.mode | ((stat.mode & 146) >> 1);
  4030. }
  4031. } catch (e) {
  4032. if (!e.code) throw e;
  4033. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4034. }
  4035. return stat.mode;
  4036. },realPath:function (node) {
  4037. var parts = [];
  4038. while (node.parent !== node) {
  4039. parts.push(node.name);
  4040. node = node.parent;
  4041. }
  4042. parts.push(node.mount.opts.root);
  4043. parts.reverse();
  4044. return PATH.join.apply(null, parts);
  4045. },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) {
  4046. flags &= ~0x200000 /*O_PATH*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  4047. flags &= ~0x800 /*O_NONBLOCK*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  4048. flags &= ~0x8000 /*O_LARGEFILE*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  4049. flags &= ~0x80000 /*O_CLOEXEC*/; // Some applications may pass it; it makes no sense for a single process.
  4050. if (flags in NODEFS.flagsToPermissionStringMap) {
  4051. return NODEFS.flagsToPermissionStringMap[flags];
  4052. } else {
  4053. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4054. }
  4055. },node_ops:{getattr:function (node) {
  4056. var path = NODEFS.realPath(node);
  4057. var stat;
  4058. try {
  4059. stat = fs.lstatSync(path);
  4060. } catch (e) {
  4061. if (!e.code) throw e;
  4062. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4063. }
  4064. // node.js v0.10.20 doesn't report blksize and blocks on Windows. Fake them with default blksize of 4096.
  4065. // See http://support.microsoft.com/kb/140365
  4066. if (NODEFS.isWindows && !stat.blksize) {
  4067. stat.blksize = 4096;
  4068. }
  4069. if (NODEFS.isWindows && !stat.blocks) {
  4070. stat.blocks = (stat.size+stat.blksize-1)/stat.blksize|0;
  4071. }
  4072. return {
  4073. dev: stat.dev,
  4074. ino: stat.ino,
  4075. mode: stat.mode,
  4076. nlink: stat.nlink,
  4077. uid: stat.uid,
  4078. gid: stat.gid,
  4079. rdev: stat.rdev,
  4080. size: stat.size,
  4081. atime: stat.atime,
  4082. mtime: stat.mtime,
  4083. ctime: stat.ctime,
  4084. blksize: stat.blksize,
  4085. blocks: stat.blocks
  4086. };
  4087. },setattr:function (node, attr) {
  4088. var path = NODEFS.realPath(node);
  4089. try {
  4090. if (attr.mode !== undefined) {
  4091. fs.chmodSync(path, attr.mode);
  4092. // update the common node structure mode as well
  4093. node.mode = attr.mode;
  4094. }
  4095. if (attr.timestamp !== undefined) {
  4096. var date = new Date(attr.timestamp);
  4097. fs.utimesSync(path, date, date);
  4098. }
  4099. if (attr.size !== undefined) {
  4100. fs.truncateSync(path, attr.size);
  4101. }
  4102. } catch (e) {
  4103. if (!e.code) throw e;
  4104. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4105. }
  4106. },lookup:function (parent, name) {
  4107. var path = PATH.join2(NODEFS.realPath(parent), name);
  4108. var mode = NODEFS.getMode(path);
  4109. return NODEFS.createNode(parent, name, mode);
  4110. },mknod:function (parent, name, mode, dev) {
  4111. var node = NODEFS.createNode(parent, name, mode, dev);
  4112. // create the backing node for this in the fs root as well
  4113. var path = NODEFS.realPath(node);
  4114. try {
  4115. if (FS.isDir(node.mode)) {
  4116. fs.mkdirSync(path, node.mode);
  4117. } else {
  4118. fs.writeFileSync(path, '', { mode: node.mode });
  4119. }
  4120. } catch (e) {
  4121. if (!e.code) throw e;
  4122. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4123. }
  4124. return node;
  4125. },rename:function (oldNode, newDir, newName) {
  4126. var oldPath = NODEFS.realPath(oldNode);
  4127. var newPath = PATH.join2(NODEFS.realPath(newDir), newName);
  4128. try {
  4129. fs.renameSync(oldPath, newPath);
  4130. } catch (e) {
  4131. if (!e.code) throw e;
  4132. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4133. }
  4134. },unlink:function (parent, name) {
  4135. var path = PATH.join2(NODEFS.realPath(parent), name);
  4136. try {
  4137. fs.unlinkSync(path);
  4138. } catch (e) {
  4139. if (!e.code) throw e;
  4140. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4141. }
  4142. },rmdir:function (parent, name) {
  4143. var path = PATH.join2(NODEFS.realPath(parent), name);
  4144. try {
  4145. fs.rmdirSync(path);
  4146. } catch (e) {
  4147. if (!e.code) throw e;
  4148. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4149. }
  4150. },readdir:function (node) {
  4151. var path = NODEFS.realPath(node);
  4152. try {
  4153. return fs.readdirSync(path);
  4154. } catch (e) {
  4155. if (!e.code) throw e;
  4156. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4157. }
  4158. },symlink:function (parent, newName, oldPath) {
  4159. var newPath = PATH.join2(NODEFS.realPath(parent), newName);
  4160. try {
  4161. fs.symlinkSync(oldPath, newPath);
  4162. } catch (e) {
  4163. if (!e.code) throw e;
  4164. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4165. }
  4166. },readlink:function (node) {
  4167. var path = NODEFS.realPath(node);
  4168. try {
  4169. path = fs.readlinkSync(path);
  4170. path = NODEJS_PATH.relative(NODEJS_PATH.resolve(node.mount.opts.root), path);
  4171. return path;
  4172. } catch (e) {
  4173. if (!e.code) throw e;
  4174. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4175. }
  4176. }},stream_ops:{open:function (stream) {
  4177. var path = NODEFS.realPath(stream.node);
  4178. try {
  4179. if (FS.isFile(stream.node.mode)) {
  4180. stream.nfd = fs.openSync(path, NODEFS.flagsToPermissionString(stream.flags));
  4181. }
  4182. } catch (e) {
  4183. if (!e.code) throw e;
  4184. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4185. }
  4186. },close:function (stream) {
  4187. try {
  4188. if (FS.isFile(stream.node.mode) && stream.nfd) {
  4189. fs.closeSync(stream.nfd);
  4190. }
  4191. } catch (e) {
  4192. if (!e.code) throw e;
  4193. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4194. }
  4195. },read:function (stream, buffer, offset, length, position) {
  4196. if (length === 0) return 0; // node errors on 0 length reads
  4197. // FIXME this is terrible.
  4198. var nbuffer = new Buffer(length);
  4199. var res;
  4200. try {
  4201. res = fs.readSync(stream.nfd, nbuffer, 0, length, position);
  4202. } catch (e) {
  4203. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4204. }
  4205. if (res > 0) {
  4206. for (var i = 0; i < res; i++) {
  4207. buffer[offset + i] = nbuffer[i];
  4208. }
  4209. }
  4210. return res;
  4211. },write:function (stream, buffer, offset, length, position) {
  4212. // FIXME this is terrible.
  4213. var nbuffer = new Buffer(buffer.subarray(offset, offset + length));
  4214. var res;
  4215. try {
  4216. res = fs.writeSync(stream.nfd, nbuffer, 0, length, position);
  4217. } catch (e) {
  4218. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4219. }
  4220. return res;
  4221. },llseek:function (stream, offset, whence) {
  4222. var position = offset;
  4223. if (whence === 1) { // SEEK_CUR.
  4224. position += stream.position;
  4225. } else if (whence === 2) { // SEEK_END.
  4226. if (FS.isFile(stream.node.mode)) {
  4227. try {
  4228. var stat = fs.fstatSync(stream.nfd);
  4229. position += stat.size;
  4230. } catch (e) {
  4231. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4232. }
  4233. }
  4234. }
  4235. if (position < 0) {
  4236. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4237. }
  4238. return position;
  4239. }}};
  4240. var WORKERFS={DIR_MODE:16895,FILE_MODE:33279,reader:null,mount:function (mount) {
  4241. assert(ENVIRONMENT_IS_WORKER);
  4242. if (!WORKERFS.reader) WORKERFS.reader = new FileReaderSync();
  4243. var root = WORKERFS.createNode(null, '/', WORKERFS.DIR_MODE, 0);
  4244. var createdParents = {};
  4245. function ensureParent(path) {
  4246. // return the parent node, creating subdirs as necessary
  4247. var parts = path.split('/');
  4248. var parent = root;
  4249. for (var i = 0; i < parts.length-1; i++) {
  4250. var curr = parts.slice(0, i+1).join('/');
  4251. // Issue 4254: Using curr as a node name will prevent the node
  4252. // from being found in FS.nameTable when FS.open is called on
  4253. // a path which holds a child of this node,
  4254. // given that all FS functions assume node names
  4255. // are just their corresponding parts within their given path,
  4256. // rather than incremental aggregates which include their parent's
  4257. // directories.
  4258. if (!createdParents[curr]) {
  4259. createdParents[curr] = WORKERFS.createNode(parent, parts[i], WORKERFS.DIR_MODE, 0);
  4260. }
  4261. parent = createdParents[curr];
  4262. }
  4263. return parent;
  4264. }
  4265. function base(path) {
  4266. var parts = path.split('/');
  4267. return parts[parts.length-1];
  4268. }
  4269. // We also accept FileList here, by using Array.prototype
  4270. Array.prototype.forEach.call(mount.opts["files"] || [], function(file) {
  4271. WORKERFS.createNode(ensureParent(file.name), base(file.name), WORKERFS.FILE_MODE, 0, file, file.lastModifiedDate);
  4272. });
  4273. (mount.opts["blobs"] || []).forEach(function(obj) {
  4274. WORKERFS.createNode(ensureParent(obj["name"]), base(obj["name"]), WORKERFS.FILE_MODE, 0, obj["data"]);
  4275. });
  4276. (mount.opts["packages"] || []).forEach(function(pack) {
  4277. pack['metadata'].files.forEach(function(file) {
  4278. var name = file.filename.substr(1); // remove initial slash
  4279. WORKERFS.createNode(ensureParent(name), base(name), WORKERFS.FILE_MODE, 0, pack['blob'].slice(file.start, file.end));
  4280. });
  4281. });
  4282. return root;
  4283. },createNode:function (parent, name, mode, dev, contents, mtime) {
  4284. var node = FS.createNode(parent, name, mode);
  4285. node.mode = mode;
  4286. node.node_ops = WORKERFS.node_ops;
  4287. node.stream_ops = WORKERFS.stream_ops;
  4288. node.timestamp = (mtime || new Date).getTime();
  4289. assert(WORKERFS.FILE_MODE !== WORKERFS.DIR_MODE);
  4290. if (mode === WORKERFS.FILE_MODE) {
  4291. node.size = contents.size;
  4292. node.contents = contents;
  4293. } else {
  4294. node.size = 4096;
  4295. node.contents = {};
  4296. }
  4297. if (parent) {
  4298. parent.contents[name] = node;
  4299. }
  4300. return node;
  4301. },node_ops:{getattr:function (node) {
  4302. return {
  4303. dev: 1,
  4304. ino: undefined,
  4305. mode: node.mode,
  4306. nlink: 1,
  4307. uid: 0,
  4308. gid: 0,
  4309. rdev: undefined,
  4310. size: node.size,
  4311. atime: new Date(node.timestamp),
  4312. mtime: new Date(node.timestamp),
  4313. ctime: new Date(node.timestamp),
  4314. blksize: 4096,
  4315. blocks: Math.ceil(node.size / 4096),
  4316. };
  4317. },setattr:function (node, attr) {
  4318. if (attr.mode !== undefined) {
  4319. node.mode = attr.mode;
  4320. }
  4321. if (attr.timestamp !== undefined) {
  4322. node.timestamp = attr.timestamp;
  4323. }
  4324. },lookup:function (parent, name) {
  4325. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4326. },mknod:function (parent, name, mode, dev) {
  4327. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4328. },rename:function (oldNode, newDir, newName) {
  4329. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4330. },unlink:function (parent, name) {
  4331. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4332. },rmdir:function (parent, name) {
  4333. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4334. },readdir:function (node) {
  4335. var entries = ['.', '..'];
  4336. for (var key in node.contents) {
  4337. if (!node.contents.hasOwnProperty(key)) {
  4338. continue;
  4339. }
  4340. entries.push(key);
  4341. }
  4342. return entries;
  4343. },symlink:function (parent, newName, oldPath) {
  4344. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4345. },readlink:function (node) {
  4346. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4347. }},stream_ops:{read:function (stream, buffer, offset, length, position) {
  4348. if (position >= stream.node.size) return 0;
  4349. var chunk = stream.node.contents.slice(position, position + length);
  4350. var ab = WORKERFS.reader.readAsArrayBuffer(chunk);
  4351. buffer.set(new Uint8Array(ab), offset);
  4352. return chunk.size;
  4353. },write:function (stream, buffer, offset, length, position) {
  4354. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  4355. },llseek:function (stream, offset, whence) {
  4356. var position = offset;
  4357. if (whence === 1) { // SEEK_CUR.
  4358. position += stream.position;
  4359. } else if (whence === 2) { // SEEK_END.
  4360. if (FS.isFile(stream.node.mode)) {
  4361. position += stream.node.size;
  4362. }
  4363. }
  4364. if (position < 0) {
  4365. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4366. }
  4367. return position;
  4368. }}};
  4369. var _stdin=STATICTOP; STATICTOP += 16;;
  4370. var _stdout=STATICTOP; STATICTOP += 16;;
  4371. 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) {
  4372. if (!(e instanceof FS.ErrnoError)) throw e + ' : ' + stackTrace();
  4373. return ___setErrNo(e.errno);
  4374. },lookupPath:function (path, opts) {
  4375. path = PATH.resolve(FS.cwd(), path);
  4376. opts = opts || {};
  4377. if (!path) return { path: '', node: null };
  4378. var defaults = {
  4379. follow_mount: true,
  4380. recurse_count: 0
  4381. };
  4382. for (var key in defaults) {
  4383. if (opts[key] === undefined) {
  4384. opts[key] = defaults[key];
  4385. }
  4386. }
  4387. if (opts.recurse_count > 8) { // max recursive lookup of 8
  4388. throw new FS.ErrnoError(ERRNO_CODES.ELOOP);
  4389. }
  4390. // split the path
  4391. var parts = PATH.normalizeArray(path.split('/').filter(function(p) {
  4392. return !!p;
  4393. }), false);
  4394. // start at the root
  4395. var current = FS.root;
  4396. var current_path = '/';
  4397. for (var i = 0; i < parts.length; i++) {
  4398. var islast = (i === parts.length-1);
  4399. if (islast && opts.parent) {
  4400. // stop resolving
  4401. break;
  4402. }
  4403. current = FS.lookupNode(current, parts[i]);
  4404. current_path = PATH.join2(current_path, parts[i]);
  4405. // jump to the mount's root node if this is a mountpoint
  4406. if (FS.isMountpoint(current)) {
  4407. if (!islast || (islast && opts.follow_mount)) {
  4408. current = current.mounted.root;
  4409. }
  4410. }
  4411. // by default, lookupPath will not follow a symlink if it is the final path component.
  4412. // setting opts.follow = true will override this behavior.
  4413. if (!islast || opts.follow) {
  4414. var count = 0;
  4415. while (FS.isLink(current.mode)) {
  4416. var link = FS.readlink(current_path);
  4417. current_path = PATH.resolve(PATH.dirname(current_path), link);
  4418. var lookup = FS.lookupPath(current_path, { recurse_count: opts.recurse_count });
  4419. current = lookup.node;
  4420. if (count++ > 40) { // limit max consecutive symlinks to 40 (SYMLOOP_MAX).
  4421. throw new FS.ErrnoError(ERRNO_CODES.ELOOP);
  4422. }
  4423. }
  4424. }
  4425. }
  4426. return { path: current_path, node: current };
  4427. },getPath:function (node) {
  4428. var path;
  4429. while (true) {
  4430. if (FS.isRoot(node)) {
  4431. var mount = node.mount.mountpoint;
  4432. if (!path) return mount;
  4433. return mount[mount.length-1] !== '/' ? mount + '/' + path : mount + path;
  4434. }
  4435. path = path ? node.name + '/' + path : node.name;
  4436. node = node.parent;
  4437. }
  4438. },hashName:function (parentid, name) {
  4439. var hash = 0;
  4440. for (var i = 0; i < name.length; i++) {
  4441. hash = ((hash << 5) - hash + name.charCodeAt(i)) | 0;
  4442. }
  4443. return ((parentid + hash) >>> 0) % FS.nameTable.length;
  4444. },hashAddNode:function (node) {
  4445. var hash = FS.hashName(node.parent.id, node.name);
  4446. node.name_next = FS.nameTable[hash];
  4447. FS.nameTable[hash] = node;
  4448. },hashRemoveNode:function (node) {
  4449. var hash = FS.hashName(node.parent.id, node.name);
  4450. if (FS.nameTable[hash] === node) {
  4451. FS.nameTable[hash] = node.name_next;
  4452. } else {
  4453. var current = FS.nameTable[hash];
  4454. while (current) {
  4455. if (current.name_next === node) {
  4456. current.name_next = node.name_next;
  4457. break;
  4458. }
  4459. current = current.name_next;
  4460. }
  4461. }
  4462. },lookupNode:function (parent, name) {
  4463. var err = FS.mayLookup(parent);
  4464. if (err) {
  4465. throw new FS.ErrnoError(err, parent);
  4466. }
  4467. var hash = FS.hashName(parent.id, name);
  4468. for (var node = FS.nameTable[hash]; node; node = node.name_next) {
  4469. var nodeName = node.name;
  4470. if (node.parent.id === parent.id && nodeName === name) {
  4471. return node;
  4472. }
  4473. }
  4474. // if we failed to find it in the cache, call into the VFS
  4475. return FS.lookup(parent, name);
  4476. },createNode:function (parent, name, mode, rdev) {
  4477. if (!FS.FSNode) {
  4478. FS.FSNode = function(parent, name, mode, rdev) {
  4479. if (!parent) {
  4480. parent = this; // root node sets parent to itself
  4481. }
  4482. this.parent = parent;
  4483. this.mount = parent.mount;
  4484. this.mounted = null;
  4485. this.id = FS.nextInode++;
  4486. this.name = name;
  4487. this.mode = mode;
  4488. this.node_ops = {};
  4489. this.stream_ops = {};
  4490. this.rdev = rdev;
  4491. };
  4492. FS.FSNode.prototype = {};
  4493. // compatibility
  4494. var readMode = 292 | 73;
  4495. var writeMode = 146;
  4496. // NOTE we must use Object.defineProperties instead of individual calls to
  4497. // Object.defineProperty in order to make closure compiler happy
  4498. Object.defineProperties(FS.FSNode.prototype, {
  4499. read: {
  4500. get: function() { return (this.mode & readMode) === readMode; },
  4501. set: function(val) { val ? this.mode |= readMode : this.mode &= ~readMode; }
  4502. },
  4503. write: {
  4504. get: function() { return (this.mode & writeMode) === writeMode; },
  4505. set: function(val) { val ? this.mode |= writeMode : this.mode &= ~writeMode; }
  4506. },
  4507. isFolder: {
  4508. get: function() { return FS.isDir(this.mode); }
  4509. },
  4510. isDevice: {
  4511. get: function() { return FS.isChrdev(this.mode); }
  4512. }
  4513. });
  4514. }
  4515. var node = new FS.FSNode(parent, name, mode, rdev);
  4516. FS.hashAddNode(node);
  4517. return node;
  4518. },destroyNode:function (node) {
  4519. FS.hashRemoveNode(node);
  4520. },isRoot:function (node) {
  4521. return node === node.parent;
  4522. },isMountpoint:function (node) {
  4523. return !!node.mounted;
  4524. },isFile:function (mode) {
  4525. return (mode & 61440) === 32768;
  4526. },isDir:function (mode) {
  4527. return (mode & 61440) === 16384;
  4528. },isLink:function (mode) {
  4529. return (mode & 61440) === 40960;
  4530. },isChrdev:function (mode) {
  4531. return (mode & 61440) === 8192;
  4532. },isBlkdev:function (mode) {
  4533. return (mode & 61440) === 24576;
  4534. },isFIFO:function (mode) {
  4535. return (mode & 61440) === 4096;
  4536. },isSocket:function (mode) {
  4537. return (mode & 49152) === 49152;
  4538. },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) {
  4539. var flags = FS.flagModes[str];
  4540. if (typeof flags === 'undefined') {
  4541. throw new Error('Unknown file open mode: ' + str);
  4542. }
  4543. return flags;
  4544. },flagsToPermissionString:function (flag) {
  4545. var perms = ['r', 'w', 'rw'][flag & 3];
  4546. if ((flag & 512)) {
  4547. perms += 'w';
  4548. }
  4549. return perms;
  4550. },nodePermissions:function (node, perms) {
  4551. if (FS.ignorePermissions) {
  4552. return 0;
  4553. }
  4554. // return 0 if any user, group or owner bits are set.
  4555. if (perms.indexOf('r') !== -1 && !(node.mode & 292)) {
  4556. return ERRNO_CODES.EACCES;
  4557. } else if (perms.indexOf('w') !== -1 && !(node.mode & 146)) {
  4558. return ERRNO_CODES.EACCES;
  4559. } else if (perms.indexOf('x') !== -1 && !(node.mode & 73)) {
  4560. return ERRNO_CODES.EACCES;
  4561. }
  4562. return 0;
  4563. },mayLookup:function (dir) {
  4564. var err = FS.nodePermissions(dir, 'x');
  4565. if (err) return err;
  4566. if (!dir.node_ops.lookup) return ERRNO_CODES.EACCES;
  4567. return 0;
  4568. },mayCreate:function (dir, name) {
  4569. try {
  4570. var node = FS.lookupNode(dir, name);
  4571. return ERRNO_CODES.EEXIST;
  4572. } catch (e) {
  4573. }
  4574. return FS.nodePermissions(dir, 'wx');
  4575. },mayDelete:function (dir, name, isdir) {
  4576. var node;
  4577. try {
  4578. node = FS.lookupNode(dir, name);
  4579. } catch (e) {
  4580. return e.errno;
  4581. }
  4582. var err = FS.nodePermissions(dir, 'wx');
  4583. if (err) {
  4584. return err;
  4585. }
  4586. if (isdir) {
  4587. if (!FS.isDir(node.mode)) {
  4588. return ERRNO_CODES.ENOTDIR;
  4589. }
  4590. if (FS.isRoot(node) || FS.getPath(node) === FS.cwd()) {
  4591. return ERRNO_CODES.EBUSY;
  4592. }
  4593. } else {
  4594. if (FS.isDir(node.mode)) {
  4595. return ERRNO_CODES.EISDIR;
  4596. }
  4597. }
  4598. return 0;
  4599. },mayOpen:function (node, flags) {
  4600. if (!node) {
  4601. return ERRNO_CODES.ENOENT;
  4602. }
  4603. if (FS.isLink(node.mode)) {
  4604. return ERRNO_CODES.ELOOP;
  4605. } else if (FS.isDir(node.mode)) {
  4606. if (FS.flagsToPermissionString(flags) !== 'r' || // opening for write
  4607. (flags & 512)) { // TODO: check for O_SEARCH? (== search for dir only)
  4608. return ERRNO_CODES.EISDIR;
  4609. }
  4610. }
  4611. return FS.nodePermissions(node, FS.flagsToPermissionString(flags));
  4612. },MAX_OPEN_FDS:4096,nextfd:function (fd_start, fd_end) {
  4613. fd_start = fd_start || 0;
  4614. fd_end = fd_end || FS.MAX_OPEN_FDS;
  4615. for (var fd = fd_start; fd <= fd_end; fd++) {
  4616. if (!FS.streams[fd]) {
  4617. return fd;
  4618. }
  4619. }
  4620. throw new FS.ErrnoError(ERRNO_CODES.EMFILE);
  4621. },getStream:function (fd) {
  4622. return FS.streams[fd];
  4623. },createStream:function (stream, fd_start, fd_end) {
  4624. if (!FS.FSStream) {
  4625. FS.FSStream = function(){};
  4626. FS.FSStream.prototype = {};
  4627. // compatibility
  4628. Object.defineProperties(FS.FSStream.prototype, {
  4629. object: {
  4630. get: function() { return this.node; },
  4631. set: function(val) { this.node = val; }
  4632. },
  4633. isRead: {
  4634. get: function() { return (this.flags & 2097155) !== 1; }
  4635. },
  4636. isWrite: {
  4637. get: function() { return (this.flags & 2097155) !== 0; }
  4638. },
  4639. isAppend: {
  4640. get: function() { return (this.flags & 1024); }
  4641. }
  4642. });
  4643. }
  4644. // clone it, so we can return an instance of FSStream
  4645. var newStream = new FS.FSStream();
  4646. for (var p in stream) {
  4647. newStream[p] = stream[p];
  4648. }
  4649. stream = newStream;
  4650. var fd = FS.nextfd(fd_start, fd_end);
  4651. stream.fd = fd;
  4652. FS.streams[fd] = stream;
  4653. return stream;
  4654. },closeStream:function (fd) {
  4655. FS.streams[fd] = null;
  4656. },chrdev_stream_ops:{open:function (stream) {
  4657. var device = FS.getDevice(stream.node.rdev);
  4658. // override node's stream ops with the device's
  4659. stream.stream_ops = device.stream_ops;
  4660. // forward the open call
  4661. if (stream.stream_ops.open) {
  4662. stream.stream_ops.open(stream);
  4663. }
  4664. },llseek:function () {
  4665. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  4666. }},major:function (dev) {
  4667. return ((dev) >> 8);
  4668. },minor:function (dev) {
  4669. return ((dev) & 0xff);
  4670. },makedev:function (ma, mi) {
  4671. return ((ma) << 8 | (mi));
  4672. },registerDevice:function (dev, ops) {
  4673. FS.devices[dev] = { stream_ops: ops };
  4674. },getDevice:function (dev) {
  4675. return FS.devices[dev];
  4676. },getMounts:function (mount) {
  4677. var mounts = [];
  4678. var check = [mount];
  4679. while (check.length) {
  4680. var m = check.pop();
  4681. mounts.push(m);
  4682. check.push.apply(check, m.mounts);
  4683. }
  4684. return mounts;
  4685. },syncfs:function (populate, callback) {
  4686. if (typeof(populate) === 'function') {
  4687. callback = populate;
  4688. populate = false;
  4689. }
  4690. FS.syncFSRequests++;
  4691. if (FS.syncFSRequests > 1) {
  4692. console.log('warning: ' + FS.syncFSRequests + ' FS.syncfs operations in flight at once, probably just doing extra work');
  4693. }
  4694. var mounts = FS.getMounts(FS.root.mount);
  4695. var completed = 0;
  4696. function doCallback(err) {
  4697. assert(FS.syncFSRequests > 0);
  4698. FS.syncFSRequests--;
  4699. return callback(err);
  4700. }
  4701. function done(err) {
  4702. if (err) {
  4703. if (!done.errored) {
  4704. done.errored = true;
  4705. return doCallback(err);
  4706. }
  4707. return;
  4708. }
  4709. if (++completed >= mounts.length) {
  4710. doCallback(null);
  4711. }
  4712. };
  4713. // sync all mounts
  4714. mounts.forEach(function (mount) {
  4715. if (!mount.type.syncfs) {
  4716. return done(null);
  4717. }
  4718. mount.type.syncfs(mount, populate, done);
  4719. });
  4720. },mount:function (type, opts, mountpoint) {
  4721. var root = mountpoint === '/';
  4722. var pseudo = !mountpoint;
  4723. var node;
  4724. if (root && FS.root) {
  4725. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4726. } else if (!root && !pseudo) {
  4727. var lookup = FS.lookupPath(mountpoint, { follow_mount: false });
  4728. mountpoint = lookup.path; // use the absolute path
  4729. node = lookup.node;
  4730. if (FS.isMountpoint(node)) {
  4731. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4732. }
  4733. if (!FS.isDir(node.mode)) {
  4734. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  4735. }
  4736. }
  4737. var mount = {
  4738. type: type,
  4739. opts: opts,
  4740. mountpoint: mountpoint,
  4741. mounts: []
  4742. };
  4743. // create a root node for the fs
  4744. var mountRoot = type.mount(mount);
  4745. mountRoot.mount = mount;
  4746. mount.root = mountRoot;
  4747. if (root) {
  4748. FS.root = mountRoot;
  4749. } else if (node) {
  4750. // set as a mountpoint
  4751. node.mounted = mount;
  4752. // add the new mount to the current mount's children
  4753. if (node.mount) {
  4754. node.mount.mounts.push(mount);
  4755. }
  4756. }
  4757. return mountRoot;
  4758. },unmount:function (mountpoint) {
  4759. var lookup = FS.lookupPath(mountpoint, { follow_mount: false });
  4760. if (!FS.isMountpoint(lookup.node)) {
  4761. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4762. }
  4763. // destroy the nodes for this mount, and all its child mounts
  4764. var node = lookup.node;
  4765. var mount = node.mounted;
  4766. var mounts = FS.getMounts(mount);
  4767. Object.keys(FS.nameTable).forEach(function (hash) {
  4768. var current = FS.nameTable[hash];
  4769. while (current) {
  4770. var next = current.name_next;
  4771. if (mounts.indexOf(current.mount) !== -1) {
  4772. FS.destroyNode(current);
  4773. }
  4774. current = next;
  4775. }
  4776. });
  4777. // no longer a mountpoint
  4778. node.mounted = null;
  4779. // remove this mount from the child mounts
  4780. var idx = node.mount.mounts.indexOf(mount);
  4781. assert(idx !== -1);
  4782. node.mount.mounts.splice(idx, 1);
  4783. },lookup:function (parent, name) {
  4784. return parent.node_ops.lookup(parent, name);
  4785. },mknod:function (path, mode, dev) {
  4786. var lookup = FS.lookupPath(path, { parent: true });
  4787. var parent = lookup.node;
  4788. var name = PATH.basename(path);
  4789. if (!name || name === '.' || name === '..') {
  4790. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4791. }
  4792. var err = FS.mayCreate(parent, name);
  4793. if (err) {
  4794. throw new FS.ErrnoError(err);
  4795. }
  4796. if (!parent.node_ops.mknod) {
  4797. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4798. }
  4799. return parent.node_ops.mknod(parent, name, mode, dev);
  4800. },create:function (path, mode) {
  4801. mode = mode !== undefined ? mode : 438 /* 0666 */;
  4802. mode &= 4095;
  4803. mode |= 32768;
  4804. return FS.mknod(path, mode, 0);
  4805. },mkdir:function (path, mode) {
  4806. mode = mode !== undefined ? mode : 511 /* 0777 */;
  4807. mode &= 511 | 512;
  4808. mode |= 16384;
  4809. return FS.mknod(path, mode, 0);
  4810. },mkdirTree:function (path, mode) {
  4811. var dirs = path.split('/');
  4812. var d = '';
  4813. for (var i = 0; i < dirs.length; ++i) {
  4814. if (!dirs[i]) continue;
  4815. d += '/' + dirs[i];
  4816. try {
  4817. FS.mkdir(d, mode);
  4818. } catch(e) {
  4819. if (e.errno != ERRNO_CODES.EEXIST) throw e;
  4820. }
  4821. }
  4822. },mkdev:function (path, mode, dev) {
  4823. if (typeof(dev) === 'undefined') {
  4824. dev = mode;
  4825. mode = 438 /* 0666 */;
  4826. }
  4827. mode |= 8192;
  4828. return FS.mknod(path, mode, dev);
  4829. },symlink:function (oldpath, newpath) {
  4830. if (!PATH.resolve(oldpath)) {
  4831. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4832. }
  4833. var lookup = FS.lookupPath(newpath, { parent: true });
  4834. var parent = lookup.node;
  4835. if (!parent) {
  4836. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4837. }
  4838. var newname = PATH.basename(newpath);
  4839. var err = FS.mayCreate(parent, newname);
  4840. if (err) {
  4841. throw new FS.ErrnoError(err);
  4842. }
  4843. if (!parent.node_ops.symlink) {
  4844. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4845. }
  4846. return parent.node_ops.symlink(parent, newname, oldpath);
  4847. },rename:function (old_path, new_path) {
  4848. var old_dirname = PATH.dirname(old_path);
  4849. var new_dirname = PATH.dirname(new_path);
  4850. var old_name = PATH.basename(old_path);
  4851. var new_name = PATH.basename(new_path);
  4852. // parents must exist
  4853. var lookup, old_dir, new_dir;
  4854. try {
  4855. lookup = FS.lookupPath(old_path, { parent: true });
  4856. old_dir = lookup.node;
  4857. lookup = FS.lookupPath(new_path, { parent: true });
  4858. new_dir = lookup.node;
  4859. } catch (e) {
  4860. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4861. }
  4862. if (!old_dir || !new_dir) throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4863. // need to be part of the same mount
  4864. if (old_dir.mount !== new_dir.mount) {
  4865. throw new FS.ErrnoError(ERRNO_CODES.EXDEV);
  4866. }
  4867. // source must exist
  4868. var old_node = FS.lookupNode(old_dir, old_name);
  4869. // old path should not be an ancestor of the new path
  4870. var relative = PATH.relative(old_path, new_dirname);
  4871. if (relative.charAt(0) !== '.') {
  4872. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4873. }
  4874. // new path should not be an ancestor of the old path
  4875. relative = PATH.relative(new_path, old_dirname);
  4876. if (relative.charAt(0) !== '.') {
  4877. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  4878. }
  4879. // see if the new path already exists
  4880. var new_node;
  4881. try {
  4882. new_node = FS.lookupNode(new_dir, new_name);
  4883. } catch (e) {
  4884. // not fatal
  4885. }
  4886. // early out if nothing needs to change
  4887. if (old_node === new_node) {
  4888. return;
  4889. }
  4890. // we'll need to delete the old entry
  4891. var isdir = FS.isDir(old_node.mode);
  4892. var err = FS.mayDelete(old_dir, old_name, isdir);
  4893. if (err) {
  4894. throw new FS.ErrnoError(err);
  4895. }
  4896. // need delete permissions if we'll be overwriting.
  4897. // need create permissions if new doesn't already exist.
  4898. err = new_node ?
  4899. FS.mayDelete(new_dir, new_name, isdir) :
  4900. FS.mayCreate(new_dir, new_name);
  4901. if (err) {
  4902. throw new FS.ErrnoError(err);
  4903. }
  4904. if (!old_dir.node_ops.rename) {
  4905. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4906. }
  4907. if (FS.isMountpoint(old_node) || (new_node && FS.isMountpoint(new_node))) {
  4908. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4909. }
  4910. // if we are going to change the parent, check write permissions
  4911. if (new_dir !== old_dir) {
  4912. err = FS.nodePermissions(old_dir, 'w');
  4913. if (err) {
  4914. throw new FS.ErrnoError(err);
  4915. }
  4916. }
  4917. try {
  4918. if (FS.trackingDelegate['willMovePath']) {
  4919. FS.trackingDelegate['willMovePath'](old_path, new_path);
  4920. }
  4921. } catch(e) {
  4922. console.log("FS.trackingDelegate['willMovePath']('"+old_path+"', '"+new_path+"') threw an exception: " + e.message);
  4923. }
  4924. // remove the node from the lookup hash
  4925. FS.hashRemoveNode(old_node);
  4926. // do the underlying fs rename
  4927. try {
  4928. old_dir.node_ops.rename(old_node, new_dir, new_name);
  4929. } catch (e) {
  4930. throw e;
  4931. } finally {
  4932. // add the node back to the hash (in case node_ops.rename
  4933. // changed its name)
  4934. FS.hashAddNode(old_node);
  4935. }
  4936. try {
  4937. if (FS.trackingDelegate['onMovePath']) FS.trackingDelegate['onMovePath'](old_path, new_path);
  4938. } catch(e) {
  4939. console.log("FS.trackingDelegate['onMovePath']('"+old_path+"', '"+new_path+"') threw an exception: " + e.message);
  4940. }
  4941. },rmdir:function (path) {
  4942. var lookup = FS.lookupPath(path, { parent: true });
  4943. var parent = lookup.node;
  4944. var name = PATH.basename(path);
  4945. var node = FS.lookupNode(parent, name);
  4946. var err = FS.mayDelete(parent, name, true);
  4947. if (err) {
  4948. throw new FS.ErrnoError(err);
  4949. }
  4950. if (!parent.node_ops.rmdir) {
  4951. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4952. }
  4953. if (FS.isMountpoint(node)) {
  4954. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4955. }
  4956. try {
  4957. if (FS.trackingDelegate['willDeletePath']) {
  4958. FS.trackingDelegate['willDeletePath'](path);
  4959. }
  4960. } catch(e) {
  4961. console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: " + e.message);
  4962. }
  4963. parent.node_ops.rmdir(parent, name);
  4964. FS.destroyNode(node);
  4965. try {
  4966. if (FS.trackingDelegate['onDeletePath']) FS.trackingDelegate['onDeletePath'](path);
  4967. } catch(e) {
  4968. console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: " + e.message);
  4969. }
  4970. },readdir:function (path) {
  4971. var lookup = FS.lookupPath(path, { follow: true });
  4972. var node = lookup.node;
  4973. if (!node.node_ops.readdir) {
  4974. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  4975. }
  4976. return node.node_ops.readdir(node);
  4977. },unlink:function (path) {
  4978. var lookup = FS.lookupPath(path, { parent: true });
  4979. var parent = lookup.node;
  4980. var name = PATH.basename(path);
  4981. var node = FS.lookupNode(parent, name);
  4982. var err = FS.mayDelete(parent, name, false);
  4983. if (err) {
  4984. // According to POSIX, we should map EISDIR to EPERM, but
  4985. // we instead do what Linux does (and we must, as we use
  4986. // the musl linux libc).
  4987. throw new FS.ErrnoError(err);
  4988. }
  4989. if (!parent.node_ops.unlink) {
  4990. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4991. }
  4992. if (FS.isMountpoint(node)) {
  4993. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4994. }
  4995. try {
  4996. if (FS.trackingDelegate['willDeletePath']) {
  4997. FS.trackingDelegate['willDeletePath'](path);
  4998. }
  4999. } catch(e) {
  5000. console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: " + e.message);
  5001. }
  5002. parent.node_ops.unlink(parent, name);
  5003. FS.destroyNode(node);
  5004. try {
  5005. if (FS.trackingDelegate['onDeletePath']) FS.trackingDelegate['onDeletePath'](path);
  5006. } catch(e) {
  5007. console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: " + e.message);
  5008. }
  5009. },readlink:function (path) {
  5010. var lookup = FS.lookupPath(path);
  5011. var link = lookup.node;
  5012. if (!link) {
  5013. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5014. }
  5015. if (!link.node_ops.readlink) {
  5016. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5017. }
  5018. return PATH.resolve(FS.getPath(link.parent), link.node_ops.readlink(link));
  5019. },stat:function (path, dontFollow) {
  5020. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  5021. var node = lookup.node;
  5022. if (!node) {
  5023. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5024. }
  5025. if (!node.node_ops.getattr) {
  5026. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  5027. }
  5028. return node.node_ops.getattr(node);
  5029. },lstat:function (path) {
  5030. return FS.stat(path, true);
  5031. },chmod:function (path, mode, dontFollow) {
  5032. var node;
  5033. if (typeof path === 'string') {
  5034. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  5035. node = lookup.node;
  5036. } else {
  5037. node = path;
  5038. }
  5039. if (!node.node_ops.setattr) {
  5040. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  5041. }
  5042. node.node_ops.setattr(node, {
  5043. mode: (mode & 4095) | (node.mode & ~4095),
  5044. timestamp: Date.now()
  5045. });
  5046. },lchmod:function (path, mode) {
  5047. FS.chmod(path, mode, true);
  5048. },fchmod:function (fd, mode) {
  5049. var stream = FS.getStream(fd);
  5050. if (!stream) {
  5051. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5052. }
  5053. FS.chmod(stream.node, mode);
  5054. },chown:function (path, uid, gid, dontFollow) {
  5055. var node;
  5056. if (typeof path === 'string') {
  5057. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  5058. node = lookup.node;
  5059. } else {
  5060. node = path;
  5061. }
  5062. if (!node.node_ops.setattr) {
  5063. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  5064. }
  5065. node.node_ops.setattr(node, {
  5066. timestamp: Date.now()
  5067. // we ignore the uid / gid for now
  5068. });
  5069. },lchown:function (path, uid, gid) {
  5070. FS.chown(path, uid, gid, true);
  5071. },fchown:function (fd, uid, gid) {
  5072. var stream = FS.getStream(fd);
  5073. if (!stream) {
  5074. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5075. }
  5076. FS.chown(stream.node, uid, gid);
  5077. },truncate:function (path, len) {
  5078. if (len < 0) {
  5079. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5080. }
  5081. var node;
  5082. if (typeof path === 'string') {
  5083. var lookup = FS.lookupPath(path, { follow: true });
  5084. node = lookup.node;
  5085. } else {
  5086. node = path;
  5087. }
  5088. if (!node.node_ops.setattr) {
  5089. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  5090. }
  5091. if (FS.isDir(node.mode)) {
  5092. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5093. }
  5094. if (!FS.isFile(node.mode)) {
  5095. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5096. }
  5097. var err = FS.nodePermissions(node, 'w');
  5098. if (err) {
  5099. throw new FS.ErrnoError(err);
  5100. }
  5101. node.node_ops.setattr(node, {
  5102. size: len,
  5103. timestamp: Date.now()
  5104. });
  5105. },ftruncate:function (fd, len) {
  5106. var stream = FS.getStream(fd);
  5107. if (!stream) {
  5108. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5109. }
  5110. if ((stream.flags & 2097155) === 0) {
  5111. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5112. }
  5113. FS.truncate(stream.node, len);
  5114. },utime:function (path, atime, mtime) {
  5115. var lookup = FS.lookupPath(path, { follow: true });
  5116. var node = lookup.node;
  5117. node.node_ops.setattr(node, {
  5118. timestamp: Math.max(atime, mtime)
  5119. });
  5120. },open:function (path, flags, mode, fd_start, fd_end) {
  5121. if (path === "") {
  5122. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5123. }
  5124. flags = typeof flags === 'string' ? FS.modeStringToFlags(flags) : flags;
  5125. mode = typeof mode === 'undefined' ? 438 /* 0666 */ : mode;
  5126. if ((flags & 64)) {
  5127. mode = (mode & 4095) | 32768;
  5128. } else {
  5129. mode = 0;
  5130. }
  5131. var node;
  5132. if (typeof path === 'object') {
  5133. node = path;
  5134. } else {
  5135. path = PATH.normalize(path);
  5136. try {
  5137. var lookup = FS.lookupPath(path, {
  5138. follow: !(flags & 131072)
  5139. });
  5140. node = lookup.node;
  5141. } catch (e) {
  5142. // ignore
  5143. }
  5144. }
  5145. // perhaps we need to create the node
  5146. var created = false;
  5147. if ((flags & 64)) {
  5148. if (node) {
  5149. // if O_CREAT and O_EXCL are set, error out if the node already exists
  5150. if ((flags & 128)) {
  5151. throw new FS.ErrnoError(ERRNO_CODES.EEXIST);
  5152. }
  5153. } else {
  5154. // node doesn't exist, try to create it
  5155. node = FS.mknod(path, mode, 0);
  5156. created = true;
  5157. }
  5158. }
  5159. if (!node) {
  5160. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5161. }
  5162. // can't truncate a device
  5163. if (FS.isChrdev(node.mode)) {
  5164. flags &= ~512;
  5165. }
  5166. // if asked only for a directory, then this must be one
  5167. if ((flags & 65536) && !FS.isDir(node.mode)) {
  5168. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  5169. }
  5170. // check permissions, if this is not a file we just created now (it is ok to
  5171. // create and write to a file with read-only permissions; it is read-only
  5172. // for later use)
  5173. if (!created) {
  5174. var err = FS.mayOpen(node, flags);
  5175. if (err) {
  5176. throw new FS.ErrnoError(err);
  5177. }
  5178. }
  5179. // do truncation if necessary
  5180. if ((flags & 512)) {
  5181. FS.truncate(node, 0);
  5182. }
  5183. // we've already handled these, don't pass down to the underlying vfs
  5184. flags &= ~(128 | 512);
  5185. // register the stream with the filesystem
  5186. var stream = FS.createStream({
  5187. node: node,
  5188. path: FS.getPath(node), // we want the absolute path to the node
  5189. flags: flags,
  5190. seekable: true,
  5191. position: 0,
  5192. stream_ops: node.stream_ops,
  5193. // used by the file family libc calls (fopen, fwrite, ferror, etc.)
  5194. ungotten: [],
  5195. error: false
  5196. }, fd_start, fd_end);
  5197. // call the new stream's open function
  5198. if (stream.stream_ops.open) {
  5199. stream.stream_ops.open(stream);
  5200. }
  5201. if (Module['logReadFiles'] && !(flags & 1)) {
  5202. if (!FS.readFiles) FS.readFiles = {};
  5203. if (!(path in FS.readFiles)) {
  5204. FS.readFiles[path] = 1;
  5205. Module['printErr']('read file: ' + path);
  5206. }
  5207. }
  5208. try {
  5209. if (FS.trackingDelegate['onOpenFile']) {
  5210. var trackingFlags = 0;
  5211. if ((flags & 2097155) !== 1) {
  5212. trackingFlags |= FS.tracking.openFlags.READ;
  5213. }
  5214. if ((flags & 2097155) !== 0) {
  5215. trackingFlags |= FS.tracking.openFlags.WRITE;
  5216. }
  5217. FS.trackingDelegate['onOpenFile'](path, trackingFlags);
  5218. }
  5219. } catch(e) {
  5220. console.log("FS.trackingDelegate['onOpenFile']('"+path+"', flags) threw an exception: " + e.message);
  5221. }
  5222. return stream;
  5223. },close:function (stream) {
  5224. if (stream.getdents) stream.getdents = null; // free readdir state
  5225. try {
  5226. if (stream.stream_ops.close) {
  5227. stream.stream_ops.close(stream);
  5228. }
  5229. } catch (e) {
  5230. throw e;
  5231. } finally {
  5232. FS.closeStream(stream.fd);
  5233. }
  5234. },llseek:function (stream, offset, whence) {
  5235. if (!stream.seekable || !stream.stream_ops.llseek) {
  5236. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5237. }
  5238. stream.position = stream.stream_ops.llseek(stream, offset, whence);
  5239. stream.ungotten = [];
  5240. return stream.position;
  5241. },read:function (stream, buffer, offset, length, position) {
  5242. if (length < 0 || position < 0) {
  5243. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5244. }
  5245. if ((stream.flags & 2097155) === 1) {
  5246. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5247. }
  5248. if (FS.isDir(stream.node.mode)) {
  5249. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5250. }
  5251. if (!stream.stream_ops.read) {
  5252. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5253. }
  5254. var seeking = true;
  5255. if (typeof position === 'undefined') {
  5256. position = stream.position;
  5257. seeking = false;
  5258. } else if (!stream.seekable) {
  5259. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5260. }
  5261. var bytesRead = stream.stream_ops.read(stream, buffer, offset, length, position);
  5262. if (!seeking) stream.position += bytesRead;
  5263. return bytesRead;
  5264. },write:function (stream, buffer, offset, length, position, canOwn) {
  5265. if (length < 0 || position < 0) {
  5266. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5267. }
  5268. if ((stream.flags & 2097155) === 0) {
  5269. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5270. }
  5271. if (FS.isDir(stream.node.mode)) {
  5272. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5273. }
  5274. if (!stream.stream_ops.write) {
  5275. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5276. }
  5277. if (stream.flags & 1024) {
  5278. // seek to the end before writing in append mode
  5279. FS.llseek(stream, 0, 2);
  5280. }
  5281. var seeking = true;
  5282. if (typeof position === 'undefined') {
  5283. position = stream.position;
  5284. seeking = false;
  5285. } else if (!stream.seekable) {
  5286. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5287. }
  5288. var bytesWritten = stream.stream_ops.write(stream, buffer, offset, length, position, canOwn);
  5289. if (!seeking) stream.position += bytesWritten;
  5290. try {
  5291. if (stream.path && FS.trackingDelegate['onWriteToFile']) FS.trackingDelegate['onWriteToFile'](stream.path);
  5292. } catch(e) {
  5293. console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: " + e.message);
  5294. }
  5295. return bytesWritten;
  5296. },allocate:function (stream, offset, length) {
  5297. if (offset < 0 || length <= 0) {
  5298. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5299. }
  5300. if ((stream.flags & 2097155) === 0) {
  5301. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5302. }
  5303. if (!FS.isFile(stream.node.mode) && !FS.isDir(node.mode)) {
  5304. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  5305. }
  5306. if (!stream.stream_ops.allocate) {
  5307. throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP);
  5308. }
  5309. stream.stream_ops.allocate(stream, offset, length);
  5310. },mmap:function (stream, buffer, offset, length, position, prot, flags) {
  5311. // TODO if PROT is PROT_WRITE, make sure we have write access
  5312. if ((stream.flags & 2097155) === 1) {
  5313. throw new FS.ErrnoError(ERRNO_CODES.EACCES);
  5314. }
  5315. if (!stream.stream_ops.mmap) {
  5316. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  5317. }
  5318. return stream.stream_ops.mmap(stream, buffer, offset, length, position, prot, flags);
  5319. },msync:function (stream, buffer, offset, length, mmapFlags) {
  5320. if (!stream || !stream.stream_ops.msync) {
  5321. return 0;
  5322. }
  5323. return stream.stream_ops.msync(stream, buffer, offset, length, mmapFlags);
  5324. },munmap:function (stream) {
  5325. return 0;
  5326. },ioctl:function (stream, cmd, arg) {
  5327. if (!stream.stream_ops.ioctl) {
  5328. throw new FS.ErrnoError(ERRNO_CODES.ENOTTY);
  5329. }
  5330. return stream.stream_ops.ioctl(stream, cmd, arg);
  5331. },readFile:function (path, opts) {
  5332. opts = opts || {};
  5333. opts.flags = opts.flags || 'r';
  5334. opts.encoding = opts.encoding || 'binary';
  5335. if (opts.encoding !== 'utf8' && opts.encoding !== 'binary') {
  5336. throw new Error('Invalid encoding type "' + opts.encoding + '"');
  5337. }
  5338. var ret;
  5339. var stream = FS.open(path, opts.flags);
  5340. var stat = FS.stat(path);
  5341. var length = stat.size;
  5342. var buf = new Uint8Array(length);
  5343. FS.read(stream, buf, 0, length, 0);
  5344. if (opts.encoding === 'utf8') {
  5345. ret = UTF8ArrayToString(buf, 0);
  5346. } else if (opts.encoding === 'binary') {
  5347. ret = buf;
  5348. }
  5349. FS.close(stream);
  5350. return ret;
  5351. },writeFile:function (path, data, opts) {
  5352. opts = opts || {};
  5353. opts.flags = opts.flags || 'w';
  5354. opts.encoding = opts.encoding || 'utf8';
  5355. if (opts.encoding !== 'utf8' && opts.encoding !== 'binary') {
  5356. throw new Error('Invalid encoding type "' + opts.encoding + '"');
  5357. }
  5358. var stream = FS.open(path, opts.flags, opts.mode);
  5359. if (opts.encoding === 'utf8') {
  5360. var buf = new Uint8Array(lengthBytesUTF8(data)+1);
  5361. var actualNumBytes = stringToUTF8Array(data, buf, 0, buf.length);
  5362. FS.write(stream, buf, 0, actualNumBytes, 0, opts.canOwn);
  5363. } else if (opts.encoding === 'binary') {
  5364. FS.write(stream, data, 0, data.length, 0, opts.canOwn);
  5365. }
  5366. FS.close(stream);
  5367. },cwd:function () {
  5368. return FS.currentPath;
  5369. },chdir:function (path) {
  5370. var lookup = FS.lookupPath(path, { follow: true });
  5371. if (lookup.node === null) {
  5372. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5373. }
  5374. if (!FS.isDir(lookup.node.mode)) {
  5375. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  5376. }
  5377. var err = FS.nodePermissions(lookup.node, 'x');
  5378. if (err) {
  5379. throw new FS.ErrnoError(err);
  5380. }
  5381. FS.currentPath = lookup.path;
  5382. },createDefaultDirectories:function () {
  5383. FS.mkdir('/tmp');
  5384. FS.mkdir('/home');
  5385. FS.mkdir('/home/web_user');
  5386. },createDefaultDevices:function () {
  5387. // create /dev
  5388. FS.mkdir('/dev');
  5389. // setup /dev/null
  5390. FS.registerDevice(FS.makedev(1, 3), {
  5391. read: function() { return 0; },
  5392. write: function(stream, buffer, offset, length, pos) { return length; }
  5393. });
  5394. FS.mkdev('/dev/null', FS.makedev(1, 3));
  5395. // setup /dev/tty and /dev/tty1
  5396. // stderr needs to print output using Module['printErr']
  5397. // so we register a second tty just for it.
  5398. TTY.register(FS.makedev(5, 0), TTY.default_tty_ops);
  5399. TTY.register(FS.makedev(6, 0), TTY.default_tty1_ops);
  5400. FS.mkdev('/dev/tty', FS.makedev(5, 0));
  5401. FS.mkdev('/dev/tty1', FS.makedev(6, 0));
  5402. // setup /dev/[u]random
  5403. var random_device;
  5404. if (typeof crypto !== 'undefined') {
  5405. // for modern web browsers
  5406. var randomBuffer = new Uint8Array(1);
  5407. random_device = function() { crypto.getRandomValues(randomBuffer); return randomBuffer[0]; };
  5408. } else if (ENVIRONMENT_IS_NODE) {
  5409. // for nodejs
  5410. random_device = function() { return require('crypto').randomBytes(1)[0]; };
  5411. } else {
  5412. // default for ES5 platforms
  5413. random_device = function() { return (Math.random()*256)|0; };
  5414. }
  5415. FS.createDevice('/dev', 'random', random_device);
  5416. FS.createDevice('/dev', 'urandom', random_device);
  5417. // we're not going to emulate the actual shm device,
  5418. // just create the tmp dirs that reside in it commonly
  5419. FS.mkdir('/dev/shm');
  5420. FS.mkdir('/dev/shm/tmp');
  5421. },createSpecialDirectories:function () {
  5422. // create /proc/self/fd which allows /proc/self/fd/6 => readlink gives the name of the stream for fd 6 (see test_unistd_ttyname)
  5423. FS.mkdir('/proc');
  5424. FS.mkdir('/proc/self');
  5425. FS.mkdir('/proc/self/fd');
  5426. FS.mount({
  5427. mount: function() {
  5428. var node = FS.createNode('/proc/self', 'fd', 16384 | 511 /* 0777 */, 73);
  5429. node.node_ops = {
  5430. lookup: function(parent, name) {
  5431. var fd = +name;
  5432. var stream = FS.getStream(fd);
  5433. if (!stream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5434. var ret = {
  5435. parent: null,
  5436. mount: { mountpoint: 'fake' },
  5437. node_ops: { readlink: function() { return stream.path } }
  5438. };
  5439. ret.parent = ret; // make it look like a simple root node
  5440. return ret;
  5441. }
  5442. };
  5443. return node;
  5444. }
  5445. }, {}, '/proc/self/fd');
  5446. },createStandardStreams:function () {
  5447. // TODO deprecate the old functionality of a single
  5448. // input / output callback and that utilizes FS.createDevice
  5449. // and instead require a unique set of stream ops
  5450. // by default, we symlink the standard streams to the
  5451. // default tty devices. however, if the standard streams
  5452. // have been overwritten we create a unique device for
  5453. // them instead.
  5454. if (Module['stdin']) {
  5455. FS.createDevice('/dev', 'stdin', Module['stdin']);
  5456. } else {
  5457. FS.symlink('/dev/tty', '/dev/stdin');
  5458. }
  5459. if (Module['stdout']) {
  5460. FS.createDevice('/dev', 'stdout', null, Module['stdout']);
  5461. } else {
  5462. FS.symlink('/dev/tty', '/dev/stdout');
  5463. }
  5464. if (Module['stderr']) {
  5465. FS.createDevice('/dev', 'stderr', null, Module['stderr']);
  5466. } else {
  5467. FS.symlink('/dev/tty1', '/dev/stderr');
  5468. }
  5469. // open default streams for the stdin, stdout and stderr devices
  5470. var stdin = FS.open('/dev/stdin', 'r');
  5471. assert(stdin.fd === 0, 'invalid handle for stdin (' + stdin.fd + ')');
  5472. var stdout = FS.open('/dev/stdout', 'w');
  5473. assert(stdout.fd === 1, 'invalid handle for stdout (' + stdout.fd + ')');
  5474. var stderr = FS.open('/dev/stderr', 'w');
  5475. assert(stderr.fd === 2, 'invalid handle for stderr (' + stderr.fd + ')');
  5476. },ensureErrnoError:function () {
  5477. if (FS.ErrnoError) return;
  5478. FS.ErrnoError = function ErrnoError(errno, node) {
  5479. //Module.printErr(stackTrace()); // useful for debugging
  5480. this.node = node;
  5481. this.setErrno = function(errno) {
  5482. this.errno = errno;
  5483. for (var key in ERRNO_CODES) {
  5484. if (ERRNO_CODES[key] === errno) {
  5485. this.code = key;
  5486. break;
  5487. }
  5488. }
  5489. };
  5490. this.setErrno(errno);
  5491. this.message = ERRNO_MESSAGES[errno];
  5492. if (this.stack) this.stack = demangleAll(this.stack);
  5493. };
  5494. FS.ErrnoError.prototype = new Error();
  5495. FS.ErrnoError.prototype.constructor = FS.ErrnoError;
  5496. // Some errors may happen quite a bit, to avoid overhead we reuse them (and suffer a lack of stack info)
  5497. [ERRNO_CODES.ENOENT].forEach(function(code) {
  5498. FS.genericErrors[code] = new FS.ErrnoError(code);
  5499. FS.genericErrors[code].stack = '<generic error, no stack>';
  5500. });
  5501. },staticInit:function () {
  5502. FS.ensureErrnoError();
  5503. FS.nameTable = new Array(4096);
  5504. FS.mount(MEMFS, {}, '/');
  5505. FS.createDefaultDirectories();
  5506. FS.createDefaultDevices();
  5507. FS.createSpecialDirectories();
  5508. FS.filesystems = {
  5509. 'MEMFS': MEMFS,
  5510. 'IDBFS': IDBFS,
  5511. 'NODEFS': NODEFS,
  5512. 'WORKERFS': WORKERFS,
  5513. };
  5514. },init:function (input, output, error) {
  5515. 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)');
  5516. FS.init.initialized = true;
  5517. FS.ensureErrnoError();
  5518. // Allow Module.stdin etc. to provide defaults, if none explicitly passed to us here
  5519. Module['stdin'] = input || Module['stdin'];
  5520. Module['stdout'] = output || Module['stdout'];
  5521. Module['stderr'] = error || Module['stderr'];
  5522. FS.createStandardStreams();
  5523. },quit:function () {
  5524. FS.init.initialized = false;
  5525. // force-flush all streams, so we get musl std streams printed out
  5526. var fflush = Module['_fflush'];
  5527. if (fflush) fflush(0);
  5528. // close all of our streams
  5529. for (var i = 0; i < FS.streams.length; i++) {
  5530. var stream = FS.streams[i];
  5531. if (!stream) {
  5532. continue;
  5533. }
  5534. FS.close(stream);
  5535. }
  5536. },getMode:function (canRead, canWrite) {
  5537. var mode = 0;
  5538. if (canRead) mode |= 292 | 73;
  5539. if (canWrite) mode |= 146;
  5540. return mode;
  5541. },joinPath:function (parts, forceRelative) {
  5542. var path = PATH.join.apply(null, parts);
  5543. if (forceRelative && path[0] == '/') path = path.substr(1);
  5544. return path;
  5545. },absolutePath:function (relative, base) {
  5546. return PATH.resolve(base, relative);
  5547. },standardizePath:function (path) {
  5548. return PATH.normalize(path);
  5549. },findObject:function (path, dontResolveLastLink) {
  5550. var ret = FS.analyzePath(path, dontResolveLastLink);
  5551. if (ret.exists) {
  5552. return ret.object;
  5553. } else {
  5554. ___setErrNo(ret.error);
  5555. return null;
  5556. }
  5557. },analyzePath:function (path, dontResolveLastLink) {
  5558. // operate from within the context of the symlink's target
  5559. try {
  5560. var lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
  5561. path = lookup.path;
  5562. } catch (e) {
  5563. }
  5564. var ret = {
  5565. isRoot: false, exists: false, error: 0, name: null, path: null, object: null,
  5566. parentExists: false, parentPath: null, parentObject: null
  5567. };
  5568. try {
  5569. var lookup = FS.lookupPath(path, { parent: true });
  5570. ret.parentExists = true;
  5571. ret.parentPath = lookup.path;
  5572. ret.parentObject = lookup.node;
  5573. ret.name = PATH.basename(path);
  5574. lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
  5575. ret.exists = true;
  5576. ret.path = lookup.path;
  5577. ret.object = lookup.node;
  5578. ret.name = lookup.node.name;
  5579. ret.isRoot = lookup.path === '/';
  5580. } catch (e) {
  5581. ret.error = e.errno;
  5582. };
  5583. return ret;
  5584. },createFolder:function (parent, name, canRead, canWrite) {
  5585. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5586. var mode = FS.getMode(canRead, canWrite);
  5587. return FS.mkdir(path, mode);
  5588. },createPath:function (parent, path, canRead, canWrite) {
  5589. parent = typeof parent === 'string' ? parent : FS.getPath(parent);
  5590. var parts = path.split('/').reverse();
  5591. while (parts.length) {
  5592. var part = parts.pop();
  5593. if (!part) continue;
  5594. var current = PATH.join2(parent, part);
  5595. try {
  5596. FS.mkdir(current);
  5597. } catch (e) {
  5598. // ignore EEXIST
  5599. }
  5600. parent = current;
  5601. }
  5602. return current;
  5603. },createFile:function (parent, name, properties, canRead, canWrite) {
  5604. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5605. var mode = FS.getMode(canRead, canWrite);
  5606. return FS.create(path, mode);
  5607. },createDataFile:function (parent, name, data, canRead, canWrite, canOwn) {
  5608. var path = name ? PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name) : parent;
  5609. var mode = FS.getMode(canRead, canWrite);
  5610. var node = FS.create(path, mode);
  5611. if (data) {
  5612. if (typeof data === 'string') {
  5613. var arr = new Array(data.length);
  5614. for (var i = 0, len = data.length; i < len; ++i) arr[i] = data.charCodeAt(i);
  5615. data = arr;
  5616. }
  5617. // make sure we can write to the file
  5618. FS.chmod(node, mode | 146);
  5619. var stream = FS.open(node, 'w');
  5620. FS.write(stream, data, 0, data.length, 0, canOwn);
  5621. FS.close(stream);
  5622. FS.chmod(node, mode);
  5623. }
  5624. return node;
  5625. },createDevice:function (parent, name, input, output) {
  5626. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5627. var mode = FS.getMode(!!input, !!output);
  5628. if (!FS.createDevice.major) FS.createDevice.major = 64;
  5629. var dev = FS.makedev(FS.createDevice.major++, 0);
  5630. // Create a fake device that a set of stream ops to emulate
  5631. // the old behavior.
  5632. FS.registerDevice(dev, {
  5633. open: function(stream) {
  5634. stream.seekable = false;
  5635. },
  5636. close: function(stream) {
  5637. // flush any pending line data
  5638. if (output && output.buffer && output.buffer.length) {
  5639. output(10);
  5640. }
  5641. },
  5642. read: function(stream, buffer, offset, length, pos /* ignored */) {
  5643. var bytesRead = 0;
  5644. for (var i = 0; i < length; i++) {
  5645. var result;
  5646. try {
  5647. result = input();
  5648. } catch (e) {
  5649. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5650. }
  5651. if (result === undefined && bytesRead === 0) {
  5652. throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
  5653. }
  5654. if (result === null || result === undefined) break;
  5655. bytesRead++;
  5656. buffer[offset+i] = result;
  5657. }
  5658. if (bytesRead) {
  5659. stream.node.timestamp = Date.now();
  5660. }
  5661. return bytesRead;
  5662. },
  5663. write: function(stream, buffer, offset, length, pos) {
  5664. for (var i = 0; i < length; i++) {
  5665. try {
  5666. output(buffer[offset+i]);
  5667. } catch (e) {
  5668. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5669. }
  5670. }
  5671. if (length) {
  5672. stream.node.timestamp = Date.now();
  5673. }
  5674. return i;
  5675. }
  5676. });
  5677. return FS.mkdev(path, mode, dev);
  5678. },createLink:function (parent, name, target, canRead, canWrite) {
  5679. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5680. return FS.symlink(target, path);
  5681. },forceLoadFile:function (obj) {
  5682. if (obj.isDevice || obj.isFolder || obj.link || obj.contents) return true;
  5683. var success = true;
  5684. if (typeof XMLHttpRequest !== 'undefined') {
  5685. 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.");
  5686. } else if (Module['read']) {
  5687. // Command-line.
  5688. try {
  5689. // WARNING: Can't read binary files in V8's d8 or tracemonkey's js, as
  5690. // read() will try to parse UTF8.
  5691. obj.contents = intArrayFromString(Module['read'](obj.url), true);
  5692. obj.usedBytes = obj.contents.length;
  5693. } catch (e) {
  5694. success = false;
  5695. }
  5696. } else {
  5697. throw new Error('Cannot load without read() or XMLHttpRequest.');
  5698. }
  5699. if (!success) ___setErrNo(ERRNO_CODES.EIO);
  5700. return success;
  5701. },createLazyFile:function (parent, name, url, canRead, canWrite) {
  5702. // Lazy chunked Uint8Array (implements get and length from Uint8Array). Actual getting is abstracted away for eventual reuse.
  5703. function LazyUint8Array() {
  5704. this.lengthKnown = false;
  5705. this.chunks = []; // Loaded chunks. Index is the chunk number
  5706. }
  5707. LazyUint8Array.prototype.get = function LazyUint8Array_get(idx) {
  5708. if (idx > this.length-1 || idx < 0) {
  5709. return undefined;
  5710. }
  5711. var chunkOffset = idx % this.chunkSize;
  5712. var chunkNum = (idx / this.chunkSize)|0;
  5713. return this.getter(chunkNum)[chunkOffset];
  5714. }
  5715. LazyUint8Array.prototype.setDataGetter = function LazyUint8Array_setDataGetter(getter) {
  5716. this.getter = getter;
  5717. }
  5718. LazyUint8Array.prototype.cacheLength = function LazyUint8Array_cacheLength() {
  5719. // Find length
  5720. var xhr = new XMLHttpRequest();
  5721. xhr.open('HEAD', url, false);
  5722. xhr.send(null);
  5723. if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
  5724. var datalength = Number(xhr.getResponseHeader("Content-length"));
  5725. var header;
  5726. var hasByteServing = (header = xhr.getResponseHeader("Accept-Ranges")) && header === "bytes";
  5727. var usesGzip = (header = xhr.getResponseHeader("Content-Encoding")) && header === "gzip";
  5728. var chunkSize = 1024*1024; // Chunk size in bytes
  5729. if (!hasByteServing) chunkSize = datalength;
  5730. // Function to get a range from the remote URL.
  5731. var doXHR = (function(from, to) {
  5732. if (from > to) throw new Error("invalid range (" + from + ", " + to + ") or no bytes requested!");
  5733. if (to > datalength-1) throw new Error("only " + datalength + " bytes available! programmer error!");
  5734. // TODO: Use mozResponseArrayBuffer, responseStream, etc. if available.
  5735. var xhr = new XMLHttpRequest();
  5736. xhr.open('GET', url, false);
  5737. if (datalength !== chunkSize) xhr.setRequestHeader("Range", "bytes=" + from + "-" + to);
  5738. // Some hints to the browser that we want binary data.
  5739. if (typeof Uint8Array != 'undefined') xhr.responseType = 'arraybuffer';
  5740. if (xhr.overrideMimeType) {
  5741. xhr.overrideMimeType('text/plain; charset=x-user-defined');
  5742. }
  5743. xhr.send(null);
  5744. if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
  5745. if (xhr.response !== undefined) {
  5746. return new Uint8Array(xhr.response || []);
  5747. } else {
  5748. return intArrayFromString(xhr.responseText || '', true);
  5749. }
  5750. });
  5751. var lazyArray = this;
  5752. lazyArray.setDataGetter(function(chunkNum) {
  5753. var start = chunkNum * chunkSize;
  5754. var end = (chunkNum+1) * chunkSize - 1; // including this byte
  5755. end = Math.min(end, datalength-1); // if datalength-1 is selected, this is the last block
  5756. if (typeof(lazyArray.chunks[chunkNum]) === "undefined") {
  5757. lazyArray.chunks[chunkNum] = doXHR(start, end);
  5758. }
  5759. if (typeof(lazyArray.chunks[chunkNum]) === "undefined") throw new Error("doXHR failed!");
  5760. return lazyArray.chunks[chunkNum];
  5761. });
  5762. if (usesGzip || !datalength) {
  5763. // if the server uses gzip or doesn't supply the length, we have to download the whole file to get the (uncompressed) length
  5764. chunkSize = datalength = 1; // this will force getter(0)/doXHR do download the whole file
  5765. datalength = this.getter(0).length;
  5766. chunkSize = datalength;
  5767. console.log("LazyFiles on gzip forces download of the whole file when length is accessed");
  5768. }
  5769. this._length = datalength;
  5770. this._chunkSize = chunkSize;
  5771. this.lengthKnown = true;
  5772. }
  5773. if (typeof XMLHttpRequest !== 'undefined') {
  5774. if (!ENVIRONMENT_IS_WORKER) throw 'Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc';
  5775. var lazyArray = new LazyUint8Array();
  5776. Object.defineProperties(lazyArray, {
  5777. length: {
  5778. get: function() {
  5779. if(!this.lengthKnown) {
  5780. this.cacheLength();
  5781. }
  5782. return this._length;
  5783. }
  5784. },
  5785. chunkSize: {
  5786. get: function() {
  5787. if(!this.lengthKnown) {
  5788. this.cacheLength();
  5789. }
  5790. return this._chunkSize;
  5791. }
  5792. }
  5793. });
  5794. var properties = { isDevice: false, contents: lazyArray };
  5795. } else {
  5796. var properties = { isDevice: false, url: url };
  5797. }
  5798. var node = FS.createFile(parent, name, properties, canRead, canWrite);
  5799. // This is a total hack, but I want to get this lazy file code out of the
  5800. // core of MEMFS. If we want to keep this lazy file concept I feel it should
  5801. // be its own thin LAZYFS proxying calls to MEMFS.
  5802. if (properties.contents) {
  5803. node.contents = properties.contents;
  5804. } else if (properties.url) {
  5805. node.contents = null;
  5806. node.url = properties.url;
  5807. }
  5808. // Add a function that defers querying the file size until it is asked the first time.
  5809. Object.defineProperties(node, {
  5810. usedBytes: {
  5811. get: function() { return this.contents.length; }
  5812. }
  5813. });
  5814. // override each stream op with one that tries to force load the lazy file first
  5815. var stream_ops = {};
  5816. var keys = Object.keys(node.stream_ops);
  5817. keys.forEach(function(key) {
  5818. var fn = node.stream_ops[key];
  5819. stream_ops[key] = function forceLoadLazyFile() {
  5820. if (!FS.forceLoadFile(node)) {
  5821. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5822. }
  5823. return fn.apply(null, arguments);
  5824. };
  5825. });
  5826. // use a custom read function
  5827. stream_ops.read = function stream_ops_read(stream, buffer, offset, length, position) {
  5828. if (!FS.forceLoadFile(node)) {
  5829. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5830. }
  5831. var contents = stream.node.contents;
  5832. if (position >= contents.length)
  5833. return 0;
  5834. var size = Math.min(contents.length - position, length);
  5835. assert(size >= 0);
  5836. if (contents.slice) { // normal array
  5837. for (var i = 0; i < size; i++) {
  5838. buffer[offset + i] = contents[position + i];
  5839. }
  5840. } else {
  5841. for (var i = 0; i < size; i++) { // LazyUint8Array from sync binary XHR
  5842. buffer[offset + i] = contents.get(position + i);
  5843. }
  5844. }
  5845. return size;
  5846. };
  5847. node.stream_ops = stream_ops;
  5848. return node;
  5849. },createPreloadedFile:function (parent, name, url, canRead, canWrite, onload, onerror, dontCreateFile, canOwn, preFinish) {
  5850. Browser.init(); // XXX perhaps this method should move onto Browser?
  5851. // TODO we should allow people to just pass in a complete filename instead
  5852. // of parent and name being that we just join them anyways
  5853. var fullname = name ? PATH.resolve(PATH.join2(parent, name)) : parent;
  5854. var dep = getUniqueRunDependency('cp ' + fullname); // might have several active requests for the same fullname
  5855. function processData(byteArray) {
  5856. function finish(byteArray) {
  5857. if (preFinish) preFinish();
  5858. if (!dontCreateFile) {
  5859. FS.createDataFile(parent, name, byteArray, canRead, canWrite, canOwn);
  5860. }
  5861. if (onload) onload();
  5862. removeRunDependency(dep);
  5863. }
  5864. var handled = false;
  5865. Module['preloadPlugins'].forEach(function(plugin) {
  5866. if (handled) return;
  5867. if (plugin['canHandle'](fullname)) {
  5868. plugin['handle'](byteArray, fullname, finish, function() {
  5869. if (onerror) onerror();
  5870. removeRunDependency(dep);
  5871. });
  5872. handled = true;
  5873. }
  5874. });
  5875. if (!handled) finish(byteArray);
  5876. }
  5877. addRunDependency(dep);
  5878. if (typeof url == 'string') {
  5879. Browser.asyncLoad(url, function(byteArray) {
  5880. processData(byteArray);
  5881. }, onerror);
  5882. } else {
  5883. processData(url);
  5884. }
  5885. },indexedDB:function () {
  5886. return window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
  5887. },DB_NAME:function () {
  5888. return 'EM_FS_' + window.location.pathname;
  5889. },DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:function (paths, onload, onerror) {
  5890. onload = onload || function(){};
  5891. onerror = onerror || function(){};
  5892. var indexedDB = FS.indexedDB();
  5893. try {
  5894. var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
  5895. } catch (e) {
  5896. return onerror(e);
  5897. }
  5898. openRequest.onupgradeneeded = function openRequest_onupgradeneeded() {
  5899. console.log('creating db');
  5900. var db = openRequest.result;
  5901. db.createObjectStore(FS.DB_STORE_NAME);
  5902. };
  5903. openRequest.onsuccess = function openRequest_onsuccess() {
  5904. var db = openRequest.result;
  5905. var transaction = db.transaction([FS.DB_STORE_NAME], 'readwrite');
  5906. var files = transaction.objectStore(FS.DB_STORE_NAME);
  5907. var ok = 0, fail = 0, total = paths.length;
  5908. function finish() {
  5909. if (fail == 0) onload(); else onerror();
  5910. }
  5911. paths.forEach(function(path) {
  5912. var putRequest = files.put(FS.analyzePath(path).object.contents, path);
  5913. putRequest.onsuccess = function putRequest_onsuccess() { ok++; if (ok + fail == total) finish() };
  5914. putRequest.onerror = function putRequest_onerror() { fail++; if (ok + fail == total) finish() };
  5915. });
  5916. transaction.onerror = onerror;
  5917. };
  5918. openRequest.onerror = onerror;
  5919. },loadFilesFromDB:function (paths, onload, onerror) {
  5920. onload = onload || function(){};
  5921. onerror = onerror || function(){};
  5922. var indexedDB = FS.indexedDB();
  5923. try {
  5924. var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
  5925. } catch (e) {
  5926. return onerror(e);
  5927. }
  5928. openRequest.onupgradeneeded = onerror; // no database to load from
  5929. openRequest.onsuccess = function openRequest_onsuccess() {
  5930. var db = openRequest.result;
  5931. try {
  5932. var transaction = db.transaction([FS.DB_STORE_NAME], 'readonly');
  5933. } catch(e) {
  5934. onerror(e);
  5935. return;
  5936. }
  5937. var files = transaction.objectStore(FS.DB_STORE_NAME);
  5938. var ok = 0, fail = 0, total = paths.length;
  5939. function finish() {
  5940. if (fail == 0) onload(); else onerror();
  5941. }
  5942. paths.forEach(function(path) {
  5943. var getRequest = files.get(path);
  5944. getRequest.onsuccess = function getRequest_onsuccess() {
  5945. if (FS.analyzePath(path).exists) {
  5946. FS.unlink(path);
  5947. }
  5948. FS.createDataFile(PATH.dirname(path), PATH.basename(path), getRequest.result, true, true, true);
  5949. ok++;
  5950. if (ok + fail == total) finish();
  5951. };
  5952. getRequest.onerror = function getRequest_onerror() { fail++; if (ok + fail == total) finish() };
  5953. });
  5954. transaction.onerror = onerror;
  5955. };
  5956. openRequest.onerror = onerror;
  5957. }};var SYSCALLS={DEFAULT_POLLMASK:5,mappings:{},umask:511,calculateAt:function (dirfd, path) {
  5958. if (path[0] !== '/') {
  5959. // relative path
  5960. var dir;
  5961. if (dirfd === -100) {
  5962. dir = FS.cwd();
  5963. } else {
  5964. var dirstream = FS.getStream(dirfd);
  5965. if (!dirstream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5966. dir = dirstream.path;
  5967. }
  5968. path = PATH.join2(dir, path);
  5969. }
  5970. return path;
  5971. },doStat:function (func, path, buf) {
  5972. try {
  5973. var stat = func(path);
  5974. } catch (e) {
  5975. if (e && e.node && PATH.normalize(path) !== PATH.normalize(FS.getPath(e.node))) {
  5976. // an error occurred while trying to look up the path; we should just report ENOTDIR
  5977. return -ERRNO_CODES.ENOTDIR;
  5978. }
  5979. throw e;
  5980. }
  5981. HEAP32[((buf)>>2)]=stat.dev;
  5982. HEAP32[(((buf)+(4))>>2)]=0;
  5983. HEAP32[(((buf)+(8))>>2)]=stat.ino;
  5984. HEAP32[(((buf)+(12))>>2)]=stat.mode;
  5985. HEAP32[(((buf)+(16))>>2)]=stat.nlink;
  5986. HEAP32[(((buf)+(20))>>2)]=stat.uid;
  5987. HEAP32[(((buf)+(24))>>2)]=stat.gid;
  5988. HEAP32[(((buf)+(28))>>2)]=stat.rdev;
  5989. HEAP32[(((buf)+(32))>>2)]=0;
  5990. HEAP32[(((buf)+(36))>>2)]=stat.size;
  5991. HEAP32[(((buf)+(40))>>2)]=4096;
  5992. HEAP32[(((buf)+(44))>>2)]=stat.blocks;
  5993. HEAP32[(((buf)+(48))>>2)]=(stat.atime.getTime() / 1000)|0;
  5994. HEAP32[(((buf)+(52))>>2)]=0;
  5995. HEAP32[(((buf)+(56))>>2)]=(stat.mtime.getTime() / 1000)|0;
  5996. HEAP32[(((buf)+(60))>>2)]=0;
  5997. HEAP32[(((buf)+(64))>>2)]=(stat.ctime.getTime() / 1000)|0;
  5998. HEAP32[(((buf)+(68))>>2)]=0;
  5999. HEAP32[(((buf)+(72))>>2)]=stat.ino;
  6000. return 0;
  6001. },doMsync:function (addr, stream, len, flags) {
  6002. var buffer = new Uint8Array(HEAPU8.subarray(addr, addr + len));
  6003. FS.msync(stream, buffer, 0, len, flags);
  6004. },doMkdir:function (path, mode) {
  6005. // remove a trailing slash, if one - /a/b/ has basename of '', but
  6006. // we want to create b in the context of this function
  6007. path = PATH.normalize(path);
  6008. if (path[path.length-1] === '/') path = path.substr(0, path.length-1);
  6009. FS.mkdir(path, mode, 0);
  6010. return 0;
  6011. },doMknod:function (path, mode, dev) {
  6012. // we don't want this in the JS API as it uses mknod to create all nodes.
  6013. switch (mode & 61440) {
  6014. case 32768:
  6015. case 8192:
  6016. case 24576:
  6017. case 4096:
  6018. case 49152:
  6019. break;
  6020. default: return -ERRNO_CODES.EINVAL;
  6021. }
  6022. FS.mknod(path, mode, dev);
  6023. return 0;
  6024. },doReadlink:function (path, buf, bufsize) {
  6025. if (bufsize <= 0) return -ERRNO_CODES.EINVAL;
  6026. var ret = FS.readlink(path);
  6027. var len = Math.min(bufsize, lengthBytesUTF8(ret));
  6028. var endChar = HEAP8[buf+len];
  6029. stringToUTF8(ret, buf, bufsize+1);
  6030. // readlink is one of the rare functions that write out a C string, but does never append a null to the output buffer(!)
  6031. // stringToUTF8() always appends a null byte, so restore the character under the null byte after the write.
  6032. HEAP8[buf+len] = endChar;
  6033. return len;
  6034. },doAccess:function (path, amode) {
  6035. if (amode & ~7) {
  6036. // need a valid mode
  6037. return -ERRNO_CODES.EINVAL;
  6038. }
  6039. var node;
  6040. var lookup = FS.lookupPath(path, { follow: true });
  6041. node = lookup.node;
  6042. var perms = '';
  6043. if (amode & 4) perms += 'r';
  6044. if (amode & 2) perms += 'w';
  6045. if (amode & 1) perms += 'x';
  6046. if (perms /* otherwise, they've just passed F_OK */ && FS.nodePermissions(node, perms)) {
  6047. return -ERRNO_CODES.EACCES;
  6048. }
  6049. return 0;
  6050. },doDup:function (path, flags, suggestFD) {
  6051. var suggest = FS.getStream(suggestFD);
  6052. if (suggest) FS.close(suggest);
  6053. return FS.open(path, flags, 0, suggestFD, suggestFD).fd;
  6054. },doReadv:function (stream, iov, iovcnt, offset) {
  6055. var ret = 0;
  6056. for (var i = 0; i < iovcnt; i++) {
  6057. var ptr = HEAP32[(((iov)+(i*8))>>2)];
  6058. var len = HEAP32[(((iov)+(i*8 + 4))>>2)];
  6059. var curr = FS.read(stream, HEAP8,ptr, len, offset);
  6060. if (curr < 0) return -1;
  6061. ret += curr;
  6062. if (curr < len) break; // nothing more to read
  6063. }
  6064. return ret;
  6065. },doWritev:function (stream, iov, iovcnt, offset) {
  6066. var ret = 0;
  6067. for (var i = 0; i < iovcnt; i++) {
  6068. var ptr = HEAP32[(((iov)+(i*8))>>2)];
  6069. var len = HEAP32[(((iov)+(i*8 + 4))>>2)];
  6070. var curr = FS.write(stream, HEAP8,ptr, len, offset);
  6071. if (curr < 0) return -1;
  6072. ret += curr;
  6073. }
  6074. return ret;
  6075. },varargs:0,get:function (varargs) {
  6076. SYSCALLS.varargs += 4;
  6077. var ret = HEAP32[(((SYSCALLS.varargs)-(4))>>2)];
  6078. return ret;
  6079. },getStr:function () {
  6080. var ret = Pointer_stringify(SYSCALLS.get());
  6081. return ret;
  6082. },getStreamFromFD:function () {
  6083. var stream = FS.getStream(SYSCALLS.get());
  6084. if (!stream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  6085. return stream;
  6086. },getSocketFromFD:function () {
  6087. var socket = SOCKFS.getSocket(SYSCALLS.get());
  6088. if (!socket) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  6089. return socket;
  6090. },getSocketAddress:function (allowNull) {
  6091. var addrp = SYSCALLS.get(), addrlen = SYSCALLS.get();
  6092. if (allowNull && addrp === 0) return null;
  6093. var info = __read_sockaddr(addrp, addrlen);
  6094. if (info.errno) throw new FS.ErrnoError(info.errno);
  6095. info.addr = DNS.lookup_addr(info.addr) || info.addr;
  6096. return info;
  6097. },get64:function () {
  6098. var low = SYSCALLS.get(), high = SYSCALLS.get();
  6099. if (low >= 0) assert(high === 0);
  6100. else assert(high === -1);
  6101. return low;
  6102. },getZero:function () {
  6103. assert(SYSCALLS.get() === 0);
  6104. }};function ___syscall54(which, varargs) {SYSCALLS.varargs = varargs;
  6105. try {
  6106. // ioctl
  6107. var stream = SYSCALLS.getStreamFromFD(), op = SYSCALLS.get();
  6108. switch (op) {
  6109. case 21505: {
  6110. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6111. return 0;
  6112. }
  6113. case 21506: {
  6114. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6115. return 0; // no-op, not actually adjusting terminal settings
  6116. }
  6117. case 21519: {
  6118. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6119. var argp = SYSCALLS.get();
  6120. HEAP32[((argp)>>2)]=0;
  6121. return 0;
  6122. }
  6123. case 21520: {
  6124. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6125. return -ERRNO_CODES.EINVAL; // not supported
  6126. }
  6127. case 21531: {
  6128. var argp = SYSCALLS.get();
  6129. return FS.ioctl(stream, op, argp);
  6130. }
  6131. case 21523: {
  6132. // TODO: in theory we should write to the winsize struct that gets
  6133. // passed in, but for now musl doesn't read anything on it
  6134. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6135. return 0;
  6136. }
  6137. default: abort('bad ioctl syscall ' + op);
  6138. }
  6139. } catch (e) {
  6140. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  6141. return -e.errno;
  6142. }
  6143. }
  6144. function _emscripten_glSampleCoverage(value, invert) {
  6145. GLctx.sampleCoverage(value, !!invert);
  6146. }
  6147. function _glDeleteTextures(n, textures) {
  6148. for (var i = 0; i < n; i++) {
  6149. var id = HEAP32[(((textures)+(i*4))>>2)];
  6150. var texture = GL.textures[id];
  6151. if (!texture) continue; // GL spec: "glDeleteTextures silently ignores 0s and names that do not correspond to existing textures".
  6152. GLctx.deleteTexture(texture);
  6153. texture.name = 0;
  6154. GL.textures[id] = null;
  6155. }
  6156. }
  6157. function _emscripten_glFrustum() {
  6158. Module['printErr']('missing function: emscripten_glFrustum'); abort(-1);
  6159. }
  6160. function _glfwSetWindowSizeCallback(winid, cbfun) {
  6161. GLFW.setWindowSizeCallback(winid, cbfun);
  6162. }
  6163. function _emscripten_glGetTexParameterfv(target, pname, params) {
  6164. if (!params) {
  6165. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  6166. // if p == null, issue a GL error to notify user about it.
  6167. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  6168. return;
  6169. }
  6170. HEAPF32[((params)>>2)]=GLctx.getTexParameter(target, pname);
  6171. }
  6172. function _emscripten_glUniform4i(location, v0, v1, v2, v3) {
  6173. GLctx.uniform4i(GL.uniforms[location], v0, v1, v2, v3);
  6174. }
  6175. function _emscripten_glBindRenderbuffer(target, renderbuffer) {
  6176. GLctx.bindRenderbuffer(target, renderbuffer ? GL.renderbuffers[renderbuffer] : null);
  6177. }
  6178. function _emscripten_glViewport(x0, x1, x2, x3) { GLctx['viewport'](x0, x1, x2, x3) }
  6179. 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 () {
  6180. if (typeof window !== 'undefined') {
  6181. window.addEventListener("gamepadconnected", function() { ++JSEvents.numGamepadsConnected; });
  6182. window.addEventListener("gamepaddisconnected", function() { --JSEvents.numGamepadsConnected; });
  6183. }
  6184. },registerRemoveEventListeners:function () {
  6185. if (!JSEvents.removeEventListenersRegistered) {
  6186. __ATEXIT__.push(function() {
  6187. for(var i = JSEvents.eventHandlers.length-1; i >= 0; --i) {
  6188. JSEvents._removeHandler(i);
  6189. }
  6190. });
  6191. JSEvents.removeEventListenersRegistered = true;
  6192. }
  6193. },findEventTarget:function (target) {
  6194. if (target) {
  6195. if (typeof target == "number") {
  6196. target = Pointer_stringify(target);
  6197. }
  6198. if (target == '#window') return window;
  6199. else if (target == '#document') return document;
  6200. else if (target == '#screen') return window.screen;
  6201. else if (target == '#canvas') return Module['canvas'];
  6202. if (typeof target == 'string') return document.getElementById(target);
  6203. else return target;
  6204. } else {
  6205. // The sensible target varies between events, but use window as the default
  6206. // since DOM events mostly can default to that. Specific callback registrations
  6207. // override their own defaults.
  6208. return window;
  6209. }
  6210. },deferredCalls:[],deferCall:function (targetFunction, precedence, argsList) {
  6211. function arraysHaveEqualContent(arrA, arrB) {
  6212. if (arrA.length != arrB.length) return false;
  6213. for(var i in arrA) {
  6214. if (arrA[i] != arrB[i]) return false;
  6215. }
  6216. return true;
  6217. }
  6218. // Test if the given call was already queued, and if so, don't add it again.
  6219. for(var i in JSEvents.deferredCalls) {
  6220. var call = JSEvents.deferredCalls[i];
  6221. if (call.targetFunction == targetFunction && arraysHaveEqualContent(call.argsList, argsList)) {
  6222. return;
  6223. }
  6224. }
  6225. JSEvents.deferredCalls.push({
  6226. targetFunction: targetFunction,
  6227. precedence: precedence,
  6228. argsList: argsList
  6229. });
  6230. JSEvents.deferredCalls.sort(function(x,y) { return x.precedence < y.precedence; });
  6231. },removeDeferredCalls:function (targetFunction) {
  6232. for(var i = 0; i < JSEvents.deferredCalls.length; ++i) {
  6233. if (JSEvents.deferredCalls[i].targetFunction == targetFunction) {
  6234. JSEvents.deferredCalls.splice(i, 1);
  6235. --i;
  6236. }
  6237. }
  6238. },canPerformEventHandlerRequests:function () {
  6239. return JSEvents.inEventHandler && JSEvents.currentEventHandler.allowsDeferredCalls;
  6240. },runDeferredCalls:function () {
  6241. if (!JSEvents.canPerformEventHandlerRequests()) {
  6242. return;
  6243. }
  6244. for(var i = 0; i < JSEvents.deferredCalls.length; ++i) {
  6245. var call = JSEvents.deferredCalls[i];
  6246. JSEvents.deferredCalls.splice(i, 1);
  6247. --i;
  6248. call.targetFunction.apply(this, call.argsList);
  6249. }
  6250. },inEventHandler:0,currentEventHandler:null,eventHandlers:[],isInternetExplorer:function () { return navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0; },removeAllHandlersOnTarget:function (target, eventTypeString) {
  6251. for(var i = 0; i < JSEvents.eventHandlers.length; ++i) {
  6252. if (JSEvents.eventHandlers[i].target == target &&
  6253. (!eventTypeString || eventTypeString == JSEvents.eventHandlers[i].eventTypeString)) {
  6254. JSEvents._removeHandler(i--);
  6255. }
  6256. }
  6257. },_removeHandler:function (i) {
  6258. var h = JSEvents.eventHandlers[i];
  6259. h.target.removeEventListener(h.eventTypeString, h.eventListenerFunc, h.useCapture);
  6260. JSEvents.eventHandlers.splice(i, 1);
  6261. },registerOrRemoveHandler:function (eventHandler) {
  6262. var jsEventHandler = function jsEventHandler(event) {
  6263. // Increment nesting count for the event handler.
  6264. ++JSEvents.inEventHandler;
  6265. JSEvents.currentEventHandler = eventHandler;
  6266. // Process any old deferred calls the user has placed.
  6267. JSEvents.runDeferredCalls();
  6268. // Process the actual event, calls back to user C code handler.
  6269. eventHandler.handlerFunc(event);
  6270. // Process any new deferred calls that were placed right now from this event handler.
  6271. JSEvents.runDeferredCalls();
  6272. // Out of event handler - restore nesting count.
  6273. --JSEvents.inEventHandler;
  6274. }
  6275. if (eventHandler.callbackfunc) {
  6276. eventHandler.eventListenerFunc = jsEventHandler;
  6277. eventHandler.target.addEventListener(eventHandler.eventTypeString, jsEventHandler, eventHandler.useCapture);
  6278. JSEvents.eventHandlers.push(eventHandler);
  6279. JSEvents.registerRemoveEventListeners();
  6280. } else {
  6281. for(var i = 0; i < JSEvents.eventHandlers.length; ++i) {
  6282. if (JSEvents.eventHandlers[i].target == eventHandler.target
  6283. && JSEvents.eventHandlers[i].eventTypeString == eventHandler.eventTypeString) {
  6284. JSEvents._removeHandler(i--);
  6285. }
  6286. }
  6287. }
  6288. },registerKeyEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6289. if (!JSEvents.keyEvent) {
  6290. JSEvents.keyEvent = _malloc( 164 );
  6291. }
  6292. var handlerFunc = function(event) {
  6293. var e = event || window.event;
  6294. stringToUTF8(e.key ? e.key : "", JSEvents.keyEvent + 0, 32);
  6295. stringToUTF8(e.code ? e.code : "", JSEvents.keyEvent + 32, 32);
  6296. HEAP32[(((JSEvents.keyEvent)+(64))>>2)]=e.location;
  6297. HEAP32[(((JSEvents.keyEvent)+(68))>>2)]=e.ctrlKey;
  6298. HEAP32[(((JSEvents.keyEvent)+(72))>>2)]=e.shiftKey;
  6299. HEAP32[(((JSEvents.keyEvent)+(76))>>2)]=e.altKey;
  6300. HEAP32[(((JSEvents.keyEvent)+(80))>>2)]=e.metaKey;
  6301. HEAP32[(((JSEvents.keyEvent)+(84))>>2)]=e.repeat;
  6302. stringToUTF8(e.locale ? e.locale : "", JSEvents.keyEvent + 88, 32);
  6303. stringToUTF8(e.char ? e.char : "", JSEvents.keyEvent + 120, 32);
  6304. HEAP32[(((JSEvents.keyEvent)+(152))>>2)]=e.charCode;
  6305. HEAP32[(((JSEvents.keyEvent)+(156))>>2)]=e.keyCode;
  6306. HEAP32[(((JSEvents.keyEvent)+(160))>>2)]=e.which;
  6307. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.keyEvent, userData);
  6308. if (shouldCancel) {
  6309. e.preventDefault();
  6310. }
  6311. };
  6312. var eventHandler = {
  6313. target: JSEvents.findEventTarget(target),
  6314. allowsDeferredCalls: JSEvents.isInternetExplorer() ? false : true, // MSIE doesn't allow fullscreen and pointerlock requests from key handlers, others do.
  6315. eventTypeString: eventTypeString,
  6316. callbackfunc: callbackfunc,
  6317. handlerFunc: handlerFunc,
  6318. useCapture: useCapture
  6319. };
  6320. JSEvents.registerOrRemoveHandler(eventHandler);
  6321. },getBoundingClientRectOrZeros:function (target) {
  6322. return target.getBoundingClientRect ? target.getBoundingClientRect() : { left: 0, top: 0 };
  6323. },fillMouseEventData:function (eventStruct, e, target) {
  6324. HEAPF64[((eventStruct)>>3)]=JSEvents.tick();
  6325. HEAP32[(((eventStruct)+(8))>>2)]=e.screenX;
  6326. HEAP32[(((eventStruct)+(12))>>2)]=e.screenY;
  6327. HEAP32[(((eventStruct)+(16))>>2)]=e.clientX;
  6328. HEAP32[(((eventStruct)+(20))>>2)]=e.clientY;
  6329. HEAP32[(((eventStruct)+(24))>>2)]=e.ctrlKey;
  6330. HEAP32[(((eventStruct)+(28))>>2)]=e.shiftKey;
  6331. HEAP32[(((eventStruct)+(32))>>2)]=e.altKey;
  6332. HEAP32[(((eventStruct)+(36))>>2)]=e.metaKey;
  6333. HEAP16[(((eventStruct)+(40))>>1)]=e.button;
  6334. HEAP16[(((eventStruct)+(42))>>1)]=e.buttons;
  6335. HEAP32[(((eventStruct)+(44))>>2)]=e["movementX"] || e["mozMovementX"] || e["webkitMovementX"] || (e.screenX-JSEvents.previousScreenX);
  6336. HEAP32[(((eventStruct)+(48))>>2)]=e["movementY"] || e["mozMovementY"] || e["webkitMovementY"] || (e.screenY-JSEvents.previousScreenY);
  6337. if (Module['canvas']) {
  6338. var rect = Module['canvas'].getBoundingClientRect();
  6339. HEAP32[(((eventStruct)+(60))>>2)]=e.clientX - rect.left;
  6340. HEAP32[(((eventStruct)+(64))>>2)]=e.clientY - rect.top;
  6341. } else { // Canvas is not initialized, return 0.
  6342. HEAP32[(((eventStruct)+(60))>>2)]=0;
  6343. HEAP32[(((eventStruct)+(64))>>2)]=0;
  6344. }
  6345. if (target) {
  6346. var rect = JSEvents.getBoundingClientRectOrZeros(target);
  6347. HEAP32[(((eventStruct)+(52))>>2)]=e.clientX - rect.left;
  6348. HEAP32[(((eventStruct)+(56))>>2)]=e.clientY - rect.top;
  6349. } else { // No specific target passed, return 0.
  6350. HEAP32[(((eventStruct)+(52))>>2)]=0;
  6351. HEAP32[(((eventStruct)+(56))>>2)]=0;
  6352. }
  6353. // wheel and mousewheel events contain wrong screenX/screenY on chrome/opera
  6354. // https://github.com/kripken/emscripten/pull/4997
  6355. // https://bugs.chromium.org/p/chromium/issues/detail?id=699956
  6356. if (e.type !== 'wheel' && e.type !== 'mousewheel') {
  6357. JSEvents.previousScreenX = e.screenX;
  6358. JSEvents.previousScreenY = e.screenY;
  6359. }
  6360. },registerMouseEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6361. if (!JSEvents.mouseEvent) {
  6362. JSEvents.mouseEvent = _malloc( 72 );
  6363. }
  6364. target = JSEvents.findEventTarget(target);
  6365. var handlerFunc = function(event) {
  6366. var e = event || window.event;
  6367. JSEvents.fillMouseEventData(JSEvents.mouseEvent, e, target);
  6368. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.mouseEvent, userData);
  6369. if (shouldCancel) {
  6370. e.preventDefault();
  6371. }
  6372. };
  6373. var eventHandler = {
  6374. target: target,
  6375. allowsDeferredCalls: eventTypeString != 'mousemove' && eventTypeString != 'mouseenter' && eventTypeString != 'mouseleave', // Mouse move events do not allow fullscreen/pointer lock requests to be handled in them!
  6376. eventTypeString: eventTypeString,
  6377. callbackfunc: callbackfunc,
  6378. handlerFunc: handlerFunc,
  6379. useCapture: useCapture
  6380. };
  6381. // In IE, mousedown events don't either allow deferred calls to be run!
  6382. if (JSEvents.isInternetExplorer() && eventTypeString == 'mousedown') eventHandler.allowsDeferredCalls = false;
  6383. JSEvents.registerOrRemoveHandler(eventHandler);
  6384. },registerWheelEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6385. if (!JSEvents.wheelEvent) {
  6386. JSEvents.wheelEvent = _malloc( 104 );
  6387. }
  6388. target = JSEvents.findEventTarget(target);
  6389. // The DOM Level 3 events spec event 'wheel'
  6390. var wheelHandlerFunc = function(event) {
  6391. var e = event || window.event;
  6392. JSEvents.fillMouseEventData(JSEvents.wheelEvent, e, target);
  6393. HEAPF64[(((JSEvents.wheelEvent)+(72))>>3)]=e["deltaX"];
  6394. HEAPF64[(((JSEvents.wheelEvent)+(80))>>3)]=e["deltaY"];
  6395. HEAPF64[(((JSEvents.wheelEvent)+(88))>>3)]=e["deltaZ"];
  6396. HEAP32[(((JSEvents.wheelEvent)+(96))>>2)]=e["deltaMode"];
  6397. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.wheelEvent, userData);
  6398. if (shouldCancel) {
  6399. e.preventDefault();
  6400. }
  6401. };
  6402. // The 'mousewheel' event as implemented in Safari 6.0.5
  6403. var mouseWheelHandlerFunc = function(event) {
  6404. var e = event || window.event;
  6405. JSEvents.fillMouseEventData(JSEvents.wheelEvent, e, target);
  6406. HEAPF64[(((JSEvents.wheelEvent)+(72))>>3)]=e["wheelDeltaX"] || 0;
  6407. 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. */;
  6408. HEAPF64[(((JSEvents.wheelEvent)+(88))>>3)]=0 /* Not available */;
  6409. HEAP32[(((JSEvents.wheelEvent)+(96))>>2)]=0 /* DOM_DELTA_PIXEL */;
  6410. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.wheelEvent, userData);
  6411. if (shouldCancel) {
  6412. e.preventDefault();
  6413. }
  6414. };
  6415. var eventHandler = {
  6416. target: target,
  6417. allowsDeferredCalls: true,
  6418. eventTypeString: eventTypeString,
  6419. callbackfunc: callbackfunc,
  6420. handlerFunc: (eventTypeString == 'wheel') ? wheelHandlerFunc : mouseWheelHandlerFunc,
  6421. useCapture: useCapture
  6422. };
  6423. JSEvents.registerOrRemoveHandler(eventHandler);
  6424. },pageScrollPos:function () {
  6425. if (window.pageXOffset > 0 || window.pageYOffset > 0) {
  6426. return [window.pageXOffset, window.pageYOffset];
  6427. }
  6428. if (typeof document.documentElement.scrollLeft !== 'undefined' || typeof document.documentElement.scrollTop !== 'undefined') {
  6429. return [document.documentElement.scrollLeft, document.documentElement.scrollTop];
  6430. }
  6431. return [document.body.scrollLeft|0, document.body.scrollTop|0];
  6432. },registerUiEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6433. if (!JSEvents.uiEvent) {
  6434. JSEvents.uiEvent = _malloc( 36 );
  6435. }
  6436. if (eventTypeString == "scroll" && !target) {
  6437. target = document; // By default read scroll events on document rather than window.
  6438. } else {
  6439. target = JSEvents.findEventTarget(target);
  6440. }
  6441. var handlerFunc = function(event) {
  6442. var e = event || window.event;
  6443. if (e.target != target) {
  6444. // Never take ui events such as scroll via a 'bubbled' route, but always from the direct element that
  6445. // was targeted. Otherwise e.g. if app logs a message in response to a page scroll, the Emscripten log
  6446. // message box could cause to scroll, generating a new (bubbled) scroll message, causing a new log print,
  6447. // causing a new scroll, etc..
  6448. return;
  6449. }
  6450. var scrollPos = JSEvents.pageScrollPos();
  6451. HEAP32[((JSEvents.uiEvent)>>2)]=e.detail;
  6452. HEAP32[(((JSEvents.uiEvent)+(4))>>2)]=document.body.clientWidth;
  6453. HEAP32[(((JSEvents.uiEvent)+(8))>>2)]=document.body.clientHeight;
  6454. HEAP32[(((JSEvents.uiEvent)+(12))>>2)]=window.innerWidth;
  6455. HEAP32[(((JSEvents.uiEvent)+(16))>>2)]=window.innerHeight;
  6456. HEAP32[(((JSEvents.uiEvent)+(20))>>2)]=window.outerWidth;
  6457. HEAP32[(((JSEvents.uiEvent)+(24))>>2)]=window.outerHeight;
  6458. HEAP32[(((JSEvents.uiEvent)+(28))>>2)]=scrollPos[0];
  6459. HEAP32[(((JSEvents.uiEvent)+(32))>>2)]=scrollPos[1];
  6460. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.uiEvent, userData);
  6461. if (shouldCancel) {
  6462. e.preventDefault();
  6463. }
  6464. };
  6465. var eventHandler = {
  6466. target: target,
  6467. allowsDeferredCalls: false, // Neither scroll or resize events allow running requests inside them.
  6468. eventTypeString: eventTypeString,
  6469. callbackfunc: callbackfunc,
  6470. handlerFunc: handlerFunc,
  6471. useCapture: useCapture
  6472. };
  6473. JSEvents.registerOrRemoveHandler(eventHandler);
  6474. },getNodeNameForTarget:function (target) {
  6475. if (!target) return '';
  6476. if (target == window) return '#window';
  6477. if (target == window.screen) return '#screen';
  6478. return (target && target.nodeName) ? target.nodeName : '';
  6479. },registerFocusEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6480. if (!JSEvents.focusEvent) {
  6481. JSEvents.focusEvent = _malloc( 256 );
  6482. }
  6483. var handlerFunc = function(event) {
  6484. var e = event || window.event;
  6485. var nodeName = JSEvents.getNodeNameForTarget(e.target);
  6486. var id = e.target.id ? e.target.id : '';
  6487. stringToUTF8(nodeName, JSEvents.focusEvent + 0, 128);
  6488. stringToUTF8(id, JSEvents.focusEvent + 128, 128);
  6489. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.focusEvent, userData);
  6490. if (shouldCancel) {
  6491. e.preventDefault();
  6492. }
  6493. };
  6494. var eventHandler = {
  6495. target: JSEvents.findEventTarget(target),
  6496. allowsDeferredCalls: false,
  6497. eventTypeString: eventTypeString,
  6498. callbackfunc: callbackfunc,
  6499. handlerFunc: handlerFunc,
  6500. useCapture: useCapture
  6501. };
  6502. JSEvents.registerOrRemoveHandler(eventHandler);
  6503. },tick:function () {
  6504. if (window['performance'] && window['performance']['now']) return window['performance']['now']();
  6505. else return Date.now();
  6506. },registerDeviceOrientationEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6507. if (!JSEvents.deviceOrientationEvent) {
  6508. JSEvents.deviceOrientationEvent = _malloc( 40 );
  6509. }
  6510. var handlerFunc = function(event) {
  6511. var e = event || window.event;
  6512. HEAPF64[((JSEvents.deviceOrientationEvent)>>3)]=JSEvents.tick();
  6513. HEAPF64[(((JSEvents.deviceOrientationEvent)+(8))>>3)]=e.alpha;
  6514. HEAPF64[(((JSEvents.deviceOrientationEvent)+(16))>>3)]=e.beta;
  6515. HEAPF64[(((JSEvents.deviceOrientationEvent)+(24))>>3)]=e.gamma;
  6516. HEAP32[(((JSEvents.deviceOrientationEvent)+(32))>>2)]=e.absolute;
  6517. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.deviceOrientationEvent, userData);
  6518. if (shouldCancel) {
  6519. e.preventDefault();
  6520. }
  6521. };
  6522. var eventHandler = {
  6523. target: JSEvents.findEventTarget(target),
  6524. allowsDeferredCalls: false,
  6525. eventTypeString: eventTypeString,
  6526. callbackfunc: callbackfunc,
  6527. handlerFunc: handlerFunc,
  6528. useCapture: useCapture
  6529. };
  6530. JSEvents.registerOrRemoveHandler(eventHandler);
  6531. },registerDeviceMotionEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6532. if (!JSEvents.deviceMotionEvent) {
  6533. JSEvents.deviceMotionEvent = _malloc( 80 );
  6534. }
  6535. var handlerFunc = function(event) {
  6536. var e = event || window.event;
  6537. HEAPF64[((JSEvents.deviceOrientationEvent)>>3)]=JSEvents.tick();
  6538. HEAPF64[(((JSEvents.deviceMotionEvent)+(8))>>3)]=e.acceleration.x;
  6539. HEAPF64[(((JSEvents.deviceMotionEvent)+(16))>>3)]=e.acceleration.y;
  6540. HEAPF64[(((JSEvents.deviceMotionEvent)+(24))>>3)]=e.acceleration.z;
  6541. HEAPF64[(((JSEvents.deviceMotionEvent)+(32))>>3)]=e.accelerationIncludingGravity.x;
  6542. HEAPF64[(((JSEvents.deviceMotionEvent)+(40))>>3)]=e.accelerationIncludingGravity.y;
  6543. HEAPF64[(((JSEvents.deviceMotionEvent)+(48))>>3)]=e.accelerationIncludingGravity.z;
  6544. HEAPF64[(((JSEvents.deviceMotionEvent)+(56))>>3)]=e.rotationRate.alpha;
  6545. HEAPF64[(((JSEvents.deviceMotionEvent)+(64))>>3)]=e.rotationRate.beta;
  6546. HEAPF64[(((JSEvents.deviceMotionEvent)+(72))>>3)]=e.rotationRate.gamma;
  6547. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.deviceMotionEvent, userData);
  6548. if (shouldCancel) {
  6549. e.preventDefault();
  6550. }
  6551. };
  6552. var eventHandler = {
  6553. target: JSEvents.findEventTarget(target),
  6554. allowsDeferredCalls: false,
  6555. eventTypeString: eventTypeString,
  6556. callbackfunc: callbackfunc,
  6557. handlerFunc: handlerFunc,
  6558. useCapture: useCapture
  6559. };
  6560. JSEvents.registerOrRemoveHandler(eventHandler);
  6561. },screenOrientation:function () {
  6562. if (!window.screen) return undefined;
  6563. return window.screen.orientation || window.screen.mozOrientation || window.screen.webkitOrientation || window.screen.msOrientation;
  6564. },fillOrientationChangeEventData:function (eventStruct, e) {
  6565. var orientations = ["portrait-primary", "portrait-secondary", "landscape-primary", "landscape-secondary"];
  6566. var orientations2 = ["portrait", "portrait", "landscape", "landscape"];
  6567. var orientationString = JSEvents.screenOrientation();
  6568. var orientation = orientations.indexOf(orientationString);
  6569. if (orientation == -1) {
  6570. orientation = orientations2.indexOf(orientationString);
  6571. }
  6572. HEAP32[((eventStruct)>>2)]=1 << orientation;
  6573. HEAP32[(((eventStruct)+(4))>>2)]=window.orientation;
  6574. },registerOrientationChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6575. if (!JSEvents.orientationChangeEvent) {
  6576. JSEvents.orientationChangeEvent = _malloc( 8 );
  6577. }
  6578. if (!target) {
  6579. target = window.screen; // Orientation events need to be captured from 'window.screen' instead of 'window'
  6580. } else {
  6581. target = JSEvents.findEventTarget(target);
  6582. }
  6583. var handlerFunc = function(event) {
  6584. var e = event || window.event;
  6585. JSEvents.fillOrientationChangeEventData(JSEvents.orientationChangeEvent, e);
  6586. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.orientationChangeEvent, userData);
  6587. if (shouldCancel) {
  6588. e.preventDefault();
  6589. }
  6590. };
  6591. if (eventTypeString == "orientationchange" && window.screen.mozOrientation !== undefined) {
  6592. eventTypeString = "mozorientationchange";
  6593. }
  6594. var eventHandler = {
  6595. target: target,
  6596. allowsDeferredCalls: false,
  6597. eventTypeString: eventTypeString,
  6598. callbackfunc: callbackfunc,
  6599. handlerFunc: handlerFunc,
  6600. useCapture: useCapture
  6601. };
  6602. JSEvents.registerOrRemoveHandler(eventHandler);
  6603. },fullscreenEnabled:function () {
  6604. return document.fullscreenEnabled || document.mozFullScreenEnabled || document.webkitFullscreenEnabled || document.msFullscreenEnabled;
  6605. },fillFullscreenChangeEventData:function (eventStruct, e) {
  6606. var fullscreenElement = document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement;
  6607. var isFullscreen = !!fullscreenElement;
  6608. HEAP32[((eventStruct)>>2)]=isFullscreen;
  6609. HEAP32[(((eventStruct)+(4))>>2)]=JSEvents.fullscreenEnabled();
  6610. // If transitioning to fullscreen, report info about the element that is now fullscreen.
  6611. // If transitioning to windowed mode, report info about the element that just was fullscreen.
  6612. var reportedElement = isFullscreen ? fullscreenElement : JSEvents.previousFullscreenElement;
  6613. var nodeName = JSEvents.getNodeNameForTarget(reportedElement);
  6614. var id = (reportedElement && reportedElement.id) ? reportedElement.id : '';
  6615. stringToUTF8(nodeName, eventStruct + 8, 128);
  6616. stringToUTF8(id, eventStruct + 136, 128);
  6617. HEAP32[(((eventStruct)+(264))>>2)]=reportedElement ? reportedElement.clientWidth : 0;
  6618. HEAP32[(((eventStruct)+(268))>>2)]=reportedElement ? reportedElement.clientHeight : 0;
  6619. HEAP32[(((eventStruct)+(272))>>2)]=screen.width;
  6620. HEAP32[(((eventStruct)+(276))>>2)]=screen.height;
  6621. if (isFullscreen) {
  6622. JSEvents.previousFullscreenElement = fullscreenElement;
  6623. }
  6624. },registerFullscreenChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6625. if (!JSEvents.fullscreenChangeEvent) {
  6626. JSEvents.fullscreenChangeEvent = _malloc( 280 );
  6627. }
  6628. if (!target) {
  6629. target = document; // Fullscreen change events need to be captured from 'document' by default instead of 'window'
  6630. } else {
  6631. target = JSEvents.findEventTarget(target);
  6632. }
  6633. var handlerFunc = function(event) {
  6634. var e = event || window.event;
  6635. JSEvents.fillFullscreenChangeEventData(JSEvents.fullscreenChangeEvent, e);
  6636. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.fullscreenChangeEvent, userData);
  6637. if (shouldCancel) {
  6638. e.preventDefault();
  6639. }
  6640. };
  6641. var eventHandler = {
  6642. target: target,
  6643. allowsDeferredCalls: false,
  6644. eventTypeString: eventTypeString,
  6645. callbackfunc: callbackfunc,
  6646. handlerFunc: handlerFunc,
  6647. useCapture: useCapture
  6648. };
  6649. JSEvents.registerOrRemoveHandler(eventHandler);
  6650. },resizeCanvasForFullscreen:function (target, strategy) {
  6651. var restoreOldStyle = __registerRestoreOldStyle(target);
  6652. var cssWidth = strategy.softFullscreen ? window.innerWidth : screen.width;
  6653. var cssHeight = strategy.softFullscreen ? window.innerHeight : screen.height;
  6654. var rect = target.getBoundingClientRect();
  6655. var windowedCssWidth = rect.right - rect.left;
  6656. var windowedCssHeight = rect.bottom - rect.top;
  6657. var windowedRttWidth = target.width;
  6658. var windowedRttHeight = target.height;
  6659. if (strategy.scaleMode == 3) {
  6660. __setLetterbox(target, (cssHeight - windowedCssHeight) / 2, (cssWidth - windowedCssWidth) / 2);
  6661. cssWidth = windowedCssWidth;
  6662. cssHeight = windowedCssHeight;
  6663. } else if (strategy.scaleMode == 2) {
  6664. if (cssWidth*windowedRttHeight < windowedRttWidth*cssHeight) {
  6665. var desiredCssHeight = windowedRttHeight * cssWidth / windowedRttWidth;
  6666. __setLetterbox(target, (cssHeight - desiredCssHeight) / 2, 0);
  6667. cssHeight = desiredCssHeight;
  6668. } else {
  6669. var desiredCssWidth = windowedRttWidth * cssHeight / windowedRttHeight;
  6670. __setLetterbox(target, 0, (cssWidth - desiredCssWidth) / 2);
  6671. cssWidth = desiredCssWidth;
  6672. }
  6673. }
  6674. // If we are adding padding, must choose a background color or otherwise Chrome will give the
  6675. // padding a default white color. Do it only if user has not customized their own background color.
  6676. if (!target.style.backgroundColor) target.style.backgroundColor = 'black';
  6677. // IE11 does the same, but requires the color to be set in the document body.
  6678. if (!document.body.style.backgroundColor) document.body.style.backgroundColor = 'black'; // IE11
  6679. // Firefox always shows black letterboxes independent of style color.
  6680. target.style.width = cssWidth + 'px';
  6681. target.style.height = cssHeight + 'px';
  6682. if (strategy.filteringMode == 1) {
  6683. target.style.imageRendering = 'optimizeSpeed';
  6684. target.style.imageRendering = '-moz-crisp-edges';
  6685. target.style.imageRendering = '-o-crisp-edges';
  6686. target.style.imageRendering = '-webkit-optimize-contrast';
  6687. target.style.imageRendering = 'optimize-contrast';
  6688. target.style.imageRendering = 'crisp-edges';
  6689. target.style.imageRendering = 'pixelated';
  6690. }
  6691. var dpiScale = (strategy.canvasResolutionScaleMode == 2) ? window.devicePixelRatio : 1;
  6692. if (strategy.canvasResolutionScaleMode != 0) {
  6693. target.width = cssWidth * dpiScale;
  6694. target.height = cssHeight * dpiScale;
  6695. if (target.GLctxObject) target.GLctxObject.GLctx.viewport(0, 0, target.width, target.height);
  6696. }
  6697. return restoreOldStyle;
  6698. },requestFullscreen:function (target, strategy) {
  6699. // EMSCRIPTEN_FULLSCREEN_SCALE_DEFAULT + EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_NONE is a mode where no extra logic is performed to the DOM elements.
  6700. if (strategy.scaleMode != 0 || strategy.canvasResolutionScaleMode != 0) {
  6701. JSEvents.resizeCanvasForFullscreen(target, strategy);
  6702. }
  6703. if (target.requestFullscreen) {
  6704. target.requestFullscreen();
  6705. } else if (target.msRequestFullscreen) {
  6706. target.msRequestFullscreen();
  6707. } else if (target.mozRequestFullScreen) {
  6708. target.mozRequestFullScreen();
  6709. } else if (target.mozRequestFullscreen) {
  6710. target.mozRequestFullscreen();
  6711. } else if (target.webkitRequestFullscreen) {
  6712. target.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
  6713. } else {
  6714. if (typeof JSEvents.fullscreenEnabled() === 'undefined') {
  6715. return -1;
  6716. } else {
  6717. return -3;
  6718. }
  6719. }
  6720. if (strategy.canvasResizedCallback) {
  6721. Module['dynCall_iiii'](strategy.canvasResizedCallback, 37, 0, strategy.canvasResizedCallbackUserData);
  6722. }
  6723. return 0;
  6724. },fillPointerlockChangeEventData:function (eventStruct, e) {
  6725. var pointerLockElement = document.pointerLockElement || document.mozPointerLockElement || document.webkitPointerLockElement || document.msPointerLockElement;
  6726. var isPointerlocked = !!pointerLockElement;
  6727. HEAP32[((eventStruct)>>2)]=isPointerlocked;
  6728. var nodeName = JSEvents.getNodeNameForTarget(pointerLockElement);
  6729. var id = (pointerLockElement && pointerLockElement.id) ? pointerLockElement.id : '';
  6730. stringToUTF8(nodeName, eventStruct + 4, 128);
  6731. stringToUTF8(id, eventStruct + 132, 128);
  6732. },registerPointerlockChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6733. if (!JSEvents.pointerlockChangeEvent) {
  6734. JSEvents.pointerlockChangeEvent = _malloc( 260 );
  6735. }
  6736. if (!target) {
  6737. target = document; // Pointer lock change events need to be captured from 'document' by default instead of 'window'
  6738. } else {
  6739. target = JSEvents.findEventTarget(target);
  6740. }
  6741. var handlerFunc = function(event) {
  6742. var e = event || window.event;
  6743. JSEvents.fillPointerlockChangeEventData(JSEvents.pointerlockChangeEvent, e);
  6744. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.pointerlockChangeEvent, userData);
  6745. if (shouldCancel) {
  6746. e.preventDefault();
  6747. }
  6748. };
  6749. var eventHandler = {
  6750. target: target,
  6751. allowsDeferredCalls: false,
  6752. eventTypeString: eventTypeString,
  6753. callbackfunc: callbackfunc,
  6754. handlerFunc: handlerFunc,
  6755. useCapture: useCapture
  6756. };
  6757. JSEvents.registerOrRemoveHandler(eventHandler);
  6758. },registerPointerlockErrorEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6759. if (!target) {
  6760. target = document; // Pointer lock events need to be captured from 'document' by default instead of 'window'
  6761. } else {
  6762. target = JSEvents.findEventTarget(target);
  6763. }
  6764. var handlerFunc = function(event) {
  6765. var e = event || window.event;
  6766. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  6767. if (shouldCancel) {
  6768. e.preventDefault();
  6769. }
  6770. };
  6771. var eventHandler = {
  6772. target: target,
  6773. allowsDeferredCalls: false,
  6774. eventTypeString: eventTypeString,
  6775. callbackfunc: callbackfunc,
  6776. handlerFunc: handlerFunc,
  6777. useCapture: useCapture
  6778. };
  6779. JSEvents.registerOrRemoveHandler(eventHandler);
  6780. },requestPointerLock:function (target) {
  6781. if (target.requestPointerLock) {
  6782. target.requestPointerLock();
  6783. } else if (target.mozRequestPointerLock) {
  6784. target.mozRequestPointerLock();
  6785. } else if (target.webkitRequestPointerLock) {
  6786. target.webkitRequestPointerLock();
  6787. } else if (target.msRequestPointerLock) {
  6788. target.msRequestPointerLock();
  6789. } else {
  6790. // document.body is known to accept pointer lock, so use that to differentiate if the user passed a bad element,
  6791. // or if the whole browser just doesn't support the feature.
  6792. if (document.body.requestPointerLock || document.body.mozRequestPointerLock || document.body.webkitRequestPointerLock || document.body.msRequestPointerLock) {
  6793. return -3;
  6794. } else {
  6795. return -1;
  6796. }
  6797. }
  6798. return 0;
  6799. },fillVisibilityChangeEventData:function (eventStruct, e) {
  6800. var visibilityStates = [ "hidden", "visible", "prerender", "unloaded" ];
  6801. var visibilityState = visibilityStates.indexOf(document.visibilityState);
  6802. HEAP32[((eventStruct)>>2)]=document.hidden;
  6803. HEAP32[(((eventStruct)+(4))>>2)]=visibilityState;
  6804. },registerVisibilityChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6805. if (!JSEvents.visibilityChangeEvent) {
  6806. JSEvents.visibilityChangeEvent = _malloc( 8 );
  6807. }
  6808. if (!target) {
  6809. target = document; // Visibility change events need to be captured from 'document' by default instead of 'window'
  6810. } else {
  6811. target = JSEvents.findEventTarget(target);
  6812. }
  6813. var handlerFunc = function(event) {
  6814. var e = event || window.event;
  6815. JSEvents.fillVisibilityChangeEventData(JSEvents.visibilityChangeEvent, e);
  6816. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.visibilityChangeEvent, userData);
  6817. if (shouldCancel) {
  6818. e.preventDefault();
  6819. }
  6820. };
  6821. var eventHandler = {
  6822. target: target,
  6823. allowsDeferredCalls: false,
  6824. eventTypeString: eventTypeString,
  6825. callbackfunc: callbackfunc,
  6826. handlerFunc: handlerFunc,
  6827. useCapture: useCapture
  6828. };
  6829. JSEvents.registerOrRemoveHandler(eventHandler);
  6830. },registerTouchEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6831. if (!JSEvents.touchEvent) {
  6832. JSEvents.touchEvent = _malloc( 1684 );
  6833. }
  6834. target = JSEvents.findEventTarget(target);
  6835. var handlerFunc = function(event) {
  6836. var e = event || window.event;
  6837. var touches = {};
  6838. for(var i = 0; i < e.touches.length; ++i) {
  6839. var touch = e.touches[i];
  6840. touches[touch.identifier] = touch;
  6841. }
  6842. for(var i = 0; i < e.changedTouches.length; ++i) {
  6843. var touch = e.changedTouches[i];
  6844. touches[touch.identifier] = touch;
  6845. touch.changed = true;
  6846. }
  6847. for(var i = 0; i < e.targetTouches.length; ++i) {
  6848. var touch = e.targetTouches[i];
  6849. touches[touch.identifier].onTarget = true;
  6850. }
  6851. var ptr = JSEvents.touchEvent;
  6852. HEAP32[(((ptr)+(4))>>2)]=e.ctrlKey;
  6853. HEAP32[(((ptr)+(8))>>2)]=e.shiftKey;
  6854. HEAP32[(((ptr)+(12))>>2)]=e.altKey;
  6855. HEAP32[(((ptr)+(16))>>2)]=e.metaKey;
  6856. ptr += 20; // Advance to the start of the touch array.
  6857. var canvasRect = Module['canvas'] ? Module['canvas'].getBoundingClientRect() : undefined;
  6858. var targetRect = JSEvents.getBoundingClientRectOrZeros(target);
  6859. var numTouches = 0;
  6860. for(var i in touches) {
  6861. var t = touches[i];
  6862. HEAP32[((ptr)>>2)]=t.identifier;
  6863. HEAP32[(((ptr)+(4))>>2)]=t.screenX;
  6864. HEAP32[(((ptr)+(8))>>2)]=t.screenY;
  6865. HEAP32[(((ptr)+(12))>>2)]=t.clientX;
  6866. HEAP32[(((ptr)+(16))>>2)]=t.clientY;
  6867. HEAP32[(((ptr)+(20))>>2)]=t.pageX;
  6868. HEAP32[(((ptr)+(24))>>2)]=t.pageY;
  6869. HEAP32[(((ptr)+(28))>>2)]=t.changed;
  6870. HEAP32[(((ptr)+(32))>>2)]=t.onTarget;
  6871. if (canvasRect) {
  6872. HEAP32[(((ptr)+(44))>>2)]=t.clientX - canvasRect.left;
  6873. HEAP32[(((ptr)+(48))>>2)]=t.clientY - canvasRect.top;
  6874. } else {
  6875. HEAP32[(((ptr)+(44))>>2)]=0;
  6876. HEAP32[(((ptr)+(48))>>2)]=0;
  6877. }
  6878. HEAP32[(((ptr)+(36))>>2)]=t.clientX - targetRect.left;
  6879. HEAP32[(((ptr)+(40))>>2)]=t.clientY - targetRect.top;
  6880. ptr += 52;
  6881. if (++numTouches >= 32) {
  6882. break;
  6883. }
  6884. }
  6885. HEAP32[((JSEvents.touchEvent)>>2)]=numTouches;
  6886. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.touchEvent, userData);
  6887. if (shouldCancel) {
  6888. e.preventDefault();
  6889. }
  6890. };
  6891. var eventHandler = {
  6892. target: target,
  6893. allowsDeferredCalls: false, // XXX Currently disabled, see bug https://bugzilla.mozilla.org/show_bug.cgi?id=966493
  6894. // Once the above bug is resolved, enable the following condition if possible:
  6895. // allowsDeferredCalls: eventTypeString == 'touchstart',
  6896. eventTypeString: eventTypeString,
  6897. callbackfunc: callbackfunc,
  6898. handlerFunc: handlerFunc,
  6899. useCapture: useCapture
  6900. };
  6901. JSEvents.registerOrRemoveHandler(eventHandler);
  6902. },fillGamepadEventData:function (eventStruct, e) {
  6903. HEAPF64[((eventStruct)>>3)]=e.timestamp;
  6904. for(var i = 0; i < e.axes.length; ++i) {
  6905. HEAPF64[(((eventStruct+i*8)+(16))>>3)]=e.axes[i];
  6906. }
  6907. for(var i = 0; i < e.buttons.length; ++i) {
  6908. if (typeof(e.buttons[i]) === 'object') {
  6909. HEAPF64[(((eventStruct+i*8)+(528))>>3)]=e.buttons[i].value;
  6910. } else {
  6911. HEAPF64[(((eventStruct+i*8)+(528))>>3)]=e.buttons[i];
  6912. }
  6913. }
  6914. for(var i = 0; i < e.buttons.length; ++i) {
  6915. if (typeof(e.buttons[i]) === 'object') {
  6916. HEAP32[(((eventStruct+i*4)+(1040))>>2)]=e.buttons[i].pressed;
  6917. } else {
  6918. HEAP32[(((eventStruct+i*4)+(1040))>>2)]=e.buttons[i] == 1.0;
  6919. }
  6920. }
  6921. HEAP32[(((eventStruct)+(1296))>>2)]=e.connected;
  6922. HEAP32[(((eventStruct)+(1300))>>2)]=e.index;
  6923. HEAP32[(((eventStruct)+(8))>>2)]=e.axes.length;
  6924. HEAP32[(((eventStruct)+(12))>>2)]=e.buttons.length;
  6925. stringToUTF8(e.id, eventStruct + 1304, 64);
  6926. stringToUTF8(e.mapping, eventStruct + 1368, 64);
  6927. },registerGamepadEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6928. if (!JSEvents.gamepadEvent) {
  6929. JSEvents.gamepadEvent = _malloc( 1432 );
  6930. }
  6931. var handlerFunc = function(event) {
  6932. var e = event || window.event;
  6933. JSEvents.fillGamepadEventData(JSEvents.gamepadEvent, e.gamepad);
  6934. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.gamepadEvent, userData);
  6935. if (shouldCancel) {
  6936. e.preventDefault();
  6937. }
  6938. };
  6939. var eventHandler = {
  6940. target: JSEvents.findEventTarget(target),
  6941. allowsDeferredCalls: true,
  6942. eventTypeString: eventTypeString,
  6943. callbackfunc: callbackfunc,
  6944. handlerFunc: handlerFunc,
  6945. useCapture: useCapture
  6946. };
  6947. JSEvents.registerOrRemoveHandler(eventHandler);
  6948. },registerBeforeUnloadEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6949. var handlerFunc = function(event) {
  6950. var e = event || window.event;
  6951. var confirmationMessage = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  6952. if (confirmationMessage) {
  6953. confirmationMessage = Pointer_stringify(confirmationMessage);
  6954. }
  6955. if (confirmationMessage) {
  6956. e.preventDefault();
  6957. e.returnValue = confirmationMessage;
  6958. return confirmationMessage;
  6959. }
  6960. };
  6961. var eventHandler = {
  6962. target: JSEvents.findEventTarget(target),
  6963. allowsDeferredCalls: false,
  6964. eventTypeString: eventTypeString,
  6965. callbackfunc: callbackfunc,
  6966. handlerFunc: handlerFunc,
  6967. useCapture: useCapture
  6968. };
  6969. JSEvents.registerOrRemoveHandler(eventHandler);
  6970. },battery:function () { return navigator.battery || navigator.mozBattery || navigator.webkitBattery; },fillBatteryEventData:function (eventStruct, e) {
  6971. HEAPF64[((eventStruct)>>3)]=e.chargingTime;
  6972. HEAPF64[(((eventStruct)+(8))>>3)]=e.dischargingTime;
  6973. HEAPF64[(((eventStruct)+(16))>>3)]=e.level;
  6974. HEAP32[(((eventStruct)+(24))>>2)]=e.charging;
  6975. },registerBatteryEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6976. if (!JSEvents.batteryEvent) {
  6977. JSEvents.batteryEvent = _malloc( 32 );
  6978. }
  6979. var handlerFunc = function(event) {
  6980. var e = event || window.event;
  6981. JSEvents.fillBatteryEventData(JSEvents.batteryEvent, JSEvents.battery());
  6982. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.batteryEvent, userData);
  6983. if (shouldCancel) {
  6984. e.preventDefault();
  6985. }
  6986. };
  6987. var eventHandler = {
  6988. target: JSEvents.findEventTarget(target),
  6989. allowsDeferredCalls: false,
  6990. eventTypeString: eventTypeString,
  6991. callbackfunc: callbackfunc,
  6992. handlerFunc: handlerFunc,
  6993. useCapture: useCapture
  6994. };
  6995. JSEvents.registerOrRemoveHandler(eventHandler);
  6996. },registerWebGlEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6997. if (!target) {
  6998. target = Module['canvas'];
  6999. }
  7000. var handlerFunc = function(event) {
  7001. var e = event || window.event;
  7002. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  7003. if (shouldCancel) {
  7004. e.preventDefault();
  7005. }
  7006. };
  7007. var eventHandler = {
  7008. target: JSEvents.findEventTarget(target),
  7009. allowsDeferredCalls: false,
  7010. eventTypeString: eventTypeString,
  7011. callbackfunc: callbackfunc,
  7012. handlerFunc: handlerFunc,
  7013. useCapture: useCapture
  7014. };
  7015. JSEvents.registerOrRemoveHandler(eventHandler);
  7016. }};function __emscripten_sample_gamepad_data() {
  7017. // Polling gamepads generates garbage, so don't do it when we know there are no gamepads connected.
  7018. if (!JSEvents.numGamepadsConnected) return;
  7019. // 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.
  7020. if (Browser.mainLoop.currentFrameNumber !== JSEvents.lastGamepadStateFrame || !Browser.mainLoop.currentFrameNumber) {
  7021. JSEvents.lastGamepadState = navigator.getGamepads ? navigator.getGamepads() : (navigator.webkitGetGamepads ? navigator.webkitGetGamepads : null);
  7022. JSEvents.lastGamepadStateFrame = Browser.mainLoop.currentFrameNumber;
  7023. }
  7024. }function _emscripten_get_gamepad_status(index, gamepadState) {
  7025. __emscripten_sample_gamepad_data();
  7026. if (!JSEvents.lastGamepadState) return -1;
  7027. // INVALID_PARAM is returned on a Gamepad index that never was there.
  7028. if (index < 0 || index >= JSEvents.lastGamepadState.length) return -5;
  7029. // NO_DATA is returned on a Gamepad index that was removed.
  7030. // For previously disconnected gamepads there should be an empty slot (null/undefined/false) at the index.
  7031. // This is because gamepads must keep their original position in the array.
  7032. // For example, removing the first of two gamepads produces [null/undefined/false, gamepad].
  7033. if (!JSEvents.lastGamepadState[index]) return -7;
  7034. JSEvents.fillGamepadEventData(gamepadState, JSEvents.lastGamepadState[index]);
  7035. return 0;
  7036. }
  7037. function _emscripten_glCopyTexImage2D(x0, x1, x2, x3, x4, x5, x6, x7) { GLctx['copyTexImage2D'](x0, x1, x2, x3, x4, x5, x6, x7) }
  7038. function _emscripten_glTexParameterfv(target, pname, params) {
  7039. var param = HEAPF32[((params)>>2)];
  7040. GLctx.texParameterf(target, pname, param);
  7041. }
  7042. function _emscripten_glLinkProgram(program) {
  7043. GLctx.linkProgram(GL.programs[program]);
  7044. GL.programInfos[program] = null; // uniforms no longer keep the same names after linking
  7045. GL.populateUniformTable(program);
  7046. }
  7047. function _emscripten_glUniform3f(location, v0, v1, v2) {
  7048. GLctx.uniform3f(GL.uniforms[location], v0, v1, v2);
  7049. }
  7050. function _emscripten_glGetObjectParameterivARB() {
  7051. Module['printErr']('missing function: emscripten_glGetObjectParameterivARB'); abort(-1);
  7052. }
  7053. function _emscripten_glBlendFunc(x0, x1) { GLctx['blendFunc'](x0, x1) }
  7054. function _emscripten_glUniform3i(location, v0, v1, v2) {
  7055. GLctx.uniform3i(GL.uniforms[location], v0, v1, v2);
  7056. }
  7057. function _emscripten_glStencilOp(x0, x1, x2) { GLctx['stencilOp'](x0, x1, x2) }
  7058. function _glCreateShader(shaderType) {
  7059. var id = GL.getNewId(GL.shaders);
  7060. GL.shaders[id] = GLctx.createShader(shaderType);
  7061. return id;
  7062. }
  7063. function _glUniform1i(location, v0) {
  7064. GLctx.uniform1i(GL.uniforms[location], v0);
  7065. }
  7066. function _emscripten_glBindAttribLocation(program, index, name) {
  7067. name = Pointer_stringify(name);
  7068. GLctx.bindAttribLocation(GL.programs[program], index, name);
  7069. }
  7070. function _glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data) {
  7071. GLctx['compressedTexImage2D'](target, level, internalFormat, width, height, border, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  7072. }
  7073. function _glDisable(x0) { GLctx['disable'](x0) }
  7074. function _emscripten_glEnableVertexAttribArray(index) {
  7075. GLctx.enableVertexAttribArray(index);
  7076. }
  7077. Module["_memset"] = _memset;
  7078. function _glfwMakeContextCurrent(winid) {}
  7079. function _emscripten_set_touchcancel_callback(target, userData, useCapture, callbackfunc) {
  7080. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 25, "touchcancel");
  7081. return 0;
  7082. }
  7083. function ___lock() {}
  7084. function _emscripten_glBlendFuncSeparate(x0, x1, x2, x3) { GLctx['blendFuncSeparate'](x0, x1, x2, x3) }
  7085. function _glCullFace(x0) { GLctx['cullFace'](x0) }
  7086. function _emscripten_glGetVertexAttribPointerv(index, pname, pointer) {
  7087. if (!pointer) {
  7088. // GLES2 specification does not specify how to behave if pointer is a null pointer. Since calling this function does not make sense
  7089. // if pointer == null, issue a GL error to notify user about it.
  7090. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7091. return;
  7092. }
  7093. HEAP32[((pointer)>>2)]=GLctx.getVertexAttribOffset(index, pname);
  7094. }
  7095. function _emscripten_glVertexAttrib3f(x0, x1, x2, x3) { GLctx['vertexAttrib3f'](x0, x1, x2, x3) }
  7096. function _emscripten_glEnable(x0) { GLctx['enable'](x0) }
  7097. function _emscripten_glNormalPointer() {
  7098. Module['printErr']('missing function: emscripten_glNormalPointer'); abort(-1);
  7099. }
  7100. var _emscripten_GetProcAddress=undefined;
  7101. Module["_emscripten_GetProcAddress"] = _emscripten_GetProcAddress;
  7102. var EGL={errorCode:12288,defaultDisplayInitialized:false,currentContext:0,currentReadSurface:0,currentDrawSurface:0,stringCache:{},setErrorCode:function (code) {
  7103. EGL.errorCode = code;
  7104. },chooseConfig:function (display, attribList, config, config_size, numConfigs) {
  7105. if (display != 62000 /* Magic ID for Emscripten 'default display' */) {
  7106. EGL.setErrorCode(0x3008 /* EGL_BAD_DISPLAY */);
  7107. return 0;
  7108. }
  7109. // TODO: read attribList.
  7110. if ((!config || !config_size) && !numConfigs) {
  7111. EGL.setErrorCode(0x300C /* EGL_BAD_PARAMETER */);
  7112. return 0;
  7113. }
  7114. if (numConfigs) {
  7115. HEAP32[((numConfigs)>>2)]=1; // Total number of supported configs: 1.
  7116. }
  7117. if (config && config_size > 0) {
  7118. HEAP32[((config)>>2)]=62002;
  7119. }
  7120. EGL.setErrorCode(0x3000 /* EGL_SUCCESS */);
  7121. return 1;
  7122. }};function _eglGetProcAddress(name_) {
  7123. return _emscripten_GetProcAddress(name_);
  7124. }
  7125. function _glDeleteProgram(id) {
  7126. if (!id) return;
  7127. var program = GL.programs[id];
  7128. if (!program) { // glDeleteProgram actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7129. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7130. return;
  7131. }
  7132. GLctx.deleteProgram(program);
  7133. program.name = 0;
  7134. GL.programs[id] = null;
  7135. GL.programInfos[id] = null;
  7136. }
  7137. function _emscripten_get_pointerlock_status(pointerlockStatus) {
  7138. if (pointerlockStatus) JSEvents.fillPointerlockChangeEventData(pointerlockStatus);
  7139. if (!document.body || (!document.body.requestPointerLock && !document.body.mozRequestPointerLock && !document.body.webkitRequestPointerLock && !document.body.msRequestPointerLock)) {
  7140. return -1;
  7141. }
  7142. return 0;
  7143. }
  7144. function _glAttachShader(program, shader) {
  7145. GLctx.attachShader(GL.programs[program],
  7146. GL.shaders[shader]);
  7147. }
  7148. function _glfwGetPrimaryMonitor() {
  7149. return 1;
  7150. }
  7151. function emscriptenWebGLGetVertexAttrib(index, pname, params, type) {
  7152. if (!params) {
  7153. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7154. // if params == null, issue a GL error to notify user about it.
  7155. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7156. return;
  7157. }
  7158. var data = GLctx.getVertexAttrib(index, pname);
  7159. if (pname == 0x889F/*VERTEX_ATTRIB_ARRAY_BUFFER_BINDING*/) {
  7160. HEAP32[((params)>>2)]=data["name"];
  7161. } else if (typeof data == 'number' || typeof data == 'boolean') {
  7162. switch (type) {
  7163. case 'Integer': HEAP32[((params)>>2)]=data; break;
  7164. case 'Float': HEAPF32[((params)>>2)]=data; break;
  7165. case 'FloatToInteger': HEAP32[((params)>>2)]=Math.fround(data); break;
  7166. default: throw 'internal emscriptenWebGLGetVertexAttrib() error, bad type: ' + type;
  7167. }
  7168. } else {
  7169. for (var i = 0; i < data.length; i++) {
  7170. switch (type) {
  7171. case 'Integer': HEAP32[(((params)+(i))>>2)]=data[i]; break;
  7172. case 'Float': HEAPF32[(((params)+(i))>>2)]=data[i]; break;
  7173. case 'FloatToInteger': HEAP32[(((params)+(i))>>2)]=Math.fround(data[i]); break;
  7174. default: throw 'internal emscriptenWebGLGetVertexAttrib() error, bad type: ' + type;
  7175. }
  7176. }
  7177. }
  7178. }function _emscripten_glGetVertexAttribfv(index, pname, params) {
  7179. // N.B. This function may only be called if the vertex attribute was specified using the function glVertexAttrib*f(),
  7180. // otherwise the results are undefined. (GLES3 spec 6.1.12)
  7181. emscriptenWebGLGetVertexAttrib(index, pname, params, 'Float');
  7182. }
  7183. function _emscripten_set_touchstart_callback(target, userData, useCapture, callbackfunc) {
  7184. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 22, "touchstart");
  7185. return 0;
  7186. }
  7187. function _emscripten_glDeleteShader(id) {
  7188. if (!id) return;
  7189. var shader = GL.shaders[id];
  7190. if (!shader) { // glDeleteShader actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7191. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7192. return;
  7193. }
  7194. GLctx.deleteShader(shader);
  7195. GL.shaders[id] = null;
  7196. }
  7197. 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.'; }
  7198. function _emscripten_glDeleteBuffers(n, buffers) {
  7199. for (var i = 0; i < n; i++) {
  7200. var id = HEAP32[(((buffers)+(i*4))>>2)];
  7201. var buffer = GL.buffers[id];
  7202. // From spec: "glDeleteBuffers silently ignores 0's and names that do not
  7203. // correspond to existing buffer objects."
  7204. if (!buffer) continue;
  7205. GLctx.deleteBuffer(buffer);
  7206. buffer.name = 0;
  7207. GL.buffers[id] = null;
  7208. if (id == GL.currArrayBuffer) GL.currArrayBuffer = 0;
  7209. if (id == GL.currElementArrayBuffer) GL.currElementArrayBuffer = 0;
  7210. }
  7211. }
  7212. function _emscripten_glTexParameteriv(target, pname, params) {
  7213. var param = HEAP32[((params)>>2)];
  7214. GLctx.texParameteri(target, pname, param);
  7215. }
  7216. function _glDrawElements(mode, count, type, indices) {
  7217. GLctx.drawElements(mode, count, type, indices);
  7218. }
  7219. function _glfwTerminate() {
  7220. window.removeEventListener("keydown", GLFW.onKeydown, true);
  7221. window.removeEventListener("keypress", GLFW.onKeyPress, true);
  7222. window.removeEventListener("keyup", GLFW.onKeyup, true);
  7223. Module["canvas"].removeEventListener("mousemove", GLFW.onMousemove, true);
  7224. Module["canvas"].removeEventListener("mousedown", GLFW.onMouseButtonDown, true);
  7225. Module["canvas"].removeEventListener("mouseup", GLFW.onMouseButtonUp, true);
  7226. Module["canvas"].removeEventListener('wheel', GLFW.onMouseWheel, true);
  7227. Module["canvas"].removeEventListener('mousewheel', GLFW.onMouseWheel, true);
  7228. Module["canvas"].removeEventListener('mouseenter', GLFW.onMouseenter, true);
  7229. Module["canvas"].removeEventListener('mouseleave', GLFW.onMouseleave, true);
  7230. Module["canvas"].width = Module["canvas"].height = 1;
  7231. GLFW.windows = null;
  7232. GLFW.active = null;
  7233. }
  7234. function _emscripten_glUniformMatrix2fv(location, count, transpose, value) {
  7235. var view;
  7236. if (4*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7237. // avoid allocation when uploading few enough uniforms
  7238. view = GL.miniTempBufferViews[4*count-1];
  7239. for (var i = 0; i < 4*count; i += 4) {
  7240. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7241. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7242. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7243. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  7244. }
  7245. } else {
  7246. view = HEAPF32.subarray((value)>>2,(value+count*16)>>2);
  7247. }
  7248. GLctx.uniformMatrix2fv(GL.uniforms[location], !!transpose, view);
  7249. }
  7250. function ___syscall5(which, varargs) {SYSCALLS.varargs = varargs;
  7251. try {
  7252. // open
  7253. var pathname = SYSCALLS.getStr(), flags = SYSCALLS.get(), mode = SYSCALLS.get() // optional TODO
  7254. var stream = FS.open(pathname, flags, mode);
  7255. return stream.fd;
  7256. } catch (e) {
  7257. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7258. return -e.errno;
  7259. }
  7260. }
  7261. function ___syscall6(which, varargs) {SYSCALLS.varargs = varargs;
  7262. try {
  7263. // close
  7264. var stream = SYSCALLS.getStreamFromFD();
  7265. FS.close(stream);
  7266. return 0;
  7267. } catch (e) {
  7268. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7269. return -e.errno;
  7270. }
  7271. }
  7272. function _llvm_stacksave() {
  7273. var self = _llvm_stacksave;
  7274. if (!self.LLVM_SAVEDSTACKS) {
  7275. self.LLVM_SAVEDSTACKS = [];
  7276. }
  7277. self.LLVM_SAVEDSTACKS.push(Runtime.stackSave());
  7278. return self.LLVM_SAVEDSTACKS.length-1;
  7279. }
  7280. function _emscripten_glGetVertexAttribiv(index, pname, params) {
  7281. // N.B. This function may only be called if the vertex attribute was specified using the function glVertexAttrib*f(),
  7282. // otherwise the results are undefined. (GLES3 spec 6.1.12)
  7283. emscriptenWebGLGetVertexAttrib(index, pname, params, 'FloatToInteger');
  7284. }
  7285. function _emscripten_glUniformMatrix4fv(location, count, transpose, value) {
  7286. var view;
  7287. if (16*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7288. // avoid allocation when uploading few enough uniforms
  7289. view = GL.miniTempBufferViews[16*count-1];
  7290. for (var i = 0; i < 16*count; i += 16) {
  7291. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7292. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7293. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7294. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  7295. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  7296. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  7297. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  7298. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  7299. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  7300. view[i+9] = HEAPF32[(((value)+(4*i+36))>>2)];
  7301. view[i+10] = HEAPF32[(((value)+(4*i+40))>>2)];
  7302. view[i+11] = HEAPF32[(((value)+(4*i+44))>>2)];
  7303. view[i+12] = HEAPF32[(((value)+(4*i+48))>>2)];
  7304. view[i+13] = HEAPF32[(((value)+(4*i+52))>>2)];
  7305. view[i+14] = HEAPF32[(((value)+(4*i+56))>>2)];
  7306. view[i+15] = HEAPF32[(((value)+(4*i+60))>>2)];
  7307. }
  7308. } else {
  7309. view = HEAPF32.subarray((value)>>2,(value+count*64)>>2);
  7310. }
  7311. GLctx.uniformMatrix4fv(GL.uniforms[location], !!transpose, view);
  7312. }
  7313. function _emscripten_glDrawArraysInstanced(mode, first, count, primcount) {
  7314. GLctx['drawArraysInstanced'](mode, first, count, primcount);
  7315. }
  7316. function _emscripten_glEnableClientState() {
  7317. Module['printErr']('missing function: emscripten_glEnableClientState'); abort(-1);
  7318. }
  7319. function _emscripten_glGetPointerv() {
  7320. Module['printErr']('missing function: emscripten_glGetPointerv'); abort(-1);
  7321. }
  7322. function ___syscall140(which, varargs) {SYSCALLS.varargs = varargs;
  7323. try {
  7324. // llseek
  7325. var stream = SYSCALLS.getStreamFromFD(), offset_high = SYSCALLS.get(), offset_low = SYSCALLS.get(), result = SYSCALLS.get(), whence = SYSCALLS.get();
  7326. var offset = offset_low;
  7327. assert(offset_high === 0);
  7328. FS.llseek(stream, offset, whence);
  7329. HEAP32[((result)>>2)]=stream.position;
  7330. if (stream.getdents && offset === 0 && whence === 0) stream.getdents = null; // reset readdir state
  7331. return 0;
  7332. } catch (e) {
  7333. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7334. return -e.errno;
  7335. }
  7336. }
  7337. function ___syscall146(which, varargs) {SYSCALLS.varargs = varargs;
  7338. try {
  7339. // writev
  7340. var stream = SYSCALLS.getStreamFromFD(), iov = SYSCALLS.get(), iovcnt = SYSCALLS.get();
  7341. return SYSCALLS.doWritev(stream, iov, iovcnt);
  7342. } catch (e) {
  7343. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7344. return -e.errno;
  7345. }
  7346. }
  7347. function _emscripten_glUniform1i(location, v0) {
  7348. GLctx.uniform1i(GL.uniforms[location], v0);
  7349. }
  7350. function ___syscall145(which, varargs) {SYSCALLS.varargs = varargs;
  7351. try {
  7352. // readv
  7353. var stream = SYSCALLS.getStreamFromFD(), iov = SYSCALLS.get(), iovcnt = SYSCALLS.get();
  7354. return SYSCALLS.doReadv(stream, iov, iovcnt);
  7355. } catch (e) {
  7356. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7357. return -e.errno;
  7358. }
  7359. }
  7360. function _emscripten_glStencilMask(x0) { GLctx['stencilMask'](x0) }
  7361. function _emscripten_glStencilFuncSeparate(x0, x1, x2, x3) { GLctx['stencilFuncSeparate'](x0, x1, x2, x3) }
  7362. Module["_i64Subtract"] = _i64Subtract;
  7363. Module["_i64Add"] = _i64Add;
  7364. function _emscripten_set_touchend_callback(target, userData, useCapture, callbackfunc) {
  7365. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 23, "touchend");
  7366. return 0;
  7367. }
  7368. function _glUseProgram(program) {
  7369. GLctx.useProgram(program ? GL.programs[program] : null);
  7370. }
  7371. function _emscripten_glDisableVertexAttribArray(index) {
  7372. GLctx.disableVertexAttribArray(index);
  7373. }
  7374. function _emscripten_glVertexAttrib1f(x0, x1) { GLctx['vertexAttrib1f'](x0, x1) }
  7375. function _emscripten_glFinish() { GLctx['finish']() }
  7376. function _glDrawArrays(mode, first, count) {
  7377. GLctx.drawArrays(mode, first, count);
  7378. }
  7379. function _emscripten_glDepthFunc(x0) { GLctx['depthFunc'](x0) }
  7380. function _emscripten_get_num_gamepads() {
  7381. // Polling gamepads generates garbage, so don't do it when we know there are no gamepads connected.
  7382. if (!JSEvents.numGamepadsConnected) return 0;
  7383. __emscripten_sample_gamepad_data();
  7384. if (!JSEvents.lastGamepadState) return -1;
  7385. return JSEvents.lastGamepadState.length;
  7386. }
  7387. function _glGetProgramInfoLog(program, maxLength, length, infoLog) {
  7388. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  7389. if (log === null) log = '(unknown error)';
  7390. if (maxLength > 0 && infoLog) {
  7391. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  7392. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7393. } else {
  7394. if (length) HEAP32[((length)>>2)]=0;
  7395. }
  7396. }
  7397. function _emscripten_glUniform4iv(location, count, value) {
  7398. GLctx.uniform4iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*16)>>2));
  7399. }
  7400. function _glClear(x0) { GLctx['clear'](x0) }
  7401. 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.'; }
  7402. function _emscripten_glUniform3fv(location, count, value) {
  7403. var view;
  7404. if (3*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7405. // avoid allocation when uploading few enough uniforms
  7406. view = GL.miniTempBufferViews[3*count-1];
  7407. for (var i = 0; i < 3*count; i += 3) {
  7408. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7409. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7410. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7411. }
  7412. } else {
  7413. view = HEAPF32.subarray((value)>>2,(value+count*12)>>2);
  7414. }
  7415. GLctx.uniform3fv(GL.uniforms[location], view);
  7416. }
  7417. function _emscripten_glIsTexture(texture) {
  7418. var texture = GL.textures[texture];
  7419. if (!texture) return 0;
  7420. return GLctx.isTexture(texture);
  7421. }
  7422. function _glEnableVertexAttribArray(index) {
  7423. GLctx.enableVertexAttribArray(index);
  7424. }
  7425. function _emscripten_glAttachShader(program, shader) {
  7426. GLctx.attachShader(GL.programs[program],
  7427. GL.shaders[shader]);
  7428. }
  7429. function _glUniform4f(location, v0, v1, v2, v3) {
  7430. GLctx.uniform4f(GL.uniforms[location], v0, v1, v2, v3);
  7431. }
  7432. function _emscripten_request_pointerlock(target, deferUntilInEventHandler) {
  7433. if (!target) target = '#canvas';
  7434. target = JSEvents.findEventTarget(target);
  7435. if (!target) return -4;
  7436. if (!target.requestPointerLock && !target.mozRequestPointerLock && !target.webkitRequestPointerLock && !target.msRequestPointerLock) {
  7437. return -1;
  7438. }
  7439. var canPerformRequests = JSEvents.canPerformEventHandlerRequests();
  7440. // Queue this function call if we're not currently in an event handler and the user saw it appropriate to do so.
  7441. if (!canPerformRequests) {
  7442. if (deferUntilInEventHandler) {
  7443. JSEvents.deferCall(JSEvents.requestPointerLock, 2 /* priority below fullscreen */, [target]);
  7444. return 1;
  7445. } else {
  7446. return -2;
  7447. }
  7448. }
  7449. return JSEvents.requestPointerLock(target);
  7450. }
  7451. function _emscripten_glVertexAttrib2f(x0, x1, x2) { GLctx['vertexAttrib2f'](x0, x1, x2) }
  7452. function _glfwCreateWindow(width, height, title, monitor, share) {
  7453. return GLFW.createWindow(width, height, title, monitor, share);
  7454. }
  7455. function _glfwDefaultWindowHints() {
  7456. GLFW.hints = GLFW.defaultHints;
  7457. }
  7458. function _emscripten_glClearStencil(x0) { GLctx['clearStencil'](x0) }
  7459. function _emscripten_glDetachShader(program, shader) {
  7460. GLctx.detachShader(GL.programs[program],
  7461. GL.shaders[shader]);
  7462. }
  7463. function _emscripten_glDeleteVertexArrays(n, vaos) {
  7464. for (var i = 0; i < n; i++) {
  7465. var id = HEAP32[(((vaos)+(i*4))>>2)];
  7466. GLctx['deleteVertexArray'](GL.vaos[id]);
  7467. GL.vaos[id] = null;
  7468. }
  7469. }
  7470. function _glfwInit() {
  7471. if (GLFW.windows) return 1; // GL_TRUE
  7472. GLFW.initialTime = GLFW.getTime();
  7473. GLFW.hints = GLFW.defaultHints;
  7474. GLFW.windows = new Array()
  7475. GLFW.active = null;
  7476. window.addEventListener("keydown", GLFW.onKeydown, true);
  7477. window.addEventListener("keypress", GLFW.onKeyPress, true);
  7478. window.addEventListener("keyup", GLFW.onKeyup, true);
  7479. Module["canvas"].addEventListener("mousemove", GLFW.onMousemove, true);
  7480. Module["canvas"].addEventListener("mousedown", GLFW.onMouseButtonDown, true);
  7481. Module["canvas"].addEventListener("mouseup", GLFW.onMouseButtonUp, true);
  7482. Module["canvas"].addEventListener('wheel', GLFW.onMouseWheel, true);
  7483. Module["canvas"].addEventListener('mousewheel', GLFW.onMouseWheel, true);
  7484. Module["canvas"].addEventListener('mouseenter', GLFW.onMouseenter, true);
  7485. Module["canvas"].addEventListener('mouseleave', GLFW.onMouseleave, true);
  7486. Browser.resizeListeners.push(function(width, height) {
  7487. GLFW.onCanvasResize(width, height);
  7488. });
  7489. return 1; // GL_TRUE
  7490. }
  7491. function _emscripten_glGetTexParameteriv(target, pname, params) {
  7492. if (!params) {
  7493. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7494. // if p == null, issue a GL error to notify user about it.
  7495. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7496. return;
  7497. }
  7498. HEAP32[((params)>>2)]=GLctx.getTexParameter(target, pname);
  7499. }
  7500. function _glfwSwapBuffers(winid) {
  7501. GLFW.swapBuffers(winid);
  7502. }
  7503. function _emscripten_glGenerateMipmap(x0) { GLctx['generateMipmap'](x0) }
  7504. function _emscripten_glCullFace(x0) { GLctx['cullFace'](x0) }
  7505. function _emscripten_glUniform4f(location, v0, v1, v2, v3) {
  7506. GLctx.uniform4f(GL.uniforms[location], v0, v1, v2, v3);
  7507. }
  7508. function _glDisableVertexAttribArray(index) {
  7509. GLctx.disableVertexAttribArray(index);
  7510. }
  7511. function _emscripten_glUseProgram(program) {
  7512. GLctx.useProgram(program ? GL.programs[program] : null);
  7513. }
  7514. function _emscripten_glHint(x0, x1) { GLctx['hint'](x0, x1) }
  7515. function _emscripten_glUniform2fv(location, count, value) {
  7516. var view;
  7517. if (2*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7518. // avoid allocation when uploading few enough uniforms
  7519. view = GL.miniTempBufferViews[2*count-1];
  7520. for (var i = 0; i < 2*count; i += 2) {
  7521. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7522. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7523. }
  7524. } else {
  7525. view = HEAPF32.subarray((value)>>2,(value+count*8)>>2);
  7526. }
  7527. GLctx.uniform2fv(GL.uniforms[location], view);
  7528. }
  7529. function _glfwSwapInterval(interval) {
  7530. 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.
  7531. if (interval == 0) _emscripten_set_main_loop_timing(0/*EM_TIMING_SETTIMEOUT*/, 0);
  7532. else _emscripten_set_main_loop_timing(1/*EM_TIMING_RAF*/, interval);
  7533. }
  7534. function _glGetShaderInfoLog(shader, maxLength, length, infoLog) {
  7535. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  7536. if (log === null) log = '(unknown error)';
  7537. if (maxLength > 0 && infoLog) {
  7538. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  7539. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7540. } else {
  7541. if (length) HEAP32[((length)>>2)]=0;
  7542. }
  7543. }
  7544. 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.'; }
  7545. function _abort() {
  7546. Module['abort']();
  7547. }
  7548. function _emscripten_glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer) {
  7549. GLctx.framebufferRenderbuffer(target, attachment, renderbuffertarget,
  7550. GL.renderbuffers[renderbuffer]);
  7551. }
  7552. function _emscripten_glDeleteFramebuffers(n, framebuffers) {
  7553. for (var i = 0; i < n; ++i) {
  7554. var id = HEAP32[(((framebuffers)+(i*4))>>2)];
  7555. var framebuffer = GL.framebuffers[id];
  7556. if (!framebuffer) continue; // GL spec: "glDeleteFramebuffers silently ignores 0s and names that do not correspond to existing framebuffer objects".
  7557. GLctx.deleteFramebuffer(framebuffer);
  7558. framebuffer.name = 0;
  7559. GL.framebuffers[id] = null;
  7560. }
  7561. }
  7562. function _emscripten_glIsBuffer(buffer) {
  7563. var b = GL.buffers[buffer];
  7564. if (!b) return 0;
  7565. return GLctx.isBuffer(b);
  7566. }
  7567. function _emscripten_glUniform2iv(location, count, value) {
  7568. GLctx.uniform2iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*8)>>2));
  7569. }
  7570. function _emscripten_glVertexAttrib1fv(index, v) {
  7571. GLctx.vertexAttrib1f(index, HEAPF32[v>>2]);
  7572. }
  7573. function _glEnable(x0) { GLctx['enable'](x0) }
  7574. function _emscripten_glGenFramebuffers(n, ids) {
  7575. for (var i = 0; i < n; ++i) {
  7576. var framebuffer = GLctx.createFramebuffer();
  7577. if (!framebuffer) {
  7578. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  7579. while(i < n) HEAP32[(((ids)+(i++*4))>>2)]=0;
  7580. return;
  7581. }
  7582. var id = GL.getNewId(GL.framebuffers);
  7583. framebuffer.name = id;
  7584. GL.framebuffers[id] = framebuffer;
  7585. HEAP32[(((ids)+(i*4))>>2)]=id;
  7586. }
  7587. }
  7588. function emscriptenWebGLComputeImageSize(width, height, sizePerPixel, alignment) {
  7589. function roundedToNextMultipleOf(x, y) {
  7590. return Math.floor((x + y - 1) / y) * y
  7591. }
  7592. var plainRowSize = width * sizePerPixel;
  7593. var alignedRowSize = roundedToNextMultipleOf(plainRowSize, alignment);
  7594. return (height <= 0) ? 0 :
  7595. ((height - 1) * alignedRowSize + plainRowSize);
  7596. }function emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat) {
  7597. var sizePerPixel;
  7598. var numChannels;
  7599. switch(format) {
  7600. case 0x1906 /* GL_ALPHA */:
  7601. case 0x1909 /* GL_LUMINANCE */:
  7602. case 0x1902 /* GL_DEPTH_COMPONENT */:
  7603. numChannels = 1;
  7604. break;
  7605. case 0x190A /* GL_LUMINANCE_ALPHA */:
  7606. numChannels = 2;
  7607. break;
  7608. case 0x1907 /* GL_RGB */:
  7609. case 0x8C40 /* GL_SRGB_EXT */:
  7610. numChannels = 3;
  7611. break;
  7612. case 0x1908 /* GL_RGBA */:
  7613. case 0x8C42 /* GL_SRGB_ALPHA_EXT */:
  7614. numChannels = 4;
  7615. break;
  7616. default:
  7617. GL.recordError(0x0500); // GL_INVALID_ENUM
  7618. return null;
  7619. }
  7620. switch (type) {
  7621. case 0x1401 /* GL_UNSIGNED_BYTE */:
  7622. sizePerPixel = numChannels*1;
  7623. break;
  7624. case 0x1403 /* GL_UNSIGNED_SHORT */:
  7625. case 0x8D61 /* GL_HALF_FLOAT_OES */:
  7626. sizePerPixel = numChannels*2;
  7627. break;
  7628. case 0x1405 /* GL_UNSIGNED_INT */:
  7629. case 0x1406 /* GL_FLOAT */:
  7630. sizePerPixel = numChannels*4;
  7631. break;
  7632. case 0x84FA /* GL_UNSIGNED_INT_24_8_WEBGL/GL_UNSIGNED_INT_24_8 */:
  7633. sizePerPixel = 4;
  7634. break;
  7635. case 0x8363 /* GL_UNSIGNED_SHORT_5_6_5 */:
  7636. case 0x8033 /* GL_UNSIGNED_SHORT_4_4_4_4 */:
  7637. case 0x8034 /* GL_UNSIGNED_SHORT_5_5_5_1 */:
  7638. sizePerPixel = 2;
  7639. break;
  7640. default:
  7641. GL.recordError(0x0500); // GL_INVALID_ENUM
  7642. return null;
  7643. }
  7644. var bytes = emscriptenWebGLComputeImageSize(width, height, sizePerPixel, GL.unpackAlignment);
  7645. switch(type) {
  7646. case 0x1401 /* GL_UNSIGNED_BYTE */:
  7647. return HEAPU8.subarray((pixels),(pixels+bytes));
  7648. case 0x1406 /* GL_FLOAT */:
  7649. return HEAPF32.subarray((pixels)>>2,(pixels+bytes)>>2);
  7650. case 0x1405 /* GL_UNSIGNED_INT */:
  7651. case 0x84FA /* GL_UNSIGNED_INT_24_8_WEBGL/GL_UNSIGNED_INT_24_8 */:
  7652. return HEAPU32.subarray((pixels)>>2,(pixels+bytes)>>2);
  7653. case 0x1403 /* GL_UNSIGNED_SHORT */:
  7654. case 0x8363 /* GL_UNSIGNED_SHORT_5_6_5 */:
  7655. case 0x8033 /* GL_UNSIGNED_SHORT_4_4_4_4 */:
  7656. case 0x8034 /* GL_UNSIGNED_SHORT_5_5_5_1 */:
  7657. case 0x8D61 /* GL_HALF_FLOAT_OES */:
  7658. return HEAPU16.subarray((pixels)>>1,(pixels+bytes)>>1);
  7659. default:
  7660. GL.recordError(0x0500); // GL_INVALID_ENUM
  7661. return null;
  7662. }
  7663. }function _emscripten_glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels) {
  7664. var pixelData = null;
  7665. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, 0);
  7666. GLctx.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixelData);
  7667. }
  7668. function _emscripten_glPolygonOffset(x0, x1) { GLctx['polygonOffset'](x0, x1) }
  7669. var _emscripten_asm_const_int=true;
  7670. function _emscripten_glUniform2f(location, v0, v1) {
  7671. GLctx.uniform2f(GL.uniforms[location], v0, v1);
  7672. }
  7673. function _glGetAttribLocation(program, name) {
  7674. program = GL.programs[program];
  7675. name = Pointer_stringify(name);
  7676. return GLctx.getAttribLocation(program, name);
  7677. }
  7678. function _glfwWindowHint(target, hint) {
  7679. GLFW.hints[target] = hint;
  7680. }
  7681. function _emscripten_glUniform2i(location, v0, v1) {
  7682. GLctx.uniform2i(GL.uniforms[location], v0, v1);
  7683. }
  7684. function _glBlendFunc(x0, x1) { GLctx['blendFunc'](x0, x1) }
  7685. function _glCreateProgram() {
  7686. var id = GL.getNewId(GL.programs);
  7687. var program = GLctx.createProgram();
  7688. program.name = id;
  7689. GL.programs[id] = program;
  7690. return id;
  7691. }
  7692. function _emscripten_glDeleteRenderbuffers(n, renderbuffers) {
  7693. for (var i = 0; i < n; i++) {
  7694. var id = HEAP32[(((renderbuffers)+(i*4))>>2)];
  7695. var renderbuffer = GL.renderbuffers[id];
  7696. if (!renderbuffer) continue; // GL spec: "glDeleteRenderbuffers silently ignores 0s and names that do not correspond to existing renderbuffer objects".
  7697. GLctx.deleteRenderbuffer(renderbuffer);
  7698. renderbuffer.name = 0;
  7699. GL.renderbuffers[id] = null;
  7700. }
  7701. }
  7702. function _emscripten_glGetBufferParameteriv(target, value, data) {
  7703. if (!data) {
  7704. // GLES2 specification does not specify how to behave if data is a null pointer. Since calling this function does not make sense
  7705. // if data == null, issue a GL error to notify user about it.
  7706. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7707. return;
  7708. }
  7709. HEAP32[((data)>>2)]=GLctx.getBufferParameter(target, value);
  7710. }
  7711. function emscriptenWebGLGetUniform(program, location, params, type) {
  7712. if (!params) {
  7713. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7714. // if params == null, issue a GL error to notify user about it.
  7715. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7716. return;
  7717. }
  7718. var data = GLctx.getUniform(GL.programs[program], GL.uniforms[location]);
  7719. if (typeof data == 'number' || typeof data == 'boolean') {
  7720. switch (type) {
  7721. case 'Integer': HEAP32[((params)>>2)]=data; break;
  7722. case 'Float': HEAPF32[((params)>>2)]=data; break;
  7723. default: throw 'internal emscriptenWebGLGetUniform() error, bad type: ' + type;
  7724. }
  7725. } else {
  7726. for (var i = 0; i < data.length; i++) {
  7727. switch (type) {
  7728. case 'Integer': HEAP32[(((params)+(i))>>2)]=data[i]; break;
  7729. case 'Float': HEAPF32[(((params)+(i))>>2)]=data[i]; break;
  7730. default: throw 'internal emscriptenWebGLGetUniform() error, bad type: ' + type;
  7731. }
  7732. }
  7733. }
  7734. }function _emscripten_glGetUniformiv(program, location, params) {
  7735. emscriptenWebGLGetUniform(program, location, params, 'Integer');
  7736. }
  7737. function _emscripten_glDepthMask(flag) {
  7738. GLctx.depthMask(!!flag);
  7739. }
  7740. function _emscripten_glDepthRangef(x0, x1) { GLctx['depthRange'](x0, x1) }
  7741. function _emscripten_glDepthRange(x0, x1) { GLctx['depthRange'](x0, x1) }
  7742. function _emscripten_set_fullscreenchange_callback(target, userData, useCapture, callbackfunc) {
  7743. if (typeof JSEvents.fullscreenEnabled() === 'undefined') return -1;
  7744. if (!target) target = document;
  7745. else {
  7746. target = JSEvents.findEventTarget(target);
  7747. if (!target) return -4;
  7748. }
  7749. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "fullscreenchange");
  7750. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "mozfullscreenchange");
  7751. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "webkitfullscreenchange");
  7752. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "msfullscreenchange");
  7753. return 0;
  7754. }
  7755. Module["___muldsi3"] = ___muldsi3;
  7756. Module["___muldi3"] = ___muldi3;
  7757. function _emscripten_glGetShaderPrecisionFormat(shaderType, precisionType, range, precision) {
  7758. var result = GLctx.getShaderPrecisionFormat(shaderType, precisionType);
  7759. HEAP32[((range)>>2)]=result.rangeMin;
  7760. HEAP32[(((range)+(4))>>2)]=result.rangeMax;
  7761. HEAP32[((precision)>>2)]=result.precision;
  7762. }
  7763. function _emscripten_glUniform1fv(location, count, value) {
  7764. var view;
  7765. if (count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7766. // avoid allocation when uploading few enough uniforms
  7767. view = GL.miniTempBufferViews[count-1];
  7768. for (var i = 0; i < count; ++i) {
  7769. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7770. }
  7771. } else {
  7772. view = HEAPF32.subarray((value)>>2,(value+count*4)>>2);
  7773. }
  7774. GLctx.uniform1fv(GL.uniforms[location], view);
  7775. }
  7776. function _glDeleteBuffers(n, buffers) {
  7777. for (var i = 0; i < n; i++) {
  7778. var id = HEAP32[(((buffers)+(i*4))>>2)];
  7779. var buffer = GL.buffers[id];
  7780. // From spec: "glDeleteBuffers silently ignores 0's and names that do not
  7781. // correspond to existing buffer objects."
  7782. if (!buffer) continue;
  7783. GLctx.deleteBuffer(buffer);
  7784. buffer.name = 0;
  7785. GL.buffers[id] = null;
  7786. if (id == GL.currArrayBuffer) GL.currArrayBuffer = 0;
  7787. if (id == GL.currElementArrayBuffer) GL.currElementArrayBuffer = 0;
  7788. }
  7789. }
  7790. function _emscripten_set_gamepaddisconnected_callback(userData, useCapture, callbackfunc) {
  7791. if (!navigator.getGamepads && !navigator.webkitGetGamepads) return -1;
  7792. JSEvents.registerGamepadEventCallback(window, userData, useCapture, callbackfunc, 27, "gamepaddisconnected");
  7793. return 0;
  7794. }
  7795. function _emscripten_glBindProgramARB() {
  7796. Module['printErr']('missing function: emscripten_glBindProgramARB'); abort(-1);
  7797. }
  7798. function _emscripten_glBindTexture(target, texture) {
  7799. GLctx.bindTexture(target, texture ? GL.textures[texture] : null);
  7800. }
  7801. function _emscripten_glCheckFramebufferStatus(x0) { return GLctx['checkFramebufferStatus'](x0) }
  7802. function _emscripten_glDeleteProgram(id) {
  7803. if (!id) return;
  7804. var program = GL.programs[id];
  7805. if (!program) { // glDeleteProgram actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7806. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7807. return;
  7808. }
  7809. GLctx.deleteProgram(program);
  7810. program.name = 0;
  7811. GL.programs[id] = null;
  7812. GL.programInfos[id] = null;
  7813. }
  7814. function _emscripten_glDisable(x0) { GLctx['disable'](x0) }
  7815. function _emscripten_glVertexAttrib3fv(index, v) {
  7816. GLctx.vertexAttrib3f(index, HEAPF32[v>>2], HEAPF32[v+4>>2], HEAPF32[v+8>>2]);
  7817. }
  7818. function _glClearColor(x0, x1, x2, x3) { GLctx['clearColor'](x0, x1, x2, x3) }
  7819. function _emscripten_glGetActiveAttrib(program, index, bufSize, length, size, type, name) {
  7820. program = GL.programs[program];
  7821. var info = GLctx.getActiveAttrib(program, index);
  7822. if (!info) return; // If an error occurs, nothing will be written to length, size and type and name.
  7823. if (bufSize > 0 && name) {
  7824. var numBytesWrittenExclNull = stringToUTF8(info.name, name, bufSize);
  7825. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7826. } else {
  7827. if (length) HEAP32[((length)>>2)]=0;
  7828. }
  7829. if (size) HEAP32[((size)>>2)]=info.size;
  7830. if (type) HEAP32[((type)>>2)]=info.type;
  7831. }
  7832. function _emscripten_glIsFramebuffer(framebuffer) {
  7833. var fb = GL.framebuffers[framebuffer];
  7834. if (!fb) return 0;
  7835. return GLctx.isFramebuffer(fb);
  7836. }
  7837. function _emscripten_glLineWidth(x0) { GLctx['lineWidth'](x0) }
  7838. function _glfwGetCursorPos(winid, x, y) {
  7839. GLFW.getCursorPos(winid, x, y);
  7840. }
  7841. function _emscripten_glGetString(name_) {
  7842. if (GL.stringCache[name_]) return GL.stringCache[name_];
  7843. var ret;
  7844. switch(name_) {
  7845. case 0x1F00 /* GL_VENDOR */:
  7846. case 0x1F01 /* GL_RENDERER */:
  7847. case 0x9245 /* UNMASKED_VENDOR_WEBGL */:
  7848. case 0x9246 /* UNMASKED_RENDERER_WEBGL */:
  7849. ret = allocate(intArrayFromString(GLctx.getParameter(name_)), 'i8', ALLOC_NORMAL);
  7850. break;
  7851. case 0x1F02 /* GL_VERSION */:
  7852. var glVersion = GLctx.getParameter(GLctx.VERSION);
  7853. // return GLES version string corresponding to the version of the WebGL context
  7854. {
  7855. glVersion = 'OpenGL ES 2.0 (' + glVersion + ')';
  7856. }
  7857. ret = allocate(intArrayFromString(glVersion), 'i8', ALLOC_NORMAL);
  7858. break;
  7859. case 0x1F03 /* GL_EXTENSIONS */:
  7860. var exts = GLctx.getSupportedExtensions();
  7861. var gl_exts = [];
  7862. for (var i = 0; i < exts.length; ++i) {
  7863. gl_exts.push(exts[i]);
  7864. gl_exts.push("GL_" + exts[i]);
  7865. }
  7866. ret = allocate(intArrayFromString(gl_exts.join(' ')), 'i8', ALLOC_NORMAL);
  7867. break;
  7868. case 0x8B8C /* GL_SHADING_LANGUAGE_VERSION */:
  7869. var glslVersion = GLctx.getParameter(GLctx.SHADING_LANGUAGE_VERSION);
  7870. // extract the version number 'N.M' from the string 'WebGL GLSL ES N.M ...'
  7871. var ver_re = /^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/;
  7872. var ver_num = glslVersion.match(ver_re);
  7873. if (ver_num !== null) {
  7874. if (ver_num[1].length == 3) ver_num[1] = ver_num[1] + '0'; // ensure minor version has 2 digits
  7875. glslVersion = 'OpenGL ES GLSL ES ' + ver_num[1] + ' (' + glslVersion + ')';
  7876. }
  7877. ret = allocate(intArrayFromString(glslVersion), 'i8', ALLOC_NORMAL);
  7878. break;
  7879. default:
  7880. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  7881. return 0;
  7882. }
  7883. GL.stringCache[name_] = ret;
  7884. return ret;
  7885. }
  7886. function _emscripten_glGetAttribLocation(program, name) {
  7887. program = GL.programs[program];
  7888. name = Pointer_stringify(name);
  7889. return GLctx.getAttribLocation(program, name);
  7890. }
  7891. function _emscripten_glRotatef() {
  7892. Module['printErr']('missing function: emscripten_glRotatef'); abort(-1);
  7893. }
  7894. function emscriptenWebGLGet(name_, p, type) {
  7895. // Guard against user passing a null pointer.
  7896. // Note that GLES2 spec does not say anything about how passing a null pointer should be treated.
  7897. // Testing on desktop core GL 3, the application crashes on glGetIntegerv to a null pointer, but
  7898. // better to report an error instead of doing anything random.
  7899. if (!p) {
  7900. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7901. return;
  7902. }
  7903. var ret = undefined;
  7904. switch(name_) { // Handle a few trivial GLES values
  7905. case 0x8DFA: // GL_SHADER_COMPILER
  7906. ret = 1;
  7907. break;
  7908. case 0x8DF8: // GL_SHADER_BINARY_FORMATS
  7909. if (type !== 'Integer' && type !== 'Integer64') {
  7910. GL.recordError(0x0500); // GL_INVALID_ENUM
  7911. }
  7912. return; // Do not write anything to the out pointer, since no binary formats are supported.
  7913. case 0x8DF9: // GL_NUM_SHADER_BINARY_FORMATS
  7914. ret = 0;
  7915. break;
  7916. case 0x86A2: // GL_NUM_COMPRESSED_TEXTURE_FORMATS
  7917. // 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),
  7918. // so implement it ourselves to allow C++ GLES2 code get the length.
  7919. var formats = GLctx.getParameter(0x86A3 /*GL_COMPRESSED_TEXTURE_FORMATS*/);
  7920. ret = formats.length;
  7921. break;
  7922. }
  7923. if (ret === undefined) {
  7924. var result = GLctx.getParameter(name_);
  7925. switch (typeof(result)) {
  7926. case "number":
  7927. ret = result;
  7928. break;
  7929. case "boolean":
  7930. ret = result ? 1 : 0;
  7931. break;
  7932. case "string":
  7933. GL.recordError(0x0500); // GL_INVALID_ENUM
  7934. return;
  7935. case "object":
  7936. if (result === null) {
  7937. // null is a valid result for some (e.g., which buffer is bound - perhaps nothing is bound), but otherwise
  7938. // can mean an invalid name_, which we need to report as an error
  7939. switch(name_) {
  7940. case 0x8894: // ARRAY_BUFFER_BINDING
  7941. case 0x8B8D: // CURRENT_PROGRAM
  7942. case 0x8895: // ELEMENT_ARRAY_BUFFER_BINDING
  7943. case 0x8CA6: // FRAMEBUFFER_BINDING
  7944. case 0x8CA7: // RENDERBUFFER_BINDING
  7945. case 0x8069: // TEXTURE_BINDING_2D
  7946. case 0x8514: { // TEXTURE_BINDING_CUBE_MAP
  7947. ret = 0;
  7948. break;
  7949. }
  7950. default: {
  7951. GL.recordError(0x0500); // GL_INVALID_ENUM
  7952. return;
  7953. }
  7954. }
  7955. } else if (result instanceof Float32Array ||
  7956. result instanceof Uint32Array ||
  7957. result instanceof Int32Array ||
  7958. result instanceof Array) {
  7959. for (var i = 0; i < result.length; ++i) {
  7960. switch (type) {
  7961. case 'Integer': HEAP32[(((p)+(i*4))>>2)]=result[i]; break;
  7962. case 'Float': HEAPF32[(((p)+(i*4))>>2)]=result[i]; break;
  7963. case 'Boolean': HEAP8[(((p)+(i))>>0)]=result[i] ? 1 : 0; break;
  7964. default: throw 'internal glGet error, bad type: ' + type;
  7965. }
  7966. }
  7967. return;
  7968. } else if (result instanceof WebGLBuffer ||
  7969. result instanceof WebGLProgram ||
  7970. result instanceof WebGLFramebuffer ||
  7971. result instanceof WebGLRenderbuffer ||
  7972. result instanceof WebGLTexture) {
  7973. ret = result.name | 0;
  7974. } else {
  7975. GL.recordError(0x0500); // GL_INVALID_ENUM
  7976. return;
  7977. }
  7978. break;
  7979. default:
  7980. GL.recordError(0x0500); // GL_INVALID_ENUM
  7981. return;
  7982. }
  7983. }
  7984. switch (type) {
  7985. 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;
  7986. case 'Integer': HEAP32[((p)>>2)]=ret; break;
  7987. case 'Float': HEAPF32[((p)>>2)]=ret; break;
  7988. case 'Boolean': HEAP8[((p)>>0)]=ret ? 1 : 0; break;
  7989. default: throw 'internal glGet error, bad type: ' + type;
  7990. }
  7991. }function _emscripten_glGetIntegerv(name_, p) {
  7992. emscriptenWebGLGet(name_, p, 'Integer');
  7993. }
  7994. function _emscripten_glGetFramebufferAttachmentParameteriv(target, attachment, pname, params) {
  7995. var result = GLctx.getFramebufferAttachmentParameter(target, attachment, pname);
  7996. HEAP32[((params)>>2)]=result;
  7997. }
  7998. function _llvm_stackrestore(p) {
  7999. var self = _llvm_stacksave;
  8000. var ret = self.LLVM_SAVEDSTACKS[p];
  8001. self.LLVM_SAVEDSTACKS.splice(p, 1);
  8002. Runtime.stackRestore(ret);
  8003. }
  8004. function _glfwSetWindowShouldClose(winid, value) {
  8005. var win = GLFW.WindowFromId(winid);
  8006. if (!win) return;
  8007. win.shouldClose = value;
  8008. }
  8009. function _emscripten_glClientActiveTexture() {
  8010. Module['printErr']('missing function: emscripten_glClientActiveTexture'); abort(-1);
  8011. }
  8012. function _glGenBuffers(n, buffers) {
  8013. for (var i = 0; i < n; i++) {
  8014. var buffer = GLctx.createBuffer();
  8015. if (!buffer) {
  8016. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8017. while(i < n) HEAP32[(((buffers)+(i++*4))>>2)]=0;
  8018. return;
  8019. }
  8020. var id = GL.getNewId(GL.buffers);
  8021. buffer.name = id;
  8022. GL.buffers[id] = buffer;
  8023. HEAP32[(((buffers)+(i*4))>>2)]=id;
  8024. }
  8025. }
  8026. function _emscripten_memcpy_big(dest, src, num) {
  8027. HEAPU8.set(HEAPU8.subarray(src, src+num), dest);
  8028. return dest;
  8029. }
  8030. Module["_memcpy"] = _memcpy;
  8031. function _emscripten_glGetShaderInfoLog(shader, maxLength, length, infoLog) {
  8032. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  8033. if (log === null) log = '(unknown error)';
  8034. if (maxLength > 0 && infoLog) {
  8035. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  8036. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8037. } else {
  8038. if (length) HEAP32[((length)>>2)]=0;
  8039. }
  8040. }
  8041. function _glfwGetTime() {
  8042. return GLFW.getTime() - GLFW.initialTime;
  8043. }
  8044. function _emscripten_glGetRenderbufferParameteriv(target, pname, params) {
  8045. if (!params) {
  8046. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  8047. // if params == null, issue a GL error to notify user about it.
  8048. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8049. return;
  8050. }
  8051. HEAP32[((params)>>2)]=GLctx.getRenderbufferParameter(target, pname);
  8052. }
  8053. function _emscripten_glStencilOpSeparate(x0, x1, x2, x3) { GLctx['stencilOpSeparate'](x0, x1, x2, x3) }
  8054. function _emscripten_glReadPixels(x, y, width, height, format, type, pixels) {
  8055. var pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, format);
  8056. if (!pixelData) {
  8057. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  8058. return;
  8059. }
  8060. GLctx.readPixels(x, y, width, height, format, type, pixelData);
  8061. }
  8062. function _emscripten_glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data) {
  8063. GLctx['compressedTexSubImage2D'](target, level, xoffset, yoffset, width, height, format, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  8064. }
  8065. function _emscripten_glGetError() {
  8066. // First return any GL error generated by the emscripten library_gl.js interop layer.
  8067. if (GL.lastError) {
  8068. var error = GL.lastError;
  8069. GL.lastError = 0/*GL_NO_ERROR*/;
  8070. return error;
  8071. } else { // If there were none, return the GL error from the browser GL context.
  8072. return GLctx.getError();
  8073. }
  8074. }
  8075. function _emscripten_glFramebufferTexture2D(target, attachment, textarget, texture, level) {
  8076. GLctx.framebufferTexture2D(target, attachment, textarget,
  8077. GL.textures[texture], level);
  8078. }
  8079. function _emscripten_glIsEnabled(x0) { return GLctx['isEnabled'](x0) }
  8080. function _glClearDepthf(x0) { GLctx['clearDepth'](x0) }
  8081. Module["_memmove"] = _memmove;
  8082. function _glGenTextures(n, textures) {
  8083. for (var i = 0; i < n; i++) {
  8084. var texture = GLctx.createTexture();
  8085. if (!texture) {
  8086. 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.
  8087. while(i < n) HEAP32[(((textures)+(i++*4))>>2)]=0;
  8088. return;
  8089. }
  8090. var id = GL.getNewId(GL.textures);
  8091. texture.name = id;
  8092. GL.textures[id] = texture;
  8093. HEAP32[(((textures)+(i*4))>>2)]=id;
  8094. }
  8095. }
  8096. function _emscripten_glVertexAttrib4f(x0, x1, x2, x3, x4) { GLctx['vertexAttrib4f'](x0, x1, x2, x3, x4) }
  8097. function _glDepthFunc(x0) { GLctx['depthFunc'](x0) }
  8098. 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);
  8099. Module["_llvm_cttz_i32"] = _llvm_cttz_i32;
  8100. Module["___udivmoddi4"] = ___udivmoddi4;
  8101. Module["___uremdi3"] = ___uremdi3;
  8102. function _emscripten_glClearDepthf(x0) { GLctx['clearDepth'](x0) }
  8103. function _emscripten_glClear(x0) { GLctx['clear'](x0) }
  8104. function _emscripten_glBindBuffer(target, buffer) {
  8105. var bufferObj = buffer ? GL.buffers[buffer] : null;
  8106. GLctx.bindBuffer(target, bufferObj);
  8107. }
  8108. function _emscripten_glGetUniformfv(program, location, params) {
  8109. emscriptenWebGLGetUniform(program, location, params, 'Float');
  8110. }
  8111. function _glGetProgramiv(program, pname, p) {
  8112. if (!p) {
  8113. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8114. // if p == null, issue a GL error to notify user about it.
  8115. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8116. return;
  8117. }
  8118. if (program >= GL.counter) {
  8119. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8120. return;
  8121. }
  8122. var ptable = GL.programInfos[program];
  8123. if (!ptable) {
  8124. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8125. return;
  8126. }
  8127. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8128. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8129. if (log === null) log = '(unknown error)';
  8130. HEAP32[((p)>>2)]=log.length + 1;
  8131. } else if (pname == 0x8B87 /* GL_ACTIVE_UNIFORM_MAX_LENGTH */) {
  8132. HEAP32[((p)>>2)]=ptable.maxUniformLength;
  8133. } else if (pname == 0x8B8A /* GL_ACTIVE_ATTRIBUTE_MAX_LENGTH */) {
  8134. if (ptable.maxAttributeLength == -1) {
  8135. var program = GL.programs[program];
  8136. var numAttribs = GLctx.getProgramParameter(program, GLctx.ACTIVE_ATTRIBUTES);
  8137. ptable.maxAttributeLength = 0; // Spec says if there are no active attribs, 0 must be returned.
  8138. for (var i = 0; i < numAttribs; ++i) {
  8139. var activeAttrib = GLctx.getActiveAttrib(program, i);
  8140. ptable.maxAttributeLength = Math.max(ptable.maxAttributeLength, activeAttrib.name.length+1);
  8141. }
  8142. }
  8143. HEAP32[((p)>>2)]=ptable.maxAttributeLength;
  8144. } else if (pname == 0x8A35 /* GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */) {
  8145. if (ptable.maxUniformBlockNameLength == -1) {
  8146. var program = GL.programs[program];
  8147. var numBlocks = GLctx.getProgramParameter(program, GLctx.ACTIVE_UNIFORM_BLOCKS);
  8148. ptable.maxUniformBlockNameLength = 0;
  8149. for (var i = 0; i < numBlocks; ++i) {
  8150. var activeBlockName = GLctx.getActiveUniformBlockName(program, i);
  8151. ptable.maxUniformBlockNameLength = Math.max(ptable.maxUniformBlockNameLength, activeBlockName.length+1);
  8152. }
  8153. }
  8154. HEAP32[((p)>>2)]=ptable.maxUniformBlockNameLength;
  8155. } else {
  8156. HEAP32[((p)>>2)]=GLctx.getProgramParameter(GL.programs[program], pname);
  8157. }
  8158. }
  8159. function _glVertexAttribPointer(index, size, type, normalized, stride, ptr) {
  8160. GLctx.vertexAttribPointer(index, size, type, !!normalized, stride, ptr);
  8161. }
  8162. function _emscripten_exit_pointerlock() {
  8163. // Make sure no queued up calls will fire after this.
  8164. JSEvents.removeDeferredCalls(JSEvents.requestPointerLock);
  8165. if (document.exitPointerLock) {
  8166. document.exitPointerLock();
  8167. } else if (document.msExitPointerLock) {
  8168. document.msExitPointerLock();
  8169. } else if (document.mozExitPointerLock) {
  8170. document.mozExitPointerLock();
  8171. } else if (document.webkitExitPointerLock) {
  8172. document.webkitExitPointerLock();
  8173. } else {
  8174. return -1;
  8175. }
  8176. return 0;
  8177. }
  8178. function _glGetUniformLocation(program, name) {
  8179. name = Pointer_stringify(name);
  8180. var arrayOffset = 0;
  8181. // If user passed an array accessor "[index]", parse the array index off the accessor.
  8182. if (name.indexOf(']', name.length-1) !== -1) {
  8183. var ls = name.lastIndexOf('[');
  8184. var arrayIndex = name.slice(ls+1, -1);
  8185. if (arrayIndex.length > 0) {
  8186. arrayOffset = parseInt(arrayIndex);
  8187. if (arrayOffset < 0) {
  8188. return -1;
  8189. }
  8190. }
  8191. name = name.slice(0, ls);
  8192. }
  8193. var ptable = GL.programInfos[program];
  8194. if (!ptable) {
  8195. return -1;
  8196. }
  8197. var utable = ptable.uniforms;
  8198. var uniformInfo = utable[name]; // returns pair [ dimension_of_uniform_array, uniform_location ]
  8199. 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.
  8200. return uniformInfo[1]+arrayOffset;
  8201. } else {
  8202. return -1;
  8203. }
  8204. }
  8205. function _emscripten_glGetAttachedShaders(program, maxCount, count, shaders) {
  8206. var result = GLctx.getAttachedShaders(GL.programs[program]);
  8207. var len = result.length;
  8208. if (len > maxCount) {
  8209. len = maxCount;
  8210. }
  8211. HEAP32[((count)>>2)]=len;
  8212. for (var i = 0; i < len; ++i) {
  8213. var id = GL.shaders.indexOf(result[i]);
  8214. assert(id !== -1, 'shader not bound to local id');
  8215. HEAP32[(((shaders)+(i*4))>>2)]=id;
  8216. }
  8217. }
  8218. function _emscripten_glGenRenderbuffers(n, renderbuffers) {
  8219. for (var i = 0; i < n; i++) {
  8220. var renderbuffer = GLctx.createRenderbuffer();
  8221. if (!renderbuffer) {
  8222. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8223. while(i < n) HEAP32[(((renderbuffers)+(i++*4))>>2)]=0;
  8224. return;
  8225. }
  8226. var id = GL.getNewId(GL.renderbuffers);
  8227. renderbuffer.name = id;
  8228. GL.renderbuffers[id] = renderbuffer;
  8229. HEAP32[(((renderbuffers)+(i*4))>>2)]=id;
  8230. }
  8231. }
  8232. function _emscripten_glFrontFace(x0) { GLctx['frontFace'](x0) }
  8233. function _emscripten_glActiveTexture(x0) { GLctx['activeTexture'](x0) }
  8234. function _emscripten_glUniform1iv(location, count, value) {
  8235. GLctx.uniform1iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*4)>>2));
  8236. }
  8237. function _emscripten_glTexCoordPointer() {
  8238. Module['printErr']('missing function: emscripten_glTexCoordPointer'); abort(-1);
  8239. }
  8240. function _emscripten_glGetInfoLogARB() {
  8241. Module['printErr']('missing function: emscripten_glGetInfoLogARB'); abort(-1);
  8242. }
  8243. function __exit(status) {
  8244. // void _exit(int status);
  8245. // http://pubs.opengroup.org/onlinepubs/000095399/functions/exit.html
  8246. Module['exit'](status);
  8247. }function _exit(status) {
  8248. __exit(status);
  8249. }
  8250. function _emscripten_glRenderbufferStorage(x0, x1, x2, x3) { GLctx['renderbufferStorage'](x0, x1, x2, x3) }
  8251. function _emscripten_glCopyTexSubImage2D(x0, x1, x2, x3, x4, x5, x6, x7) { GLctx['copyTexSubImage2D'](x0, x1, x2, x3, x4, x5, x6, x7) }
  8252. function _glfwSetCursorPosCallback(winid, cbfun) {
  8253. GLFW.setCursorPosCallback(winid, cbfun);
  8254. }
  8255. function _glBindAttribLocation(program, index, name) {
  8256. name = Pointer_stringify(name);
  8257. GLctx.bindAttribLocation(GL.programs[program], index, name);
  8258. }
  8259. function _emscripten_glShaderBinary() {
  8260. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  8261. }
  8262. function _emscripten_glIsProgram(program) {
  8263. var program = GL.programs[program];
  8264. if (!program) return 0;
  8265. return GLctx.isProgram(program);
  8266. }
  8267. function _emscripten_glBlendColor(x0, x1, x2, x3) { GLctx['blendColor'](x0, x1, x2, x3) }
  8268. function _emscripten_glGetShaderiv(shader, pname, p) {
  8269. if (!p) {
  8270. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8271. // if p == null, issue a GL error to notify user about it.
  8272. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8273. return;
  8274. }
  8275. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8276. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  8277. if (log === null) log = '(unknown error)';
  8278. HEAP32[((p)>>2)]=log.length + 1;
  8279. } else {
  8280. HEAP32[((p)>>2)]=GLctx.getShaderParameter(GL.shaders[shader], pname);
  8281. }
  8282. }
  8283. function _emscripten_glUniformMatrix3fv(location, count, transpose, value) {
  8284. var view;
  8285. if (9*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8286. // avoid allocation when uploading few enough uniforms
  8287. view = GL.miniTempBufferViews[9*count-1];
  8288. for (var i = 0; i < 9*count; i += 9) {
  8289. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8290. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8291. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8292. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8293. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  8294. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  8295. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  8296. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  8297. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  8298. }
  8299. } else {
  8300. view = HEAPF32.subarray((value)>>2,(value+count*36)>>2);
  8301. }
  8302. GLctx.uniformMatrix3fv(GL.uniforms[location], !!transpose, view);
  8303. }
  8304. Module["___udivdi3"] = ___udivdi3;
  8305. function _emscripten_glUniform4fv(location, count, value) {
  8306. var view;
  8307. if (4*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8308. // avoid allocation when uploading few enough uniforms
  8309. view = GL.miniTempBufferViews[4*count-1];
  8310. for (var i = 0; i < 4*count; i += 4) {
  8311. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8312. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8313. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8314. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8315. }
  8316. } else {
  8317. view = HEAPF32.subarray((value)>>2,(value+count*16)>>2);
  8318. }
  8319. GLctx.uniform4fv(GL.uniforms[location], view);
  8320. }
  8321. function _glBufferSubData(target, offset, size, data) {
  8322. GLctx.bufferSubData(target, offset, HEAPU8.subarray(data, data+size));
  8323. }
  8324. function _llvm_exp2_f32(x) {
  8325. return Math.pow(2, x);
  8326. }
  8327. function _glGetShaderiv(shader, pname, p) {
  8328. if (!p) {
  8329. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8330. // if p == null, issue a GL error to notify user about it.
  8331. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8332. return;
  8333. }
  8334. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8335. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  8336. if (log === null) log = '(unknown error)';
  8337. HEAP32[((p)>>2)]=log.length + 1;
  8338. } else {
  8339. HEAP32[((p)>>2)]=GLctx.getShaderParameter(GL.shaders[shader], pname);
  8340. }
  8341. }
  8342. function _emscripten_glBlendEquationSeparate(x0, x1) { GLctx['blendEquationSeparate'](x0, x1) }
  8343. function _glfwSetWindowIconifyCallback(winid, cbfun) {
  8344. var win = GLFW.WindowFromId(winid);
  8345. if (!win) return;
  8346. win.windowIconifyFunc = cbfun;
  8347. }
  8348. function _emscripten_glDrawRangeElements() {
  8349. Module['printErr']('missing function: emscripten_glDrawRangeElements'); abort(-1);
  8350. }
  8351. function _emscripten_glGenTextures(n, textures) {
  8352. for (var i = 0; i < n; i++) {
  8353. var texture = GLctx.createTexture();
  8354. if (!texture) {
  8355. 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.
  8356. while(i < n) HEAP32[(((textures)+(i++*4))>>2)]=0;
  8357. return;
  8358. }
  8359. var id = GL.getNewId(GL.textures);
  8360. texture.name = id;
  8361. GL.textures[id] = texture;
  8362. HEAP32[(((textures)+(i*4))>>2)]=id;
  8363. }
  8364. }
  8365. function _emscripten_glVertexAttrib2fv(index, v) {
  8366. GLctx.vertexAttrib2f(index, HEAPF32[v>>2], HEAPF32[v+4>>2]);
  8367. }
  8368. function _emscripten_glGetActiveUniform(program, index, bufSize, length, size, type, name) {
  8369. program = GL.programs[program];
  8370. var info = GLctx.getActiveUniform(program, index);
  8371. if (!info) return; // If an error occurs, nothing will be written to length, size, type and name.
  8372. if (bufSize > 0 && name) {
  8373. var numBytesWrittenExclNull = stringToUTF8(info.name, name, bufSize);
  8374. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8375. } else {
  8376. if (length) HEAP32[((length)>>2)]=0;
  8377. }
  8378. if (size) HEAP32[((size)>>2)]=info.size;
  8379. if (type) HEAP32[((type)>>2)]=info.type;
  8380. }
  8381. Module["_roundf"] = _roundf;
  8382. function _emscripten_glDeleteObjectARB() {
  8383. Module['printErr']('missing function: emscripten_glDeleteObjectARB'); abort(-1);
  8384. }
  8385. function _emscripten_set_touchmove_callback(target, userData, useCapture, callbackfunc) {
  8386. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 24, "touchmove");
  8387. return 0;
  8388. }
  8389. function _emscripten_glUniform1f(location, v0) {
  8390. GLctx.uniform1f(GL.uniforms[location], v0);
  8391. }
  8392. function _emscripten_glVertexAttribPointer(index, size, type, normalized, stride, ptr) {
  8393. GLctx.vertexAttribPointer(index, size, type, !!normalized, stride, ptr);
  8394. }
  8395. function _glShaderSource(shader, count, string, length) {
  8396. var source = GL.getSource(shader, count, string, length);
  8397. GLctx.shaderSource(GL.shaders[shader], source);
  8398. }
  8399. function _emscripten_glDrawArrays(mode, first, count) {
  8400. GLctx.drawArrays(mode, first, count);
  8401. }
  8402. function _emscripten_glGenBuffers(n, buffers) {
  8403. for (var i = 0; i < n; i++) {
  8404. var buffer = GLctx.createBuffer();
  8405. if (!buffer) {
  8406. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8407. while(i < n) HEAP32[(((buffers)+(i++*4))>>2)]=0;
  8408. return;
  8409. }
  8410. var id = GL.getNewId(GL.buffers);
  8411. buffer.name = id;
  8412. GL.buffers[id] = buffer;
  8413. HEAP32[(((buffers)+(i*4))>>2)]=id;
  8414. }
  8415. }
  8416. function _emscripten_glClearDepth(x0) { GLctx['clearDepth'](x0) }
  8417. function _emscripten_set_keypress_callback(target, userData, useCapture, callbackfunc) {
  8418. JSEvents.registerKeyEventCallback(target, userData, useCapture, callbackfunc, 1, "keypress");
  8419. return 0;
  8420. }
  8421. function _glfwSetCharCallback(winid, cbfun) {
  8422. GLFW.setCharCallback(winid, cbfun);
  8423. }
  8424. function _emscripten_glGetUniformLocation(program, name) {
  8425. name = Pointer_stringify(name);
  8426. var arrayOffset = 0;
  8427. // If user passed an array accessor "[index]", parse the array index off the accessor.
  8428. if (name.indexOf(']', name.length-1) !== -1) {
  8429. var ls = name.lastIndexOf('[');
  8430. var arrayIndex = name.slice(ls+1, -1);
  8431. if (arrayIndex.length > 0) {
  8432. arrayOffset = parseInt(arrayIndex);
  8433. if (arrayOffset < 0) {
  8434. return -1;
  8435. }
  8436. }
  8437. name = name.slice(0, ls);
  8438. }
  8439. var ptable = GL.programInfos[program];
  8440. if (!ptable) {
  8441. return -1;
  8442. }
  8443. var utable = ptable.uniforms;
  8444. var uniformInfo = utable[name]; // returns pair [ dimension_of_uniform_array, uniform_location ]
  8445. 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.
  8446. return uniformInfo[1]+arrayOffset;
  8447. } else {
  8448. return -1;
  8449. }
  8450. }
  8451. function _glBindBuffer(target, buffer) {
  8452. var bufferObj = buffer ? GL.buffers[buffer] : null;
  8453. GLctx.bindBuffer(target, bufferObj);
  8454. }
  8455. function _emscripten_glVertexAttrib4fv(index, v) {
  8456. GLctx.vertexAttrib4f(index, HEAPF32[v>>2], HEAPF32[v+4>>2], HEAPF32[v+8>>2], HEAPF32[v+12>>2]);
  8457. }
  8458. function _emscripten_glScissor(x0, x1, x2, x3) { GLctx['scissor'](x0, x1, x2, x3) }
  8459. function _glfwSetCursorEnterCallback(winid, cbfun) {
  8460. var win = GLFW.WindowFromId(winid);
  8461. if (!win) return;
  8462. win.cursorEnterFunc = cbfun;
  8463. }
  8464. Module["_bitshift64Lshr"] = _bitshift64Lshr;
  8465. function _glBufferData(target, size, data, usage) {
  8466. if (!data) {
  8467. GLctx.bufferData(target, size, usage);
  8468. } else {
  8469. GLctx.bufferData(target, HEAPU8.subarray(data, data+size), usage);
  8470. }
  8471. }
  8472. function _emscripten_glIsShader(shader) {
  8473. var s = GL.shaders[shader];
  8474. if (!s) return 0;
  8475. return GLctx.isShader(s);
  8476. }
  8477. function _emscripten_glDrawBuffers(n, bufs) {
  8478. var bufArray = GL.tempFixedLengthArray[n];
  8479. for (var i = 0; i < n; i++) {
  8480. bufArray[i] = HEAP32[(((bufs)+(i*4))>>2)];
  8481. }
  8482. GLctx['drawBuffers'](bufArray);
  8483. }
  8484. function _glGetFloatv(name_, p) {
  8485. emscriptenWebGLGet(name_, p, 'Float');
  8486. }
  8487. function _emscripten_glBindFramebuffer(target, framebuffer) {
  8488. GLctx.bindFramebuffer(target, framebuffer ? GL.framebuffers[framebuffer] : null);
  8489. }
  8490. function _emscripten_glBlendEquation(x0) { GLctx['blendEquation'](x0) }
  8491. function _emscripten_glBufferSubData(target, offset, size, data) {
  8492. GLctx.bufferSubData(target, offset, HEAPU8.subarray(data, data+size));
  8493. }
  8494. function _emscripten_glBufferData(target, size, data, usage) {
  8495. if (!data) {
  8496. GLctx.bufferData(target, size, usage);
  8497. } else {
  8498. GLctx.bufferData(target, HEAPU8.subarray(data, data+size), usage);
  8499. }
  8500. }
  8501. Module["_sbrk"] = _sbrk;
  8502. Module["_bitshift64Shl"] = _bitshift64Shl;
  8503. function _emscripten_glGetShaderSource(shader, bufSize, length, source) {
  8504. var result = GLctx.getShaderSource(GL.shaders[shader]);
  8505. if (!result) return; // If an error occurs, nothing will be written to length or source.
  8506. if (bufSize > 0 && source) {
  8507. var numBytesWrittenExclNull = stringToUTF8(result, source, bufSize);
  8508. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8509. } else {
  8510. if (length) HEAP32[((length)>>2)]=0;
  8511. }
  8512. }
  8513. Module["_llvm_bswap_i32"] = _llvm_bswap_i32;
  8514. function _emscripten_set_click_callback(target, userData, useCapture, callbackfunc) {
  8515. JSEvents.registerMouseEventCallback(target, userData, useCapture, callbackfunc, 4, "click");
  8516. return 0;
  8517. }
  8518. function _glfwSetKeyCallback(winid, cbfun) {
  8519. GLFW.setKeyCallback(winid, cbfun);
  8520. }
  8521. function _emscripten_set_gamepadconnected_callback(userData, useCapture, callbackfunc) {
  8522. if (!navigator.getGamepads && !navigator.webkitGetGamepads) return -1;
  8523. JSEvents.registerGamepadEventCallback(window, userData, useCapture, callbackfunc, 26, "gamepadconnected");
  8524. return 0;
  8525. }
  8526. function _emscripten_glGetFloatv(name_, p) {
  8527. emscriptenWebGLGet(name_, p, 'Float');
  8528. }
  8529. function _glTexImage2D(target, level, internalFormat, width, height, border, format, type, pixels) {
  8530. var pixelData = null;
  8531. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat);
  8532. GLctx.texImage2D(target, level, internalFormat, width, height, border, format, type, pixelData);
  8533. }
  8534. function ___assert_fail(condition, filename, line, func) {
  8535. ABORT = true;
  8536. throw 'Assertion failed: ' + Pointer_stringify(condition) + ', at: ' + [filename ? Pointer_stringify(filename) : 'unknown filename', line, func ? Pointer_stringify(func) : 'unknown function'] + ' at ' + stackTrace();
  8537. }
  8538. function _emscripten_glVertexAttribDivisor(index, divisor) {
  8539. GLctx['vertexAttribDivisor'](index, divisor);
  8540. }
  8541. function _emscripten_glDrawElementsInstanced(mode, count, type, indices, primcount) {
  8542. GLctx['drawElementsInstanced'](mode, count, type, indices, primcount);
  8543. }
  8544. function _emscripten_glDrawElements(mode, count, type, indices) {
  8545. GLctx.drawElements(mode, count, type, indices);
  8546. }
  8547. function _glfwSetMouseButtonCallback(winid, cbfun) {
  8548. GLFW.setMouseButtonCallback(winid, cbfun);
  8549. }
  8550. function _emscripten_glCreateProgram() {
  8551. var id = GL.getNewId(GL.programs);
  8552. var program = GLctx.createProgram();
  8553. program.name = id;
  8554. GL.programs[id] = program;
  8555. return id;
  8556. }
  8557. function _emscripten_glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data) {
  8558. GLctx['compressedTexImage2D'](target, level, internalFormat, width, height, border, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  8559. }
  8560. function _emscripten_glClearColor(x0, x1, x2, x3) { GLctx['clearColor'](x0, x1, x2, x3) }
  8561. function _emscripten_glBindVertexArray(vao) {
  8562. GLctx['bindVertexArray'](GL.vaos[vao]);
  8563. }
  8564. function _emscripten_glLoadMatrixf() {
  8565. Module['printErr']('missing function: emscripten_glLoadMatrixf'); abort(-1);
  8566. }
  8567. function _glDeleteShader(id) {
  8568. if (!id) return;
  8569. var shader = GL.shaders[id];
  8570. if (!shader) { // glDeleteShader actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  8571. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8572. return;
  8573. }
  8574. GLctx.deleteShader(shader);
  8575. GL.shaders[id] = null;
  8576. }
  8577. function _emscripten_glGetProgramiv(program, pname, p) {
  8578. if (!p) {
  8579. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8580. // if p == null, issue a GL error to notify user about it.
  8581. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8582. return;
  8583. }
  8584. if (program >= GL.counter) {
  8585. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8586. return;
  8587. }
  8588. var ptable = GL.programInfos[program];
  8589. if (!ptable) {
  8590. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8591. return;
  8592. }
  8593. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8594. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8595. if (log === null) log = '(unknown error)';
  8596. HEAP32[((p)>>2)]=log.length + 1;
  8597. } else if (pname == 0x8B87 /* GL_ACTIVE_UNIFORM_MAX_LENGTH */) {
  8598. HEAP32[((p)>>2)]=ptable.maxUniformLength;
  8599. } else if (pname == 0x8B8A /* GL_ACTIVE_ATTRIBUTE_MAX_LENGTH */) {
  8600. if (ptable.maxAttributeLength == -1) {
  8601. var program = GL.programs[program];
  8602. var numAttribs = GLctx.getProgramParameter(program, GLctx.ACTIVE_ATTRIBUTES);
  8603. ptable.maxAttributeLength = 0; // Spec says if there are no active attribs, 0 must be returned.
  8604. for (var i = 0; i < numAttribs; ++i) {
  8605. var activeAttrib = GLctx.getActiveAttrib(program, i);
  8606. ptable.maxAttributeLength = Math.max(ptable.maxAttributeLength, activeAttrib.name.length+1);
  8607. }
  8608. }
  8609. HEAP32[((p)>>2)]=ptable.maxAttributeLength;
  8610. } else if (pname == 0x8A35 /* GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */) {
  8611. if (ptable.maxUniformBlockNameLength == -1) {
  8612. var program = GL.programs[program];
  8613. var numBlocks = GLctx.getProgramParameter(program, GLctx.ACTIVE_UNIFORM_BLOCKS);
  8614. ptable.maxUniformBlockNameLength = 0;
  8615. for (var i = 0; i < numBlocks; ++i) {
  8616. var activeBlockName = GLctx.getActiveUniformBlockName(program, i);
  8617. ptable.maxUniformBlockNameLength = Math.max(ptable.maxUniformBlockNameLength, activeBlockName.length+1);
  8618. }
  8619. }
  8620. HEAP32[((p)>>2)]=ptable.maxUniformBlockNameLength;
  8621. } else {
  8622. HEAP32[((p)>>2)]=GLctx.getProgramParameter(GL.programs[program], pname);
  8623. }
  8624. }
  8625. function _emscripten_glGetProgramInfoLog(program, maxLength, length, infoLog) {
  8626. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8627. if (log === null) log = '(unknown error)';
  8628. if (maxLength > 0 && infoLog) {
  8629. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  8630. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8631. } else {
  8632. if (length) HEAP32[((length)>>2)]=0;
  8633. }
  8634. }
  8635. function _emscripten_glTexImage2D(target, level, internalFormat, width, height, border, format, type, pixels) {
  8636. var pixelData = null;
  8637. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat);
  8638. GLctx.texImage2D(target, level, internalFormat, width, height, border, format, type, pixelData);
  8639. }
  8640. function _glPixelStorei(pname, param) {
  8641. if (pname == 0x0D05 /* GL_PACK_ALIGNMENT */) {
  8642. GL.packAlignment = param;
  8643. } else if (pname == 0x0cf5 /* GL_UNPACK_ALIGNMENT */) {
  8644. GL.unpackAlignment = param;
  8645. }
  8646. GLctx.pixelStorei(pname, param);
  8647. }
  8648. function ___unlock() {}
  8649. function _emscripten_glColorPointer() {
  8650. Module['printErr']('missing function: emscripten_glColorPointer'); abort(-1);
  8651. }
  8652. function _glViewport(x0, x1, x2, x3) { GLctx['viewport'](x0, x1, x2, x3) }
  8653. function _glfwDestroyWindow(winid) {
  8654. return GLFW.destroyWindow(winid);
  8655. }
  8656. function _emscripten_glFlush() { GLctx['flush']() }
  8657. function _glfwSetErrorCallback(cbfun) {
  8658. GLFW.errorFunc = cbfun;
  8659. }
  8660. function _emscripten_glCreateShader(shaderType) {
  8661. var id = GL.getNewId(GL.shaders);
  8662. GL.shaders[id] = GLctx.createShader(shaderType);
  8663. return id;
  8664. }
  8665. function _glUniformMatrix4fv(location, count, transpose, value) {
  8666. var view;
  8667. if (16*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8668. // avoid allocation when uploading few enough uniforms
  8669. view = GL.miniTempBufferViews[16*count-1];
  8670. for (var i = 0; i < 16*count; i += 16) {
  8671. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8672. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8673. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8674. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8675. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  8676. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  8677. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  8678. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  8679. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  8680. view[i+9] = HEAPF32[(((value)+(4*i+36))>>2)];
  8681. view[i+10] = HEAPF32[(((value)+(4*i+40))>>2)];
  8682. view[i+11] = HEAPF32[(((value)+(4*i+44))>>2)];
  8683. view[i+12] = HEAPF32[(((value)+(4*i+48))>>2)];
  8684. view[i+13] = HEAPF32[(((value)+(4*i+52))>>2)];
  8685. view[i+14] = HEAPF32[(((value)+(4*i+56))>>2)];
  8686. view[i+15] = HEAPF32[(((value)+(4*i+60))>>2)];
  8687. }
  8688. } else {
  8689. view = HEAPF32.subarray((value)>>2,(value+count*64)>>2);
  8690. }
  8691. GLctx.uniformMatrix4fv(GL.uniforms[location], !!transpose, view);
  8692. }
  8693. function _emscripten_glValidateProgram(program) {
  8694. GLctx.validateProgram(GL.programs[program]);
  8695. }
  8696. function _glTexParameterf(x0, x1, x2) { GLctx['texParameterf'](x0, x1, x2) }
  8697. function _glTexParameteri(x0, x1, x2) { GLctx['texParameteri'](x0, x1, x2) }
  8698. function _glFrontFace(x0) { GLctx['frontFace'](x0) }
  8699. function _emscripten_glColorMask(red, green, blue, alpha) {
  8700. GLctx.colorMask(!!red, !!green, !!blue, !!alpha);
  8701. }
  8702. function _emscripten_glPixelStorei(pname, param) {
  8703. if (pname == 0x0D05 /* GL_PACK_ALIGNMENT */) {
  8704. GL.packAlignment = param;
  8705. } else if (pname == 0x0cf5 /* GL_UNPACK_ALIGNMENT */) {
  8706. GL.unpackAlignment = param;
  8707. }
  8708. GLctx.pixelStorei(pname, param);
  8709. }
  8710. function _emscripten_glDeleteTextures(n, textures) {
  8711. for (var i = 0; i < n; i++) {
  8712. var id = HEAP32[(((textures)+(i*4))>>2)];
  8713. var texture = GL.textures[id];
  8714. if (!texture) continue; // GL spec: "glDeleteTextures silently ignores 0s and names that do not correspond to existing textures".
  8715. GLctx.deleteTexture(texture);
  8716. texture.name = 0;
  8717. GL.textures[id] = null;
  8718. }
  8719. }
  8720. function _emscripten_glCompileShader(shader) {
  8721. GLctx.compileShader(GL.shaders[shader]);
  8722. }
  8723. function _emscripten_glGenVertexArrays(n, arrays) {
  8724. for (var i = 0; i < n; i++) {
  8725. var vao = GLctx['createVertexArray']();
  8726. if (!vao) {
  8727. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8728. while(i < n) HEAP32[(((arrays)+(i++*4))>>2)]=0;
  8729. return;
  8730. }
  8731. var id = GL.getNewId(GL.vaos);
  8732. vao.name = id;
  8733. GL.vaos[id] = vao;
  8734. HEAP32[(((arrays)+(i*4))>>2)]=id;
  8735. }
  8736. }
  8737. function _time(ptr) {
  8738. var ret = (Date.now()/1000)|0;
  8739. if (ptr) {
  8740. HEAP32[((ptr)>>2)]=ret;
  8741. }
  8742. return ret;
  8743. }
  8744. function _emscripten_glGetBooleanv(name_, p) {
  8745. emscriptenWebGLGet(name_, p, 'Boolean');
  8746. }
  8747. function ___syscall221(which, varargs) {SYSCALLS.varargs = varargs;
  8748. try {
  8749. // fcntl64
  8750. var stream = SYSCALLS.getStreamFromFD(), cmd = SYSCALLS.get();
  8751. switch (cmd) {
  8752. case 0: {
  8753. var arg = SYSCALLS.get();
  8754. if (arg < 0) {
  8755. return -ERRNO_CODES.EINVAL;
  8756. }
  8757. var newStream;
  8758. newStream = FS.open(stream.path, stream.flags, 0, arg);
  8759. return newStream.fd;
  8760. }
  8761. case 1:
  8762. case 2:
  8763. return 0; // FD_CLOEXEC makes no sense for a single process.
  8764. case 3:
  8765. return stream.flags;
  8766. case 4: {
  8767. var arg = SYSCALLS.get();
  8768. stream.flags |= arg;
  8769. return 0;
  8770. }
  8771. case 12:
  8772. case 12: {
  8773. var arg = SYSCALLS.get();
  8774. var offset = 0;
  8775. // We're always unlocked.
  8776. HEAP16[(((arg)+(offset))>>1)]=2;
  8777. return 0;
  8778. }
  8779. case 13:
  8780. case 14:
  8781. case 13:
  8782. case 14:
  8783. return 0; // Pretend that the locking is successful.
  8784. case 16:
  8785. case 8:
  8786. return -ERRNO_CODES.EINVAL; // These are for sockets. We don't have them fully implemented yet.
  8787. case 9:
  8788. // 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.
  8789. ___setErrNo(ERRNO_CODES.EINVAL);
  8790. return -1;
  8791. default: {
  8792. return -ERRNO_CODES.EINVAL;
  8793. }
  8794. }
  8795. } catch (e) {
  8796. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  8797. return -e.errno;
  8798. }
  8799. }
  8800. var GLctx; GL.init();
  8801. if (ENVIRONMENT_IS_NODE) {
  8802. _emscripten_get_now = function _emscripten_get_now_actual() {
  8803. var t = process['hrtime']();
  8804. return t[0] * 1e3 + t[1] / 1e6;
  8805. };
  8806. } else if (typeof dateNow !== 'undefined') {
  8807. _emscripten_get_now = dateNow;
  8808. } else if (typeof self === 'object' && self['performance'] && typeof self['performance']['now'] === 'function') {
  8809. _emscripten_get_now = function() { return self['performance']['now'](); };
  8810. } else if (typeof performance === 'object' && typeof performance['now'] === 'function') {
  8811. _emscripten_get_now = function() { return performance['now'](); };
  8812. } else {
  8813. _emscripten_get_now = Date.now;
  8814. };
  8815. 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) };
  8816. Module["requestFullscreen"] = function Module_requestFullscreen(lockPointer, resizeCanvas, vrDevice) { Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice) };
  8817. Module["requestAnimationFrame"] = function Module_requestAnimationFrame(func) { Browser.requestAnimationFrame(func) };
  8818. Module["setCanvasSize"] = function Module_setCanvasSize(width, height, noUpdates) { Browser.setCanvasSize(width, height, noUpdates) };
  8819. Module["pauseMainLoop"] = function Module_pauseMainLoop() { Browser.mainLoop.pause() };
  8820. Module["resumeMainLoop"] = function Module_resumeMainLoop() { Browser.mainLoop.resume() };
  8821. Module["getUserMedia"] = function Module_getUserMedia() { Browser.getUserMedia() }
  8822. Module["createContext"] = function Module_createContext(canvas, useWebGL, setInModule, webGLContextAttributes) { return Browser.createContext(canvas, useWebGL, setInModule, webGLContextAttributes) };
  8823. 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;;
  8824. __ATINIT__.unshift(function() { TTY.init() });__ATEXIT__.push(function() { TTY.shutdown() });;
  8825. if (ENVIRONMENT_IS_NODE) { var fs = require("fs"); var NODEJS_PATH = require("path"); NODEFS.staticInit(); };
  8826. JSEvents.staticInit();;
  8827. DYNAMICTOP_PTR = allocate(1, "i32", ALLOC_STATIC);
  8828. STACK_BASE = STACKTOP = Runtime.alignMemory(STATICTOP);
  8829. STACK_MAX = STACK_BASE + TOTAL_STACK;
  8830. DYNAMIC_BASE = Runtime.alignMemory(STACK_MAX);
  8831. HEAP32[DYNAMICTOP_PTR>>2] = DYNAMIC_BASE;
  8832. staticSealed = true; // seal the static portion of memory
  8833. assert(DYNAMIC_BASE < TOTAL_MEMORY, "TOTAL_MEMORY not big enough for stack");
  8834. 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) }
  8835. 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) }
  8836. 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) }
  8837. 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) }
  8838. 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) }
  8839. 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) }
  8840. 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) }
  8841. 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) }
  8842. 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) }
  8843. 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) }
  8844. 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) }
  8845. 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) }
  8846. 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) }
  8847. 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) }
  8848. 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) }
  8849. 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) }
  8850. 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) }
  8851. 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) }
  8852. 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) }
  8853. 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) }
  8854. 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) }
  8855. 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) }
  8856. 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) }
  8857. 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) }
  8858. function invoke_viiiii(index,a1,a2,a3,a4,a5) {
  8859. try {
  8860. Module["dynCall_viiiii"](index,a1,a2,a3,a4,a5);
  8861. } catch(e) {
  8862. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8863. Module["setThrew"](1, 0);
  8864. }
  8865. }
  8866. function invoke_vd(index,a1) {
  8867. try {
  8868. Module["dynCall_vd"](index,a1);
  8869. } catch(e) {
  8870. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8871. Module["setThrew"](1, 0);
  8872. }
  8873. }
  8874. function invoke_vid(index,a1,a2) {
  8875. try {
  8876. Module["dynCall_vid"](index,a1,a2);
  8877. } catch(e) {
  8878. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8879. Module["setThrew"](1, 0);
  8880. }
  8881. }
  8882. function invoke_vi(index,a1) {
  8883. try {
  8884. Module["dynCall_vi"](index,a1);
  8885. } catch(e) {
  8886. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8887. Module["setThrew"](1, 0);
  8888. }
  8889. }
  8890. function invoke_vii(index,a1,a2) {
  8891. try {
  8892. Module["dynCall_vii"](index,a1,a2);
  8893. } catch(e) {
  8894. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8895. Module["setThrew"](1, 0);
  8896. }
  8897. }
  8898. function invoke_ii(index,a1) {
  8899. try {
  8900. return Module["dynCall_ii"](index,a1);
  8901. } catch(e) {
  8902. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8903. Module["setThrew"](1, 0);
  8904. }
  8905. }
  8906. function invoke_viddd(index,a1,a2,a3,a4) {
  8907. try {
  8908. Module["dynCall_viddd"](index,a1,a2,a3,a4);
  8909. } catch(e) {
  8910. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8911. Module["setThrew"](1, 0);
  8912. }
  8913. }
  8914. function invoke_vidd(index,a1,a2,a3) {
  8915. try {
  8916. Module["dynCall_vidd"](index,a1,a2,a3);
  8917. } catch(e) {
  8918. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8919. Module["setThrew"](1, 0);
  8920. }
  8921. }
  8922. function invoke_iiii(index,a1,a2,a3) {
  8923. try {
  8924. return Module["dynCall_iiii"](index,a1,a2,a3);
  8925. } catch(e) {
  8926. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8927. Module["setThrew"](1, 0);
  8928. }
  8929. }
  8930. function invoke_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8) {
  8931. try {
  8932. Module["dynCall_viiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8);
  8933. } catch(e) {
  8934. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8935. Module["setThrew"](1, 0);
  8936. }
  8937. }
  8938. function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6) {
  8939. try {
  8940. Module["dynCall_viiiiii"](index,a1,a2,a3,a4,a5,a6);
  8941. } catch(e) {
  8942. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8943. Module["setThrew"](1, 0);
  8944. }
  8945. }
  8946. function invoke_viii(index,a1,a2,a3) {
  8947. try {
  8948. Module["dynCall_viii"](index,a1,a2,a3);
  8949. } catch(e) {
  8950. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8951. Module["setThrew"](1, 0);
  8952. }
  8953. }
  8954. function invoke_vidddd(index,a1,a2,a3,a4,a5) {
  8955. try {
  8956. Module["dynCall_vidddd"](index,a1,a2,a3,a4,a5);
  8957. } catch(e) {
  8958. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8959. Module["setThrew"](1, 0);
  8960. }
  8961. }
  8962. function invoke_vdi(index,a1,a2) {
  8963. try {
  8964. Module["dynCall_vdi"](index,a1,a2);
  8965. } catch(e) {
  8966. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8967. Module["setThrew"](1, 0);
  8968. }
  8969. }
  8970. function invoke_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7) {
  8971. try {
  8972. Module["dynCall_viiiiiii"](index,a1,a2,a3,a4,a5,a6,a7);
  8973. } catch(e) {
  8974. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8975. Module["setThrew"](1, 0);
  8976. }
  8977. }
  8978. function invoke_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9) {
  8979. try {
  8980. Module["dynCall_viiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9);
  8981. } catch(e) {
  8982. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8983. Module["setThrew"](1, 0);
  8984. }
  8985. }
  8986. function invoke_iii(index,a1,a2) {
  8987. try {
  8988. return Module["dynCall_iii"](index,a1,a2);
  8989. } catch(e) {
  8990. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8991. Module["setThrew"](1, 0);
  8992. }
  8993. }
  8994. function invoke_i(index) {
  8995. try {
  8996. return Module["dynCall_i"](index);
  8997. } catch(e) {
  8998. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8999. Module["setThrew"](1, 0);
  9000. }
  9001. }
  9002. function invoke_vdddddd(index,a1,a2,a3,a4,a5,a6) {
  9003. try {
  9004. Module["dynCall_vdddddd"](index,a1,a2,a3,a4,a5,a6);
  9005. } catch(e) {
  9006. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9007. Module["setThrew"](1, 0);
  9008. }
  9009. }
  9010. function invoke_vdddd(index,a1,a2,a3,a4) {
  9011. try {
  9012. Module["dynCall_vdddd"](index,a1,a2,a3,a4);
  9013. } catch(e) {
  9014. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9015. Module["setThrew"](1, 0);
  9016. }
  9017. }
  9018. function invoke_vdd(index,a1,a2) {
  9019. try {
  9020. Module["dynCall_vdd"](index,a1,a2);
  9021. } catch(e) {
  9022. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9023. Module["setThrew"](1, 0);
  9024. }
  9025. }
  9026. function invoke_v(index) {
  9027. try {
  9028. Module["dynCall_v"](index);
  9029. } catch(e) {
  9030. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9031. Module["setThrew"](1, 0);
  9032. }
  9033. }
  9034. function invoke_viid(index,a1,a2,a3) {
  9035. try {
  9036. Module["dynCall_viid"](index,a1,a2,a3);
  9037. } catch(e) {
  9038. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9039. Module["setThrew"](1, 0);
  9040. }
  9041. }
  9042. function invoke_viiii(index,a1,a2,a3,a4) {
  9043. try {
  9044. Module["dynCall_viiii"](index,a1,a2,a3,a4);
  9045. } catch(e) {
  9046. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9047. Module["setThrew"](1, 0);
  9048. }
  9049. }
  9050. Module.asmGlobalArg = { "Math": Math, "Int8Array": Int8Array, "Int16Array": Int16Array, "Int32Array": Int32Array, "Uint8Array": Uint8Array, "Uint16Array": Uint16Array, "Uint32Array": Uint32Array, "Float32Array": Float32Array, "Float64Array": Float64Array, "NaN": NaN, "Infinity": Infinity, "byteLength": byteLength };
  9051. 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, "_emscripten_glBlendColor": _emscripten_glBlendColor, "_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, "_emscripten_set_gamepaddisconnected_callback": _emscripten_set_gamepaddisconnected_callback, "_glDisable": _glDisable, "_glBlendFunc": _glBlendFunc, "_emscripten_glDisableVertexAttribArray": _emscripten_glDisableVertexAttribArray, "_glGetAttribLocation": _glGetAttribLocation, "_glDisableVertexAttribArray": _glDisableVertexAttribArray, "_glCreateShader": _glCreateShader, "_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_glFrustum": _emscripten_glFrustum, "_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, "_emscripten_glIsEnabled": _emscripten_glIsEnabled, "_emscripten_glScissor": _emscripten_glScissor, "_emscripten_glVertexAttrib4fv": _emscripten_glVertexAttrib4fv, "_emscripten_glFramebufferTexture2D": _emscripten_glFramebufferTexture2D, "_emscripten_glTexParameteriv": _emscripten_glTexParameteriv, "___syscall145": ___syscall145, "_emscripten_glBindProgramARB": _emscripten_glBindProgramARB, "_emscripten_glStencilOpSeparate": _emscripten_glStencilOpSeparate, "_emscripten_glFramebufferRenderbuffer": _emscripten_glFramebufferRenderbuffer, "___syscall140": ___syscall140, "_glfwSetErrorCallback": _glfwSetErrorCallback, "_glfwDefaultWindowHints": _glfwDefaultWindowHints, "_glfwDestroyWindow": _glfwDestroyWindow, "___syscall146": ___syscall146, "_emscripten_glGetActiveAttrib": _emscripten_glGetActiveAttrib, "_emscripten_glAttachShader": _emscripten_glAttachShader, "_glVertexAttribPointer": _glVertexAttribPointer, "_emscripten_glUniform2i": _emscripten_glUniform2i, "_emscripten_glUniform2f": _emscripten_glUniform2f, "_emscripten_glTexParameterfv": _emscripten_glTexParameterfv, "_emscripten_glUniformMatrix2fv": _emscripten_glUniformMatrix2fv, "_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, "_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, "_emscripten_glReadPixels": _emscripten_glReadPixels, "_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, "_llvm_exp2_f32": _llvm_exp2_f32, "___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_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, "_emscripten_glHint": _emscripten_glHint, "_glfwSetCharCallback": _glfwSetCharCallback, "emscriptenWebGLGetVertexAttrib": emscriptenWebGLGetVertexAttrib, "_emscripten_glLoadMatrixf": _emscripten_glLoadMatrixf, "_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, "_emscripten_glUniformMatrix3fv": _emscripten_glUniformMatrix3fv, "_emscripten_glColorPointer": _emscripten_glColorPointer, "emscriptenWebGLGetTexPixelData": emscriptenWebGLGetTexPixelData, "_emscripten_glGetBufferParameteriv": _emscripten_glGetBufferParameteriv, "_emscripten_glFinish": _emscripten_glFinish, "_emscripten_request_pointerlock": _emscripten_request_pointerlock, "_glGetFloatv": _glGetFloatv, "_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, "_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_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, "_emscripten_glBindRenderbuffer": _emscripten_glBindRenderbuffer, "_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, "_glGenTextures": _glGenTextures, "_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_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_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, "_glTexParameterf": _glTexParameterf, "_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 };
  9052. // EMSCRIPTEN_START_ASM
  9053. var asm = (function(global, env, buffer) {
  9054. 'almost asm';
  9055. var Int8View = global.Int8Array;
  9056. var Int16View = global.Int16Array;
  9057. var Int32View = global.Int32Array;
  9058. var Uint8View = global.Uint8Array;
  9059. var Uint16View = global.Uint16Array;
  9060. var Uint32View = global.Uint32Array;
  9061. var Float32View = global.Float32Array;
  9062. var Float64View = global.Float64Array;
  9063. var HEAP8 = new Int8View(buffer);
  9064. var HEAP16 = new Int16View(buffer);
  9065. var HEAP32 = new Int32View(buffer);
  9066. var HEAPU8 = new Uint8View(buffer);
  9067. var HEAPU16 = new Uint16View(buffer);
  9068. var HEAPU32 = new Uint32View(buffer);
  9069. var HEAPF32 = new Float32View(buffer);
  9070. var HEAPF64 = new Float64View(buffer);
  9071. var byteLength = global.byteLength;
  9072. var DYNAMICTOP_PTR=env.DYNAMICTOP_PTR|0;
  9073. var tempDoublePtr=env.tempDoublePtr|0;
  9074. var ABORT=env.ABORT|0;
  9075. var STACKTOP=env.STACKTOP|0;
  9076. var STACK_MAX=env.STACK_MAX|0;
  9077. var cttz_i8=env.cttz_i8|0;
  9078. var __THREW__ = 0;
  9079. var threwValue = 0;
  9080. var setjmpId = 0;
  9081. var undef = 0;
  9082. var nan = global.NaN, inf = global.Infinity;
  9083. var tempInt = 0, tempBigInt = 0, tempBigIntP = 0, tempBigIntS = 0, tempBigIntR = 0.0, tempBigIntI = 0, tempBigIntD = 0, tempValue = 0, tempDouble = 0.0;
  9084. var tempRet0 = 0;
  9085. var Math_floor=global.Math.floor;
  9086. var Math_abs=global.Math.abs;
  9087. var Math_sqrt=global.Math.sqrt;
  9088. var Math_pow=global.Math.pow;
  9089. var Math_cos=global.Math.cos;
  9090. var Math_sin=global.Math.sin;
  9091. var Math_tan=global.Math.tan;
  9092. var Math_acos=global.Math.acos;
  9093. var Math_asin=global.Math.asin;
  9094. var Math_atan=global.Math.atan;
  9095. var Math_atan2=global.Math.atan2;
  9096. var Math_exp=global.Math.exp;
  9097. var Math_log=global.Math.log;
  9098. var Math_ceil=global.Math.ceil;
  9099. var Math_imul=global.Math.imul;
  9100. var Math_min=global.Math.min;
  9101. var Math_max=global.Math.max;
  9102. var Math_clz32=global.Math.clz32;
  9103. var abort=env.abort;
  9104. var assert=env.assert;
  9105. var enlargeMemory=env.enlargeMemory;
  9106. var getTotalMemory=env.getTotalMemory;
  9107. var abortOnCannotGrowMemory=env.abortOnCannotGrowMemory;
  9108. var abortStackOverflow=env.abortStackOverflow;
  9109. var nullFunc_viiiii=env.nullFunc_viiiii;
  9110. var nullFunc_vd=env.nullFunc_vd;
  9111. var nullFunc_vid=env.nullFunc_vid;
  9112. var nullFunc_vi=env.nullFunc_vi;
  9113. var nullFunc_vii=env.nullFunc_vii;
  9114. var nullFunc_ii=env.nullFunc_ii;
  9115. var nullFunc_viddd=env.nullFunc_viddd;
  9116. var nullFunc_vidd=env.nullFunc_vidd;
  9117. var nullFunc_iiii=env.nullFunc_iiii;
  9118. var nullFunc_viiiiiiii=env.nullFunc_viiiiiiii;
  9119. var nullFunc_viiiiii=env.nullFunc_viiiiii;
  9120. var nullFunc_viii=env.nullFunc_viii;
  9121. var nullFunc_vidddd=env.nullFunc_vidddd;
  9122. var nullFunc_vdi=env.nullFunc_vdi;
  9123. var nullFunc_viiiiiii=env.nullFunc_viiiiiii;
  9124. var nullFunc_viiiiiiiii=env.nullFunc_viiiiiiiii;
  9125. var nullFunc_iii=env.nullFunc_iii;
  9126. var nullFunc_i=env.nullFunc_i;
  9127. var nullFunc_vdddddd=env.nullFunc_vdddddd;
  9128. var nullFunc_vdddd=env.nullFunc_vdddd;
  9129. var nullFunc_vdd=env.nullFunc_vdd;
  9130. var nullFunc_v=env.nullFunc_v;
  9131. var nullFunc_viid=env.nullFunc_viid;
  9132. var nullFunc_viiii=env.nullFunc_viiii;
  9133. var invoke_viiiii=env.invoke_viiiii;
  9134. var invoke_vd=env.invoke_vd;
  9135. var invoke_vid=env.invoke_vid;
  9136. var invoke_vi=env.invoke_vi;
  9137. var invoke_vii=env.invoke_vii;
  9138. var invoke_ii=env.invoke_ii;
  9139. var invoke_viddd=env.invoke_viddd;
  9140. var invoke_vidd=env.invoke_vidd;
  9141. var invoke_iiii=env.invoke_iiii;
  9142. var invoke_viiiiiiii=env.invoke_viiiiiiii;
  9143. var invoke_viiiiii=env.invoke_viiiiii;
  9144. var invoke_viii=env.invoke_viii;
  9145. var invoke_vidddd=env.invoke_vidddd;
  9146. var invoke_vdi=env.invoke_vdi;
  9147. var invoke_viiiiiii=env.invoke_viiiiiii;
  9148. var invoke_viiiiiiiii=env.invoke_viiiiiiiii;
  9149. var invoke_iii=env.invoke_iii;
  9150. var invoke_i=env.invoke_i;
  9151. var invoke_vdddddd=env.invoke_vdddddd;
  9152. var invoke_vdddd=env.invoke_vdddd;
  9153. var invoke_vdd=env.invoke_vdd;
  9154. var invoke_v=env.invoke_v;
  9155. var invoke_viid=env.invoke_viid;
  9156. var invoke_viiii=env.invoke_viiii;
  9157. var _emscripten_glGetTexParameterfv=env._emscripten_glGetTexParameterfv;
  9158. var _glUseProgram=env._glUseProgram;
  9159. var _emscripten_glShaderSource=env._emscripten_glShaderSource;
  9160. var _glfwCreateWindow=env._glfwCreateWindow;
  9161. var _emscripten_glReleaseShaderCompiler=env._emscripten_glReleaseShaderCompiler;
  9162. var _emscripten_glBlendFuncSeparate=env._emscripten_glBlendFuncSeparate;
  9163. var _emscripten_glVertexAttribPointer=env._emscripten_glVertexAttribPointer;
  9164. var _emscripten_glGetIntegerv=env._emscripten_glGetIntegerv;
  9165. var _emscripten_glCullFace=env._emscripten_glCullFace;
  9166. var _emscripten_glIsProgram=env._emscripten_glIsProgram;
  9167. var _emscripten_glStencilMaskSeparate=env._emscripten_glStencilMaskSeparate;
  9168. var _emscripten_glViewport=env._emscripten_glViewport;
  9169. var _emscripten_glFrontFace=env._emscripten_glFrontFace;
  9170. var ___assert_fail=env.___assert_fail;
  9171. var _glDeleteProgram=env._glDeleteProgram;
  9172. var _emscripten_glUniform3fv=env._emscripten_glUniform3fv;
  9173. var _emscripten_glPolygonOffset=env._emscripten_glPolygonOffset;
  9174. var _emscripten_glUseProgram=env._emscripten_glUseProgram;
  9175. var _emscripten_glBlendColor=env._emscripten_glBlendColor;
  9176. var _glBindBuffer=env._glBindBuffer;
  9177. var _emscripten_glDepthFunc=env._emscripten_glDepthFunc;
  9178. var _glGetShaderInfoLog=env._glGetShaderInfoLog;
  9179. var _emscripten_set_fullscreenchange_callback=env._emscripten_set_fullscreenchange_callback;
  9180. var _emscripten_set_touchmove_callback=env._emscripten_set_touchmove_callback;
  9181. var _emscripten_set_main_loop_timing=env._emscripten_set_main_loop_timing;
  9182. var _emscripten_set_gamepaddisconnected_callback=env._emscripten_set_gamepaddisconnected_callback;
  9183. var _glDisable=env._glDisable;
  9184. var _glBlendFunc=env._glBlendFunc;
  9185. var _emscripten_glDisableVertexAttribArray=env._emscripten_glDisableVertexAttribArray;
  9186. var _glGetAttribLocation=env._glGetAttribLocation;
  9187. var _glDisableVertexAttribArray=env._glDisableVertexAttribArray;
  9188. var _glCreateShader=env._glCreateShader;
  9189. var _emscripten_glSampleCoverage=env._emscripten_glSampleCoverage;
  9190. var _emscripten_glVertexPointer=env._emscripten_glVertexPointer;
  9191. var _emscripten_set_touchstart_callback=env._emscripten_set_touchstart_callback;
  9192. var emscriptenWebGLComputeImageSize=env.emscriptenWebGLComputeImageSize;
  9193. var _emscripten_glGetBooleanv=env._emscripten_glGetBooleanv;
  9194. var _emscripten_glGetShaderSource=env._emscripten_glGetShaderSource;
  9195. var _glUniform4f=env._glUniform4f;
  9196. var _llvm_stacksave=env._llvm_stacksave;
  9197. var _emscripten_glUniform1i=env._emscripten_glUniform1i;
  9198. var _emscripten_glStencilFuncSeparate=env._emscripten_glStencilFuncSeparate;
  9199. var _emscripten_glFrustum=env._emscripten_glFrustum;
  9200. var _emscripten_glGenBuffers=env._emscripten_glGenBuffers;
  9201. var _emscripten_glDeleteObjectARB=env._emscripten_glDeleteObjectARB;
  9202. var _glfwSetWindowSizeCallback=env._glfwSetWindowSizeCallback;
  9203. var _emscripten_glGetShaderPrecisionFormat=env._emscripten_glGetShaderPrecisionFormat;
  9204. var _glfwInit=env._glfwInit;
  9205. var _glGenBuffers=env._glGenBuffers;
  9206. var _glShaderSource=env._glShaderSource;
  9207. var _emscripten_glGetString=env._emscripten_glGetString;
  9208. var _emscripten_glIsFramebuffer=env._emscripten_glIsFramebuffer;
  9209. var _emscripten_glIsEnabled=env._emscripten_glIsEnabled;
  9210. var _emscripten_glScissor=env._emscripten_glScissor;
  9211. var _emscripten_glVertexAttrib4fv=env._emscripten_glVertexAttrib4fv;
  9212. var _emscripten_glFramebufferTexture2D=env._emscripten_glFramebufferTexture2D;
  9213. var _emscripten_glTexParameteriv=env._emscripten_glTexParameteriv;
  9214. var ___syscall145=env.___syscall145;
  9215. var _emscripten_glBindProgramARB=env._emscripten_glBindProgramARB;
  9216. var _emscripten_glStencilOpSeparate=env._emscripten_glStencilOpSeparate;
  9217. var _emscripten_glFramebufferRenderbuffer=env._emscripten_glFramebufferRenderbuffer;
  9218. var ___syscall140=env.___syscall140;
  9219. var _glfwSetErrorCallback=env._glfwSetErrorCallback;
  9220. var _glfwDefaultWindowHints=env._glfwDefaultWindowHints;
  9221. var _glfwDestroyWindow=env._glfwDestroyWindow;
  9222. var ___syscall146=env.___syscall146;
  9223. var _emscripten_glGetActiveAttrib=env._emscripten_glGetActiveAttrib;
  9224. var _emscripten_glAttachShader=env._emscripten_glAttachShader;
  9225. var _glVertexAttribPointer=env._glVertexAttribPointer;
  9226. var _emscripten_glUniform2i=env._emscripten_glUniform2i;
  9227. var _emscripten_glUniform2f=env._emscripten_glUniform2f;
  9228. var _emscripten_glTexParameterfv=env._emscripten_glTexParameterfv;
  9229. var _emscripten_glUniformMatrix2fv=env._emscripten_glUniformMatrix2fv;
  9230. var _glGetProgramInfoLog=env._glGetProgramInfoLog;
  9231. var _glfwSetScrollCallback=env._glfwSetScrollCallback;
  9232. var _emscripten_glTexParameterf=env._emscripten_glTexParameterf;
  9233. var _emscripten_glGetAttachedShaders=env._emscripten_glGetAttachedShaders;
  9234. var _emscripten_glGenTextures=env._emscripten_glGenTextures;
  9235. var _emscripten_glTexParameteri=env._emscripten_glTexParameteri;
  9236. var _llvm_stackrestore=env._llvm_stackrestore;
  9237. var _glfwMakeContextCurrent=env._glfwMakeContextCurrent;
  9238. var _emscripten_glClear=env._emscripten_glClear;
  9239. var _glDrawElements=env._glDrawElements;
  9240. var _glBufferSubData=env._glBufferSubData;
  9241. var _emscripten_glValidateProgram=env._emscripten_glValidateProgram;
  9242. var _emscripten_glVertexAttrib2fv=env._emscripten_glVertexAttrib2fv;
  9243. var _glViewport=env._glViewport;
  9244. var _emscripten_glUniform4iv=env._emscripten_glUniform4iv;
  9245. var _emscripten_glGetTexParameteriv=env._emscripten_glGetTexParameteriv;
  9246. var ___setErrNo=env.___setErrNo;
  9247. var _eglGetProcAddress=env._eglGetProcAddress;
  9248. var _emscripten_glBindAttribLocation=env._emscripten_glBindAttribLocation;
  9249. var _glDeleteTextures=env._glDeleteTextures;
  9250. var _glDepthFunc=env._glDepthFunc;
  9251. var _emscripten_glClientActiveTexture=env._emscripten_glClientActiveTexture;
  9252. var _emscripten_glVertexAttrib2f=env._emscripten_glVertexAttrib2f;
  9253. var _emscripten_glFlush=env._emscripten_glFlush;
  9254. var _emscripten_glCheckFramebufferStatus=env._emscripten_glCheckFramebufferStatus;
  9255. var _emscripten_glGenerateMipmap=env._emscripten_glGenerateMipmap;
  9256. var _emscripten_glGetError=env._emscripten_glGetError;
  9257. var _emscripten_glClearDepthf=env._emscripten_glClearDepthf;
  9258. var _emscripten_glBufferData=env._emscripten_glBufferData;
  9259. var _emscripten_glUniform3i=env._emscripten_glUniform3i;
  9260. var _emscripten_glRotatef=env._emscripten_glRotatef;
  9261. var _emscripten_glDeleteShader=env._emscripten_glDeleteShader;
  9262. var _glEnable=env._glEnable;
  9263. var _emscripten_glReadPixels=env._emscripten_glReadPixels;
  9264. var _emscripten_glMatrixMode=env._emscripten_glMatrixMode;
  9265. var _glGetString=env._glGetString;
  9266. var _emscripten_glClearStencil=env._emscripten_glClearStencil;
  9267. var _emscripten_glGetUniformLocation=env._emscripten_glGetUniformLocation;
  9268. var emscriptenWebGLGet=env.emscriptenWebGLGet;
  9269. var _emscripten_glEnableVertexAttribArray=env._emscripten_glEnableVertexAttribArray;
  9270. var _emscripten_glGetAttribLocation=env._emscripten_glGetAttribLocation;
  9271. var _emscripten_get_now=env._emscripten_get_now;
  9272. var _emscripten_glNormalPointer=env._emscripten_glNormalPointer;
  9273. var _glAttachShader=env._glAttachShader;
  9274. var _emscripten_glTexCoordPointer=env._emscripten_glTexCoordPointer;
  9275. var _emscripten_glEnable=env._emscripten_glEnable;
  9276. var _glCreateProgram=env._glCreateProgram;
  9277. var _glUniformMatrix4fv=env._glUniformMatrix4fv;
  9278. var _emscripten_glClearDepth=env._emscripten_glClearDepth;
  9279. var ___lock=env.___lock;
  9280. var _llvm_exp2_f32=env._llvm_exp2_f32;
  9281. var ___syscall6=env.___syscall6;
  9282. var ___syscall5=env.___syscall5;
  9283. var _emscripten_glIsBuffer=env._emscripten_glIsBuffer;
  9284. var _emscripten_glVertexAttrib3f=env._emscripten_glVertexAttrib3f;
  9285. var _time=env._time;
  9286. var _emscripten_glVertexAttrib1f=env._emscripten_glVertexAttrib1f;
  9287. var _emscripten_glGetFramebufferAttachmentParameteriv=env._emscripten_glGetFramebufferAttachmentParameteriv;
  9288. var _emscripten_glBlendEquationSeparate=env._emscripten_glBlendEquationSeparate;
  9289. var _exit=env._exit;
  9290. var _emscripten_glEnableClientState=env._emscripten_glEnableClientState;
  9291. var _emscripten_glUniform4i=env._emscripten_glUniform4i;
  9292. var _emscripten_glDrawRangeElements=env._emscripten_glDrawRangeElements;
  9293. var _glCullFace=env._glCullFace;
  9294. var _emscripten_glGetPointerv=env._emscripten_glGetPointerv;
  9295. var _emscripten_set_keypress_callback=env._emscripten_set_keypress_callback;
  9296. var __emscripten_sample_gamepad_data=env.__emscripten_sample_gamepad_data;
  9297. var _emscripten_get_gamepad_status=env._emscripten_get_gamepad_status;
  9298. var _emscripten_glUniform4f=env._emscripten_glUniform4f;
  9299. var _emscripten_glUniform2fv=env._emscripten_glUniform2fv;
  9300. var _glfwGetVideoModes=env._glfwGetVideoModes;
  9301. var _emscripten_set_click_callback=env._emscripten_set_click_callback;
  9302. var _emscripten_glShaderBinary=env._emscripten_glShaderBinary;
  9303. var _emscripten_glDrawElements=env._emscripten_glDrawElements;
  9304. var _emscripten_glBlendFunc=env._emscripten_glBlendFunc;
  9305. var _emscripten_get_num_gamepads=env._emscripten_get_num_gamepads;
  9306. var ___syscall221=env.___syscall221;
  9307. var _glCompressedTexImage2D=env._glCompressedTexImage2D;
  9308. var _emscripten_glUniform1iv=env._emscripten_glUniform1iv;
  9309. var _emscripten_glGetVertexAttribPointerv=env._emscripten_glGetVertexAttribPointerv;
  9310. var _glClearDepthf=env._glClearDepthf;
  9311. var _emscripten_glCompressedTexSubImage2D=env._emscripten_glCompressedTexSubImage2D;
  9312. var emscriptenWebGLGetUniform=env.emscriptenWebGLGetUniform;
  9313. var _emscripten_glGenRenderbuffers=env._emscripten_glGenRenderbuffers;
  9314. var _emscripten_glDeleteVertexArrays=env._emscripten_glDeleteVertexArrays;
  9315. var _glfwSetWindowShouldClose=env._glfwSetWindowShouldClose;
  9316. var _emscripten_glUniform1fv=env._emscripten_glUniform1fv;
  9317. var _emscripten_glGetActiveUniform=env._emscripten_glGetActiveUniform;
  9318. var _glBindTexture=env._glBindTexture;
  9319. var _emscripten_glUniform3iv=env._emscripten_glUniform3iv;
  9320. var _emscripten_glUniform2iv=env._emscripten_glUniform2iv;
  9321. var _emscripten_glHint=env._emscripten_glHint;
  9322. var _glfwSetCharCallback=env._glfwSetCharCallback;
  9323. var emscriptenWebGLGetVertexAttrib=env.emscriptenWebGLGetVertexAttrib;
  9324. var _emscripten_glLoadMatrixf=env._emscripten_glLoadMatrixf;
  9325. var _emscripten_glDeleteProgram=env._emscripten_glDeleteProgram;
  9326. var _emscripten_glDeleteRenderbuffers=env._emscripten_glDeleteRenderbuffers;
  9327. var _emscripten_glDrawElementsInstanced=env._emscripten_glDrawElementsInstanced;
  9328. var _emscripten_glVertexAttrib4f=env._emscripten_glVertexAttrib4f;
  9329. var _glDrawArrays=env._glDrawArrays;
  9330. var _emscripten_glTexSubImage2D=env._emscripten_glTexSubImage2D;
  9331. var _emscripten_memcpy_big=env._emscripten_memcpy_big;
  9332. var _emscripten_glPixelStorei=env._emscripten_glPixelStorei;
  9333. var _glCompileShader=env._glCompileShader;
  9334. var _emscripten_get_pointerlock_status=env._emscripten_get_pointerlock_status;
  9335. var _emscripten_glUniformMatrix3fv=env._emscripten_glUniformMatrix3fv;
  9336. var _emscripten_glColorPointer=env._emscripten_glColorPointer;
  9337. var emscriptenWebGLGetTexPixelData=env.emscriptenWebGLGetTexPixelData;
  9338. var _emscripten_glGetBufferParameteriv=env._emscripten_glGetBufferParameteriv;
  9339. var _emscripten_glFinish=env._emscripten_glFinish;
  9340. var _emscripten_request_pointerlock=env._emscripten_request_pointerlock;
  9341. var _glGetFloatv=env._glGetFloatv;
  9342. var _emscripten_asm_const_iii=env._emscripten_asm_const_iii;
  9343. var _emscripten_glDepthMask=env._emscripten_glDepthMask;
  9344. var _glfwSetWindowIconifyCallback=env._glfwSetWindowIconifyCallback;
  9345. var _emscripten_glDrawBuffers=env._emscripten_glDrawBuffers;
  9346. var _glfwTerminate=env._glfwTerminate;
  9347. var _glFrontFace=env._glFrontFace;
  9348. var _emscripten_glGetObjectParameterivARB=env._emscripten_glGetObjectParameterivARB;
  9349. var _emscripten_exit_pointerlock=env._emscripten_exit_pointerlock;
  9350. var _glfwSwapInterval=env._glfwSwapInterval;
  9351. var _glUniform1i=env._glUniform1i;
  9352. var _glEnableVertexAttribArray=env._glEnableVertexAttribArray;
  9353. var _emscripten_glStencilFunc=env._emscripten_glStencilFunc;
  9354. var _abort=env._abort;
  9355. var _emscripten_glGetUniformiv=env._emscripten_glGetUniformiv;
  9356. var _glDeleteBuffers=env._glDeleteBuffers;
  9357. var _glBufferData=env._glBufferData;
  9358. var _glTexImage2D=env._glTexImage2D;
  9359. var _emscripten_glGetShaderiv=env._emscripten_glGetShaderiv;
  9360. var _glfwSetKeyCallback=env._glfwSetKeyCallback;
  9361. var _emscripten_glGenFramebuffers=env._emscripten_glGenFramebuffers;
  9362. var _emscripten_glUniformMatrix4fv=env._emscripten_glUniformMatrix4fv;
  9363. var _emscripten_glLoadIdentity=env._emscripten_glLoadIdentity;
  9364. var _glDeleteShader=env._glDeleteShader;
  9365. var _emscripten_glUniform1f=env._emscripten_glUniform1f;
  9366. var _glGetProgramiv=env._glGetProgramiv;
  9367. var _emscripten_glBindFramebuffer=env._emscripten_glBindFramebuffer;
  9368. var _emscripten_glIsRenderbuffer=env._emscripten_glIsRenderbuffer;
  9369. var _glfwGetTime=env._glfwGetTime;
  9370. var _emscripten_glRenderbufferStorage=env._emscripten_glRenderbufferStorage;
  9371. var _emscripten_set_gamepadconnected_callback=env._emscripten_set_gamepadconnected_callback;
  9372. var _emscripten_glGetVertexAttribiv=env._emscripten_glGetVertexAttribiv;
  9373. var _emscripten_glBindVertexArray=env._emscripten_glBindVertexArray;
  9374. var _emscripten_glDrawArraysInstanced=env._emscripten_glDrawArraysInstanced;
  9375. var _emscripten_set_touchcancel_callback=env._emscripten_set_touchcancel_callback;
  9376. var _emscripten_glCreateShader=env._emscripten_glCreateShader;
  9377. var _emscripten_glStencilMask=env._emscripten_glStencilMask;
  9378. var _emscripten_glDeleteTextures=env._emscripten_glDeleteTextures;
  9379. var _emscripten_glBindRenderbuffer=env._emscripten_glBindRenderbuffer;
  9380. var _glfwGetPrimaryMonitor=env._glfwGetPrimaryMonitor;
  9381. var _glLinkProgram=env._glLinkProgram;
  9382. var _emscripten_glVertexAttribDivisor=env._emscripten_glVertexAttribDivisor;
  9383. var _emscripten_set_touchend_callback=env._emscripten_set_touchend_callback;
  9384. var _emscripten_glGetUniformfv=env._emscripten_glGetUniformfv;
  9385. var _emscripten_glGetVertexAttribfv=env._emscripten_glGetVertexAttribfv;
  9386. var _emscripten_glGetRenderbufferParameteriv=env._emscripten_glGetRenderbufferParameteriv;
  9387. var _emscripten_glDeleteFramebuffers=env._emscripten_glDeleteFramebuffers;
  9388. var _glGetShaderiv=env._glGetShaderiv;
  9389. var _emscripten_glVertexAttrib3fv=env._emscripten_glVertexAttrib3fv;
  9390. var _glGetUniformLocation=env._glGetUniformLocation;
  9391. var _emscripten_glGetInfoLogARB=env._emscripten_glGetInfoLogARB;
  9392. var _emscripten_glCompileShader=env._emscripten_glCompileShader;
  9393. var _glClear=env._glClear;
  9394. var _glGenTextures=env._glGenTextures;
  9395. var _emscripten_glDisable=env._emscripten_glDisable;
  9396. var _emscripten_glDepthRangef=env._emscripten_glDepthRangef;
  9397. var __exit=env.__exit;
  9398. var _emscripten_glLineWidth=env._emscripten_glLineWidth;
  9399. var _emscripten_glUniform3f=env._emscripten_glUniform3f;
  9400. var _emscripten_glGetShaderInfoLog=env._emscripten_glGetShaderInfoLog;
  9401. var _emscripten_glStencilOp=env._emscripten_glStencilOp;
  9402. var _glBindAttribLocation=env._glBindAttribLocation;
  9403. var _glPixelStorei=env._glPixelStorei;
  9404. var _emscripten_glColorMask=env._emscripten_glColorMask;
  9405. var _emscripten_glLinkProgram=env._emscripten_glLinkProgram;
  9406. var _emscripten_glBlendEquation=env._emscripten_glBlendEquation;
  9407. var _emscripten_glIsTexture=env._emscripten_glIsTexture;
  9408. var _emscripten_glGetProgramiv=env._emscripten_glGetProgramiv;
  9409. var _emscripten_glVertexAttrib1fv=env._emscripten_glVertexAttrib1fv;
  9410. var _emscripten_glBindTexture=env._emscripten_glBindTexture;
  9411. var _glfwSetMouseButtonCallback=env._glfwSetMouseButtonCallback;
  9412. var _glfwGetCursorPos=env._glfwGetCursorPos;
  9413. var _emscripten_glActiveTexture=env._emscripten_glActiveTexture;
  9414. var _emscripten_glDeleteBuffers=env._emscripten_glDeleteBuffers;
  9415. var ___syscall54=env.___syscall54;
  9416. var ___unlock=env.___unlock;
  9417. var _emscripten_glBufferSubData=env._emscripten_glBufferSubData;
  9418. var _glfwSwapBuffers=env._glfwSwapBuffers;
  9419. var _emscripten_glDepthRange=env._emscripten_glDepthRange;
  9420. var _emscripten_set_main_loop=env._emscripten_set_main_loop;
  9421. var _emscripten_glGetProgramInfoLog=env._emscripten_glGetProgramInfoLog;
  9422. var _glfwWindowHint=env._glfwWindowHint;
  9423. var _emscripten_glIsShader=env._emscripten_glIsShader;
  9424. var _emscripten_glUniform4fv=env._emscripten_glUniform4fv;
  9425. var _emscripten_glGenVertexArrays=env._emscripten_glGenVertexArrays;
  9426. var _emscripten_glDrawArrays=env._emscripten_glDrawArrays;
  9427. var _emscripten_glCompressedTexImage2D=env._emscripten_glCompressedTexImage2D;
  9428. var _emscripten_glClearColor=env._emscripten_glClearColor;
  9429. var _emscripten_glCreateProgram=env._emscripten_glCreateProgram;
  9430. var _emscripten_glCopyTexSubImage2D=env._emscripten_glCopyTexSubImage2D;
  9431. var _glTexParameteri=env._glTexParameteri;
  9432. var _emscripten_glBindBuffer=env._emscripten_glBindBuffer;
  9433. var _emscripten_glGetFloatv=env._emscripten_glGetFloatv;
  9434. var _emscripten_glDetachShader=env._emscripten_glDetachShader;
  9435. var _glClearColor=env._glClearColor;
  9436. var _glfwSetCursorPosCallback=env._glfwSetCursorPosCallback;
  9437. var _glTexParameterf=env._glTexParameterf;
  9438. var _glfwSetCursorEnterCallback=env._glfwSetCursorEnterCallback;
  9439. var _emscripten_glCopyTexImage2D=env._emscripten_glCopyTexImage2D;
  9440. var _emscripten_glTexImage2D=env._emscripten_glTexImage2D;
  9441. var tempFloat = 0.0;
  9442. function _emscripten_replace_memory(newBuffer) {
  9443. if ((byteLength(newBuffer) & 0xffffff || byteLength(newBuffer) <= 0xffffff) || byteLength(newBuffer) > 0x80000000) return false;
  9444. HEAP8 = new Int8View(newBuffer);
  9445. HEAP16 = new Int16View(newBuffer);
  9446. HEAP32 = new Int32View(newBuffer);
  9447. HEAPU8 = new Uint8View(newBuffer);
  9448. HEAPU16 = new Uint16View(newBuffer);
  9449. HEAPU32 = new Uint32View(newBuffer);
  9450. HEAPF32 = new Float32View(newBuffer);
  9451. HEAPF64 = new Float64View(newBuffer);
  9452. buffer = newBuffer;
  9453. return true;
  9454. }
  9455. // EMSCRIPTEN_START_FUNCS
  9456. function stackAlloc(size) {
  9457. size = size|0;
  9458. var ret = 0;
  9459. ret = STACKTOP;
  9460. STACKTOP = (STACKTOP + size)|0;
  9461. STACKTOP = (STACKTOP + 15)&-16;
  9462. if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(size|0);
  9463. return ret|0;
  9464. }
  9465. function stackSave() {
  9466. return STACKTOP|0;
  9467. }
  9468. function stackRestore(top) {
  9469. top = top|0;
  9470. STACKTOP = top;
  9471. }
  9472. function establishStackSpace(stackBase, stackMax) {
  9473. stackBase = stackBase|0;
  9474. stackMax = stackMax|0;
  9475. STACKTOP = stackBase;
  9476. STACK_MAX = stackMax;
  9477. }
  9478. function setThrew(threw, value) {
  9479. threw = threw|0;
  9480. value = value|0;
  9481. if ((__THREW__|0) == 0) {
  9482. __THREW__ = threw;
  9483. threwValue = value;
  9484. }
  9485. }
  9486. function setTempRet0(value) {
  9487. value = value|0;
  9488. tempRet0 = value;
  9489. }
  9490. function getTempRet0() {
  9491. return tempRet0|0;
  9492. }
  9493. function _main() {
  9494. var $$neg = 0, $0 = 0, $1 = 0, $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0.0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0.0, $8 = 0, $9 = 0.0;
  9495. var $fontTtf$byval_copy = 0, label = 0, sp = 0;
  9496. sp = STACKTOP;
  9497. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  9498. $fontTtf$byval_copy = sp + 72|0;
  9499. $0 = sp + 40|0;
  9500. $1 = sp + 8|0;
  9501. $2 = sp;
  9502. $3 = HEAP32[2]|0;
  9503. $4 = HEAP32[3]|0;
  9504. _InitWindow($3,$4,4368);
  9505. _LoadSpriteFont($0,4428);
  9506. ;HEAP32[19424>>2]=HEAP32[$0>>2]|0;HEAP32[19424+4>>2]=HEAP32[$0+4>>2]|0;HEAP32[19424+8>>2]=HEAP32[$0+8>>2]|0;HEAP32[19424+12>>2]=HEAP32[$0+12>>2]|0;HEAP32[19424+16>>2]=HEAP32[$0+16>>2]|0;HEAP32[19424+20>>2]=HEAP32[$0+20>>2]|0;HEAP32[19424+24>>2]=HEAP32[$0+24>>2]|0;HEAP32[19424+28>>2]=HEAP32[$0+28>>2]|0;
  9507. _LoadSpriteFont($1,4449);
  9508. ;HEAP32[19456>>2]=HEAP32[$1>>2]|0;HEAP32[19456+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[19456+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[19456+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[19456+16>>2]=HEAP32[$1+16>>2]|0;HEAP32[19456+20>>2]=HEAP32[$1+20>>2]|0;HEAP32[19456+24>>2]=HEAP32[$1+24>>2]|0;HEAP32[19456+28>>2]=HEAP32[$1+28>>2]|0;
  9509. $5 = HEAP32[2]|0;
  9510. $6 = (($5|0) / 2)&-1;
  9511. $7 = (+($6|0));
  9512. $8 = HEAP32[(19444)>>2]|0;
  9513. $9 = (+($8|0));
  9514. ;HEAP32[$fontTtf$byval_copy>>2]=HEAP32[19424>>2]|0;HEAP32[$fontTtf$byval_copy+4>>2]=HEAP32[19424+4>>2]|0;HEAP32[$fontTtf$byval_copy+8>>2]=HEAP32[19424+8>>2]|0;HEAP32[$fontTtf$byval_copy+12>>2]=HEAP32[19424+12>>2]|0;HEAP32[$fontTtf$byval_copy+16>>2]=HEAP32[19424+16>>2]|0;HEAP32[$fontTtf$byval_copy+20>>2]=HEAP32[19424+20>>2]|0;HEAP32[$fontTtf$byval_copy+24>>2]=HEAP32[19424+24>>2]|0;HEAP32[$fontTtf$byval_copy+28>>2]=HEAP32[19424+28>>2]|0;
  9515. _MeasureTextEx($2,$fontTtf$byval_copy,4240,$9,0);
  9516. $10 = +HEAPF32[$2>>2];
  9517. $11 = $10 * 0.5;
  9518. $12 = $7 - $11;
  9519. HEAPF32[4872] = $12;
  9520. $13 = HEAP32[3]|0;
  9521. $14 = (($13|0) / 2)&-1;
  9522. $15 = HEAP32[(19444)>>2]|0;
  9523. $$neg = (($15|0) / -2)&-1;
  9524. $16 = (($14) + -80)|0;
  9525. $17 = (($16) + ($$neg))|0;
  9526. $18 = (+($17|0));
  9527. HEAPF32[(19492)>>2] = $18;
  9528. _emscripten_set_main_loop((1|0),0,1);
  9529. ;HEAP32[$fontTtf$byval_copy>>2]=HEAP32[19424>>2]|0;HEAP32[$fontTtf$byval_copy+4>>2]=HEAP32[19424+4>>2]|0;HEAP32[$fontTtf$byval_copy+8>>2]=HEAP32[19424+8>>2]|0;HEAP32[$fontTtf$byval_copy+12>>2]=HEAP32[19424+12>>2]|0;HEAP32[$fontTtf$byval_copy+16>>2]=HEAP32[19424+16>>2]|0;HEAP32[$fontTtf$byval_copy+20>>2]=HEAP32[19424+20>>2]|0;HEAP32[$fontTtf$byval_copy+24>>2]=HEAP32[19424+24>>2]|0;HEAP32[$fontTtf$byval_copy+28>>2]=HEAP32[19424+28>>2]|0;
  9530. _UnloadSpriteFont($fontTtf$byval_copy);
  9531. ;HEAP32[$fontTtf$byval_copy>>2]=HEAP32[19456>>2]|0;HEAP32[$fontTtf$byval_copy+4>>2]=HEAP32[19456+4>>2]|0;HEAP32[$fontTtf$byval_copy+8>>2]=HEAP32[19456+8>>2]|0;HEAP32[$fontTtf$byval_copy+12>>2]=HEAP32[19456+12>>2]|0;HEAP32[$fontTtf$byval_copy+16>>2]=HEAP32[19456+16>>2]|0;HEAP32[$fontTtf$byval_copy+20>>2]=HEAP32[19456+20>>2]|0;HEAP32[$fontTtf$byval_copy+24>>2]=HEAP32[19456+24>>2]|0;HEAP32[$fontTtf$byval_copy+28>>2]=HEAP32[19456+28>>2]|0;
  9532. _UnloadSpriteFont($fontTtf$byval_copy);
  9533. _CloseWindow();
  9534. STACKTOP = sp;return 0;
  9535. }
  9536. function _UpdateDrawFrame() {
  9537. var $$byval_copy2 = 0, $$byval_copy3 = 0, $0 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0.0, $15 = 0.0, $16 = 0, $17 = 0, $18 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0.0;
  9538. var $9 = 0, $fontTtf$byval_copy = 0, label = 0, sp = 0;
  9539. sp = STACKTOP;
  9540. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  9541. $$byval_copy3 = sp + 60|0;
  9542. $$byval_copy2 = sp + 40|0;
  9543. $fontTtf$byval_copy = sp + 8|0;
  9544. $0 = sp + 56|0;
  9545. $1 = sp + 52|0;
  9546. $2 = sp;
  9547. $3 = sp + 48|0;
  9548. _BeginDrawing();
  9549. HEAP8[$0>>0] = -11;
  9550. $4 = ((($0)) + 1|0);
  9551. HEAP8[$4>>0] = -11;
  9552. $5 = ((($0)) + 2|0);
  9553. HEAP8[$5>>0] = -11;
  9554. $6 = ((($0)) + 3|0);
  9555. HEAP8[$6>>0] = -1;
  9556. ;HEAP8[$$byval_copy3>>0]=HEAP8[$0>>0]|0;HEAP8[$$byval_copy3+1>>0]=HEAP8[$0+1>>0]|0;HEAP8[$$byval_copy3+2>>0]=HEAP8[$0+2>>0]|0;HEAP8[$$byval_copy3+3>>0]=HEAP8[$0+3>>0]|0;
  9557. _ClearBackground($$byval_copy3);
  9558. $7 = HEAP32[(19444)>>2]|0;
  9559. $8 = (+($7|0));
  9560. HEAP8[$1>>0] = -66;
  9561. $9 = ((($1)) + 1|0);
  9562. HEAP8[$9>>0] = 33;
  9563. $10 = ((($1)) + 2|0);
  9564. HEAP8[$10>>0] = 55;
  9565. $11 = ((($1)) + 3|0);
  9566. HEAP8[$11>>0] = -1;
  9567. ;HEAP32[$fontTtf$byval_copy>>2]=HEAP32[19424>>2]|0;HEAP32[$fontTtf$byval_copy+4>>2]=HEAP32[19424+4>>2]|0;HEAP32[$fontTtf$byval_copy+8>>2]=HEAP32[19424+8>>2]|0;HEAP32[$fontTtf$byval_copy+12>>2]=HEAP32[19424+12>>2]|0;HEAP32[$fontTtf$byval_copy+16>>2]=HEAP32[19424+16>>2]|0;HEAP32[$fontTtf$byval_copy+20>>2]=HEAP32[19424+20>>2]|0;HEAP32[$fontTtf$byval_copy+24>>2]=HEAP32[19424+24>>2]|0;HEAP32[$fontTtf$byval_copy+28>>2]=HEAP32[19424+28>>2]|0;
  9568. ;HEAP32[$$byval_copy2>>2]=HEAP32[19488>>2]|0;HEAP32[$$byval_copy2+4>>2]=HEAP32[19488+4>>2]|0;
  9569. ;HEAP8[$$byval_copy3>>0]=HEAP8[$1>>0]|0;HEAP8[$$byval_copy3+1>>0]=HEAP8[$1+1>>0]|0;HEAP8[$$byval_copy3+2>>0]=HEAP8[$1+2>>0]|0;HEAP8[$$byval_copy3+3>>0]=HEAP8[$1+3>>0]|0;
  9570. _DrawTextEx($fontTtf$byval_copy,4240,$$byval_copy2,$8,0,$$byval_copy3);
  9571. HEAPF32[$2>>2] = 75.0;
  9572. $12 = ((($2)) + 4|0);
  9573. HEAPF32[$12>>2] = 240.0;
  9574. $13 = HEAP32[(19476)>>2]|0;
  9575. $14 = (+($13|0));
  9576. $15 = $14 * 0.80000001192092896;
  9577. HEAP8[$3>>0] = 0;
  9578. $16 = ((($3)) + 1|0);
  9579. HEAP8[$16>>0] = -98;
  9580. $17 = ((($3)) + 2|0);
  9581. HEAP8[$17>>0] = 47;
  9582. $18 = ((($3)) + 3|0);
  9583. HEAP8[$18>>0] = -1;
  9584. ;HEAP32[$fontTtf$byval_copy>>2]=HEAP32[19456>>2]|0;HEAP32[$fontTtf$byval_copy+4>>2]=HEAP32[19456+4>>2]|0;HEAP32[$fontTtf$byval_copy+8>>2]=HEAP32[19456+8>>2]|0;HEAP32[$fontTtf$byval_copy+12>>2]=HEAP32[19456+12>>2]|0;HEAP32[$fontTtf$byval_copy+16>>2]=HEAP32[19456+16>>2]|0;HEAP32[$fontTtf$byval_copy+20>>2]=HEAP32[19456+20>>2]|0;HEAP32[$fontTtf$byval_copy+24>>2]=HEAP32[19456+24>>2]|0;HEAP32[$fontTtf$byval_copy+28>>2]=HEAP32[19456+28>>2]|0;
  9585. ;HEAP32[$$byval_copy2>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy2+4>>2]=HEAP32[$2+4>>2]|0;
  9586. ;HEAP8[$$byval_copy3>>0]=HEAP8[$3>>0]|0;HEAP8[$$byval_copy3+1>>0]=HEAP8[$3+1>>0]|0;HEAP8[$$byval_copy3+2>>0]=HEAP8[$3+2>>0]|0;HEAP8[$$byval_copy3+3>>0]=HEAP8[$3+3>>0]|0;
  9587. _DrawTextEx($fontTtf$byval_copy,4304,$$byval_copy2,$15,2,$$byval_copy3);
  9588. _EndDrawing();
  9589. STACKTOP = sp;return;
  9590. }
  9591. function _Vector2Distance($0,$1) {
  9592. $0 = $0|0;
  9593. $1 = $1|0;
  9594. 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;
  9595. sp = STACKTOP;
  9596. $2 = +HEAPF32[$0>>2];
  9597. $3 = +HEAPF32[$1>>2];
  9598. $4 = $2 - $3;
  9599. $5 = $4 * $4;
  9600. $6 = ((($0)) + 4|0);
  9601. $7 = +HEAPF32[$6>>2];
  9602. $8 = ((($1)) + 4|0);
  9603. $9 = +HEAPF32[$8>>2];
  9604. $10 = $7 - $9;
  9605. $11 = $10 * $10;
  9606. $12 = $5 + $11;
  9607. $13 = (+Math_sqrt((+$12)));
  9608. return (+$13);
  9609. }
  9610. function _Vector2Angle($0,$1) {
  9611. $0 = $0|0;
  9612. $1 = $1|0;
  9613. 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;
  9614. sp = STACKTOP;
  9615. $2 = ((($1)) + 4|0);
  9616. $3 = +HEAPF32[$2>>2];
  9617. $4 = ((($0)) + 4|0);
  9618. $5 = +HEAPF32[$4>>2];
  9619. $6 = $3 - $5;
  9620. $7 = +HEAPF32[$1>>2];
  9621. $8 = +HEAPF32[$0>>2];
  9622. $9 = $7 - $8;
  9623. $10 = (+Math_atan2((+$6),(+$9)));
  9624. $11 = $10 * 57.2957763671875;
  9625. $12 = $11 < 0.0;
  9626. $13 = $11 + 360.0;
  9627. $$0 = $12 ? $13 : $11;
  9628. return (+$$0);
  9629. }
  9630. function _VectorZero($0) {
  9631. $0 = $0|0;
  9632. var $1 = 0, $2 = 0, label = 0, sp = 0;
  9633. sp = STACKTOP;
  9634. HEAPF32[$0>>2] = 0.0;
  9635. $1 = ((($0)) + 4|0);
  9636. HEAPF32[$1>>2] = 0.0;
  9637. $2 = ((($0)) + 8|0);
  9638. HEAPF32[$2>>2] = 0.0;
  9639. return;
  9640. }
  9641. function _VectorLength($0) {
  9642. $0 = $0|0;
  9643. 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;
  9644. sp = STACKTOP;
  9645. $1 = +HEAPF32[$0>>2];
  9646. $2 = $1 * $1;
  9647. $3 = ((($0)) + 4|0);
  9648. $4 = +HEAPF32[$3>>2];
  9649. $5 = $4 * $4;
  9650. $6 = $2 + $5;
  9651. $7 = ((($0)) + 8|0);
  9652. $8 = +HEAPF32[$7>>2];
  9653. $9 = $8 * $8;
  9654. $10 = $6 + $9;
  9655. $11 = (+Math_sqrt((+$10)));
  9656. return (+$11);
  9657. }
  9658. function _VectorNormalize($0) {
  9659. $0 = $0|0;
  9660. 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;
  9661. sp = STACKTOP;
  9662. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  9663. $$byval_copy = sp;
  9664. ;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;
  9665. $1 = (+_VectorLength($$byval_copy));
  9666. $2 = $1 == 0.0;
  9667. $$op = 1.0 / $1;
  9668. $3 = $2 ? 1.0 : $$op;
  9669. $4 = +HEAPF32[$0>>2];
  9670. $5 = $4 * $3;
  9671. HEAPF32[$0>>2] = $5;
  9672. $6 = ((($0)) + 4|0);
  9673. $7 = +HEAPF32[$6>>2];
  9674. $8 = $3 * $7;
  9675. HEAPF32[$6>>2] = $8;
  9676. $9 = ((($0)) + 8|0);
  9677. $10 = +HEAPF32[$9>>2];
  9678. $11 = $3 * $10;
  9679. HEAPF32[$9>>2] = $11;
  9680. STACKTOP = sp;return;
  9681. }
  9682. function _VectorTransform($0,$1) {
  9683. $0 = $0|0;
  9684. $1 = $1|0;
  9685. 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;
  9686. 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;
  9687. var $47 = 0.0, $5 = 0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0, label = 0, sp = 0;
  9688. sp = STACKTOP;
  9689. $2 = +HEAPF32[$0>>2];
  9690. $3 = ((($0)) + 4|0);
  9691. $4 = +HEAPF32[$3>>2];
  9692. $5 = ((($0)) + 8|0);
  9693. $6 = +HEAPF32[$5>>2];
  9694. $7 = +HEAPF32[$1>>2];
  9695. $8 = $2 * $7;
  9696. $9 = ((($1)) + 4|0);
  9697. $10 = +HEAPF32[$9>>2];
  9698. $11 = $4 * $10;
  9699. $12 = $8 + $11;
  9700. $13 = ((($1)) + 8|0);
  9701. $14 = +HEAPF32[$13>>2];
  9702. $15 = $6 * $14;
  9703. $16 = $12 + $15;
  9704. $17 = ((($1)) + 12|0);
  9705. $18 = +HEAPF32[$17>>2];
  9706. $19 = $18 + $16;
  9707. HEAPF32[$0>>2] = $19;
  9708. $20 = ((($1)) + 16|0);
  9709. $21 = +HEAPF32[$20>>2];
  9710. $22 = $2 * $21;
  9711. $23 = ((($1)) + 20|0);
  9712. $24 = +HEAPF32[$23>>2];
  9713. $25 = $4 * $24;
  9714. $26 = $22 + $25;
  9715. $27 = ((($1)) + 24|0);
  9716. $28 = +HEAPF32[$27>>2];
  9717. $29 = $6 * $28;
  9718. $30 = $26 + $29;
  9719. $31 = ((($1)) + 28|0);
  9720. $32 = +HEAPF32[$31>>2];
  9721. $33 = $32 + $30;
  9722. HEAPF32[$3>>2] = $33;
  9723. $34 = ((($1)) + 32|0);
  9724. $35 = +HEAPF32[$34>>2];
  9725. $36 = $2 * $35;
  9726. $37 = ((($1)) + 36|0);
  9727. $38 = +HEAPF32[$37>>2];
  9728. $39 = $4 * $38;
  9729. $40 = $36 + $39;
  9730. $41 = ((($1)) + 40|0);
  9731. $42 = +HEAPF32[$41>>2];
  9732. $43 = $6 * $42;
  9733. $44 = $40 + $43;
  9734. $45 = ((($1)) + 44|0);
  9735. $46 = +HEAPF32[$45>>2];
  9736. $47 = $46 + $44;
  9737. HEAPF32[$5>>2] = $47;
  9738. return;
  9739. }
  9740. function _MatrixTranspose($0) {
  9741. $0 = $0|0;
  9742. 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;
  9743. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  9744. sp = STACKTOP;
  9745. $1 = ((($0)) + 4|0);
  9746. $2 = HEAP32[$1>>2]|0;
  9747. $3 = ((($0)) + 8|0);
  9748. $4 = HEAP32[$3>>2]|0;
  9749. $5 = ((($0)) + 12|0);
  9750. $6 = HEAP32[$5>>2]|0;
  9751. $7 = ((($0)) + 16|0);
  9752. $8 = HEAP32[$7>>2]|0;
  9753. $9 = ((($0)) + 24|0);
  9754. $10 = HEAP32[$9>>2]|0;
  9755. $11 = ((($0)) + 28|0);
  9756. $12 = HEAP32[$11>>2]|0;
  9757. $13 = ((($0)) + 32|0);
  9758. $14 = HEAP32[$13>>2]|0;
  9759. $15 = ((($0)) + 36|0);
  9760. $16 = HEAP32[$15>>2]|0;
  9761. $17 = ((($0)) + 44|0);
  9762. $18 = HEAP32[$17>>2]|0;
  9763. $19 = ((($0)) + 48|0);
  9764. $20 = HEAP32[$19>>2]|0;
  9765. $21 = ((($0)) + 52|0);
  9766. $22 = HEAP32[$21>>2]|0;
  9767. $23 = ((($0)) + 56|0);
  9768. $24 = HEAP32[$23>>2]|0;
  9769. HEAP32[$1>>2] = $8;
  9770. HEAP32[$3>>2] = $14;
  9771. HEAP32[$5>>2] = $20;
  9772. HEAP32[$7>>2] = $2;
  9773. HEAP32[$9>>2] = $16;
  9774. HEAP32[$11>>2] = $22;
  9775. HEAP32[$13>>2] = $4;
  9776. HEAP32[$15>>2] = $10;
  9777. HEAP32[$17>>2] = $24;
  9778. HEAP32[$19>>2] = $6;
  9779. HEAP32[$21>>2] = $12;
  9780. HEAP32[$23>>2] = $18;
  9781. return;
  9782. }
  9783. function _MatrixIdentity($0) {
  9784. $0 = $0|0;
  9785. 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;
  9786. sp = STACKTOP;
  9787. HEAPF32[$0>>2] = 1.0;
  9788. $$sroa$5$0$$sroa_idx = ((($0)) + 4|0);
  9789. ;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;
  9790. $$sroa$55$0$$sroa_idx6 = ((($0)) + 20|0);
  9791. HEAPF32[$$sroa$55$0$$sroa_idx6>>2] = 1.0;
  9792. $$sroa$6$0$$sroa_idx = ((($0)) + 24|0);
  9793. ;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;
  9794. $$sroa$611$0$$sroa_idx12 = ((($0)) + 40|0);
  9795. HEAPF32[$$sroa$611$0$$sroa_idx12>>2] = 1.0;
  9796. $$sroa$7$0$$sroa_idx = ((($0)) + 44|0);
  9797. ;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;
  9798. $$sroa$717$0$$sroa_idx18 = ((($0)) + 60|0);
  9799. HEAPF32[$$sroa$717$0$$sroa_idx18>>2] = 1.0;
  9800. return;
  9801. }
  9802. function _MatrixTranslate($0,$1,$2,$3) {
  9803. $0 = $0|0;
  9804. $1 = +$1;
  9805. $2 = +$2;
  9806. $3 = +$3;
  9807. 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;
  9808. sp = STACKTOP;
  9809. HEAPF32[$0>>2] = 1.0;
  9810. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  9811. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  9812. ;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;
  9813. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = 1.0;
  9814. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  9815. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  9816. ;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;
  9817. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = 1.0;
  9818. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  9819. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = 0.0;
  9820. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  9821. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $1;
  9822. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  9823. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $2;
  9824. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  9825. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $3;
  9826. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  9827. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = 1.0;
  9828. return;
  9829. }
  9830. function _MatrixRotate($0,$1,$2) {
  9831. $0 = $0|0;
  9832. $1 = $1|0;
  9833. $2 = +$2;
  9834. 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;
  9835. 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;
  9836. 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;
  9837. 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;
  9838. 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;
  9839. 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;
  9840. 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;
  9841. 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;
  9842. sp = STACKTOP;
  9843. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  9844. $3 = sp;
  9845. _MatrixIdentity($3);
  9846. $4 = +HEAPF32[$1>>2];
  9847. $5 = ((($1)) + 4|0);
  9848. $6 = +HEAPF32[$5>>2];
  9849. $7 = ((($1)) + 8|0);
  9850. $8 = +HEAPF32[$7>>2];
  9851. $9 = $4 * $4;
  9852. $10 = $6 * $6;
  9853. $11 = $9 + $10;
  9854. $12 = $8 * $8;
  9855. $13 = $11 + $12;
  9856. $14 = (+Math_sqrt((+$13)));
  9857. $15 = $14 != 1.0;
  9858. $16 = $14 != 0.0;
  9859. $or$cond = $15 & $16;
  9860. $17 = 1.0 / $14;
  9861. $18 = $4 * $17;
  9862. $19 = $6 * $17;
  9863. $20 = $8 * $17;
  9864. $$ = $or$cond ? $20 : $8;
  9865. $$221 = $or$cond ? $19 : $6;
  9866. $$222 = $or$cond ? $18 : $4;
  9867. $21 = (+Math_sin((+$2)));
  9868. $22 = (+Math_cos((+$2)));
  9869. $23 = 1.0 - $22;
  9870. $24 = +HEAPF32[$3>>2];
  9871. $25 = ((($3)) + 16|0);
  9872. $26 = +HEAPF32[$25>>2];
  9873. $27 = ((($3)) + 32|0);
  9874. $28 = +HEAPF32[$27>>2];
  9875. $29 = ((($3)) + 48|0);
  9876. $30 = +HEAPF32[$29>>2];
  9877. $31 = ((($3)) + 4|0);
  9878. $32 = +HEAPF32[$31>>2];
  9879. $33 = ((($3)) + 20|0);
  9880. $34 = +HEAPF32[$33>>2];
  9881. $35 = ((($3)) + 36|0);
  9882. $36 = +HEAPF32[$35>>2];
  9883. $37 = ((($3)) + 52|0);
  9884. $38 = +HEAPF32[$37>>2];
  9885. $39 = ((($3)) + 8|0);
  9886. $40 = +HEAPF32[$39>>2];
  9887. $41 = ((($3)) + 24|0);
  9888. $42 = +HEAPF32[$41>>2];
  9889. $43 = ((($3)) + 40|0);
  9890. $44 = +HEAPF32[$43>>2];
  9891. $45 = ((($3)) + 56|0);
  9892. $46 = +HEAPF32[$45>>2];
  9893. $47 = $$222 * $$222;
  9894. $48 = $23 * $47;
  9895. $49 = $22 + $48;
  9896. $50 = $$221 * $$222;
  9897. $51 = $23 * $50;
  9898. $52 = $21 * $$;
  9899. $53 = $52 + $51;
  9900. $54 = $$ * $$222;
  9901. $55 = $23 * $54;
  9902. $56 = $21 * $$221;
  9903. $57 = $55 - $56;
  9904. $58 = $51 - $52;
  9905. $59 = $$221 * $$221;
  9906. $60 = $23 * $59;
  9907. $61 = $22 + $60;
  9908. $62 = $$ * $$221;
  9909. $63 = $23 * $62;
  9910. $64 = $21 * $$222;
  9911. $65 = $64 + $63;
  9912. $66 = $56 + $55;
  9913. $67 = $63 - $64;
  9914. $68 = $$ * $$;
  9915. $69 = $23 * $68;
  9916. $70 = $22 + $69;
  9917. $71 = $24 * $49;
  9918. $72 = $53 * $32;
  9919. $73 = $71 + $72;
  9920. $74 = $57 * $40;
  9921. $75 = $73 + $74;
  9922. $76 = $26 * $49;
  9923. $77 = $53 * $34;
  9924. $78 = $76 + $77;
  9925. $79 = $57 * $42;
  9926. $80 = $78 + $79;
  9927. $81 = $28 * $49;
  9928. $82 = $53 * $36;
  9929. $83 = $81 + $82;
  9930. $84 = $57 * $44;
  9931. $85 = $83 + $84;
  9932. $86 = $30 * $49;
  9933. $87 = $53 * $38;
  9934. $88 = $86 + $87;
  9935. $89 = $57 * $46;
  9936. $90 = $88 + $89;
  9937. $91 = $24 * $58;
  9938. $92 = $61 * $32;
  9939. $93 = $91 + $92;
  9940. $94 = $65 * $40;
  9941. $95 = $93 + $94;
  9942. $96 = $26 * $58;
  9943. $97 = $61 * $34;
  9944. $98 = $96 + $97;
  9945. $99 = $65 * $42;
  9946. $100 = $98 + $99;
  9947. $101 = $28 * $58;
  9948. $102 = $61 * $36;
  9949. $103 = $101 + $102;
  9950. $104 = $65 * $44;
  9951. $105 = $103 + $104;
  9952. $106 = $30 * $58;
  9953. $107 = $61 * $38;
  9954. $108 = $106 + $107;
  9955. $109 = $65 * $46;
  9956. $110 = $108 + $109;
  9957. $111 = $24 * $66;
  9958. $112 = $67 * $32;
  9959. $113 = $111 + $112;
  9960. $114 = $70 * $40;
  9961. $115 = $113 + $114;
  9962. $116 = $26 * $66;
  9963. $117 = $67 * $34;
  9964. $118 = $116 + $117;
  9965. $119 = $70 * $42;
  9966. $120 = $118 + $119;
  9967. $121 = $28 * $66;
  9968. $122 = $67 * $36;
  9969. $123 = $121 + $122;
  9970. $124 = $70 * $44;
  9971. $125 = $123 + $124;
  9972. $126 = $30 * $66;
  9973. $127 = $67 * $38;
  9974. $128 = $126 + $127;
  9975. $129 = $70 * $46;
  9976. $130 = $128 + $129;
  9977. $131 = ((($3)) + 12|0);
  9978. $132 = HEAP32[$131>>2]|0;
  9979. $133 = ((($3)) + 28|0);
  9980. $134 = HEAP32[$133>>2]|0;
  9981. $135 = ((($3)) + 44|0);
  9982. $136 = HEAP32[$135>>2]|0;
  9983. $137 = ((($3)) + 60|0);
  9984. $138 = HEAP32[$137>>2]|0;
  9985. HEAPF32[$0>>2] = $75;
  9986. $$sroa$4$0$$sroa_idx187 = ((($0)) + 4|0);
  9987. HEAPF32[$$sroa$4$0$$sroa_idx187>>2] = $95;
  9988. $$sroa$5$0$$sroa_idx189 = ((($0)) + 8|0);
  9989. HEAPF32[$$sroa$5$0$$sroa_idx189>>2] = $115;
  9990. $$sroa$6$0$$sroa_idx191 = ((($0)) + 12|0);
  9991. HEAP32[$$sroa$6$0$$sroa_idx191>>2] = $132;
  9992. $$sroa$7$0$$sroa_idx193 = ((($0)) + 16|0);
  9993. HEAPF32[$$sroa$7$0$$sroa_idx193>>2] = $80;
  9994. $$sroa$8$0$$sroa_idx195 = ((($0)) + 20|0);
  9995. HEAPF32[$$sroa$8$0$$sroa_idx195>>2] = $100;
  9996. $$sroa$9$0$$sroa_idx197 = ((($0)) + 24|0);
  9997. HEAPF32[$$sroa$9$0$$sroa_idx197>>2] = $120;
  9998. $$sroa$10$0$$sroa_idx199 = ((($0)) + 28|0);
  9999. HEAP32[$$sroa$10$0$$sroa_idx199>>2] = $134;
  10000. $$sroa$11$0$$sroa_idx201 = ((($0)) + 32|0);
  10001. HEAPF32[$$sroa$11$0$$sroa_idx201>>2] = $85;
  10002. $$sroa$12$0$$sroa_idx203 = ((($0)) + 36|0);
  10003. HEAPF32[$$sroa$12$0$$sroa_idx203>>2] = $105;
  10004. $$sroa$13$0$$sroa_idx205 = ((($0)) + 40|0);
  10005. HEAPF32[$$sroa$13$0$$sroa_idx205>>2] = $125;
  10006. $$sroa$14$0$$sroa_idx207 = ((($0)) + 44|0);
  10007. HEAP32[$$sroa$14$0$$sroa_idx207>>2] = $136;
  10008. $$sroa$15$0$$sroa_idx209 = ((($0)) + 48|0);
  10009. HEAPF32[$$sroa$15$0$$sroa_idx209>>2] = $90;
  10010. $$sroa$16$0$$sroa_idx211 = ((($0)) + 52|0);
  10011. HEAPF32[$$sroa$16$0$$sroa_idx211>>2] = $110;
  10012. $$sroa$17$0$$sroa_idx213 = ((($0)) + 56|0);
  10013. HEAPF32[$$sroa$17$0$$sroa_idx213>>2] = $130;
  10014. $$sroa$18$0$$sroa_idx215 = ((($0)) + 60|0);
  10015. HEAP32[$$sroa$18$0$$sroa_idx215>>2] = $138;
  10016. STACKTOP = sp;return;
  10017. }
  10018. function _MatrixScale($0,$1,$2,$3) {
  10019. $0 = $0|0;
  10020. $1 = +$1;
  10021. $2 = +$2;
  10022. $3 = +$3;
  10023. 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;
  10024. sp = STACKTOP;
  10025. HEAPF32[$0>>2] = $1;
  10026. $$sroa$5$0$$sroa_idx = ((($0)) + 4|0);
  10027. ;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;
  10028. $$sroa$55$0$$sroa_idx6 = ((($0)) + 20|0);
  10029. HEAPF32[$$sroa$55$0$$sroa_idx6>>2] = $2;
  10030. $$sroa$6$0$$sroa_idx = ((($0)) + 24|0);
  10031. ;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;
  10032. $$sroa$611$0$$sroa_idx12 = ((($0)) + 40|0);
  10033. HEAPF32[$$sroa$611$0$$sroa_idx12>>2] = $3;
  10034. $$sroa$7$0$$sroa_idx = ((($0)) + 44|0);
  10035. ;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;
  10036. $$sroa$717$0$$sroa_idx18 = ((($0)) + 60|0);
  10037. HEAPF32[$$sroa$717$0$$sroa_idx18>>2] = 1.0;
  10038. return;
  10039. }
  10040. function _MatrixMultiply($0,$1,$2) {
  10041. $0 = $0|0;
  10042. $1 = $1|0;
  10043. $2 = $2|0;
  10044. 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;
  10045. 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;
  10046. 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;
  10047. 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;
  10048. 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;
  10049. 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;
  10050. 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;
  10051. 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;
  10052. 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;
  10053. 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;
  10054. sp = STACKTOP;
  10055. $3 = +HEAPF32[$2>>2];
  10056. $4 = +HEAPF32[$1>>2];
  10057. $5 = $3 * $4;
  10058. $6 = ((($2)) + 16|0);
  10059. $7 = +HEAPF32[$6>>2];
  10060. $8 = ((($1)) + 4|0);
  10061. $9 = +HEAPF32[$8>>2];
  10062. $10 = $7 * $9;
  10063. $11 = $5 + $10;
  10064. $12 = ((($2)) + 32|0);
  10065. $13 = +HEAPF32[$12>>2];
  10066. $14 = ((($1)) + 8|0);
  10067. $15 = +HEAPF32[$14>>2];
  10068. $16 = $13 * $15;
  10069. $17 = $11 + $16;
  10070. $18 = ((($2)) + 48|0);
  10071. $19 = +HEAPF32[$18>>2];
  10072. $20 = ((($1)) + 12|0);
  10073. $21 = +HEAPF32[$20>>2];
  10074. $22 = $19 * $21;
  10075. $23 = $17 + $22;
  10076. $24 = ((($1)) + 16|0);
  10077. $25 = +HEAPF32[$24>>2];
  10078. $26 = $3 * $25;
  10079. $27 = ((($1)) + 20|0);
  10080. $28 = +HEAPF32[$27>>2];
  10081. $29 = $7 * $28;
  10082. $30 = $26 + $29;
  10083. $31 = ((($1)) + 24|0);
  10084. $32 = +HEAPF32[$31>>2];
  10085. $33 = $13 * $32;
  10086. $34 = $30 + $33;
  10087. $35 = ((($1)) + 28|0);
  10088. $36 = +HEAPF32[$35>>2];
  10089. $37 = $19 * $36;
  10090. $38 = $34 + $37;
  10091. $39 = ((($1)) + 32|0);
  10092. $40 = +HEAPF32[$39>>2];
  10093. $41 = $3 * $40;
  10094. $42 = ((($1)) + 36|0);
  10095. $43 = +HEAPF32[$42>>2];
  10096. $44 = $7 * $43;
  10097. $45 = $41 + $44;
  10098. $46 = ((($1)) + 40|0);
  10099. $47 = +HEAPF32[$46>>2];
  10100. $48 = $13 * $47;
  10101. $49 = $45 + $48;
  10102. $50 = ((($1)) + 44|0);
  10103. $51 = +HEAPF32[$50>>2];
  10104. $52 = $19 * $51;
  10105. $53 = $49 + $52;
  10106. $54 = ((($1)) + 48|0);
  10107. $55 = +HEAPF32[$54>>2];
  10108. $56 = $3 * $55;
  10109. $57 = ((($1)) + 52|0);
  10110. $58 = +HEAPF32[$57>>2];
  10111. $59 = $7 * $58;
  10112. $60 = $56 + $59;
  10113. $61 = ((($1)) + 56|0);
  10114. $62 = +HEAPF32[$61>>2];
  10115. $63 = $13 * $62;
  10116. $64 = $60 + $63;
  10117. $65 = ((($1)) + 60|0);
  10118. $66 = +HEAPF32[$65>>2];
  10119. $67 = $19 * $66;
  10120. $68 = $64 + $67;
  10121. $69 = ((($2)) + 4|0);
  10122. $70 = +HEAPF32[$69>>2];
  10123. $71 = $4 * $70;
  10124. $72 = ((($2)) + 20|0);
  10125. $73 = +HEAPF32[$72>>2];
  10126. $74 = $9 * $73;
  10127. $75 = $71 + $74;
  10128. $76 = ((($2)) + 36|0);
  10129. $77 = +HEAPF32[$76>>2];
  10130. $78 = $15 * $77;
  10131. $79 = $75 + $78;
  10132. $80 = ((($2)) + 52|0);
  10133. $81 = +HEAPF32[$80>>2];
  10134. $82 = $21 * $81;
  10135. $83 = $79 + $82;
  10136. $84 = $25 * $70;
  10137. $85 = $28 * $73;
  10138. $86 = $84 + $85;
  10139. $87 = $32 * $77;
  10140. $88 = $86 + $87;
  10141. $89 = $36 * $81;
  10142. $90 = $88 + $89;
  10143. $91 = $40 * $70;
  10144. $92 = $43 * $73;
  10145. $93 = $91 + $92;
  10146. $94 = $47 * $77;
  10147. $95 = $93 + $94;
  10148. $96 = $51 * $81;
  10149. $97 = $95 + $96;
  10150. $98 = $55 * $70;
  10151. $99 = $58 * $73;
  10152. $100 = $98 + $99;
  10153. $101 = $62 * $77;
  10154. $102 = $100 + $101;
  10155. $103 = $66 * $81;
  10156. $104 = $102 + $103;
  10157. $105 = ((($2)) + 8|0);
  10158. $106 = +HEAPF32[$105>>2];
  10159. $107 = $4 * $106;
  10160. $108 = ((($2)) + 24|0);
  10161. $109 = +HEAPF32[$108>>2];
  10162. $110 = $9 * $109;
  10163. $111 = $107 + $110;
  10164. $112 = ((($2)) + 40|0);
  10165. $113 = +HEAPF32[$112>>2];
  10166. $114 = $15 * $113;
  10167. $115 = $111 + $114;
  10168. $116 = ((($2)) + 56|0);
  10169. $117 = +HEAPF32[$116>>2];
  10170. $118 = $21 * $117;
  10171. $119 = $115 + $118;
  10172. $120 = $25 * $106;
  10173. $121 = $28 * $109;
  10174. $122 = $120 + $121;
  10175. $123 = $32 * $113;
  10176. $124 = $122 + $123;
  10177. $125 = $36 * $117;
  10178. $126 = $124 + $125;
  10179. $127 = $40 * $106;
  10180. $128 = $43 * $109;
  10181. $129 = $127 + $128;
  10182. $130 = $47 * $113;
  10183. $131 = $129 + $130;
  10184. $132 = $51 * $117;
  10185. $133 = $131 + $132;
  10186. $134 = $55 * $106;
  10187. $135 = $58 * $109;
  10188. $136 = $134 + $135;
  10189. $137 = $62 * $113;
  10190. $138 = $136 + $137;
  10191. $139 = $66 * $117;
  10192. $140 = $138 + $139;
  10193. $141 = ((($2)) + 12|0);
  10194. $142 = +HEAPF32[$141>>2];
  10195. $143 = $4 * $142;
  10196. $144 = ((($2)) + 28|0);
  10197. $145 = +HEAPF32[$144>>2];
  10198. $146 = $9 * $145;
  10199. $147 = $143 + $146;
  10200. $148 = ((($2)) + 44|0);
  10201. $149 = +HEAPF32[$148>>2];
  10202. $150 = $15 * $149;
  10203. $151 = $147 + $150;
  10204. $152 = ((($2)) + 60|0);
  10205. $153 = +HEAPF32[$152>>2];
  10206. $154 = $21 * $153;
  10207. $155 = $151 + $154;
  10208. $156 = $25 * $142;
  10209. $157 = $28 * $145;
  10210. $158 = $156 + $157;
  10211. $159 = $32 * $149;
  10212. $160 = $158 + $159;
  10213. $161 = $36 * $153;
  10214. $162 = $160 + $161;
  10215. $163 = $40 * $142;
  10216. $164 = $43 * $145;
  10217. $165 = $163 + $164;
  10218. $166 = $47 * $149;
  10219. $167 = $165 + $166;
  10220. $168 = $51 * $153;
  10221. $169 = $167 + $168;
  10222. $170 = $55 * $142;
  10223. $171 = $58 * $145;
  10224. $172 = $170 + $171;
  10225. $173 = $62 * $149;
  10226. $174 = $172 + $173;
  10227. $175 = $66 * $153;
  10228. $176 = $174 + $175;
  10229. HEAPF32[$0>>2] = $23;
  10230. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  10231. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $83;
  10232. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  10233. HEAPF32[$$sroa$5$0$$sroa_idx4>>2] = $119;
  10234. $$sroa$6$0$$sroa_idx6 = ((($0)) + 12|0);
  10235. HEAPF32[$$sroa$6$0$$sroa_idx6>>2] = $155;
  10236. $$sroa$7$0$$sroa_idx8 = ((($0)) + 16|0);
  10237. HEAPF32[$$sroa$7$0$$sroa_idx8>>2] = $38;
  10238. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  10239. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = $90;
  10240. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  10241. HEAPF32[$$sroa$9$0$$sroa_idx12>>2] = $126;
  10242. $$sroa$10$0$$sroa_idx14 = ((($0)) + 28|0);
  10243. HEAPF32[$$sroa$10$0$$sroa_idx14>>2] = $162;
  10244. $$sroa$11$0$$sroa_idx16 = ((($0)) + 32|0);
  10245. HEAPF32[$$sroa$11$0$$sroa_idx16>>2] = $53;
  10246. $$sroa$12$0$$sroa_idx18 = ((($0)) + 36|0);
  10247. HEAPF32[$$sroa$12$0$$sroa_idx18>>2] = $97;
  10248. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  10249. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = $133;
  10250. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  10251. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = $169;
  10252. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  10253. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $68;
  10254. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  10255. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $104;
  10256. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  10257. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $140;
  10258. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  10259. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = $176;
  10260. return;
  10261. }
  10262. function _MatrixOrtho($0,$1,$2,$3,$4,$5,$6) {
  10263. $0 = $0|0;
  10264. $1 = +$1;
  10265. $2 = +$2;
  10266. $3 = +$3;
  10267. $4 = +$4;
  10268. $5 = +$5;
  10269. $6 = +$6;
  10270. 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;
  10271. 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;
  10272. var sp = 0;
  10273. sp = STACKTOP;
  10274. $7 = $2 - $1;
  10275. $8 = $7;
  10276. $9 = $4 - $3;
  10277. $10 = $9;
  10278. $11 = $6 - $5;
  10279. $12 = $11;
  10280. $13 = 2.0 / $8;
  10281. $14 = 2.0 / $10;
  10282. $15 = -2.0 / $12;
  10283. $16 = $1 + $2;
  10284. $17 = -$16;
  10285. $18 = $8;
  10286. $19 = $17 / $18;
  10287. $20 = $19;
  10288. $21 = $3 + $4;
  10289. $22 = -$21;
  10290. $23 = $10;
  10291. $24 = $22 / $23;
  10292. $25 = $24;
  10293. $26 = $5 + $6;
  10294. $27 = -$26;
  10295. $28 = $12;
  10296. $29 = $27 / $28;
  10297. $30 = $29;
  10298. HEAPF32[$0>>2] = $13;
  10299. $$sroa$4$0$$sroa_idx12 = ((($0)) + 4|0);
  10300. HEAPF32[$$sroa$4$0$$sroa_idx12>>2] = 0.0;
  10301. $$sroa$5$0$$sroa_idx14 = ((($0)) + 8|0);
  10302. HEAPF32[$$sroa$5$0$$sroa_idx14>>2] = 0.0;
  10303. $$sroa$6$0$$sroa_idx16 = ((($0)) + 12|0);
  10304. HEAPF32[$$sroa$6$0$$sroa_idx16>>2] = $20;
  10305. $$sroa$7$0$$sroa_idx18 = ((($0)) + 16|0);
  10306. HEAPF32[$$sroa$7$0$$sroa_idx18>>2] = 0.0;
  10307. $$sroa$8$0$$sroa_idx20 = ((($0)) + 20|0);
  10308. HEAPF32[$$sroa$8$0$$sroa_idx20>>2] = $14;
  10309. $$sroa$9$0$$sroa_idx22 = ((($0)) + 24|0);
  10310. HEAPF32[$$sroa$9$0$$sroa_idx22>>2] = 0.0;
  10311. $$sroa$10$0$$sroa_idx24 = ((($0)) + 28|0);
  10312. HEAPF32[$$sroa$10$0$$sroa_idx24>>2] = $25;
  10313. $$sroa$11$0$$sroa_idx26 = ((($0)) + 32|0);
  10314. HEAPF32[$$sroa$11$0$$sroa_idx26>>2] = 0.0;
  10315. $$sroa$12$0$$sroa_idx28 = ((($0)) + 36|0);
  10316. HEAPF32[$$sroa$12$0$$sroa_idx28>>2] = 0.0;
  10317. $$sroa$13$0$$sroa_idx30 = ((($0)) + 40|0);
  10318. HEAPF32[$$sroa$13$0$$sroa_idx30>>2] = $15;
  10319. $$sroa$14$0$$sroa_idx32 = ((($0)) + 44|0);
  10320. HEAPF32[$$sroa$14$0$$sroa_idx32>>2] = $30;
  10321. $$sroa$15$0$$sroa_idx34 = ((($0)) + 48|0);
  10322. HEAPF32[$$sroa$15$0$$sroa_idx34>>2] = 0.0;
  10323. $$sroa$16$0$$sroa_idx36 = ((($0)) + 52|0);
  10324. HEAPF32[$$sroa$16$0$$sroa_idx36>>2] = 0.0;
  10325. $$sroa$17$0$$sroa_idx38 = ((($0)) + 56|0);
  10326. HEAPF32[$$sroa$17$0$$sroa_idx38>>2] = 0.0;
  10327. $$sroa$18$0$$sroa_idx40 = ((($0)) + 60|0);
  10328. HEAPF32[$$sroa$18$0$$sroa_idx40>>2] = 1.0;
  10329. return;
  10330. }
  10331. function _ProcessGestureEvent($0) {
  10332. $0 = $0|0;
  10333. 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;
  10334. 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;
  10335. 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;
  10336. 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;
  10337. 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;
  10338. 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;
  10339. 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;
  10340. 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;
  10341. 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;
  10342. var $moveDownPosition2$byval_copy12 = 0, $or$cond = 0, $or$cond3 = 0, $or$cond5 = 0, $or$cond7 = 0, $or$cond9 = 0, label = 0, sp = 0;
  10343. sp = STACKTOP;
  10344. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  10345. $moveDownPosition2$byval_copy12 = sp + 8|0;
  10346. $moveDownPosition$byval_copy11 = sp;
  10347. $1 = ((($0)) + 4|0);
  10348. $2 = HEAP32[$1>>2]|0;
  10349. HEAP32[4875] = $2;
  10350. $3 = ($2|0)<(2);
  10351. $4 = HEAP32[$0>>2]|0;
  10352. $5 = ($4|0)==(1);
  10353. if (!($3)) {
  10354. if ($5) {
  10355. $88 = ((($0)) + 24|0);
  10356. $89 = $88;
  10357. $90 = $89;
  10358. $91 = HEAP32[$90>>2]|0;
  10359. $92 = (($89) + 4)|0;
  10360. $93 = $92;
  10361. $94 = HEAP32[$93>>2]|0;
  10362. $95 = 19152;
  10363. $96 = $95;
  10364. HEAP32[$96>>2] = $91;
  10365. $97 = (($95) + 4)|0;
  10366. $98 = $97;
  10367. HEAP32[$98>>2] = $94;
  10368. $99 = ((($0)) + 32|0);
  10369. $100 = $99;
  10370. $101 = $100;
  10371. $102 = HEAP32[$101>>2]|0;
  10372. $103 = (($100) + 4)|0;
  10373. $104 = $103;
  10374. $105 = HEAP32[$104>>2]|0;
  10375. $106 = 19192;
  10376. $107 = $106;
  10377. HEAP32[$107>>2] = $102;
  10378. $108 = (($106) + 4)|0;
  10379. $109 = $108;
  10380. HEAP32[$109>>2] = $105;
  10381. $110 = +HEAPF32[4798];
  10382. $111 = +HEAPF32[4788];
  10383. $112 = $110 - $111;
  10384. HEAPF32[4800] = $112;
  10385. $113 = +HEAPF32[(19196)>>2];
  10386. $114 = +HEAPF32[(19156)>>2];
  10387. $115 = $113 - $114;
  10388. HEAPF32[(19204)>>2] = $115;
  10389. HEAP32[4874] = 4;
  10390. STACKTOP = sp;return;
  10391. }
  10392. switch ($4|0) {
  10393. case 2: {
  10394. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19184>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19184+4>>2]|0;
  10395. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19208>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19208+4>>2]|0;
  10396. $116 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10397. HEAPF32[4880] = $116;
  10398. $117 = 19184;
  10399. $118 = $117;
  10400. $119 = HEAP32[$118>>2]|0;
  10401. $120 = (($117) + 4)|0;
  10402. $121 = $120;
  10403. $122 = HEAP32[$121>>2]|0;
  10404. $123 = 19152;
  10405. $124 = $123;
  10406. HEAP32[$124>>2] = $119;
  10407. $125 = (($123) + 4)|0;
  10408. $126 = $125;
  10409. HEAP32[$126>>2] = $122;
  10410. $127 = 19208;
  10411. $128 = $127;
  10412. $129 = HEAP32[$128>>2]|0;
  10413. $130 = (($127) + 4)|0;
  10414. $131 = $130;
  10415. $132 = HEAP32[$131>>2]|0;
  10416. $133 = 19192;
  10417. $134 = $133;
  10418. HEAP32[$134>>2] = $129;
  10419. $135 = (($133) + 4)|0;
  10420. $136 = $135;
  10421. HEAP32[$136>>2] = $132;
  10422. $137 = ((($0)) + 24|0);
  10423. $138 = $137;
  10424. $139 = $138;
  10425. $140 = HEAP32[$139>>2]|0;
  10426. $141 = (($138) + 4)|0;
  10427. $142 = $141;
  10428. $143 = HEAP32[$142>>2]|0;
  10429. $144 = 19184;
  10430. $145 = $144;
  10431. HEAP32[$145>>2] = $140;
  10432. $146 = (($144) + 4)|0;
  10433. $147 = $146;
  10434. HEAP32[$147>>2] = $143;
  10435. $148 = ((($0)) + 32|0);
  10436. $149 = $148;
  10437. $150 = $149;
  10438. $151 = HEAP32[$150>>2]|0;
  10439. $152 = (($149) + 4)|0;
  10440. $153 = $152;
  10441. $154 = HEAP32[$153>>2]|0;
  10442. $155 = 19208;
  10443. $156 = $155;
  10444. HEAP32[$156>>2] = $151;
  10445. $157 = (($155) + 4)|0;
  10446. $158 = $157;
  10447. HEAP32[$158>>2] = $154;
  10448. $159 = +HEAPF32[4802];
  10449. $160 = +HEAPF32[4796];
  10450. $161 = $159 - $160;
  10451. HEAPF32[4800] = $161;
  10452. $162 = +HEAPF32[(19212)>>2];
  10453. $163 = +HEAPF32[(19188)>>2];
  10454. $164 = $162 - $163;
  10455. HEAPF32[(19204)>>2] = $164;
  10456. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19152>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19152+4>>2]|0;
  10457. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19184>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19184+4>>2]|0;
  10458. $165 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10459. $166 = !($165 >= 0.004999999888241291);
  10460. if ($166) {
  10461. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19192>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19192+4>>2]|0;
  10462. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19208>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19208+4>>2]|0;
  10463. $167 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10464. $168 = !($167 >= 0.004999999888241291);
  10465. if ($168) {
  10466. $$sink16 = 4;
  10467. } else {
  10468. label = 29;
  10469. }
  10470. } else {
  10471. label = 29;
  10472. }
  10473. if ((label|0) == 29) {
  10474. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19184>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19184+4>>2]|0;
  10475. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19208>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19208+4>>2]|0;
  10476. $169 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10477. $170 = +HEAPF32[4880];
  10478. $171 = $169 - $170;
  10479. $172 = $171 < 0.0;
  10480. $$sink11 = $172 ? 256 : 512;
  10481. $$sink16 = $$sink11;
  10482. }
  10483. HEAP32[4874] = $$sink16;
  10484. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19184>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19184+4>>2]|0;
  10485. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19208>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19208+4>>2]|0;
  10486. $173 = (+_Vector2Angle($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10487. $174 = 360.0 - $173;
  10488. HEAPF32[4881] = $174;
  10489. STACKTOP = sp;return;
  10490. break;
  10491. }
  10492. case 0: {
  10493. HEAPF32[4880] = 0.0;
  10494. HEAPF32[4881] = 0.0;
  10495. HEAPF32[4800] = 0.0;
  10496. HEAPF32[(19204)>>2] = 0.0;
  10497. HEAP32[4875] = 0;
  10498. HEAP32[4874] = 0;
  10499. STACKTOP = sp;return;
  10500. break;
  10501. }
  10502. default: {
  10503. STACKTOP = sp;return;
  10504. }
  10505. }
  10506. }
  10507. if ($5) {
  10508. $6 = HEAP32[4876]|0;
  10509. $7 = (($6) + 1)|0;
  10510. HEAP32[4876] = $7;
  10511. $8 = HEAP32[4874]|0;
  10512. $9 = ($8|0)==(0);
  10513. $10 = ($6|0)>(0);
  10514. $or$cond = $10 & $9;
  10515. if ($or$cond) {
  10516. $11 = ((($0)) + 24|0);
  10517. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19152>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19152+4>>2]|0;
  10518. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[$11>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[$11+4>>2]|0;
  10519. $12 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10520. $13 = $12 < 0.029999999329447746;
  10521. if ($13) {
  10522. HEAP32[4874] = 2;
  10523. HEAP32[4876] = 0;
  10524. } else {
  10525. label = 6;
  10526. }
  10527. } else {
  10528. label = 6;
  10529. }
  10530. if ((label|0) == 6) {
  10531. HEAP32[4876] = 1;
  10532. HEAP32[4874] = 1;
  10533. }
  10534. $14 = ((($0)) + 24|0);
  10535. $15 = $14;
  10536. $16 = $15;
  10537. $17 = HEAP32[$16>>2]|0;
  10538. $18 = (($15) + 4)|0;
  10539. $19 = $18;
  10540. $20 = HEAP32[$19>>2]|0;
  10541. $21 = 19152;
  10542. $22 = $21;
  10543. HEAP32[$22>>2] = $17;
  10544. $23 = (($21) + 4)|0;
  10545. $24 = $23;
  10546. HEAP32[$24>>2] = $20;
  10547. $25 = 19160;
  10548. $26 = $25;
  10549. HEAP32[$26>>2] = $17;
  10550. $27 = (($25) + 4)|0;
  10551. $28 = $27;
  10552. HEAP32[$28>>2] = $20;
  10553. $29 = 19168;
  10554. $30 = $29;
  10555. HEAP32[$30>>2] = $17;
  10556. $31 = (($29) + 4)|0;
  10557. $32 = $31;
  10558. HEAP32[$32>>2] = $20;
  10559. $33 = ((($0)) + 8|0);
  10560. $34 = HEAP32[$33>>2]|0;
  10561. HEAP32[4] = $34;
  10562. HEAPF32[4794] = 0.0;
  10563. HEAPF32[(19180)>>2] = 0.0;
  10564. STACKTOP = sp;return;
  10565. }
  10566. switch ($4|0) {
  10567. case 0: {
  10568. $35 = HEAP32[4874]|0;
  10569. $36 = ($35|0)==(8);
  10570. if ($36) {
  10571. $37 = ((($0)) + 24|0);
  10572. $38 = $37;
  10573. $39 = $38;
  10574. $40 = HEAP32[$39>>2]|0;
  10575. $41 = (($38) + 4)|0;
  10576. $42 = $41;
  10577. $43 = HEAP32[$42>>2]|0;
  10578. $44 = 19168;
  10579. $45 = $44;
  10580. HEAP32[$45>>2] = $40;
  10581. $46 = (($44) + 4)|0;
  10582. $47 = $46;
  10583. HEAP32[$47>>2] = $43;
  10584. }
  10585. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19152>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19152+4>>2]|0;
  10586. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19168>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19168+4>>2]|0;
  10587. $48 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10588. $49 = $48 / 0.0;
  10589. HEAPF32[4877] = $49;
  10590. HEAP32[4878] = 0;
  10591. $50 = $49 > 5.0000002374872565E-4;
  10592. if ($50) {
  10593. $51 = HEAP32[4]|0;
  10594. $52 = ((($0)) + 8|0);
  10595. $53 = HEAP32[$52>>2]|0;
  10596. $54 = ($51|0)==($53|0);
  10597. if ($54) {
  10598. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19152>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19152+4>>2]|0;
  10599. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19168>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19168+4>>2]|0;
  10600. $55 = (+_Vector2Angle($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10601. $56 = 360.0 - $55;
  10602. HEAPF32[4879] = $56;
  10603. $57 = $56 < 30.0;
  10604. $58 = $56 > 330.0;
  10605. $or$cond3 = $57 | $58;
  10606. if ($or$cond3) {
  10607. $$sink10 = 16;
  10608. } else {
  10609. $59 = $56 > 30.0;
  10610. $60 = $56 < 120.0;
  10611. $or$cond5 = $59 & $60;
  10612. if ($or$cond5) {
  10613. $$sink10 = 64;
  10614. } else {
  10615. $61 = $56 > 120.0;
  10616. $62 = $56 < 210.0;
  10617. $or$cond7 = $61 & $62;
  10618. $63 = $56 > 210.0;
  10619. $64 = $56 < 300.0;
  10620. $or$cond9 = $63 & $64;
  10621. $$sink = $or$cond9 ? 128 : 0;
  10622. $$$sink = $or$cond7 ? 32 : $$sink;
  10623. $$sink10 = $$$sink;
  10624. }
  10625. }
  10626. } else {
  10627. label = 16;
  10628. }
  10629. } else {
  10630. label = 16;
  10631. }
  10632. if ((label|0) == 16) {
  10633. HEAPF32[4877] = 0.0;
  10634. HEAPF32[4879] = 0.0;
  10635. $$sink10 = 0;
  10636. }
  10637. HEAP32[4874] = $$sink10;
  10638. HEAPF32[4790] = 0.0;
  10639. HEAPF32[(19164)>>2] = 0.0;
  10640. HEAP32[4875] = 0;
  10641. STACKTOP = sp;return;
  10642. break;
  10643. }
  10644. case 2: {
  10645. $65 = HEAP32[4878]|0;
  10646. $66 = ($65|0)==(0);
  10647. if ($66) {
  10648. HEAP32[4878] = 1;
  10649. }
  10650. $67 = ((($0)) + 24|0);
  10651. $68 = $67;
  10652. $69 = $68;
  10653. $70 = HEAP32[$69>>2]|0;
  10654. $71 = (($68) + 4)|0;
  10655. $72 = $71;
  10656. $73 = HEAP32[$72>>2]|0;
  10657. $74 = 19184;
  10658. $75 = $74;
  10659. HEAP32[$75>>2] = $70;
  10660. $76 = (($74) + 4)|0;
  10661. $77 = $76;
  10662. HEAP32[$77>>2] = $73;
  10663. $78 = HEAP32[4874]|0;
  10664. $79 = ($78|0)==(4);
  10665. if ($79) {
  10666. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19152>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19152+4>>2]|0;
  10667. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19184>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19184+4>>2]|0;
  10668. $80 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10669. $81 = !($80 >= 0.014999999664723873);
  10670. if (!($81)) {
  10671. HEAP32[4874] = 8;
  10672. }
  10673. }
  10674. $82 = +HEAPF32[4796];
  10675. $83 = +HEAPF32[4790];
  10676. $84 = $82 - $83;
  10677. HEAPF32[4794] = $84;
  10678. $85 = +HEAPF32[(19188)>>2];
  10679. $86 = +HEAPF32[(19164)>>2];
  10680. $87 = $85 - $86;
  10681. HEAPF32[(19180)>>2] = $87;
  10682. STACKTOP = sp;return;
  10683. break;
  10684. }
  10685. default: {
  10686. STACKTOP = sp;return;
  10687. }
  10688. }
  10689. }
  10690. function _UpdateGestures() {
  10691. 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;
  10692. sp = STACKTOP;
  10693. $0 = HEAP32[4874]|0;
  10694. $$off = (($0) + -1)|0;
  10695. $1 = ($$off>>>0)<(2);
  10696. $2 = HEAP32[4875]|0;
  10697. $3 = ($2|0)<(2);
  10698. $or$cond3 = $1 & $3;
  10699. if ($or$cond3) {
  10700. HEAP32[4874] = 4;
  10701. }
  10702. $4 = HEAP32[4874]|0;
  10703. $5 = (($4) + -16)|0;
  10704. $6 = $5 >>> 4;
  10705. $7 = $5 << 28;
  10706. $8 = $6 | $7;
  10707. switch ($8|0) {
  10708. case 0: case 1: case 3: case 7: {
  10709. break;
  10710. }
  10711. default: {
  10712. return;
  10713. }
  10714. }
  10715. HEAP32[4874] = 0;
  10716. return;
  10717. }
  10718. function _GetMousePosition($0) {
  10719. $0 = $0|0;
  10720. 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;
  10721. sp = STACKTOP;
  10722. $1 = 19216;
  10723. $2 = $1;
  10724. $3 = HEAP32[$2>>2]|0;
  10725. $4 = (($1) + 4)|0;
  10726. $5 = $4;
  10727. $6 = HEAP32[$5>>2]|0;
  10728. $7 = $0;
  10729. $8 = $7;
  10730. HEAP32[$8>>2] = $3;
  10731. $9 = (($7) + 4)|0;
  10732. $10 = $9;
  10733. HEAP32[$10>>2] = $6;
  10734. return;
  10735. }
  10736. function _GetScreenWidth() {
  10737. var $0 = 0, label = 0, sp = 0;
  10738. sp = STACKTOP;
  10739. $0 = HEAP32[4884]|0;
  10740. return ($0|0);
  10741. }
  10742. function _GetScreenHeight() {
  10743. var $0 = 0, label = 0, sp = 0;
  10744. sp = STACKTOP;
  10745. $0 = HEAP32[4883]|0;
  10746. return ($0|0);
  10747. }
  10748. function _InitWindow($0,$1,$2) {
  10749. $0 = $0|0;
  10750. $1 = $1|0;
  10751. $2 = $2|0;
  10752. 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;
  10753. sp = STACKTOP;
  10754. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  10755. $vararg_buffer = sp;
  10756. _TraceLog(0,4474,$vararg_buffer);
  10757. HEAP32[4886] = $2;
  10758. _InitGraphicsDevice($0,$1);
  10759. _LoadDefaultFont();
  10760. _InitTimer();
  10761. (_emscripten_set_fullscreenchange_callback((0|0),(0|0),1,(4|0))|0);
  10762. (_emscripten_set_keypress_callback((4503|0),(0|0),1,(5|0))|0);
  10763. (_emscripten_set_click_callback((4503|0),(0|0),1,(6|0))|0);
  10764. (_emscripten_set_touchstart_callback((4503|0),(0|0),1,(7|0))|0);
  10765. (_emscripten_set_touchend_callback((4503|0),(0|0),1,(7|0))|0);
  10766. (_emscripten_set_touchmove_callback((4503|0),(0|0),1,(7|0))|0);
  10767. (_emscripten_set_touchcancel_callback((4503|0),(0|0),1,(7|0))|0);
  10768. (_emscripten_set_gamepadconnected_callback((0|0),1,(8|0))|0);
  10769. (_emscripten_set_gamepaddisconnected_callback((0|0),1,(8|0))|0);
  10770. $3 = HEAP32[4884]|0;
  10771. $4 = (+($3|0));
  10772. $5 = $4 * 0.5;
  10773. HEAPF32[4804] = $5;
  10774. $6 = HEAP32[4883]|0;
  10775. $7 = (+($6|0));
  10776. $8 = $7 * 0.5;
  10777. HEAPF32[(19220)>>2] = $8;
  10778. $9 = HEAP32[4887]|0;
  10779. $10 = ($9|0)==(0);
  10780. if ($10) {
  10781. STACKTOP = sp;return;
  10782. }
  10783. _SetTargetFPS(60);
  10784. _LogoAnimation();
  10785. STACKTOP = sp;return;
  10786. }
  10787. function _TraceLog($0,$1,$varargs) {
  10788. $0 = $0|0;
  10789. $1 = $1|0;
  10790. $varargs = $varargs|0;
  10791. 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;
  10792. sp = STACKTOP;
  10793. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  10794. $2 = sp;
  10795. switch ($0|0) {
  10796. case 0: {
  10797. ;HEAP8[19256>>0]=HEAP8[9032>>0]|0;HEAP8[19256+1>>0]=HEAP8[9032+1>>0]|0;HEAP8[19256+2>>0]=HEAP8[9032+2>>0]|0;HEAP8[19256+3>>0]=HEAP8[9032+3>>0]|0;HEAP8[19256+4>>0]=HEAP8[9032+4>>0]|0;HEAP8[19256+5>>0]=HEAP8[9032+5>>0]|0;HEAP8[19256+6>>0]=HEAP8[9032+6>>0]|0;
  10798. break;
  10799. }
  10800. case 1: {
  10801. $3 = 19256;
  10802. $4 = $3;
  10803. HEAP32[$4>>2] = 1330795077;
  10804. $5 = (($3) + 4)|0;
  10805. $6 = $5;
  10806. HEAP32[$6>>2] = 2112082;
  10807. break;
  10808. }
  10809. case 2: {
  10810. dest=19256; src=9039; 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));
  10811. break;
  10812. }
  10813. case 3: {
  10814. $7 = 19256;
  10815. $8 = $7;
  10816. HEAP32[$8>>2] = 1430406468;
  10817. $9 = (($7) + 4)|0;
  10818. $10 = $9;
  10819. HEAP32[$10>>2] = 2112071;
  10820. break;
  10821. }
  10822. default: {
  10823. }
  10824. }
  10825. (_strcat(19256,$1)|0);
  10826. $strlen = (_strlen(19256)|0);
  10827. $endptr = (19256 + ($strlen)|0);
  10828. HEAP8[$endptr>>0]=10&255;HEAP8[$endptr+1>>0]=10>>8;
  10829. HEAP32[$2>>2] = $varargs;
  10830. $11 = ($0|0)==(3);
  10831. if ($11) {
  10832. STACKTOP = sp;return;
  10833. }
  10834. (_vprintf(19256,$2)|0);
  10835. $12 = ($0|0)==(1);
  10836. if ($12) {
  10837. _exit(1);
  10838. // unreachable;
  10839. } else {
  10840. STACKTOP = sp;return;
  10841. }
  10842. }
  10843. function _InitGraphicsDevice($0,$1) {
  10844. $0 = $0|0;
  10845. $1 = $1|0;
  10846. 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;
  10847. 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;
  10848. 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;
  10849. 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;
  10850. 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;
  10851. var label = 0, sp = 0, src = 0, stop = 0;
  10852. sp = STACKTOP;
  10853. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  10854. $$byval_copy = sp + 136|0;
  10855. $vararg_buffer22 = sp + 64|0;
  10856. $vararg_buffer18 = sp + 56|0;
  10857. $vararg_buffer14 = sp + 48|0;
  10858. $vararg_buffer10 = sp + 40|0;
  10859. $vararg_buffer8 = sp + 32|0;
  10860. $vararg_buffer6 = sp + 24|0;
  10861. $vararg_buffer3 = sp + 16|0;
  10862. $vararg_buffer1 = sp + 8|0;
  10863. $vararg_buffer = sp;
  10864. $2 = sp + 72|0;
  10865. $3 = sp + 140|0;
  10866. HEAP32[4884] = $0;
  10867. HEAP32[4883] = $1;
  10868. _MatrixIdentity($2);
  10869. dest=19624; 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));
  10870. (_glfwSetErrorCallback((2|0))|0);
  10871. $4 = (_glfwInit()|0);
  10872. $5 = ($4|0)==(0);
  10873. if ($5) {
  10874. _TraceLog(1,5174,$vararg_buffer);
  10875. }
  10876. $6 = HEAP32[4884]|0;
  10877. HEAP32[4922] = $6;
  10878. $7 = HEAP32[4883]|0;
  10879. HEAP32[4923] = $7;
  10880. _glfwDefaultWindowHints();
  10881. $8 = HEAP8[22360]|0;
  10882. $9 = $8 & 4;
  10883. $10 = ($9<<24>>24)==(0);
  10884. if ($10) {
  10885. _glfwWindowHint(131075,0);
  10886. } else {
  10887. _glfwWindowHint(131075,1);
  10888. }
  10889. $11 = HEAP8[22360]|0;
  10890. $12 = $11 & 8;
  10891. $13 = ($12<<24>>24)==(0);
  10892. if (!($13)) {
  10893. _glfwWindowHint(131077,1);
  10894. }
  10895. $14 = HEAP8[22360]|0;
  10896. $15 = $14 & 32;
  10897. $16 = ($15<<24>>24)==(0);
  10898. if (!($16)) {
  10899. _glfwWindowHint(135181,4);
  10900. _TraceLog(0,5200,$vararg_buffer1);
  10901. }
  10902. $17 = (_rlGetVersion()|0);
  10903. $18 = ($17|0)==(2);
  10904. if ($18) {
  10905. _glfwWindowHint(139266,2);
  10906. _glfwWindowHint(139267,1);
  10907. } else {
  10908. $19 = (_rlGetVersion()|0);
  10909. $20 = ($19|0)==(3);
  10910. if ($20) {
  10911. _glfwWindowHint(139266,3);
  10912. _glfwWindowHint(139267,3);
  10913. _glfwWindowHint(139272,204801);
  10914. _glfwWindowHint(139270,0);
  10915. }
  10916. }
  10917. $21 = HEAP32[4924]|0;
  10918. $22 = ($21|0)==(0);
  10919. if ($22) {
  10920. $47 = HEAP32[4884]|0;
  10921. $48 = HEAP32[4883]|0;
  10922. $49 = HEAP32[4886]|0;
  10923. $50 = (_glfwCreateWindow(($47|0),($48|0),($49|0),(0|0),(0|0))|0);
  10924. HEAP32[4882] = $50;
  10925. $51 = HEAP32[4884]|0;
  10926. HEAP32[4925] = $51;
  10927. $52 = HEAP32[4883]|0;
  10928. HEAP32[4926] = $52;
  10929. $54 = $50;
  10930. } else {
  10931. $23 = (_glfwGetPrimaryMonitor()|0);
  10932. $24 = (_glfwGetVideoModes(($23|0),($$byval_copy|0))|0);
  10933. $25 = HEAP32[$$byval_copy>>2]|0;
  10934. $26 = ($25|0)>(0);
  10935. L22: do {
  10936. if ($26) {
  10937. $27 = HEAP32[4884]|0;
  10938. $28 = HEAP32[$$byval_copy>>2]|0;
  10939. $29 = HEAP32[4883]|0;
  10940. $$015 = 0;
  10941. while(1) {
  10942. $30 = (($24) + (($$015*24)|0)|0);
  10943. $31 = HEAP32[$30>>2]|0;
  10944. $32 = ($31|0)<($27|0);
  10945. if (!($32)) {
  10946. $33 = (((($24) + (($$015*24)|0)|0)) + 4|0);
  10947. $34 = HEAP32[$33>>2]|0;
  10948. $35 = ($34|0)<($29|0);
  10949. if (!($35)) {
  10950. break;
  10951. }
  10952. }
  10953. $36 = (($$015) + 1)|0;
  10954. $37 = ($36|0)<($28|0);
  10955. if ($37) {
  10956. $$015 = $36;
  10957. } else {
  10958. break L22;
  10959. }
  10960. }
  10961. HEAP32[4922] = $31;
  10962. HEAP32[4923] = $34;
  10963. }
  10964. } while(0);
  10965. $38 = HEAP32[4922]|0;
  10966. $39 = HEAP32[4923]|0;
  10967. HEAP32[$vararg_buffer3>>2] = $38;
  10968. $vararg_ptr5 = ((($vararg_buffer3)) + 4|0);
  10969. HEAP32[$vararg_ptr5>>2] = $39;
  10970. _TraceLog(2,5225,$vararg_buffer3);
  10971. $40 = HEAP32[4922]|0;
  10972. $41 = HEAP32[4923]|0;
  10973. _SetupFramebufferSize($40,$41);
  10974. $42 = HEAP32[4922]|0;
  10975. $43 = HEAP32[4923]|0;
  10976. $44 = HEAP32[4886]|0;
  10977. $45 = (_glfwGetPrimaryMonitor()|0);
  10978. $46 = (_glfwCreateWindow(($42|0),($43|0),($44|0),($45|0),(0|0))|0);
  10979. HEAP32[4882] = $46;
  10980. $54 = $46;
  10981. }
  10982. $53 = ($54|0)==(0|0);
  10983. if ($53) {
  10984. _glfwTerminate();
  10985. _TraceLog(1,5263,$vararg_buffer6);
  10986. } else {
  10987. _TraceLog(0,5296,$vararg_buffer8);
  10988. $55 = HEAP32[4925]|0;
  10989. $56 = HEAP32[4926]|0;
  10990. HEAP32[$vararg_buffer10>>2] = $55;
  10991. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  10992. HEAP32[$vararg_ptr13>>2] = $56;
  10993. _TraceLog(0,5336,$vararg_buffer10);
  10994. $57 = HEAP32[4884]|0;
  10995. $58 = HEAP32[4883]|0;
  10996. HEAP32[$vararg_buffer14>>2] = $57;
  10997. $vararg_ptr17 = ((($vararg_buffer14)) + 4|0);
  10998. HEAP32[$vararg_ptr17>>2] = $58;
  10999. _TraceLog(0,5357,$vararg_buffer14);
  11000. $59 = HEAP32[4927]|0;
  11001. $60 = HEAP32[4928]|0;
  11002. HEAP32[$vararg_buffer18>>2] = $59;
  11003. $vararg_ptr21 = ((($vararg_buffer18)) + 4|0);
  11004. HEAP32[$vararg_ptr21>>2] = $60;
  11005. _TraceLog(0,5378,$vararg_buffer18);
  11006. }
  11007. $61 = HEAP32[4882]|0;
  11008. (_glfwSetWindowSizeCallback(($61|0),(1|0))|0);
  11009. $62 = HEAP32[4882]|0;
  11010. (_glfwSetCursorEnterCallback(($62|0),(3|0))|0);
  11011. $63 = HEAP32[4882]|0;
  11012. (_glfwSetKeyCallback(($63|0),(1|0))|0);
  11013. $64 = HEAP32[4882]|0;
  11014. (_glfwSetMouseButtonCallback(($64|0),(1|0))|0);
  11015. $65 = HEAP32[4882]|0;
  11016. (_glfwSetCursorPosCallback(($65|0),(1|0))|0);
  11017. $66 = HEAP32[4882]|0;
  11018. (_glfwSetCharCallback(($66|0),(4|0))|0);
  11019. $67 = HEAP32[4882]|0;
  11020. (_glfwSetScrollCallback(($67|0),(2|0))|0);
  11021. $68 = HEAP32[4882]|0;
  11022. (_glfwSetWindowIconifyCallback(($68|0),(5|0))|0);
  11023. $69 = HEAP32[4882]|0;
  11024. _glfwMakeContextCurrent(($69|0));
  11025. _glfwSwapInterval(0);
  11026. $70 = HEAP8[22360]|0;
  11027. $71 = $70 & 64;
  11028. $72 = ($71<<24>>24)==(0);
  11029. if ($72) {
  11030. $73 = HEAP32[4884]|0;
  11031. $74 = HEAP32[4883]|0;
  11032. _rlglInit($73,$74);
  11033. _SetupViewport();
  11034. _rlMatrixMode(5889);
  11035. _rlLoadIdentity();
  11036. $75 = HEAP32[4925]|0;
  11037. $76 = HEAP32[4927]|0;
  11038. $77 = (($75) - ($76))|0;
  11039. $78 = (+($77|0));
  11040. $79 = HEAP32[4926]|0;
  11041. $80 = HEAP32[4928]|0;
  11042. $81 = (($79) - ($80))|0;
  11043. $82 = (+($81|0));
  11044. _rlOrtho(0.0,$78,$82,0.0,0.0,1.0);
  11045. _rlMatrixMode(5888);
  11046. _rlLoadIdentity();
  11047. HEAP8[$3>>0] = -11;
  11048. $83 = ((($3)) + 1|0);
  11049. HEAP8[$83>>0] = -11;
  11050. $84 = ((($3)) + 2|0);
  11051. HEAP8[$84>>0] = -11;
  11052. $85 = ((($3)) + 3|0);
  11053. HEAP8[$85>>0] = -1;
  11054. ;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;
  11055. _ClearBackground($$byval_copy);
  11056. STACKTOP = sp;return;
  11057. }
  11058. _glfwSwapInterval(1);
  11059. _TraceLog(0,5403,$vararg_buffer22);
  11060. $73 = HEAP32[4884]|0;
  11061. $74 = HEAP32[4883]|0;
  11062. _rlglInit($73,$74);
  11063. _SetupViewport();
  11064. _rlMatrixMode(5889);
  11065. _rlLoadIdentity();
  11066. $75 = HEAP32[4925]|0;
  11067. $76 = HEAP32[4927]|0;
  11068. $77 = (($75) - ($76))|0;
  11069. $78 = (+($77|0));
  11070. $79 = HEAP32[4926]|0;
  11071. $80 = HEAP32[4928]|0;
  11072. $81 = (($79) - ($80))|0;
  11073. $82 = (+($81|0));
  11074. _rlOrtho(0.0,$78,$82,0.0,0.0,1.0);
  11075. _rlMatrixMode(5888);
  11076. _rlLoadIdentity();
  11077. HEAP8[$3>>0] = -11;
  11078. $83 = ((($3)) + 1|0);
  11079. HEAP8[$83>>0] = -11;
  11080. $84 = ((($3)) + 2|0);
  11081. HEAP8[$84>>0] = -11;
  11082. $85 = ((($3)) + 3|0);
  11083. HEAP8[$85>>0] = -1;
  11084. ;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;
  11085. _ClearBackground($$byval_copy);
  11086. STACKTOP = sp;return;
  11087. }
  11088. function _LoadDefaultFont() {
  11089. 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;
  11090. 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;
  11091. 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;
  11092. var $vararg_buffer = 0, label = 0, sp = 0;
  11093. sp = STACKTOP;
  11094. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  11095. $$byval_copy1 = sp + 44|0;
  11096. $vararg_buffer = sp;
  11097. $0 = sp + 4|0;
  11098. $1 = sp + 24|0;
  11099. HEAP32[(19592)>>2] = 224;
  11100. $2 = (_malloc(65536)|0);
  11101. _memset(($2|0),0,65536)|0;
  11102. $$095104 = 0;$$096103 = 0;
  11103. while(1) {
  11104. $3 = (20 + ($$095104<<2)|0);
  11105. $4 = HEAP32[$3>>2]|0;
  11106. $$097102 = 31;
  11107. while(1) {
  11108. $16 = 1 << $$097102;
  11109. $17 = $4 & $16;
  11110. $18 = ($17|0)==(0);
  11111. if (!($18)) {
  11112. $19 = (($$097102) + ($$096103))|0;
  11113. $$sroa$0$0$$sroa_idx = (($2) + ($19<<2)|0);
  11114. 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;
  11115. }
  11116. $20 = (($$097102) + -1)|0;
  11117. $21 = ($$097102|0)>(0);
  11118. if ($21) {
  11119. $$097102 = $20;
  11120. } else {
  11121. break;
  11122. }
  11123. }
  11124. $12 = (($$095104) + 1)|0;
  11125. $13 = ($$095104|0)>(511);
  11126. $$ = $13 ? 0 : $12;
  11127. $14 = (($$096103) + 32)|0;
  11128. $15 = ($14|0)<(16384);
  11129. if ($15) {
  11130. $$095104 = $$;$$096103 = $14;
  11131. } else {
  11132. break;
  11133. }
  11134. }
  11135. _LoadImageEx($0,$2,128,128);
  11136. _ImageFormat($0,2);
  11137. _free($2);
  11138. ;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;
  11139. _LoadTextureFromImage($1,$$byval_copy1);
  11140. ;HEAP32[19568>>2]=HEAP32[$1>>2]|0;HEAP32[19568+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[19568+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[19568+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[19568+16>>2]=HEAP32[$1+16>>2]|0;
  11141. ;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;
  11142. _UnloadImage($$byval_copy1);
  11143. $5 = HEAP32[(19592)>>2]|0;
  11144. $6 = $5 << 5;
  11145. $7 = (_malloc($6)|0);
  11146. HEAP32[(19596)>>2] = $7;
  11147. $8 = ($5|0)>(0);
  11148. if (!($8)) {
  11149. $$lcssa = $7;
  11150. $22 = ((($$lcssa)) + 16|0);
  11151. $23 = HEAP32[$22>>2]|0;
  11152. HEAP32[(19588)>>2] = $23;
  11153. $24 = HEAP32[4892]|0;
  11154. HEAP32[$vararg_buffer>>2] = $24;
  11155. _TraceLog(0,4698,$vararg_buffer);
  11156. STACKTOP = sp;return;
  11157. }
  11158. $9 = HEAP32[(19572)>>2]|0;
  11159. $10 = HEAP32[(19592)>>2]|0;
  11160. $11 = HEAP32[(19596)>>2]|0;
  11161. $$0101 = 0;$$090100 = 1;$$09299 = 0;$27 = $7;
  11162. while(1) {
  11163. $25 = (($$0101) + 32)|0;
  11164. $26 = (($27) + ($$0101<<5)|0);
  11165. HEAP32[$26>>2] = $25;
  11166. $28 = (((($27) + ($$0101<<5)|0)) + 4|0);
  11167. HEAP32[$28>>2] = $$090100;
  11168. $29 = ($$09299*11)|0;
  11169. $30 = (($29) + 1)|0;
  11170. $31 = (((($27) + ($$0101<<5)|0)) + 8|0);
  11171. HEAP32[$31>>2] = $30;
  11172. $32 = (2068 + ($$0101<<2)|0);
  11173. $33 = HEAP32[$32>>2]|0;
  11174. $34 = (((($27) + ($$0101<<5)|0)) + 12|0);
  11175. HEAP32[$34>>2] = $33;
  11176. $35 = (((($27) + ($$0101<<5)|0)) + 16|0);
  11177. HEAP32[$35>>2] = 10;
  11178. $36 = (($$090100) + 1)|0;
  11179. $37 = (($36) + ($33))|0;
  11180. $38 = ($37|0)<($9|0);
  11181. $39 = (($$09299) + 1)|0;
  11182. if ($38) {
  11183. $$191 = $37;$$193 = $$09299;
  11184. } else {
  11185. $40 = ($39*11)|0;
  11186. $41 = (($40) + 1)|0;
  11187. $42 = (($33) + 2)|0;
  11188. HEAP32[$28>>2] = 1;
  11189. HEAP32[$31>>2] = $41;
  11190. $$191 = $42;$$193 = $39;
  11191. }
  11192. $43 = (((($27) + ($$0101<<5)|0)) + 20|0);
  11193. HEAP32[$43>>2] = 0;
  11194. $44 = (((($27) + ($$0101<<5)|0)) + 24|0);
  11195. HEAP32[$44>>2] = 0;
  11196. $45 = (((($27) + ($$0101<<5)|0)) + 28|0);
  11197. HEAP32[$45>>2] = 0;
  11198. $46 = (($$0101) + 1)|0;
  11199. $47 = ($46|0)<($10|0);
  11200. if ($47) {
  11201. $$0101 = $46;$$090100 = $$191;$$09299 = $$193;$27 = $11;
  11202. } else {
  11203. $$lcssa = $11;
  11204. break;
  11205. }
  11206. }
  11207. $22 = ((($$lcssa)) + 16|0);
  11208. $23 = HEAP32[$22>>2]|0;
  11209. HEAP32[(19588)>>2] = $23;
  11210. $24 = HEAP32[4892]|0;
  11211. HEAP32[$vararg_buffer>>2] = $24;
  11212. _TraceLog(0,4698,$vararg_buffer);
  11213. STACKTOP = sp;return;
  11214. }
  11215. function _InitTimer() {
  11216. var $0 = 0, $1 = 0.0, label = 0, sp = 0;
  11217. sp = STACKTOP;
  11218. $0 = (_time((0|0))|0);
  11219. _srand($0);
  11220. $1 = (+_GetTime());
  11221. HEAPF64[2406] = $1;
  11222. return;
  11223. }
  11224. function _EmscriptenFullscreenChangeCallback($0,$1,$2) {
  11225. $0 = $0|0;
  11226. $1 = $1|0;
  11227. $2 = $2|0;
  11228. 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;
  11229. sp = STACKTOP;
  11230. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  11231. $vararg_buffer4 = sp + 16|0;
  11232. $vararg_buffer = sp;
  11233. $3 = HEAP32[$1>>2]|0;
  11234. $4 = ($3|0)==(0);
  11235. $5 = ((($1)) + 264|0);
  11236. $6 = HEAP32[$5>>2]|0;
  11237. $7 = ((($1)) + 268|0);
  11238. $8 = HEAP32[$7>>2]|0;
  11239. $9 = ((($1)) + 272|0);
  11240. $10 = HEAP32[$9>>2]|0;
  11241. $11 = ((($1)) + 276|0);
  11242. $12 = HEAP32[$11>>2]|0;
  11243. if ($4) {
  11244. HEAP32[$vararg_buffer4>>2] = $6;
  11245. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  11246. HEAP32[$vararg_ptr7>>2] = $8;
  11247. $vararg_ptr8 = ((($vararg_buffer4)) + 8|0);
  11248. HEAP32[$vararg_ptr8>>2] = $10;
  11249. $vararg_ptr9 = ((($vararg_buffer4)) + 12|0);
  11250. HEAP32[$vararg_ptr9>>2] = $12;
  11251. _TraceLog(0,4631,$vararg_buffer4);
  11252. STACKTOP = sp;return 0;
  11253. } else {
  11254. HEAP32[$vararg_buffer>>2] = $6;
  11255. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  11256. HEAP32[$vararg_ptr1>>2] = $8;
  11257. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  11258. HEAP32[$vararg_ptr2>>2] = $10;
  11259. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  11260. HEAP32[$vararg_ptr3>>2] = $12;
  11261. _TraceLog(0,4562,$vararg_buffer);
  11262. STACKTOP = sp;return 0;
  11263. }
  11264. return (0)|0;
  11265. }
  11266. function _EmscriptenKeyboardCallback($0,$1,$2) {
  11267. $0 = $0|0;
  11268. $1 = $1|0;
  11269. $2 = $2|0;
  11270. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  11271. sp = STACKTOP;
  11272. $3 = ($0|0)==(1);
  11273. if (!($3)) {
  11274. return 0;
  11275. }
  11276. $4 = ((($1)) + 32|0);
  11277. $5 = (_strcmp($4,4555)|0);
  11278. $6 = ($5|0)==(0);
  11279. if (!($6)) {
  11280. return 0;
  11281. }
  11282. (_emscripten_exit_pointerlock()|0);
  11283. return 0;
  11284. }
  11285. function _EmscriptenMouseCallback($0,$1,$2) {
  11286. $0 = $0|0;
  11287. $1 = $1|0;
  11288. $2 = $2|0;
  11289. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  11290. sp = STACKTOP;
  11291. STACKTOP = STACKTOP + 272|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(272|0);
  11292. $3 = sp;
  11293. $4 = ($0|0)==(4);
  11294. if (!($4)) {
  11295. STACKTOP = sp;return 0;
  11296. }
  11297. (_emscripten_get_pointerlock_status(($3|0))|0);
  11298. $5 = HEAP32[$3>>2]|0;
  11299. $6 = ($5|0)==(0);
  11300. if ($6) {
  11301. (_emscripten_request_pointerlock((0|0),1)|0);
  11302. } else {
  11303. (_emscripten_exit_pointerlock()|0);
  11304. (_emscripten_get_pointerlock_status(($3|0))|0);
  11305. }
  11306. STACKTOP = sp;return 0;
  11307. }
  11308. function _EmscriptenTouchCallback($0,$1,$2) {
  11309. $0 = $0|0;
  11310. $1 = $1|0;
  11311. $2 = $2|0;
  11312. 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;
  11313. 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;
  11314. 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;
  11315. var $60 = 0.0, $61 = 0.0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  11316. sp = STACKTOP;
  11317. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  11318. $$byval_copy = sp + 56|0;
  11319. $3 = sp;
  11320. switch ($0|0) {
  11321. case 22: {
  11322. $$sink = 1;
  11323. label = 4;
  11324. break;
  11325. }
  11326. case 23: {
  11327. $$sink = 0;
  11328. label = 4;
  11329. break;
  11330. }
  11331. case 24: {
  11332. $$sink = 2;
  11333. label = 4;
  11334. break;
  11335. }
  11336. default: {
  11337. }
  11338. }
  11339. if ((label|0) == 4) {
  11340. HEAP32[$3>>2] = $$sink;
  11341. }
  11342. $4 = HEAP32[$1>>2]|0;
  11343. $5 = ((($3)) + 4|0);
  11344. HEAP32[$5>>2] = $4;
  11345. $6 = ((($1)) + 20|0);
  11346. $7 = HEAP32[$6>>2]|0;
  11347. $8 = ((($3)) + 8|0);
  11348. HEAP32[$8>>2] = $7;
  11349. $9 = ((($1)) + 72|0);
  11350. $10 = HEAP32[$9>>2]|0;
  11351. $11 = ((($3)) + 12|0);
  11352. HEAP32[$11>>2] = $10;
  11353. $12 = ((($1)) + 56|0);
  11354. $13 = HEAP32[$12>>2]|0;
  11355. $14 = (+($13|0));
  11356. $15 = ((($1)) + 60|0);
  11357. $16 = HEAP32[$15>>2]|0;
  11358. $17 = (+($16|0));
  11359. $$sroa$03$0$$sroa_idx = ((($3)) + 24|0);
  11360. HEAPF32[$$sroa$03$0$$sroa_idx>>2] = $14;
  11361. $$sroa$24$0$$sroa_idx5 = ((($3)) + 28|0);
  11362. HEAPF32[$$sroa$24$0$$sroa_idx5>>2] = $17;
  11363. $18 = ((($1)) + 108|0);
  11364. $19 = HEAP32[$18>>2]|0;
  11365. $20 = (+($19|0));
  11366. $21 = ((($1)) + 112|0);
  11367. $22 = HEAP32[$21>>2]|0;
  11368. $23 = (+($22|0));
  11369. $$sroa$0$0$$sroa_idx = ((($3)) + 32|0);
  11370. HEAPF32[$$sroa$0$0$$sroa_idx>>2] = $20;
  11371. $$sroa$2$0$$sroa_idx2 = ((($3)) + 36|0);
  11372. HEAPF32[$$sroa$2$0$$sroa_idx2>>2] = $23;
  11373. $24 = ((($3)) + 24|0);
  11374. $25 = $24;
  11375. $26 = $25;
  11376. $27 = HEAP32[$26>>2]|0;
  11377. $28 = (($25) + 4)|0;
  11378. $29 = $28;
  11379. $30 = HEAP32[$29>>2]|0;
  11380. $31 = 19232;
  11381. $32 = $31;
  11382. HEAP32[$32>>2] = $27;
  11383. $33 = (($31) + 4)|0;
  11384. $34 = $33;
  11385. HEAP32[$34>>2] = $30;
  11386. $35 = ((($3)) + 32|0);
  11387. $36 = $35;
  11388. $37 = $36;
  11389. $38 = HEAP32[$37>>2]|0;
  11390. $39 = (($36) + 4)|0;
  11391. $40 = $39;
  11392. $41 = HEAP32[$40>>2]|0;
  11393. $42 = (19240);
  11394. $43 = $42;
  11395. HEAP32[$43>>2] = $38;
  11396. $44 = (($42) + 4)|0;
  11397. $45 = $44;
  11398. HEAP32[$45>>2] = $41;
  11399. $46 = (_GetScreenWidth()|0);
  11400. $47 = (+($46|0));
  11401. $48 = +HEAPF32[$24>>2];
  11402. $49 = $48 / $47;
  11403. HEAPF32[$24>>2] = $49;
  11404. $50 = (_GetScreenHeight()|0);
  11405. $51 = (+($50|0));
  11406. $52 = +HEAPF32[$$sroa$24$0$$sroa_idx5>>2];
  11407. $53 = $52 / $51;
  11408. HEAPF32[$$sroa$24$0$$sroa_idx5>>2] = $53;
  11409. $54 = (_GetScreenWidth()|0);
  11410. $55 = (+($54|0));
  11411. $56 = +HEAPF32[$35>>2];
  11412. $57 = $56 / $55;
  11413. HEAPF32[$35>>2] = $57;
  11414. $58 = (_GetScreenHeight()|0);
  11415. $59 = (+($58|0));
  11416. $60 = +HEAPF32[$$sroa$2$0$$sroa_idx2>>2];
  11417. $61 = $60 / $59;
  11418. HEAPF32[$$sroa$2$0$$sroa_idx2>>2] = $61;
  11419. 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));
  11420. _ProcessGestureEvent($$byval_copy);
  11421. STACKTOP = sp;return 1;
  11422. }
  11423. function _EmscriptenGamepadCallback($0,$1,$2) {
  11424. $0 = $0|0;
  11425. $1 = $1|0;
  11426. $2 = $2|0;
  11427. 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;
  11428. sp = STACKTOP;
  11429. $3 = ((($1)) + 1296|0);
  11430. $4 = HEAP32[$3>>2]|0;
  11431. $5 = ($4|0)==(0);
  11432. if ($5) {
  11433. label = 3;
  11434. } else {
  11435. $6 = ((($1)) + 1300|0);
  11436. $7 = HEAP32[$6>>2]|0;
  11437. $8 = ($7|0)<(4);
  11438. if ($8) {
  11439. $$sink = 1;
  11440. } else {
  11441. label = 3;
  11442. }
  11443. }
  11444. if ((label|0) == 3) {
  11445. $$sink = 0;
  11446. }
  11447. $9 = ((($1)) + 1300|0);
  11448. $10 = HEAP32[$9>>2]|0;
  11449. $11 = (19552 + ($10<<2)|0);
  11450. HEAP32[$11>>2] = $$sink;
  11451. return 0;
  11452. }
  11453. function _SetTargetFPS($0) {
  11454. $0 = $0|0;
  11455. 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;
  11456. sp = STACKTOP;
  11457. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  11458. $vararg_buffer = sp;
  11459. $1 = ($0|0)<(1);
  11460. $2 = (+($0|0));
  11461. $3 = 1.0 / $2;
  11462. $$ = $1 ? 0.0 : $3;
  11463. HEAPF64[2403] = $$;
  11464. $4 = $3;
  11465. $$op = $4 * 1000.0;
  11466. $5 = $$op;
  11467. $6 = $1 ? 0.0 : $5;
  11468. HEAPF64[$vararg_buffer>>3] = $6;
  11469. _TraceLog(0,4511,$vararg_buffer);
  11470. STACKTOP = sp;return;
  11471. }
  11472. function _LogoAnimation() {
  11473. var label = 0, sp = 0;
  11474. sp = STACKTOP;
  11475. HEAP32[4887] = 0;
  11476. return;
  11477. }
  11478. function _GetTime() {
  11479. var $0 = 0.0, label = 0, sp = 0;
  11480. sp = STACKTOP;
  11481. $0 = (+_glfwGetTime());
  11482. return (+$0);
  11483. }
  11484. function _LoadImageEx($0,$1,$2,$3) {
  11485. $0 = $0|0;
  11486. $1 = $1|0;
  11487. $2 = $2|0;
  11488. $3 = $3|0;
  11489. 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;
  11490. 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;
  11491. sp = STACKTOP;
  11492. $4 = $2 << 2;
  11493. $5 = Math_imul($4, $3)|0;
  11494. $6 = (_malloc($5)|0);
  11495. $7 = ($5|0)>(0);
  11496. if ($7) {
  11497. $8 = (($5) + -1)|0;
  11498. $9 = $8 >>> 2;
  11499. $$03334 = 0;$$035 = 0;
  11500. while(1) {
  11501. $10 = (($1) + ($$03334<<2)|0);
  11502. $11 = HEAP8[$10>>0]|0;
  11503. $12 = (($6) + ($$035)|0);
  11504. HEAP8[$12>>0] = $11;
  11505. $13 = (((($1) + ($$03334<<2)|0)) + 1|0);
  11506. $14 = HEAP8[$13>>0]|0;
  11507. $15 = $$035 | 1;
  11508. $16 = (($6) + ($15)|0);
  11509. HEAP8[$16>>0] = $14;
  11510. $17 = (((($1) + ($$03334<<2)|0)) + 2|0);
  11511. $18 = HEAP8[$17>>0]|0;
  11512. $19 = $$035 | 2;
  11513. $20 = (($6) + ($19)|0);
  11514. HEAP8[$20>>0] = $18;
  11515. $21 = (((($1) + ($$03334<<2)|0)) + 3|0);
  11516. $22 = HEAP8[$21>>0]|0;
  11517. $23 = $$035 | 3;
  11518. $24 = (($6) + ($23)|0);
  11519. HEAP8[$24>>0] = $22;
  11520. $25 = (($$03334) + 1)|0;
  11521. $26 = (($$035) + 4)|0;
  11522. $exitcond = ($$03334|0)==($9|0);
  11523. if ($exitcond) {
  11524. break;
  11525. } else {
  11526. $$03334 = $25;$$035 = $26;
  11527. }
  11528. }
  11529. }
  11530. HEAP32[$0>>2] = $6;
  11531. $$sroa$9$0$$sroa_idx18 = ((($0)) + 4|0);
  11532. HEAP32[$$sroa$9$0$$sroa_idx18>>2] = $2;
  11533. $$sroa$12$0$$sroa_idx21 = ((($0)) + 8|0);
  11534. HEAP32[$$sroa$12$0$$sroa_idx21>>2] = $3;
  11535. $$sroa$15$0$$sroa_idx24 = ((($0)) + 12|0);
  11536. HEAP32[$$sroa$15$0$$sroa_idx24>>2] = 1;
  11537. $$sroa$16$0$$sroa_idx26 = ((($0)) + 16|0);
  11538. HEAP32[$$sroa$16$0$$sroa_idx26>>2] = 7;
  11539. return;
  11540. }
  11541. function _ImageFormat($0,$1) {
  11542. $0 = $0|0;
  11543. $1 = $1|0;
  11544. 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;
  11545. 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;
  11546. 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;
  11547. 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;
  11548. 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;
  11549. 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;
  11550. 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;
  11551. 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;
  11552. 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;
  11553. 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;
  11554. 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;
  11555. 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;
  11556. 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;
  11557. 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;
  11558. 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;
  11559. 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;
  11560. sp = STACKTOP;
  11561. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  11562. $$byval_copy = sp + 4|0;
  11563. $vararg_buffer = sp;
  11564. $2 = ((($0)) + 16|0);
  11565. $3 = HEAP32[$2>>2]|0;
  11566. $4 = ($3|0)==($1|0);
  11567. if ($4) {
  11568. STACKTOP = sp;return;
  11569. }
  11570. $5 = ($3|0)<(8);
  11571. $6 = ($1|0)<(8);
  11572. $or$cond = $6 & $5;
  11573. if (!($or$cond)) {
  11574. _TraceLog(2,5074,$vararg_buffer);
  11575. STACKTOP = sp;return;
  11576. }
  11577. ;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;
  11578. $7 = (_GetImageData($$byval_copy)|0);
  11579. $8 = HEAP32[$0>>2]|0;
  11580. _free($8);
  11581. HEAP32[$2>>2] = $1;
  11582. switch ($1|0) {
  11583. case 1: {
  11584. $9 = ((($0)) + 4|0);
  11585. $10 = HEAP32[$9>>2]|0;
  11586. $11 = ((($0)) + 8|0);
  11587. $12 = HEAP32[$11>>2]|0;
  11588. $13 = Math_imul($12, $10)|0;
  11589. $14 = (_malloc($13)|0);
  11590. HEAP32[$0>>2] = $14;
  11591. $15 = Math_imul($12, $10)|0;
  11592. $16 = ($15|0)>(0);
  11593. if ($16) {
  11594. $$0171188 = 0;
  11595. while(1) {
  11596. $17 = (($7) + ($$0171188<<2)|0);
  11597. $18 = HEAP8[$17>>0]|0;
  11598. $19 = (+($18&255));
  11599. $20 = $19 * 0.29899999499320984;
  11600. $21 = (((($7) + ($$0171188<<2)|0)) + 1|0);
  11601. $22 = HEAP8[$21>>0]|0;
  11602. $23 = (+($22&255));
  11603. $24 = $23 * 0.58700001239776611;
  11604. $25 = $20 + $24;
  11605. $26 = (((($7) + ($$0171188<<2)|0)) + 2|0);
  11606. $27 = HEAP8[$26>>0]|0;
  11607. $28 = (+($27&255));
  11608. $29 = $28 * 0.11400000005960464;
  11609. $30 = $25 + $29;
  11610. $31 = (~~(($30))&255);
  11611. $32 = HEAP32[$0>>2]|0;
  11612. $33 = (($32) + ($$0171188)|0);
  11613. HEAP8[$33>>0] = $31;
  11614. $34 = (($$0171188) + 1)|0;
  11615. $35 = HEAP32[$9>>2]|0;
  11616. $36 = HEAP32[$11>>2]|0;
  11617. $37 = Math_imul($36, $35)|0;
  11618. $38 = ($34|0)<($37|0);
  11619. if ($38) {
  11620. $$0171188 = $34;
  11621. } else {
  11622. break;
  11623. }
  11624. }
  11625. }
  11626. break;
  11627. }
  11628. case 2: {
  11629. $39 = ((($0)) + 4|0);
  11630. $40 = HEAP32[$39>>2]|0;
  11631. $41 = ((($0)) + 8|0);
  11632. $42 = HEAP32[$41>>2]|0;
  11633. $43 = $40 << 1;
  11634. $44 = Math_imul($43, $42)|0;
  11635. $45 = (_malloc($44)|0);
  11636. HEAP32[$0>>2] = $45;
  11637. $46 = HEAP32[$39>>2]|0;
  11638. $47 = $46 << 1;
  11639. $48 = Math_imul($47, $42)|0;
  11640. $49 = ($48|0)>(0);
  11641. if ($49) {
  11642. $$0170190 = 0;$$0172189 = 0;
  11643. while(1) {
  11644. $50 = (($7) + ($$0172189<<2)|0);
  11645. $51 = HEAP8[$50>>0]|0;
  11646. $52 = (+($51&255));
  11647. $53 = $52 * 0.29899999499320984;
  11648. $54 = (((($7) + ($$0172189<<2)|0)) + 1|0);
  11649. $55 = HEAP8[$54>>0]|0;
  11650. $56 = (+($55&255));
  11651. $57 = $56 * 0.58700001239776611;
  11652. $58 = $53 + $57;
  11653. $59 = (((($7) + ($$0172189<<2)|0)) + 2|0);
  11654. $60 = HEAP8[$59>>0]|0;
  11655. $61 = (+($60&255));
  11656. $62 = $61 * 0.11400000005960464;
  11657. $63 = $58 + $62;
  11658. $64 = (~~(($63))&255);
  11659. $65 = HEAP32[$0>>2]|0;
  11660. $66 = (($65) + ($$0170190)|0);
  11661. HEAP8[$66>>0] = $64;
  11662. $67 = (((($7) + ($$0172189<<2)|0)) + 3|0);
  11663. $68 = HEAP8[$67>>0]|0;
  11664. $69 = HEAP32[$0>>2]|0;
  11665. $70 = $$0170190 | 1;
  11666. $71 = (($69) + ($70)|0);
  11667. HEAP8[$71>>0] = $68;
  11668. $72 = (($$0172189) + 1)|0;
  11669. $73 = (($$0170190) + 2)|0;
  11670. $74 = HEAP32[$39>>2]|0;
  11671. $75 = HEAP32[$41>>2]|0;
  11672. $76 = $74 << 1;
  11673. $77 = Math_imul($76, $75)|0;
  11674. $78 = ($73|0)<($77|0);
  11675. if ($78) {
  11676. $$0170190 = $73;$$0172189 = $72;
  11677. } else {
  11678. break;
  11679. }
  11680. }
  11681. }
  11682. break;
  11683. }
  11684. case 3: {
  11685. $79 = ((($0)) + 4|0);
  11686. $80 = HEAP32[$79>>2]|0;
  11687. $81 = ((($0)) + 8|0);
  11688. $82 = HEAP32[$81>>2]|0;
  11689. $83 = $80 << 1;
  11690. $84 = Math_imul($83, $82)|0;
  11691. $85 = (_malloc($84)|0);
  11692. HEAP32[$0>>2] = $85;
  11693. $86 = HEAP32[$79>>2]|0;
  11694. $87 = Math_imul($82, $86)|0;
  11695. $88 = ($87|0)>(0);
  11696. if ($88) {
  11697. $89 = HEAP8[$7>>0]|0;
  11698. $90 = (+($89&255));
  11699. $91 = $90 * 31.0;
  11700. $92 = $91 / 255.0;
  11701. $roundf179 = (+_roundf((+$92)));
  11702. $93 = (~~(($roundf179))&255);
  11703. $94 = ((($7)) + 1|0);
  11704. $95 = HEAP8[$94>>0]|0;
  11705. $96 = (+($95&255));
  11706. $97 = $96 * 63.0;
  11707. $98 = $97 / 255.0;
  11708. $roundf180 = (+_roundf((+$98)));
  11709. $99 = (~~(($roundf180))&255);
  11710. $100 = ((($7)) + 2|0);
  11711. $101 = HEAP8[$100>>0]|0;
  11712. $102 = (+($101&255));
  11713. $103 = $102 * 31.0;
  11714. $104 = $103 / 255.0;
  11715. $roundf181 = (+_roundf((+$104)));
  11716. $105 = (~~(($roundf181))&255);
  11717. $106 = $93&255;
  11718. $107 = $106 << 11;
  11719. $108 = $99&255;
  11720. $109 = $108 << 5;
  11721. $110 = $109 | $107;
  11722. $111 = $105&255;
  11723. $112 = $110 | $111;
  11724. $113 = $112&65535;
  11725. $114 = HEAP32[$0>>2]|0;
  11726. $115 = HEAP32[$79>>2]|0;
  11727. $116 = HEAP32[$81>>2]|0;
  11728. $117 = Math_imul($116, $115)|0;
  11729. $$0169192 = 0;
  11730. while(1) {
  11731. $118 = (($114) + ($$0169192<<1)|0);
  11732. HEAP16[$118>>1] = $113;
  11733. $119 = (($$0169192) + 1)|0;
  11734. $120 = ($119|0)<($117|0);
  11735. if ($120) {
  11736. $$0169192 = $119;
  11737. } else {
  11738. break;
  11739. }
  11740. }
  11741. }
  11742. break;
  11743. }
  11744. case 4: {
  11745. $121 = ((($0)) + 4|0);
  11746. $122 = HEAP32[$121>>2]|0;
  11747. $123 = ((($0)) + 8|0);
  11748. $124 = HEAP32[$123>>2]|0;
  11749. $125 = ($122*3)|0;
  11750. $126 = Math_imul($125, $124)|0;
  11751. $127 = (_malloc($126)|0);
  11752. HEAP32[$0>>2] = $127;
  11753. $128 = HEAP32[$121>>2]|0;
  11754. $129 = ($128*3)|0;
  11755. $130 = Math_imul($129, $124)|0;
  11756. $131 = ($130|0)>(0);
  11757. if ($131) {
  11758. $$0168195 = 0;$$1194 = 0;
  11759. while(1) {
  11760. $132 = (($7) + ($$1194<<2)|0);
  11761. $133 = HEAP8[$132>>0]|0;
  11762. $134 = HEAP32[$0>>2]|0;
  11763. $135 = (($134) + ($$0168195)|0);
  11764. HEAP8[$135>>0] = $133;
  11765. $136 = (((($7) + ($$1194<<2)|0)) + 1|0);
  11766. $137 = HEAP8[$136>>0]|0;
  11767. $138 = HEAP32[$0>>2]|0;
  11768. $139 = (($$0168195) + 1)|0;
  11769. $140 = (($138) + ($139)|0);
  11770. HEAP8[$140>>0] = $137;
  11771. $141 = (((($7) + ($$1194<<2)|0)) + 2|0);
  11772. $142 = HEAP8[$141>>0]|0;
  11773. $143 = HEAP32[$0>>2]|0;
  11774. $144 = (($$0168195) + 2)|0;
  11775. $145 = (($143) + ($144)|0);
  11776. HEAP8[$145>>0] = $142;
  11777. $146 = (($$1194) + 1)|0;
  11778. $147 = (($$0168195) + 3)|0;
  11779. $148 = HEAP32[$121>>2]|0;
  11780. $149 = HEAP32[$123>>2]|0;
  11781. $150 = ($148*3)|0;
  11782. $151 = Math_imul($150, $149)|0;
  11783. $152 = ($147|0)<($151|0);
  11784. if ($152) {
  11785. $$0168195 = $147;$$1194 = $146;
  11786. } else {
  11787. break;
  11788. }
  11789. }
  11790. }
  11791. break;
  11792. }
  11793. case 5: {
  11794. $153 = ((($0)) + 4|0);
  11795. $154 = HEAP32[$153>>2]|0;
  11796. $155 = ((($0)) + 8|0);
  11797. $156 = HEAP32[$155>>2]|0;
  11798. $157 = $154 << 1;
  11799. $158 = Math_imul($157, $156)|0;
  11800. $159 = (_malloc($158)|0);
  11801. HEAP32[$0>>2] = $159;
  11802. $160 = HEAP32[$153>>2]|0;
  11803. $161 = Math_imul($156, $160)|0;
  11804. $162 = ($161|0)>(0);
  11805. if ($162) {
  11806. $163 = HEAP32[$0>>2]|0;
  11807. $164 = HEAP32[$153>>2]|0;
  11808. $165 = HEAP32[$155>>2]|0;
  11809. $166 = Math_imul($165, $164)|0;
  11810. $$0167197 = 0;
  11811. while(1) {
  11812. $167 = (($7) + ($$0167197<<2)|0);
  11813. $168 = HEAP8[$167>>0]|0;
  11814. $169 = (+($168&255));
  11815. $170 = $169 * 31.0;
  11816. $171 = $170 / 255.0;
  11817. $roundf176 = (+_roundf((+$171)));
  11818. $172 = (~~(($roundf176))&255);
  11819. $173 = (((($7) + ($$0167197<<2)|0)) + 1|0);
  11820. $174 = HEAP8[$173>>0]|0;
  11821. $175 = (+($174&255));
  11822. $176 = $175 * 31.0;
  11823. $177 = $176 / 255.0;
  11824. $roundf177 = (+_roundf((+$177)));
  11825. $178 = (~~(($roundf177))&255);
  11826. $179 = (((($7) + ($$0167197<<2)|0)) + 2|0);
  11827. $180 = HEAP8[$179>>0]|0;
  11828. $181 = (+($180&255));
  11829. $182 = $181 * 31.0;
  11830. $183 = $182 / 255.0;
  11831. $roundf178 = (+_roundf((+$183)));
  11832. $184 = (~~(($roundf178))&255);
  11833. $185 = (((($7) + ($$0167197<<2)|0)) + 3|0);
  11834. $186 = HEAP8[$185>>0]|0;
  11835. $187 = ($186&255)>(50);
  11836. $188 = $172&255;
  11837. $189 = $188 << 11;
  11838. $190 = $178&255;
  11839. $191 = $190 << 6;
  11840. $192 = $191 | $189;
  11841. $193 = $184&255;
  11842. $194 = $193 << 1;
  11843. $195 = $192 | $194;
  11844. $196 = $187&1;
  11845. $197 = $195 | $196;
  11846. $198 = $197&65535;
  11847. $199 = (($163) + ($$0167197<<1)|0);
  11848. HEAP16[$199>>1] = $198;
  11849. $200 = (($$0167197) + 1)|0;
  11850. $201 = ($200|0)<($166|0);
  11851. if ($201) {
  11852. $$0167197 = $200;
  11853. } else {
  11854. break;
  11855. }
  11856. }
  11857. }
  11858. break;
  11859. }
  11860. case 6: {
  11861. $202 = ((($0)) + 4|0);
  11862. $203 = HEAP32[$202>>2]|0;
  11863. $204 = ((($0)) + 8|0);
  11864. $205 = HEAP32[$204>>2]|0;
  11865. $206 = $203 << 1;
  11866. $207 = Math_imul($206, $205)|0;
  11867. $208 = (_malloc($207)|0);
  11868. HEAP32[$0>>2] = $208;
  11869. $209 = HEAP32[$202>>2]|0;
  11870. $210 = Math_imul($205, $209)|0;
  11871. $211 = ($210|0)>(0);
  11872. if ($211) {
  11873. $212 = HEAP32[$0>>2]|0;
  11874. $213 = HEAP32[$202>>2]|0;
  11875. $214 = HEAP32[$204>>2]|0;
  11876. $215 = Math_imul($214, $213)|0;
  11877. $$0166199 = 0;
  11878. while(1) {
  11879. $216 = (($7) + ($$0166199<<2)|0);
  11880. $217 = HEAP8[$216>>0]|0;
  11881. $218 = (+($217&255));
  11882. $219 = $218 * 15.0;
  11883. $220 = $219 / 255.0;
  11884. $roundf = (+_roundf((+$220)));
  11885. $221 = (~~(($roundf))&255);
  11886. $222 = (((($7) + ($$0166199<<2)|0)) + 1|0);
  11887. $223 = HEAP8[$222>>0]|0;
  11888. $224 = (+($223&255));
  11889. $225 = $224 * 15.0;
  11890. $226 = $225 / 255.0;
  11891. $roundf173 = (+_roundf((+$226)));
  11892. $227 = (~~(($roundf173))&255);
  11893. $228 = (((($7) + ($$0166199<<2)|0)) + 2|0);
  11894. $229 = HEAP8[$228>>0]|0;
  11895. $230 = (+($229&255));
  11896. $231 = $230 * 15.0;
  11897. $232 = $231 / 255.0;
  11898. $roundf174 = (+_roundf((+$232)));
  11899. $233 = (~~(($roundf174))&255);
  11900. $234 = (((($7) + ($$0166199<<2)|0)) + 3|0);
  11901. $235 = HEAP8[$234>>0]|0;
  11902. $236 = (+($235&255));
  11903. $237 = $236 * 15.0;
  11904. $238 = $237 / 255.0;
  11905. $roundf175 = (+_roundf((+$238)));
  11906. $239 = (~~(($roundf175))&255);
  11907. $240 = $221&255;
  11908. $241 = $240 << 12;
  11909. $242 = $227&255;
  11910. $243 = $242 << 8;
  11911. $244 = $243 | $241;
  11912. $245 = $233&255;
  11913. $246 = $245 << 4;
  11914. $247 = $244 | $246;
  11915. $248 = $239&255;
  11916. $249 = $247 | $248;
  11917. $250 = $249&65535;
  11918. $251 = (($212) + ($$0166199<<1)|0);
  11919. HEAP16[$251>>1] = $250;
  11920. $252 = (($$0166199) + 1)|0;
  11921. $253 = ($252|0)<($215|0);
  11922. if ($253) {
  11923. $$0166199 = $252;
  11924. } else {
  11925. break;
  11926. }
  11927. }
  11928. }
  11929. break;
  11930. }
  11931. case 7: {
  11932. $254 = ((($0)) + 4|0);
  11933. $255 = HEAP32[$254>>2]|0;
  11934. $256 = ((($0)) + 8|0);
  11935. $257 = HEAP32[$256>>2]|0;
  11936. $258 = $255 << 2;
  11937. $259 = Math_imul($258, $257)|0;
  11938. $260 = (_malloc($259)|0);
  11939. HEAP32[$0>>2] = $260;
  11940. $261 = HEAP32[$254>>2]|0;
  11941. $262 = $261 << 2;
  11942. $263 = Math_imul($262, $257)|0;
  11943. $264 = ($263|0)>(0);
  11944. if ($264) {
  11945. $$0202 = 0;$$2201 = 0;
  11946. while(1) {
  11947. $265 = (($7) + ($$2201<<2)|0);
  11948. $266 = HEAP8[$265>>0]|0;
  11949. $267 = HEAP32[$0>>2]|0;
  11950. $268 = (($267) + ($$0202)|0);
  11951. HEAP8[$268>>0] = $266;
  11952. $269 = (((($7) + ($$2201<<2)|0)) + 1|0);
  11953. $270 = HEAP8[$269>>0]|0;
  11954. $271 = HEAP32[$0>>2]|0;
  11955. $272 = $$0202 | 1;
  11956. $273 = (($271) + ($272)|0);
  11957. HEAP8[$273>>0] = $270;
  11958. $274 = (((($7) + ($$2201<<2)|0)) + 2|0);
  11959. $275 = HEAP8[$274>>0]|0;
  11960. $276 = HEAP32[$0>>2]|0;
  11961. $277 = $$0202 | 2;
  11962. $278 = (($276) + ($277)|0);
  11963. HEAP8[$278>>0] = $275;
  11964. $279 = (((($7) + ($$2201<<2)|0)) + 3|0);
  11965. $280 = HEAP8[$279>>0]|0;
  11966. $281 = HEAP32[$0>>2]|0;
  11967. $282 = $$0202 | 3;
  11968. $283 = (($281) + ($282)|0);
  11969. HEAP8[$283>>0] = $280;
  11970. $284 = (($$2201) + 1)|0;
  11971. $285 = (($$0202) + 4)|0;
  11972. $286 = HEAP32[$254>>2]|0;
  11973. $287 = HEAP32[$256>>2]|0;
  11974. $288 = $286 << 2;
  11975. $289 = Math_imul($288, $287)|0;
  11976. $290 = ($285|0)<($289|0);
  11977. if ($290) {
  11978. $$0202 = $285;$$2201 = $284;
  11979. } else {
  11980. break;
  11981. }
  11982. }
  11983. }
  11984. break;
  11985. }
  11986. default: {
  11987. }
  11988. }
  11989. _free($7);
  11990. STACKTOP = sp;return;
  11991. }
  11992. function _LoadTextureFromImage($0,$1) {
  11993. $0 = $0|0;
  11994. $1 = $1|0;
  11995. 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;
  11996. sp = STACKTOP;
  11997. $2 = HEAP32[$1>>2]|0;
  11998. $3 = ((($1)) + 4|0);
  11999. $4 = HEAP32[$3>>2]|0;
  12000. $5 = ((($1)) + 8|0);
  12001. $6 = HEAP32[$5>>2]|0;
  12002. $7 = ((($1)) + 16|0);
  12003. $8 = HEAP32[$7>>2]|0;
  12004. $9 = ((($1)) + 12|0);
  12005. $10 = HEAP32[$9>>2]|0;
  12006. $11 = (_rlglLoadTexture($2,$4,$6,$8,$10)|0);
  12007. $12 = HEAP32[$3>>2]|0;
  12008. $13 = HEAP32[$5>>2]|0;
  12009. HEAP32[$0>>2] = $11;
  12010. $$sroa$5$0$$sroa_idx2 = ((($0)) + 4|0);
  12011. HEAP32[$$sroa$5$0$$sroa_idx2>>2] = $12;
  12012. $$sroa$7$0$$sroa_idx4 = ((($0)) + 8|0);
  12013. HEAP32[$$sroa$7$0$$sroa_idx4>>2] = $13;
  12014. $$sroa$9$0$$sroa_idx6 = ((($0)) + 12|0);
  12015. HEAP32[$$sroa$9$0$$sroa_idx6>>2] = $10;
  12016. $$sroa$11$0$$sroa_idx8 = ((($0)) + 16|0);
  12017. HEAP32[$$sroa$11$0$$sroa_idx8>>2] = $8;
  12018. return;
  12019. }
  12020. function _UnloadImage($0) {
  12021. $0 = $0|0;
  12022. var $1 = 0, label = 0, sp = 0;
  12023. sp = STACKTOP;
  12024. $1 = HEAP32[$0>>2]|0;
  12025. _free($1);
  12026. return;
  12027. }
  12028. function _rlglLoadTexture($0,$1,$2,$3,$4) {
  12029. $0 = $0|0;
  12030. $1 = $1|0;
  12031. $2 = $2|0;
  12032. $3 = $3|0;
  12033. $4 = $4|0;
  12034. 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;
  12035. 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;
  12036. 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;
  12037. var $vararg_buffer9 = 0, $vararg_ptr13 = 0, $vararg_ptr14 = 0, label = 0, sp = 0;
  12038. sp = STACKTOP;
  12039. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  12040. $vararg_buffer15 = sp + 64|0;
  12041. $vararg_buffer11 = sp + 48|0;
  12042. $vararg_buffer9 = sp + 40|0;
  12043. $vararg_buffer7 = sp + 32|0;
  12044. $vararg_buffer5 = sp + 24|0;
  12045. $vararg_buffer3 = sp + 16|0;
  12046. $vararg_buffer1 = sp + 8|0;
  12047. $vararg_buffer = sp;
  12048. $5 = sp + 68|0;
  12049. _glBindTexture(3553,0);
  12050. HEAP32[$5>>2] = 0;
  12051. $6 = HEAP32[4900]|0;
  12052. $7 = ($6|0)==(0);
  12053. $8 = $3 & -4;
  12054. $switch = ($8|0)==(8);
  12055. $or$cond100 = $switch & $7;
  12056. if ($or$cond100) {
  12057. _TraceLog(2,4743,$vararg_buffer);
  12058. $$0 = HEAP32[$5>>2]|0;
  12059. STACKTOP = sp;return ($$0|0);
  12060. }
  12061. $9 = HEAP32[4901]|0;
  12062. $10 = ($9|0)==(0);
  12063. $11 = ($3|0)==(12);
  12064. $or$cond7 = $11 & $10;
  12065. if ($or$cond7) {
  12066. _TraceLog(2,4787,$vararg_buffer1);
  12067. $$0 = HEAP32[$5>>2]|0;
  12068. STACKTOP = sp;return ($$0|0);
  12069. }
  12070. $12 = HEAP32[4902]|0;
  12071. $13 = ($12|0)==(0);
  12072. $$off = (($3) + -13)|0;
  12073. $14 = ($$off>>>0)<(2);
  12074. $or$cond = $14 & $13;
  12075. if ($or$cond) {
  12076. _TraceLog(2,4832,$vararg_buffer3);
  12077. $$0 = HEAP32[$5>>2]|0;
  12078. STACKTOP = sp;return ($$0|0);
  12079. }
  12080. $15 = HEAP32[4903]|0;
  12081. $16 = ($15|0)==(0);
  12082. $$off92 = (($3) + -15)|0;
  12083. $17 = ($$off92>>>0)<(2);
  12084. $or$cond96 = $17 & $16;
  12085. if ($or$cond96) {
  12086. _TraceLog(2,4877,$vararg_buffer5);
  12087. $$0 = HEAP32[$5>>2]|0;
  12088. STACKTOP = sp;return ($$0|0);
  12089. }
  12090. $18 = HEAP32[4904]|0;
  12091. $19 = ($18|0)==(0);
  12092. $$off93 = (($3) + -17)|0;
  12093. $20 = ($$off93>>>0)<(2);
  12094. $or$cond98 = $20 & $19;
  12095. if ($or$cond98) {
  12096. _TraceLog(2,4922,$vararg_buffer7);
  12097. $$0 = HEAP32[$5>>2]|0;
  12098. STACKTOP = sp;return ($$0|0);
  12099. }
  12100. _glGenTextures(1,($5|0));
  12101. $21 = HEAP32[$5>>2]|0;
  12102. _glBindTexture(3553,($21|0));
  12103. do {
  12104. switch ($3|0) {
  12105. case 1: {
  12106. _glTexImage2D(3553,0,6409,($1|0),($2|0),0,6409,5121,($0|0));
  12107. break;
  12108. }
  12109. case 2: {
  12110. _glTexImage2D(3553,0,6410,($1|0),($2|0),0,6410,5121,($0|0));
  12111. break;
  12112. }
  12113. case 3: {
  12114. _glTexImage2D(3553,0,6407,($1|0),($2|0),0,6407,33635,($0|0));
  12115. break;
  12116. }
  12117. case 4: {
  12118. _glTexImage2D(3553,0,6407,($1|0),($2|0),0,6407,5121,($0|0));
  12119. break;
  12120. }
  12121. case 5: {
  12122. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,32820,($0|0));
  12123. break;
  12124. }
  12125. case 6: {
  12126. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,32819,($0|0));
  12127. break;
  12128. }
  12129. case 7: {
  12130. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,5121,($0|0));
  12131. break;
  12132. }
  12133. case 8: {
  12134. $22 = HEAP32[4900]|0;
  12135. $23 = ($22|0)==(0);
  12136. if (!($23)) {
  12137. _LoadCompressedTexture($0,$1,$2,$4,33776);
  12138. }
  12139. break;
  12140. }
  12141. case 9: {
  12142. $24 = HEAP32[4900]|0;
  12143. $25 = ($24|0)==(0);
  12144. if (!($25)) {
  12145. _LoadCompressedTexture($0,$1,$2,$4,33777);
  12146. }
  12147. break;
  12148. }
  12149. case 10: {
  12150. $26 = HEAP32[4900]|0;
  12151. $27 = ($26|0)==(0);
  12152. if (!($27)) {
  12153. _LoadCompressedTexture($0,$1,$2,$4,33778);
  12154. }
  12155. break;
  12156. }
  12157. case 11: {
  12158. $28 = HEAP32[4900]|0;
  12159. $29 = ($28|0)==(0);
  12160. if (!($29)) {
  12161. _LoadCompressedTexture($0,$1,$2,$4,33779);
  12162. }
  12163. break;
  12164. }
  12165. case 12: {
  12166. $30 = HEAP32[4901]|0;
  12167. $31 = ($30|0)==(0);
  12168. if (!($31)) {
  12169. _LoadCompressedTexture($0,$1,$2,$4,36196);
  12170. }
  12171. break;
  12172. }
  12173. case 13: {
  12174. $32 = HEAP32[4902]|0;
  12175. $33 = ($32|0)==(0);
  12176. if (!($33)) {
  12177. _LoadCompressedTexture($0,$1,$2,$4,37492);
  12178. }
  12179. break;
  12180. }
  12181. case 14: {
  12182. $34 = HEAP32[4902]|0;
  12183. $35 = ($34|0)==(0);
  12184. if (!($35)) {
  12185. _LoadCompressedTexture($0,$1,$2,$4,37496);
  12186. }
  12187. break;
  12188. }
  12189. case 15: {
  12190. $36 = HEAP32[4903]|0;
  12191. $37 = ($36|0)==(0);
  12192. if (!($37)) {
  12193. _LoadCompressedTexture($0,$1,$2,$4,35840);
  12194. }
  12195. break;
  12196. }
  12197. case 16: {
  12198. $38 = HEAP32[4903]|0;
  12199. $39 = ($38|0)==(0);
  12200. if (!($39)) {
  12201. _LoadCompressedTexture($0,$1,$2,$4,35842);
  12202. }
  12203. break;
  12204. }
  12205. case 17: {
  12206. $40 = HEAP32[4904]|0;
  12207. $41 = ($40|0)==(0);
  12208. if (!($41)) {
  12209. _LoadCompressedTexture($0,$1,$2,$4,37808);
  12210. }
  12211. break;
  12212. }
  12213. case 18: {
  12214. $42 = HEAP32[4904]|0;
  12215. $43 = ($42|0)==(0);
  12216. if (!($43)) {
  12217. _LoadCompressedTexture($0,$1,$2,$4,37815);
  12218. }
  12219. break;
  12220. }
  12221. default: {
  12222. _TraceLog(2,4967,$vararg_buffer9);
  12223. }
  12224. }
  12225. } while(0);
  12226. $44 = HEAP32[4905]|0;
  12227. $45 = ($44|0)==(0);
  12228. if ($45) {
  12229. _glTexParameteri(3553,10242,33071);
  12230. _glTexParameteri(3553,10243,33071);
  12231. } else {
  12232. _glTexParameteri(3553,10242,10497);
  12233. _glTexParameteri(3553,10243,10497);
  12234. }
  12235. _glTexParameteri(3553,10240,9728);
  12236. _glTexParameteri(3553,10241,9728);
  12237. _glBindTexture(3553,0);
  12238. $46 = HEAP32[$5>>2]|0;
  12239. $47 = ($46|0)==(0);
  12240. if ($47) {
  12241. _TraceLog(2,5045,$vararg_buffer15);
  12242. $$0 = HEAP32[$5>>2]|0;
  12243. STACKTOP = sp;return ($$0|0);
  12244. } else {
  12245. HEAP32[$vararg_buffer11>>2] = $46;
  12246. $vararg_ptr13 = ((($vararg_buffer11)) + 4|0);
  12247. HEAP32[$vararg_ptr13>>2] = $1;
  12248. $vararg_ptr14 = ((($vararg_buffer11)) + 8|0);
  12249. HEAP32[$vararg_ptr14>>2] = $2;
  12250. _TraceLog(0,4996,$vararg_buffer11);
  12251. $$0 = HEAP32[$5>>2]|0;
  12252. STACKTOP = sp;return ($$0|0);
  12253. }
  12254. return (0)|0;
  12255. }
  12256. function _LoadCompressedTexture($0,$1,$2,$3,$4) {
  12257. $0 = $0|0;
  12258. $1 = $1|0;
  12259. $2 = $2|0;
  12260. $3 = $3|0;
  12261. $4 = $4|0;
  12262. 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;
  12263. var $23 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond42 = 0, label = 0, sp = 0;
  12264. sp = STACKTOP;
  12265. _glPixelStorei(3317,1);
  12266. switch ($4|0) {
  12267. case 33776: case 33777: case 36196: case 37492: {
  12268. $$038 = 8;
  12269. break;
  12270. }
  12271. default: {
  12272. $$038 = 16;
  12273. }
  12274. }
  12275. $5 = ($3|0)<(1);
  12276. $6 = $1 | $2;
  12277. $7 = ($6|0)==(0);
  12278. $or$cond42 = $5 | $7;
  12279. if ($or$cond42) {
  12280. return;
  12281. } else {
  12282. $$03645 = 0;$$03744 = 0;$$03943 = $2;$$046 = $1;
  12283. }
  12284. while(1) {
  12285. $8 = (($$046) + 3)|0;
  12286. $9 = (($8|0) / 4)&-1;
  12287. $10 = (($$03943) + 3)|0;
  12288. $11 = (($10|0) / 4)&-1;
  12289. $12 = Math_imul($11, $$038)|0;
  12290. $13 = Math_imul($12, $9)|0;
  12291. $14 = (($0) + ($$03744)|0);
  12292. _glCompressedTexImage2D(3553,($$03645|0),($4|0),($$046|0),($$03943|0),0,($13|0),($14|0));
  12293. $15 = (($13) + ($$03744))|0;
  12294. $16 = (($$046|0) / 2)&-1;
  12295. $17 = (($$03943|0) / 2)&-1;
  12296. $18 = ($$046|0)<(2);
  12297. $$ = $18 ? 1 : $16;
  12298. $19 = ($$03943|0)<(2);
  12299. $$140 = $19 ? 1 : $17;
  12300. $20 = (($$03645) + 1)|0;
  12301. $21 = ($20|0)>=($3|0);
  12302. $22 = $$ | $$140;
  12303. $23 = ($22|0)==(0);
  12304. $or$cond = $21 | $23;
  12305. if ($or$cond) {
  12306. break;
  12307. } else {
  12308. $$03645 = $20;$$03744 = $15;$$03943 = $$140;$$046 = $$;
  12309. }
  12310. }
  12311. return;
  12312. }
  12313. function _GetImageData($0) {
  12314. $0 = $0|0;
  12315. 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;
  12316. 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;
  12317. 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;
  12318. 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;
  12319. 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;
  12320. 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;
  12321. 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;
  12322. var $97 = 0.0, $98 = 0.0, $99 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  12323. sp = STACKTOP;
  12324. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  12325. $vararg_buffer = sp;
  12326. $1 = ((($0)) + 4|0);
  12327. $2 = HEAP32[$1>>2]|0;
  12328. $3 = ((($0)) + 8|0);
  12329. $4 = HEAP32[$3>>2]|0;
  12330. $5 = $2 << 2;
  12331. $6 = Math_imul($5, $4)|0;
  12332. $7 = (_malloc($6)|0);
  12333. $8 = HEAP32[$1>>2]|0;
  12334. $9 = Math_imul($4, $8)|0;
  12335. $10 = ($9|0)>(0);
  12336. if (!($10)) {
  12337. STACKTOP = sp;return ($7|0);
  12338. }
  12339. $11 = ((($0)) + 16|0);
  12340. $12 = HEAP32[$11>>2]|0;
  12341. $13 = HEAP32[$0>>2]|0;
  12342. $$0104105 = 0;$$0106 = 0;
  12343. while(1) {
  12344. switch ($12|0) {
  12345. case 1: {
  12346. $14 = (($13) + ($$0106)|0);
  12347. $15 = HEAP8[$14>>0]|0;
  12348. $16 = (($7) + ($$0104105<<2)|0);
  12349. HEAP8[$16>>0] = $15;
  12350. $17 = HEAP8[$14>>0]|0;
  12351. $18 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12352. HEAP8[$18>>0] = $17;
  12353. $19 = HEAP8[$14>>0]|0;
  12354. $20 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12355. HEAP8[$20>>0] = $19;
  12356. $21 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12357. HEAP8[$21>>0] = -1;
  12358. $22 = (($$0106) + 1)|0;
  12359. $$1 = $22;
  12360. break;
  12361. }
  12362. case 2: {
  12363. $23 = (($13) + ($$0106)|0);
  12364. $24 = HEAP8[$23>>0]|0;
  12365. $25 = (($7) + ($$0104105<<2)|0);
  12366. HEAP8[$25>>0] = $24;
  12367. $26 = HEAP8[$23>>0]|0;
  12368. $27 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12369. HEAP8[$27>>0] = $26;
  12370. $28 = HEAP8[$23>>0]|0;
  12371. $29 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12372. HEAP8[$29>>0] = $28;
  12373. $30 = (($$0106) + 1)|0;
  12374. $31 = (($13) + ($30)|0);
  12375. $32 = HEAP8[$31>>0]|0;
  12376. $33 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12377. HEAP8[$33>>0] = $32;
  12378. $34 = (($$0106) + 2)|0;
  12379. $$1 = $34;
  12380. break;
  12381. }
  12382. case 5: {
  12383. $35 = (($13) + ($$0106<<1)|0);
  12384. $36 = HEAP16[$35>>1]|0;
  12385. $37 = $36&65535;
  12386. $38 = $37 >>> 11;
  12387. $39 = (+($38|0));
  12388. $40 = $39 * 8.0;
  12389. $41 = (~~(($40))&255);
  12390. $42 = (($7) + ($$0104105<<2)|0);
  12391. HEAP8[$42>>0] = $41;
  12392. $43 = $37 >>> 6;
  12393. $44 = $43 & 31;
  12394. $45 = (+($44|0));
  12395. $46 = $45 * 8.0;
  12396. $47 = (~~(($46))&255);
  12397. $48 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12398. HEAP8[$48>>0] = $47;
  12399. $49 = $37 >>> 1;
  12400. $50 = $49 & 31;
  12401. $51 = (+($50|0));
  12402. $52 = $51 * 8.0;
  12403. $53 = (~~(($52))&255);
  12404. $54 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12405. HEAP8[$54>>0] = $53;
  12406. $55 = $37 & 1;
  12407. $56 = (0 - ($55))|0;
  12408. $57 = $56&255;
  12409. $58 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12410. HEAP8[$58>>0] = $57;
  12411. $59 = (($$0106) + 1)|0;
  12412. $$1 = $59;
  12413. break;
  12414. }
  12415. case 3: {
  12416. $60 = (($13) + ($$0106<<1)|0);
  12417. $61 = HEAP16[$60>>1]|0;
  12418. $62 = $61&65535;
  12419. $63 = $62 >>> 11;
  12420. $64 = (+($63|0));
  12421. $65 = $64 * 8.0;
  12422. $66 = (~~(($65))&255);
  12423. $67 = (($7) + ($$0104105<<2)|0);
  12424. HEAP8[$67>>0] = $66;
  12425. $68 = $62 >>> 5;
  12426. $69 = $68 & 63;
  12427. $70 = (+($69|0));
  12428. $71 = $70 * 4.0;
  12429. $72 = (~~(($71))&255);
  12430. $73 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12431. HEAP8[$73>>0] = $72;
  12432. $74 = $62 & 31;
  12433. $75 = (+($74|0));
  12434. $76 = $75 * 8.0;
  12435. $77 = (~~(($76))&255);
  12436. $78 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12437. HEAP8[$78>>0] = $77;
  12438. $79 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12439. HEAP8[$79>>0] = -1;
  12440. $80 = (($$0106) + 1)|0;
  12441. $$1 = $80;
  12442. break;
  12443. }
  12444. case 6: {
  12445. $81 = (($13) + ($$0106<<1)|0);
  12446. $82 = HEAP16[$81>>1]|0;
  12447. $83 = $82&65535;
  12448. $84 = $83 >>> 12;
  12449. $85 = (+($84|0));
  12450. $86 = $85 * 17.0;
  12451. $87 = (~~(($86))&255);
  12452. $88 = (($7) + ($$0104105<<2)|0);
  12453. HEAP8[$88>>0] = $87;
  12454. $89 = $83 >>> 8;
  12455. $90 = $89 & 15;
  12456. $91 = (+($90|0));
  12457. $92 = $91 * 17.0;
  12458. $93 = (~~(($92))&255);
  12459. $94 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12460. HEAP8[$94>>0] = $93;
  12461. $95 = $83 >>> 4;
  12462. $96 = $95 & 15;
  12463. $97 = (+($96|0));
  12464. $98 = $97 * 17.0;
  12465. $99 = (~~(($98))&255);
  12466. $100 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12467. HEAP8[$100>>0] = $99;
  12468. $101 = $83 & 15;
  12469. $102 = (+($101|0));
  12470. $103 = $102 * 17.0;
  12471. $104 = (~~(($103))&255);
  12472. $105 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12473. HEAP8[$105>>0] = $104;
  12474. $106 = (($$0106) + 1)|0;
  12475. $$1 = $106;
  12476. break;
  12477. }
  12478. case 7: {
  12479. $107 = (($13) + ($$0106)|0);
  12480. $108 = HEAP8[$107>>0]|0;
  12481. $109 = (($7) + ($$0104105<<2)|0);
  12482. HEAP8[$109>>0] = $108;
  12483. $110 = (($$0106) + 1)|0;
  12484. $111 = (($13) + ($110)|0);
  12485. $112 = HEAP8[$111>>0]|0;
  12486. $113 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12487. HEAP8[$113>>0] = $112;
  12488. $114 = (($$0106) + 2)|0;
  12489. $115 = (($13) + ($114)|0);
  12490. $116 = HEAP8[$115>>0]|0;
  12491. $117 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12492. HEAP8[$117>>0] = $116;
  12493. $118 = (($$0106) + 3)|0;
  12494. $119 = (($13) + ($118)|0);
  12495. $120 = HEAP8[$119>>0]|0;
  12496. $121 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12497. HEAP8[$121>>0] = $120;
  12498. $122 = (($$0106) + 4)|0;
  12499. $$1 = $122;
  12500. break;
  12501. }
  12502. case 4: {
  12503. $123 = (($13) + ($$0106)|0);
  12504. $124 = HEAP8[$123>>0]|0;
  12505. $125 = (($7) + ($$0104105<<2)|0);
  12506. HEAP8[$125>>0] = $124;
  12507. $126 = (($$0106) + 1)|0;
  12508. $127 = (($13) + ($126)|0);
  12509. $128 = HEAP8[$127>>0]|0;
  12510. $129 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12511. HEAP8[$129>>0] = $128;
  12512. $130 = (($$0106) + 2)|0;
  12513. $131 = (($13) + ($130)|0);
  12514. $132 = HEAP8[$131>>0]|0;
  12515. $133 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12516. HEAP8[$133>>0] = $132;
  12517. $134 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12518. HEAP8[$134>>0] = -1;
  12519. $135 = (($$0106) + 3)|0;
  12520. $$1 = $135;
  12521. break;
  12522. }
  12523. default: {
  12524. _TraceLog(2,5128,$vararg_buffer);
  12525. $$1 = $$0106;
  12526. }
  12527. }
  12528. $136 = (($$0104105) + 1)|0;
  12529. $137 = HEAP32[$1>>2]|0;
  12530. $138 = HEAP32[$3>>2]|0;
  12531. $139 = Math_imul($138, $137)|0;
  12532. $140 = ($136|0)<($139|0);
  12533. if ($140) {
  12534. $$0104105 = $136;$$0106 = $$1;
  12535. } else {
  12536. break;
  12537. }
  12538. }
  12539. STACKTOP = sp;return ($7|0);
  12540. }
  12541. function _ErrorCallback($0,$1) {
  12542. $0 = $0|0;
  12543. $1 = $1|0;
  12544. var $vararg_buffer = 0, $vararg_ptr1 = 0, label = 0, sp = 0;
  12545. sp = STACKTOP;
  12546. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  12547. $vararg_buffer = sp;
  12548. HEAP32[$vararg_buffer>>2] = $0;
  12549. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  12550. HEAP32[$vararg_ptr1>>2] = $1;
  12551. _TraceLog(2,8994,$vararg_buffer);
  12552. STACKTOP = sp;return;
  12553. }
  12554. function _rlGetVersion() {
  12555. var label = 0, sp = 0;
  12556. sp = STACKTOP;
  12557. return 4;
  12558. }
  12559. function _SetupFramebufferSize($0,$1) {
  12560. $0 = $0|0;
  12561. $1 = $1|0;
  12562. 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;
  12563. 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;
  12564. 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;
  12565. var $vararg_ptr3 = 0, $vararg_ptr7 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  12566. sp = STACKTOP;
  12567. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  12568. $vararg_buffer8 = sp + 24|0;
  12569. $vararg_buffer4 = sp + 16|0;
  12570. $vararg_buffer = sp;
  12571. $2 = sp + 40|0;
  12572. $3 = HEAP32[4884]|0;
  12573. $4 = ($3|0)>($0|0);
  12574. if (!($4)) {
  12575. $5 = HEAP32[4883]|0;
  12576. $6 = ($5|0)>($1|0);
  12577. if (!($6)) {
  12578. $30 = ($3|0)<($0|0);
  12579. $31 = ($5|0)<($1|0);
  12580. $or$cond = $30 | $31;
  12581. if (!($or$cond)) {
  12582. HEAP32[4925] = $3;
  12583. HEAP32[4926] = $5;
  12584. HEAP32[4927] = 0;
  12585. HEAP32[4928] = 0;
  12586. STACKTOP = sp;return;
  12587. }
  12588. HEAP32[$vararg_buffer8>>2] = $3;
  12589. $vararg_ptr11 = ((($vararg_buffer8)) + 4|0);
  12590. HEAP32[$vararg_ptr11>>2] = $5;
  12591. $vararg_ptr12 = ((($vararg_buffer8)) + 8|0);
  12592. HEAP32[$vararg_ptr12>>2] = $0;
  12593. $vararg_ptr13 = ((($vararg_buffer8)) + 12|0);
  12594. HEAP32[$vararg_ptr13>>2] = $1;
  12595. _TraceLog(0,8928,$vararg_buffer8);
  12596. $32 = (+($0|0));
  12597. $33 = (+($1|0));
  12598. $34 = $32 / $33;
  12599. $35 = HEAP32[4884]|0;
  12600. $36 = (+($35|0));
  12601. $37 = HEAP32[4883]|0;
  12602. $38 = (+($37|0));
  12603. $39 = $36 / $38;
  12604. $40 = !($34 <= $39);
  12605. if ($40) {
  12606. $44 = $34 * $38;
  12607. $roundf = (+_roundf((+$44)));
  12608. $45 = (~~(($roundf)));
  12609. HEAP32[4925] = $45;
  12610. HEAP32[4926] = $37;
  12611. $46 = (($45) - ($35))|0;
  12612. HEAP32[4927] = $46;
  12613. $$sink1 = 0;
  12614. } else {
  12615. HEAP32[4925] = $35;
  12616. $41 = $36 / $34;
  12617. $roundf38 = (+_roundf((+$41)));
  12618. $42 = (~~(($roundf38)));
  12619. HEAP32[4926] = $42;
  12620. HEAP32[4927] = 0;
  12621. $43 = (($42) - ($37))|0;
  12622. $$sink1 = $43;
  12623. }
  12624. HEAP32[4928] = $$sink1;
  12625. STACKTOP = sp;return;
  12626. }
  12627. }
  12628. $7 = HEAP32[4883]|0;
  12629. HEAP32[$vararg_buffer>>2] = $3;
  12630. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  12631. HEAP32[$vararg_ptr1>>2] = $7;
  12632. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  12633. HEAP32[$vararg_ptr2>>2] = $0;
  12634. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  12635. HEAP32[$vararg_ptr3>>2] = $1;
  12636. _TraceLog(2,8785,$vararg_buffer);
  12637. $8 = (+($0|0));
  12638. $9 = HEAP32[4884]|0;
  12639. $10 = (+($9|0));
  12640. $11 = $8 / $10;
  12641. $12 = (+($1|0));
  12642. $13 = HEAP32[4883]|0;
  12643. $14 = (+($13|0));
  12644. $15 = $12 / $14;
  12645. $16 = !($11 <= $15);
  12646. if ($16) {
  12647. $22 = $10 * $15;
  12648. $roundf39 = (+_roundf((+$22)));
  12649. $23 = (~~(($roundf39)));
  12650. HEAP32[4925] = $23;
  12651. HEAP32[4926] = $1;
  12652. $24 = (($0) - ($23))|0;
  12653. HEAP32[4927] = $24;
  12654. $$sink = 0;
  12655. } else {
  12656. HEAP32[4925] = $0;
  12657. $17 = HEAP32[4883]|0;
  12658. $18 = (+($17|0));
  12659. $19 = $11 * $18;
  12660. $roundf40 = (+_roundf((+$19)));
  12661. $20 = (~~(($roundf40)));
  12662. HEAP32[4926] = $20;
  12663. HEAP32[4927] = 0;
  12664. $21 = (($1) - ($20))|0;
  12665. $$sink = $21;
  12666. }
  12667. HEAP32[4928] = $$sink;
  12668. $25 = HEAP32[4925]|0;
  12669. $26 = (+($25|0));
  12670. $27 = HEAP32[4884]|0;
  12671. $28 = (+($27|0));
  12672. $29 = $26 / $28;
  12673. _MatrixScale($2,$29,$29,$29);
  12674. dest=19624; 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));
  12675. HEAP32[4925] = $0;
  12676. HEAP32[4926] = $1;
  12677. HEAP32[$vararg_buffer4>>2] = $0;
  12678. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  12679. HEAP32[$vararg_ptr7>>2] = $1;
  12680. _TraceLog(2,8863,$vararg_buffer4);
  12681. STACKTOP = sp;return;
  12682. }
  12683. function _WindowSizeCallback($0,$1,$2) {
  12684. $0 = $0|0;
  12685. $1 = $1|0;
  12686. $2 = $2|0;
  12687. var $3 = 0.0, $4 = 0.0, label = 0, sp = 0;
  12688. sp = STACKTOP;
  12689. _rlViewport(0,0,$1,$2);
  12690. _rlMatrixMode(5889);
  12691. _rlLoadIdentity();
  12692. $3 = (+($1|0));
  12693. $4 = (+($2|0));
  12694. _rlOrtho(0.0,$3,$4,0.0,0.0,1.0);
  12695. _rlMatrixMode(5888);
  12696. _rlLoadIdentity();
  12697. _rlClearScreenBuffers();
  12698. HEAP32[4884] = $1;
  12699. HEAP32[4883] = $2;
  12700. HEAP32[4925] = $1;
  12701. HEAP32[4926] = $2;
  12702. return;
  12703. }
  12704. function _CursorEnterCallback($0,$1) {
  12705. $0 = $0|0;
  12706. $1 = $1|0;
  12707. var label = 0, sp = 0;
  12708. sp = STACKTOP;
  12709. return;
  12710. }
  12711. function _KeyCallback($0,$1,$2,$3,$4) {
  12712. $0 = $0|0;
  12713. $1 = $1|0;
  12714. $2 = $2|0;
  12715. $3 = $3|0;
  12716. $4 = $4|0;
  12717. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  12718. sp = STACKTOP;
  12719. $5 = HEAP32[742]|0;
  12720. $6 = ($5|0)==($1|0);
  12721. $7 = ($3|0)==(1);
  12722. $or$cond = $7 & $6;
  12723. if ($or$cond) {
  12724. _glfwSetWindowShouldClose(($0|0),1);
  12725. return;
  12726. }
  12727. $8 = $3&255;
  12728. $9 = (22367 + ($1)|0);
  12729. HEAP8[$9>>0] = $8;
  12730. if (!($7)) {
  12731. return;
  12732. }
  12733. HEAP32[741] = $1;
  12734. return;
  12735. }
  12736. function _MouseButtonCallback($0,$1,$2,$3) {
  12737. $0 = $0|0;
  12738. $1 = $1|0;
  12739. $2 = $2|0;
  12740. $3 = $3|0;
  12741. 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;
  12742. 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;
  12743. sp = STACKTOP;
  12744. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  12745. $$byval_copy = sp + 64|0;
  12746. $4 = sp + 8|0;
  12747. $5 = sp;
  12748. $6 = $2&255;
  12749. $7 = (22361 + ($1)|0);
  12750. HEAP8[$7>>0] = $6;
  12751. $8 = (_IsMouseButtonPressed(0)|0);
  12752. $9 = ($8|0)==(0);
  12753. if ($9) {
  12754. $10 = (_IsMouseButtonReleased(0)|0);
  12755. $11 = ($10|0)==(0);
  12756. if (!($11)) {
  12757. $$sink = 0;
  12758. label = 3;
  12759. }
  12760. } else {
  12761. $$sink = 1;
  12762. label = 3;
  12763. }
  12764. if ((label|0) == 3) {
  12765. HEAP32[$4>>2] = $$sink;
  12766. }
  12767. $12 = ((($4)) + 8|0);
  12768. HEAP32[$12>>2] = 0;
  12769. $13 = ((($4)) + 4|0);
  12770. HEAP32[$13>>2] = 1;
  12771. $14 = ((($4)) + 24|0);
  12772. _GetMousePosition($5);
  12773. $15 = $5;
  12774. $16 = $15;
  12775. $17 = HEAP32[$16>>2]|0;
  12776. $18 = (($15) + 4)|0;
  12777. $19 = $18;
  12778. $20 = HEAP32[$19>>2]|0;
  12779. $21 = $14;
  12780. $22 = $21;
  12781. HEAP32[$22>>2] = $17;
  12782. $23 = (($21) + 4)|0;
  12783. $24 = $23;
  12784. HEAP32[$24>>2] = $20;
  12785. $25 = (_GetScreenWidth()|0);
  12786. $26 = (+($25|0));
  12787. $27 = +HEAPF32[$14>>2];
  12788. $28 = $27 / $26;
  12789. HEAPF32[$14>>2] = $28;
  12790. $29 = (_GetScreenHeight()|0);
  12791. $30 = (+($29|0));
  12792. $31 = ((($4)) + 28|0);
  12793. $32 = +HEAPF32[$31>>2];
  12794. $33 = $32 / $30;
  12795. HEAPF32[$31>>2] = $33;
  12796. 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));
  12797. _ProcessGestureEvent($$byval_copy);
  12798. STACKTOP = sp;return;
  12799. }
  12800. function _MouseCursorPosCallback($0,$1,$2) {
  12801. $0 = $0|0;
  12802. $1 = +$1;
  12803. $2 = +$2;
  12804. 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;
  12805. 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;
  12806. sp = STACKTOP;
  12807. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  12808. $$byval_copy = sp + 56|0;
  12809. $3 = sp;
  12810. HEAP32[$3>>2] = 2;
  12811. $4 = ((($3)) + 8|0);
  12812. HEAP32[$4>>2] = 0;
  12813. $5 = ((($3)) + 4|0);
  12814. HEAP32[$5>>2] = 1;
  12815. $6 = $1;
  12816. $7 = $2;
  12817. $$sroa$0$0$$sroa_idx = ((($3)) + 24|0);
  12818. HEAPF32[$$sroa$0$0$$sroa_idx>>2] = $6;
  12819. $$sroa$2$0$$sroa_idx1 = ((($3)) + 28|0);
  12820. HEAPF32[$$sroa$2$0$$sroa_idx1>>2] = $7;
  12821. $8 = ((($3)) + 24|0);
  12822. $9 = $8;
  12823. $10 = $9;
  12824. $11 = HEAP32[$10>>2]|0;
  12825. $12 = (($9) + 4)|0;
  12826. $13 = $12;
  12827. $14 = HEAP32[$13>>2]|0;
  12828. $15 = 19232;
  12829. $16 = $15;
  12830. HEAP32[$16>>2] = $11;
  12831. $17 = (($15) + 4)|0;
  12832. $18 = $17;
  12833. HEAP32[$18>>2] = $14;
  12834. $19 = (_GetScreenWidth()|0);
  12835. $20 = (+($19|0));
  12836. $21 = +HEAPF32[$8>>2];
  12837. $22 = $21 / $20;
  12838. HEAPF32[$8>>2] = $22;
  12839. $23 = (_GetScreenHeight()|0);
  12840. $24 = (+($23|0));
  12841. $25 = +HEAPF32[$$sroa$2$0$$sroa_idx1>>2];
  12842. $26 = $25 / $24;
  12843. HEAPF32[$$sroa$2$0$$sroa_idx1>>2] = $26;
  12844. 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));
  12845. _ProcessGestureEvent($$byval_copy);
  12846. STACKTOP = sp;return;
  12847. }
  12848. function _CharCallback($0,$1) {
  12849. $0 = $0|0;
  12850. $1 = $1|0;
  12851. var label = 0, sp = 0;
  12852. sp = STACKTOP;
  12853. HEAP32[741] = $1;
  12854. return;
  12855. }
  12856. function _ScrollCallback($0,$1,$2) {
  12857. $0 = $0|0;
  12858. $1 = +$1;
  12859. $2 = +$2;
  12860. var $3 = 0, label = 0, sp = 0;
  12861. sp = STACKTOP;
  12862. $3 = (~~(($2)));
  12863. HEAP32[5298] = $3;
  12864. return;
  12865. }
  12866. function _WindowIconifyCallback($0,$1) {
  12867. $0 = $0|0;
  12868. $1 = $1|0;
  12869. var $$sink = 0, $2 = 0, label = 0, sp = 0;
  12870. sp = STACKTOP;
  12871. $2 = ($1|0)!=(0);
  12872. $$sink = $2&1;
  12873. HEAP32[5297] = $$sink;
  12874. return;
  12875. }
  12876. function _rlglInit($0,$1) {
  12877. $0 = $0|0;
  12878. $1 = $1|0;
  12879. 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;
  12880. 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;
  12881. 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;
  12882. 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;
  12883. 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;
  12884. 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;
  12885. sp = STACKTOP;
  12886. STACKTOP = STACKTOP + 2464|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(2464|0);
  12887. $vararg_buffer41 = sp + 2184|0;
  12888. $vararg_buffer39 = sp + 2176|0;
  12889. $vararg_buffer36 = sp + 2168|0;
  12890. $vararg_buffer34 = sp + 2160|0;
  12891. $vararg_buffer31 = sp + 2152|0;
  12892. $vararg_buffer29 = sp + 2144|0;
  12893. $vararg_buffer27 = sp + 2136|0;
  12894. $vararg_buffer25 = sp + 2128|0;
  12895. $vararg_buffer23 = sp + 2120|0;
  12896. $vararg_buffer21 = sp + 2112|0;
  12897. $vararg_buffer19 = sp + 2104|0;
  12898. $vararg_buffer17 = sp + 2096|0;
  12899. $vararg_buffer15 = sp + 2088|0;
  12900. $vararg_buffer13 = sp + 2080|0;
  12901. $vararg_buffer10 = sp + 2072|0;
  12902. $vararg_buffer7 = sp + 24|0;
  12903. $vararg_buffer4 = sp + 16|0;
  12904. $vararg_buffer1 = sp + 8|0;
  12905. $vararg_buffer = sp;
  12906. $2 = sp + 2400|0;
  12907. $3 = sp + 2384|0;
  12908. $4 = sp + 2320|0;
  12909. $5 = sp + 2256|0;
  12910. $6 = sp + 2192|0;
  12911. $7 = (_glGetString(7936)|0);
  12912. HEAP32[$vararg_buffer>>2] = $7;
  12913. _TraceLog(0,5426,$vararg_buffer);
  12914. $8 = (_glGetString(7937)|0);
  12915. HEAP32[$vararg_buffer1>>2] = $8;
  12916. _TraceLog(0,5444,$vararg_buffer1);
  12917. $9 = (_glGetString(7938)|0);
  12918. HEAP32[$vararg_buffer4>>2] = $9;
  12919. _TraceLog(0,5462,$vararg_buffer4);
  12920. $10 = (_glGetString(35724)|0);
  12921. HEAP32[$vararg_buffer7>>2] = $10;
  12922. _TraceLog(0,5480,$vararg_buffer7);
  12923. $11 = (_glGetString(7939)|0);
  12924. $12 = (_strlen($11)|0);
  12925. $13 = (($12) + 1)|0;
  12926. $14 = (_malloc($13)|0);
  12927. _memcpy(($14|0),($11|0),($13|0))|0;
  12928. $$062 = 0;$$sink63 = $14;
  12929. while(1) {
  12930. $15 = (_strtok($$sink63,5498)|0);
  12931. $16 = (($vararg_buffer7) + ($$062<<2)|0);
  12932. HEAP32[$16>>2] = $15;
  12933. $17 = ($15|0)==(0|0);
  12934. $18 = (($$062) + 1)|0;
  12935. if ($17) {
  12936. break;
  12937. } else {
  12938. $$062 = $18;$$sink63 = 0;
  12939. }
  12940. }
  12941. _free($14);
  12942. $19 = (($$062) + -1)|0;
  12943. HEAP32[$vararg_buffer10>>2] = $19;
  12944. _TraceLog(0,5500,$vararg_buffer10);
  12945. $20 = ($$062|0)>(1);
  12946. if ($20) {
  12947. $$06167 = 0;
  12948. while(1) {
  12949. $23 = (($vararg_buffer7) + ($$06167<<2)|0);
  12950. $24 = HEAP32[$23>>2]|0;
  12951. $25 = (_strcmp($24,5535)|0);
  12952. $26 = ($25|0)==(0);
  12953. if ($26) {
  12954. HEAP32[4963] = 1;
  12955. $27 = (_eglGetProcAddress((5562|0))|0);
  12956. HEAP32[4964] = $27;
  12957. $28 = (_eglGetProcAddress((5583|0))|0);
  12958. HEAP32[4965] = $28;
  12959. $29 = (_eglGetProcAddress((5604|0))|0);
  12960. HEAP32[4966] = $29;
  12961. }
  12962. $30 = (_strcmp($24,5628)|0);
  12963. $31 = ($30|0)==(0);
  12964. if ($31) {
  12965. HEAP32[4905] = 1;
  12966. }
  12967. $32 = (_strcmp($24,5648)|0);
  12968. $33 = ($32|0)==(0);
  12969. if ($33) {
  12970. label = 12;
  12971. } else {
  12972. $34 = HEAP32[$23>>2]|0;
  12973. $35 = (_strcmp($34,5680)|0);
  12974. $36 = ($35|0)==(0);
  12975. if ($36) {
  12976. label = 12;
  12977. } else {
  12978. $37 = (_strcmp($34,5713)|0);
  12979. $38 = ($37|0)==(0);
  12980. if ($38) {
  12981. label = 12;
  12982. }
  12983. }
  12984. }
  12985. if ((label|0) == 12) {
  12986. label = 0;
  12987. HEAP32[4900] = 1;
  12988. }
  12989. $39 = (_strcmp($24,5753)|0);
  12990. $40 = ($39|0)==(0);
  12991. if ($40) {
  12992. label = 15;
  12993. } else {
  12994. $41 = HEAP32[$23>>2]|0;
  12995. $42 = (_strcmp($41,5789)|0);
  12996. $43 = ($42|0)==(0);
  12997. if ($43) {
  12998. label = 15;
  12999. }
  13000. }
  13001. if ((label|0) == 15) {
  13002. label = 0;
  13003. HEAP32[4901] = 1;
  13004. }
  13005. $44 = HEAP32[$23>>2]|0;
  13006. $45 = (_strcmp($44,5822)|0);
  13007. $46 = ($45|0)==(0);
  13008. if ($46) {
  13009. HEAP32[4902] = 1;
  13010. }
  13011. $47 = (_strcmp($44,5847)|0);
  13012. $48 = ($47|0)==(0);
  13013. if ($48) {
  13014. HEAP32[4903] = 1;
  13015. }
  13016. $49 = (_strcmp($44,5880)|0);
  13017. $50 = ($49|0)==(0);
  13018. if ($50) {
  13019. HEAP32[4904] = 1;
  13020. }
  13021. $51 = (_strcmp($44,5916)|0);
  13022. $52 = ($51|0)==(0);
  13023. if ($52) {
  13024. HEAP32[4967] = 1;
  13025. _glGetFloatv(34047,(19872|0));
  13026. }
  13027. $53 = HEAP32[$23>>2]|0;
  13028. $54 = (_strcmp($53,5950)|0);
  13029. $55 = ($54|0)==(0);
  13030. if ($55) {
  13031. HEAP32[4969] = 1;
  13032. }
  13033. $56 = (($$06167) + 1)|0;
  13034. $exitcond70 = ($56|0)==($19|0);
  13035. if ($exitcond70) {
  13036. break;
  13037. } else {
  13038. $$06167 = $56;
  13039. }
  13040. }
  13041. }
  13042. $21 = HEAP32[4963]|0;
  13043. $22 = ($21|0)==(0);
  13044. if ($22) {
  13045. _TraceLog(2,6053,$vararg_buffer15);
  13046. } else {
  13047. _TraceLog(0,5978,$vararg_buffer13);
  13048. }
  13049. $57 = HEAP32[4905]|0;
  13050. $58 = ($57|0)==(0);
  13051. if ($58) {
  13052. _TraceLog(2,6189,$vararg_buffer19);
  13053. } else {
  13054. _TraceLog(0,6114,$vararg_buffer17);
  13055. }
  13056. $59 = HEAP32[4900]|0;
  13057. $60 = ($59|0)==(0);
  13058. if (!($60)) {
  13059. _TraceLog(0,6281,$vararg_buffer21);
  13060. }
  13061. $61 = HEAP32[4901]|0;
  13062. $62 = ($61|0)==(0);
  13063. if (!($62)) {
  13064. _TraceLog(0,6327,$vararg_buffer23);
  13065. }
  13066. $63 = HEAP32[4902]|0;
  13067. $64 = ($63|0)==(0);
  13068. if (!($64)) {
  13069. _TraceLog(0,6374,$vararg_buffer25);
  13070. }
  13071. $65 = HEAP32[4903]|0;
  13072. $66 = ($65|0)==(0);
  13073. if (!($66)) {
  13074. _TraceLog(0,6425,$vararg_buffer27);
  13075. }
  13076. $67 = HEAP32[4904]|0;
  13077. $68 = ($67|0)==(0);
  13078. if (!($68)) {
  13079. _TraceLog(0,6472,$vararg_buffer29);
  13080. }
  13081. $69 = HEAP32[4967]|0;
  13082. $70 = ($69|0)==(0);
  13083. if (!($70)) {
  13084. $71 = +HEAPF32[4968];
  13085. $72 = $71;
  13086. HEAPF64[$vararg_buffer31>>3] = $72;
  13087. _TraceLog(0,6519,$vararg_buffer31);
  13088. }
  13089. $73 = HEAP32[4969]|0;
  13090. $74 = ($73|0)==(0);
  13091. if (!($74)) {
  13092. _TraceLog(0,6585,$vararg_buffer34);
  13093. }
  13094. HEAP32[$vararg_buffer10>>2] = -1;
  13095. $75 = (_rlglLoadTexture($vararg_buffer10,1,1,7,1)|0);
  13096. HEAP32[4970] = $75;
  13097. $76 = ($75|0)==(0);
  13098. if ($76) {
  13099. _TraceLog(2,6689,$vararg_buffer39);
  13100. } else {
  13101. HEAP32[$vararg_buffer36>>2] = $75;
  13102. _TraceLog(0,6638,$vararg_buffer36);
  13103. }
  13104. _LoadDefaultShader($2);
  13105. dest=19884; 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));
  13106. dest=19940; 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));
  13107. _LoadDefaultBuffers();
  13108. $77 = (_malloc(49152)|0);
  13109. HEAP32[4999] = $77;
  13110. $$06066 = 0;
  13111. while(1) {
  13112. $79 = HEAP32[4999]|0;
  13113. $80 = (($79) + (($$06066*12)|0)|0);
  13114. _VectorZero($3);
  13115. ;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;
  13116. $81 = (($$06066) + 1)|0;
  13117. $exitcond69 = ($81|0)==(4096);
  13118. if ($exitcond69) {
  13119. break;
  13120. } else {
  13121. $$06066 = $81;
  13122. }
  13123. }
  13124. $78 = (_malloc(36864)|0);
  13125. HEAP32[5000] = $78;
  13126. $$05965 = 0;
  13127. while(1) {
  13128. $82 = (((($78) + (($$05965*144)|0)|0)) + 8|0);
  13129. HEAP32[$82>>2] = 0;
  13130. $83 = (($78) + (($$05965*144)|0)|0);
  13131. HEAP32[$83>>2] = 0;
  13132. $84 = (($$05965) + 1)|0;
  13133. $exitcond = ($84|0)==(256);
  13134. if ($exitcond) {
  13135. break;
  13136. } else {
  13137. $$05965 = $84;
  13138. }
  13139. }
  13140. HEAP32[5001] = 1;
  13141. $85 = HEAP32[4970]|0;
  13142. $86 = ((($78)) + 8|0);
  13143. HEAP32[$86>>2] = $85;
  13144. HEAP32[5002] = 4;
  13145. _MatrixIdentity($4);
  13146. dest=20012; 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));
  13147. _MatrixIdentity($4);
  13148. dest=(20076); 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));
  13149. _MatrixIdentity($4);
  13150. dest=(20140); 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));
  13151. _MatrixIdentity($4);
  13152. dest=(20204); 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));
  13153. _MatrixIdentity($4);
  13154. dest=(20268); 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));
  13155. _MatrixIdentity($4);
  13156. dest=(20332); 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));
  13157. _MatrixIdentity($4);
  13158. dest=(20396); 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));
  13159. _MatrixIdentity($4);
  13160. dest=(20460); 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));
  13161. _MatrixIdentity($4);
  13162. dest=(20524); 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));
  13163. _MatrixIdentity($4);
  13164. dest=(20588); 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));
  13165. _MatrixIdentity($4);
  13166. dest=(20652); 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));
  13167. _MatrixIdentity($4);
  13168. dest=(20716); 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));
  13169. _MatrixIdentity($4);
  13170. dest=(20780); 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));
  13171. _MatrixIdentity($4);
  13172. dest=(20844); 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));
  13173. _MatrixIdentity($4);
  13174. dest=(20908); 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));
  13175. _MatrixIdentity($4);
  13176. dest=(20972); 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));
  13177. _MatrixIdentity($5);
  13178. dest=19720; 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));
  13179. _MatrixIdentity($6);
  13180. dest=19784; 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));
  13181. HEAP32[4929] = 19784;
  13182. _glDepthFunc(515);
  13183. _glDisable(2929);
  13184. _glBlendFunc(770,771);
  13185. _glEnable(3042);
  13186. _glCullFace(1029);
  13187. _glFrontFace(2305);
  13188. _glEnable(2884);
  13189. _glClearColor(0.0,0.0,0.0,1.0);
  13190. _glClearDepthf(1.0);
  13191. _glClear(16640);
  13192. HEAP32[5259] = $0;
  13193. HEAP32[5260] = $1;
  13194. _TraceLog(0,6728,$vararg_buffer41);
  13195. STACKTOP = sp;return;
  13196. }
  13197. function _SetupViewport() {
  13198. var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  13199. sp = STACKTOP;
  13200. $0 = HEAP32[4927]|0;
  13201. $1 = (($0|0) / 2)&-1;
  13202. $2 = HEAP32[4928]|0;
  13203. $3 = (($2|0) / 2)&-1;
  13204. $4 = HEAP32[4925]|0;
  13205. $5 = (($4) - ($0))|0;
  13206. $6 = HEAP32[4926]|0;
  13207. $7 = (($6) - ($2))|0;
  13208. _rlViewport($1,$3,$5,$7);
  13209. return;
  13210. }
  13211. function _rlMatrixMode($0) {
  13212. $0 = $0|0;
  13213. var $modelview$sink = 0, label = 0, sp = 0;
  13214. sp = STACKTOP;
  13215. switch ($0|0) {
  13216. case 5889: {
  13217. $modelview$sink = 19720;
  13218. label = 3;
  13219. break;
  13220. }
  13221. case 5888: {
  13222. $modelview$sink = 19784;
  13223. label = 3;
  13224. break;
  13225. }
  13226. default: {
  13227. }
  13228. }
  13229. if ((label|0) == 3) {
  13230. HEAP32[4929] = $modelview$sink;
  13231. }
  13232. HEAP32[4962] = $0;
  13233. return;
  13234. }
  13235. function _rlLoadIdentity() {
  13236. var $0 = 0, $1 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  13237. sp = STACKTOP;
  13238. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  13239. $0 = sp;
  13240. $1 = HEAP32[4929]|0;
  13241. _MatrixIdentity($0);
  13242. 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));
  13243. STACKTOP = sp;return;
  13244. }
  13245. function _rlOrtho($0,$1,$2,$3,$4,$5) {
  13246. $0 = +$0;
  13247. $1 = +$1;
  13248. $2 = +$2;
  13249. $3 = +$3;
  13250. $4 = +$4;
  13251. $5 = +$5;
  13252. var $$byval_copy = 0, $$byval_copy1 = 0, $6 = 0, $7 = 0, $8 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  13253. sp = STACKTOP;
  13254. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  13255. $$byval_copy1 = sp + 192|0;
  13256. $$byval_copy = sp + 128|0;
  13257. $6 = sp + 64|0;
  13258. $7 = sp;
  13259. _MatrixOrtho($6,$0,$1,$2,$3,$4,$5);
  13260. _MatrixTranspose($6);
  13261. $8 = HEAP32[4929]|0;
  13262. 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));
  13263. 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));
  13264. _MatrixMultiply($7,$$byval_copy,$$byval_copy1);
  13265. 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));
  13266. STACKTOP = sp;return;
  13267. }
  13268. function _ClearBackground($0) {
  13269. $0 = $0|0;
  13270. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  13271. sp = STACKTOP;
  13272. $1 = HEAP8[$0>>0]|0;
  13273. $2 = ((($0)) + 1|0);
  13274. $3 = HEAP8[$2>>0]|0;
  13275. $4 = ((($0)) + 2|0);
  13276. $5 = HEAP8[$4>>0]|0;
  13277. $6 = ((($0)) + 3|0);
  13278. $7 = HEAP8[$6>>0]|0;
  13279. _rlClearColor($1,$3,$5,$7);
  13280. return;
  13281. }
  13282. function _rlClearColor($0,$1,$2,$3) {
  13283. $0 = $0|0;
  13284. $1 = $1|0;
  13285. $2 = $2|0;
  13286. $3 = $3|0;
  13287. 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;
  13288. sp = STACKTOP;
  13289. $4 = (+($0&255));
  13290. $5 = $4 / 255.0;
  13291. $6 = (+($1&255));
  13292. $7 = $6 / 255.0;
  13293. $8 = (+($2&255));
  13294. $9 = $8 / 255.0;
  13295. $10 = (+($3&255));
  13296. $11 = $10 / 255.0;
  13297. _glClearColor((+$5),(+$7),(+$9),(+$11));
  13298. return;
  13299. }
  13300. function _rlViewport($0,$1,$2,$3) {
  13301. $0 = $0|0;
  13302. $1 = $1|0;
  13303. $2 = $2|0;
  13304. $3 = $3|0;
  13305. var label = 0, sp = 0;
  13306. sp = STACKTOP;
  13307. _glViewport(($0|0),($1|0),($2|0),($3|0));
  13308. return;
  13309. }
  13310. function _LoadDefaultShader($0) {
  13311. $0 = $0|0;
  13312. 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;
  13313. sp = STACKTOP;
  13314. STACKTOP = STACKTOP + 1008|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1008|0);
  13315. $vararg_buffer1 = sp + 8|0;
  13316. $vararg_buffer = sp;
  13317. $1 = sp + 16|0;
  13318. $2 = sp + 513|0;
  13319. $3 = sp + 72|0;
  13320. _memcpy(($2|0),(7304|0),489)|0;
  13321. _memcpy(($3|0),(7793|0),441)|0;
  13322. $4 = (_LoadShaderProgram($2,$3)|0);
  13323. HEAP32[$1>>2] = $4;
  13324. $5 = ($4|0)==(0);
  13325. if ($5) {
  13326. HEAP32[$vararg_buffer1>>2] = $4;
  13327. _TraceLog(2,8282,$vararg_buffer1);
  13328. } else {
  13329. HEAP32[$vararg_buffer>>2] = $4;
  13330. _TraceLog(0,8234,$vararg_buffer);
  13331. }
  13332. $6 = HEAP32[$1>>2]|0;
  13333. $7 = ($6|0)==(0);
  13334. if (!($7)) {
  13335. _LoadDefaultShaderLocations($1);
  13336. }
  13337. 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));
  13338. STACKTOP = sp;return;
  13339. }
  13340. function _LoadDefaultBuffers() {
  13341. 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;
  13342. 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;
  13343. 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;
  13344. 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;
  13345. 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;
  13346. 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;
  13347. 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;
  13348. sp = STACKTOP;
  13349. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  13350. $vararg_buffer17 = sp + 48|0;
  13351. $vararg_buffer14 = sp + 40|0;
  13352. $vararg_buffer10 = sp + 32|0;
  13353. $vararg_buffer7 = sp + 24|0;
  13354. $vararg_buffer3 = sp + 16|0;
  13355. $vararg_buffer1 = sp + 8|0;
  13356. $vararg_buffer = sp;
  13357. $0 = (_malloc(24576)|0);
  13358. HEAP32[(21056)>>2] = $0;
  13359. $1 = (_malloc(8192)|0);
  13360. HEAP32[(21064)>>2] = $1;
  13361. HEAP32[(21060)>>2] = 0;
  13362. HEAP32[(21068)>>2] = 0;
  13363. _memset(($0|0),0,24576)|0;
  13364. $$05972 = 0;
  13365. while(1) {
  13366. $2 = HEAP32[(21064)>>2]|0;
  13367. $3 = (($2) + ($$05972)|0);
  13368. HEAP8[$3>>0] = 0;
  13369. $4 = (($$05972) + 1)|0;
  13370. $exitcond80 = ($4|0)==(8192);
  13371. if ($exitcond80) {
  13372. break;
  13373. } else {
  13374. $$05972 = $4;
  13375. }
  13376. }
  13377. HEAP32[5261] = 0;
  13378. HEAP32[(21052)>>2] = 0;
  13379. HEAP32[(21048)>>2] = 0;
  13380. $5 = (_malloc(73728)|0);
  13381. HEAP32[(21104)>>2] = $5;
  13382. $6 = (_malloc(24576)|0);
  13383. HEAP32[(21112)>>2] = $6;
  13384. HEAP32[(21108)>>2] = 0;
  13385. HEAP32[(21116)>>2] = 0;
  13386. _memset(($5|0),0,73728)|0;
  13387. $$05770 = 0;
  13388. while(1) {
  13389. $7 = HEAP32[(21112)>>2]|0;
  13390. $8 = (($7) + ($$05770)|0);
  13391. HEAP8[$8>>0] = 0;
  13392. $9 = (($$05770) + 1)|0;
  13393. $exitcond78 = ($9|0)==(24576);
  13394. if ($exitcond78) {
  13395. break;
  13396. } else {
  13397. $$05770 = $9;
  13398. }
  13399. }
  13400. HEAP32[5273] = 0;
  13401. HEAP32[(21100)>>2] = 0;
  13402. HEAP32[(21096)>>2] = 0;
  13403. $10 = (_malloc(49152)|0);
  13404. HEAP32[(21152)>>2] = $10;
  13405. $11 = (_malloc(32768)|0);
  13406. HEAP32[(21156)>>2] = $11;
  13407. $12 = (_malloc(16384)|0);
  13408. HEAP32[(21160)>>2] = $12;
  13409. $13 = (_malloc(12288)|0);
  13410. HEAP32[(21164)>>2] = $13;
  13411. $14 = HEAP32[(21152)>>2]|0;
  13412. _memset(($14|0),0,49152)|0;
  13413. $15 = HEAP32[(21156)>>2]|0;
  13414. _memset(($15|0),0,32768)|0;
  13415. $$05467 = 0;
  13416. while(1) {
  13417. $17 = HEAP32[(21160)>>2]|0;
  13418. $18 = (($17) + ($$05467)|0);
  13419. HEAP8[$18>>0] = 0;
  13420. $19 = (($$05467) + 1)|0;
  13421. $exitcond75 = ($19|0)==(16384);
  13422. if ($exitcond75) {
  13423. break;
  13424. } else {
  13425. $$05467 = $19;
  13426. }
  13427. }
  13428. $16 = HEAP32[(21164)>>2]|0;
  13429. $$05365 = 0;$$066 = 0;
  13430. while(1) {
  13431. $22 = $$05365 << 2;
  13432. $23 = $22&65535;
  13433. $24 = (($16) + ($$066<<1)|0);
  13434. HEAP16[$24>>1] = $23;
  13435. $25 = $22 | 1;
  13436. $26 = $25&65535;
  13437. $27 = $$066 | 1;
  13438. $28 = (($16) + ($27<<1)|0);
  13439. HEAP16[$28>>1] = $26;
  13440. $29 = $22 | 2;
  13441. $30 = $29&65535;
  13442. $31 = (($$066) + 2)|0;
  13443. $32 = (($16) + ($31<<1)|0);
  13444. HEAP16[$32>>1] = $30;
  13445. $33 = (($$066) + 3)|0;
  13446. $34 = (($16) + ($33<<1)|0);
  13447. HEAP16[$34>>1] = $23;
  13448. $35 = (($$066) + 4)|0;
  13449. $36 = (($16) + ($35<<1)|0);
  13450. HEAP16[$36>>1] = $30;
  13451. $37 = $22 | 3;
  13452. $38 = $37&65535;
  13453. $39 = (($$066) + 5)|0;
  13454. $40 = (($16) + ($39<<1)|0);
  13455. HEAP16[$40>>1] = $38;
  13456. $41 = (($$05365) + 1)|0;
  13457. $42 = (($$066) + 6)|0;
  13458. $exitcond = ($41|0)==(1024);
  13459. if ($exitcond) {
  13460. break;
  13461. } else {
  13462. $$05365 = $41;$$066 = $42;
  13463. }
  13464. }
  13465. HEAP32[5285] = 0;
  13466. HEAP32[(21144)>>2] = 0;
  13467. HEAP32[(21148)>>2] = 0;
  13468. _TraceLog(0,6775,$vararg_buffer);
  13469. $20 = HEAP32[4963]|0;
  13470. $21 = ($20|0)==(0);
  13471. if (!($21)) {
  13472. $43 = HEAP32[4964]|0;
  13473. FUNCTION_TABLE_vii[$43 & 63](1,(21072));
  13474. $44 = HEAP32[4965]|0;
  13475. $45 = HEAP32[(21072)>>2]|0;
  13476. FUNCTION_TABLE_vi[$44 & 31]($45);
  13477. }
  13478. _glGenBuffers(2,((21076)|0));
  13479. $46 = HEAP32[(21076)>>2]|0;
  13480. _glBindBuffer(34962,($46|0));
  13481. $47 = HEAP32[(21056)>>2]|0;
  13482. _glBufferData(34962,24576,($47|0),35048);
  13483. $48 = HEAP32[(19944)>>2]|0;
  13484. _glEnableVertexAttribArray(($48|0));
  13485. $49 = HEAP32[(19944)>>2]|0;
  13486. _glVertexAttribPointer(($49|0),3,5126,0,0,(0|0));
  13487. _glGenBuffers(2,((21080)|0));
  13488. $50 = HEAP32[(21080)>>2]|0;
  13489. _glBindBuffer(34962,($50|0));
  13490. $51 = HEAP32[(21064)>>2]|0;
  13491. _glBufferData(34962,8192,($51|0),35048);
  13492. $52 = HEAP32[(19964)>>2]|0;
  13493. _glEnableVertexAttribArray(($52|0));
  13494. $53 = HEAP32[(19964)>>2]|0;
  13495. _glVertexAttribPointer(($53|0),4,5121,1,0,(0|0));
  13496. $54 = HEAP32[4963]|0;
  13497. $55 = ($54|0)==(0);
  13498. if ($55) {
  13499. $57 = HEAP32[(21076)>>2]|0;
  13500. $58 = HEAP32[(21080)>>2]|0;
  13501. HEAP32[$vararg_buffer3>>2] = $57;
  13502. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  13503. HEAP32[$vararg_ptr6>>2] = $58;
  13504. _TraceLog(0,6913,$vararg_buffer3);
  13505. } else {
  13506. $56 = HEAP32[(21072)>>2]|0;
  13507. HEAP32[$vararg_buffer1>>2] = $56;
  13508. _TraceLog(0,6848,$vararg_buffer1);
  13509. }
  13510. $59 = HEAP32[4963]|0;
  13511. $60 = ($59|0)==(0);
  13512. if (!($60)) {
  13513. $61 = HEAP32[4964]|0;
  13514. FUNCTION_TABLE_vii[$61 & 63](1,(21120));
  13515. $62 = HEAP32[4965]|0;
  13516. $63 = HEAP32[(21120)>>2]|0;
  13517. FUNCTION_TABLE_vi[$62 & 31]($63);
  13518. }
  13519. _glGenBuffers(1,((21124)|0));
  13520. $64 = HEAP32[(21124)>>2]|0;
  13521. _glBindBuffer(34962,($64|0));
  13522. $65 = HEAP32[(21104)>>2]|0;
  13523. _glBufferData(34962,73728,($65|0),35048);
  13524. $66 = HEAP32[(19944)>>2]|0;
  13525. _glEnableVertexAttribArray(($66|0));
  13526. $67 = HEAP32[(19944)>>2]|0;
  13527. _glVertexAttribPointer(($67|0),3,5126,0,0,(0|0));
  13528. _glGenBuffers(1,((21128)|0));
  13529. $68 = HEAP32[(21128)>>2]|0;
  13530. _glBindBuffer(34962,($68|0));
  13531. $69 = HEAP32[(21112)>>2]|0;
  13532. _glBufferData(34962,24576,($69|0),35048);
  13533. $70 = HEAP32[(19964)>>2]|0;
  13534. _glEnableVertexAttribArray(($70|0));
  13535. $71 = HEAP32[(19964)>>2]|0;
  13536. _glVertexAttribPointer(($71|0),4,5121,1,0,(0|0));
  13537. $72 = HEAP32[4963]|0;
  13538. $73 = ($72|0)==(0);
  13539. if ($73) {
  13540. $75 = HEAP32[(21124)>>2]|0;
  13541. $76 = HEAP32[(21128)>>2]|0;
  13542. HEAP32[$vararg_buffer10>>2] = $75;
  13543. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  13544. HEAP32[$vararg_ptr13>>2] = $76;
  13545. _TraceLog(0,7059,$vararg_buffer10);
  13546. } else {
  13547. $74 = HEAP32[(21120)>>2]|0;
  13548. HEAP32[$vararg_buffer7>>2] = $74;
  13549. _TraceLog(0,6990,$vararg_buffer7);
  13550. }
  13551. $77 = HEAP32[4963]|0;
  13552. $78 = ($77|0)==(0);
  13553. if (!($78)) {
  13554. $79 = HEAP32[4964]|0;
  13555. FUNCTION_TABLE_vii[$79 & 63](1,(21168));
  13556. $80 = HEAP32[4965]|0;
  13557. $81 = HEAP32[(21168)>>2]|0;
  13558. FUNCTION_TABLE_vi[$80 & 31]($81);
  13559. }
  13560. _glGenBuffers(1,((21172)|0));
  13561. $82 = HEAP32[(21172)>>2]|0;
  13562. _glBindBuffer(34962,($82|0));
  13563. $83 = HEAP32[(21152)>>2]|0;
  13564. _glBufferData(34962,49152,($83|0),35048);
  13565. $84 = HEAP32[(19944)>>2]|0;
  13566. _glEnableVertexAttribArray(($84|0));
  13567. $85 = HEAP32[(19944)>>2]|0;
  13568. _glVertexAttribPointer(($85|0),3,5126,0,0,(0|0));
  13569. _glGenBuffers(1,((21176)|0));
  13570. $86 = HEAP32[(21176)>>2]|0;
  13571. _glBindBuffer(34962,($86|0));
  13572. $87 = HEAP32[(21156)>>2]|0;
  13573. _glBufferData(34962,32768,($87|0),35048);
  13574. $88 = HEAP32[(19948)>>2]|0;
  13575. _glEnableVertexAttribArray(($88|0));
  13576. $89 = HEAP32[(19948)>>2]|0;
  13577. _glVertexAttribPointer(($89|0),2,5126,0,0,(0|0));
  13578. _glGenBuffers(1,((21180)|0));
  13579. $90 = HEAP32[(21180)>>2]|0;
  13580. _glBindBuffer(34962,($90|0));
  13581. $91 = HEAP32[(21160)>>2]|0;
  13582. _glBufferData(34962,16384,($91|0),35048);
  13583. $92 = HEAP32[(19964)>>2]|0;
  13584. _glEnableVertexAttribArray(($92|0));
  13585. $93 = HEAP32[(19964)>>2]|0;
  13586. _glVertexAttribPointer(($93|0),4,5121,1,0,(0|0));
  13587. _glGenBuffers(1,((21184)|0));
  13588. $94 = HEAP32[(21184)>>2]|0;
  13589. _glBindBuffer(34963,($94|0));
  13590. $95 = HEAP32[(21164)>>2]|0;
  13591. _glBufferData(34963,12288,($95|0),35044);
  13592. $96 = HEAP32[4963]|0;
  13593. $97 = ($96|0)==(0);
  13594. if ($97) {
  13595. $99 = HEAP32[(21172)>>2]|0;
  13596. $100 = HEAP32[(21176)>>2]|0;
  13597. $101 = HEAP32[(21180)>>2]|0;
  13598. $102 = HEAP32[(21184)>>2]|0;
  13599. HEAP32[$vararg_buffer17>>2] = $99;
  13600. $vararg_ptr20 = ((($vararg_buffer17)) + 4|0);
  13601. HEAP32[$vararg_ptr20>>2] = $100;
  13602. $vararg_ptr21 = ((($vararg_buffer17)) + 8|0);
  13603. HEAP32[$vararg_ptr21>>2] = $101;
  13604. $vararg_ptr22 = ((($vararg_buffer17)) + 12|0);
  13605. HEAP32[$vararg_ptr22>>2] = $102;
  13606. _TraceLog(0,7205,$vararg_buffer17);
  13607. } else {
  13608. $98 = HEAP32[(21168)>>2]|0;
  13609. HEAP32[$vararg_buffer14>>2] = $98;
  13610. _TraceLog(0,7140,$vararg_buffer14);
  13611. }
  13612. $103 = HEAP32[4963]|0;
  13613. $104 = ($103|0)==(0);
  13614. if ($104) {
  13615. STACKTOP = sp;return;
  13616. }
  13617. $105 = HEAP32[4965]|0;
  13618. FUNCTION_TABLE_vi[$105 & 31](0);
  13619. STACKTOP = sp;return;
  13620. }
  13621. function _LoadShaderProgram($0,$1) {
  13622. $0 = $0|0;
  13623. $1 = $1|0;
  13624. 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;
  13625. 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;
  13626. sp = STACKTOP;
  13627. STACKTOP = STACKTOP + 96|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(96|0);
  13628. $vararg_buffer22 = sp + 64|0;
  13629. $vararg_buffer19 = sp + 56|0;
  13630. $vararg_buffer16 = sp + 48|0;
  13631. $vararg_buffer13 = sp + 40|0;
  13632. $vararg_buffer10 = sp + 32|0;
  13633. $vararg_buffer7 = sp + 24|0;
  13634. $vararg_buffer4 = sp + 16|0;
  13635. $vararg_buffer1 = sp + 8|0;
  13636. $vararg_buffer = sp;
  13637. $2 = sp + 80|0;
  13638. $3 = sp + 76|0;
  13639. $4 = sp + 72|0;
  13640. $5 = sp + 68|0;
  13641. $6 = (_glCreateShader(35633)|0);
  13642. $7 = (_glCreateShader(35632)|0);
  13643. HEAP32[$2>>2] = $0;
  13644. HEAP32[$3>>2] = $1;
  13645. _glShaderSource(($6|0),1,($2|0),(0|0));
  13646. _glShaderSource(($7|0),1,($3|0),(0|0));
  13647. HEAP32[$4>>2] = 0;
  13648. _glCompileShader(($6|0));
  13649. _glGetShaderiv(($6|0),35713,($4|0));
  13650. $8 = HEAP32[$4>>2]|0;
  13651. $9 = ($8|0)==(1);
  13652. if ($9) {
  13653. HEAP32[$vararg_buffer4>>2] = $6;
  13654. _TraceLog(0,8538,$vararg_buffer4);
  13655. } else {
  13656. HEAP32[$vararg_buffer>>2] = $6;
  13657. _TraceLog(2,8486,$vararg_buffer);
  13658. HEAP32[$vararg_buffer>>2] = 0;
  13659. _glGetShaderiv(($6|0),35716,($vararg_buffer|0));
  13660. $10 = HEAP32[$vararg_buffer>>2]|0;
  13661. $11 = (_llvm_stacksave()|0);
  13662. $$alloca_mul = $10;
  13663. $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);;
  13664. $13 = HEAP32[$vararg_buffer>>2]|0;
  13665. _glGetShaderInfoLog(($6|0),($13|0),($5|0),($12|0));
  13666. HEAP32[$vararg_buffer1>>2] = $12;
  13667. _TraceLog(0,8535,$vararg_buffer1);
  13668. _llvm_stackrestore(($11|0));
  13669. }
  13670. _glCompileShader(($7|0));
  13671. _glGetShaderiv(($7|0),35713,($4|0));
  13672. $14 = HEAP32[$4>>2]|0;
  13673. $15 = ($14|0)==(1);
  13674. if ($15) {
  13675. HEAP32[$vararg_buffer13>>2] = $7;
  13676. _TraceLog(0,8639,$vararg_buffer13);
  13677. } else {
  13678. HEAP32[$vararg_buffer7>>2] = $7;
  13679. _TraceLog(2,8588,$vararg_buffer7);
  13680. HEAP32[$vararg_buffer7>>2] = 0;
  13681. _glGetShaderiv(($7|0),35716,($vararg_buffer7|0));
  13682. $16 = HEAP32[$vararg_buffer7>>2]|0;
  13683. $17 = (_llvm_stacksave()|0);
  13684. $$alloca_mul34 = $16;
  13685. $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);;
  13686. $19 = HEAP32[$vararg_buffer7>>2]|0;
  13687. _glGetShaderInfoLog(($7|0),($19|0),($5|0),($18|0));
  13688. HEAP32[$vararg_buffer10>>2] = $18;
  13689. _TraceLog(0,8535,$vararg_buffer10);
  13690. _llvm_stackrestore(($17|0));
  13691. }
  13692. $20 = (_glCreateProgram()|0);
  13693. _glAttachShader(($20|0),($6|0));
  13694. _glAttachShader(($20|0),($7|0));
  13695. _glBindAttribLocation(($20|0),0,(8330|0));
  13696. _glBindAttribLocation(($20|0),1,(8345|0));
  13697. _glBindAttribLocation(($20|0),2,(8376|0));
  13698. _glBindAttribLocation(($20|0),3,(8403|0));
  13699. _glBindAttribLocation(($20|0),4,(8389|0));
  13700. _glBindAttribLocation(($20|0),5,(8360|0));
  13701. _glLinkProgram(($20|0));
  13702. _glGetProgramiv(($20|0),35714,($4|0));
  13703. $21 = HEAP32[$4>>2]|0;
  13704. $22 = ($21|0)==(0);
  13705. if ($22) {
  13706. HEAP32[$vararg_buffer16>>2] = $20;
  13707. _TraceLog(2,8691,$vararg_buffer16);
  13708. HEAP32[$vararg_buffer16>>2] = 0;
  13709. _glGetProgramiv(($20|0),35716,($vararg_buffer16|0));
  13710. $23 = HEAP32[$vararg_buffer16>>2]|0;
  13711. $24 = (_llvm_stacksave()|0);
  13712. $$alloca_mul36 = $23;
  13713. $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);;
  13714. $26 = HEAP32[$vararg_buffer16>>2]|0;
  13715. _glGetProgramInfoLog(($20|0),($26|0),($5|0),($25|0));
  13716. HEAP32[$vararg_buffer19>>2] = $25;
  13717. _TraceLog(0,8535,$vararg_buffer19);
  13718. _glDeleteProgram(($20|0));
  13719. _llvm_stackrestore(($24|0));
  13720. $$0 = 0;
  13721. _glDeleteShader(($6|0));
  13722. _glDeleteShader(($7|0));
  13723. STACKTOP = sp;return ($$0|0);
  13724. } else {
  13725. HEAP32[$vararg_buffer22>>2] = $20;
  13726. _TraceLog(0,8737,$vararg_buffer22);
  13727. $$0 = $20;
  13728. _glDeleteShader(($6|0));
  13729. _glDeleteShader(($7|0));
  13730. STACKTOP = sp;return ($$0|0);
  13731. }
  13732. return (0)|0;
  13733. }
  13734. function _LoadDefaultShaderLocations($0) {
  13735. $0 = $0|0;
  13736. 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;
  13737. 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;
  13738. var sp = 0;
  13739. sp = STACKTOP;
  13740. $1 = HEAP32[$0>>2]|0;
  13741. $2 = (_glGetAttribLocation(($1|0),(8330|0))|0);
  13742. $3 = ((($0)) + 4|0);
  13743. HEAP32[$3>>2] = $2;
  13744. $4 = HEAP32[$0>>2]|0;
  13745. $5 = (_glGetAttribLocation(($4|0),(8345|0))|0);
  13746. $6 = ((($0)) + 8|0);
  13747. HEAP32[$6>>2] = $5;
  13748. $7 = HEAP32[$0>>2]|0;
  13749. $8 = (_glGetAttribLocation(($7|0),(8360|0))|0);
  13750. $9 = ((($0)) + 12|0);
  13751. HEAP32[$9>>2] = $8;
  13752. $10 = HEAP32[$0>>2]|0;
  13753. $11 = (_glGetAttribLocation(($10|0),(8376|0))|0);
  13754. $12 = ((($0)) + 16|0);
  13755. HEAP32[$12>>2] = $11;
  13756. $13 = HEAP32[$0>>2]|0;
  13757. $14 = (_glGetAttribLocation(($13|0),(8389|0))|0);
  13758. $15 = ((($0)) + 20|0);
  13759. HEAP32[$15>>2] = $14;
  13760. $16 = HEAP32[$0>>2]|0;
  13761. $17 = (_glGetAttribLocation(($16|0),(8403|0))|0);
  13762. $18 = ((($0)) + 24|0);
  13763. HEAP32[$18>>2] = $17;
  13764. $19 = HEAP32[$0>>2]|0;
  13765. $20 = (_glGetUniformLocation(($19|0),(8415|0))|0);
  13766. $21 = ((($0)) + 28|0);
  13767. HEAP32[$21>>2] = $20;
  13768. $22 = HEAP32[$0>>2]|0;
  13769. $23 = (_glGetUniformLocation(($22|0),(8425|0))|0);
  13770. $24 = ((($0)) + 32|0);
  13771. HEAP32[$24>>2] = $23;
  13772. $25 = HEAP32[$0>>2]|0;
  13773. $26 = (_glGetUniformLocation(($25|0),(8436|0))|0);
  13774. $27 = ((($0)) + 36|0);
  13775. HEAP32[$27>>2] = $26;
  13776. $28 = HEAP32[$0>>2]|0;
  13777. $29 = (_glGetUniformLocation(($28|0),(8447|0))|0);
  13778. $30 = ((($0)) + 40|0);
  13779. HEAP32[$30>>2] = $29;
  13780. $31 = HEAP32[$0>>2]|0;
  13781. $32 = (_glGetUniformLocation(($31|0),(8459|0))|0);
  13782. $33 = ((($0)) + 44|0);
  13783. HEAP32[$33>>2] = $32;
  13784. $34 = HEAP32[$0>>2]|0;
  13785. $35 = (_glGetUniformLocation(($34|0),(8468|0))|0);
  13786. $36 = ((($0)) + 48|0);
  13787. HEAP32[$36>>2] = $35;
  13788. $37 = HEAP32[$0>>2]|0;
  13789. $38 = (_glGetUniformLocation(($37|0),(8477|0))|0);
  13790. $39 = ((($0)) + 52|0);
  13791. HEAP32[$39>>2] = $38;
  13792. return;
  13793. }
  13794. function _IsMouseButtonPressed($0) {
  13795. $0 = $0|0;
  13796. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $or$cond = 0, label = 0, sp = 0;
  13797. sp = STACKTOP;
  13798. $1 = (22361 + ($0)|0);
  13799. $2 = HEAP8[$1>>0]|0;
  13800. $3 = (22364 + ($0)|0);
  13801. $4 = HEAP8[$3>>0]|0;
  13802. $5 = ($2<<24>>24)!=($4<<24>>24);
  13803. $6 = ($2<<24>>24)==(1);
  13804. $or$cond = $6 & $5;
  13805. $$0 = $or$cond&1;
  13806. return ($$0|0);
  13807. }
  13808. function _IsMouseButtonReleased($0) {
  13809. $0 = $0|0;
  13810. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $or$cond = 0, label = 0, sp = 0;
  13811. sp = STACKTOP;
  13812. $1 = (22361 + ($0)|0);
  13813. $2 = HEAP8[$1>>0]|0;
  13814. $3 = (22364 + ($0)|0);
  13815. $4 = HEAP8[$3>>0]|0;
  13816. $5 = ($2<<24>>24)!=($4<<24>>24);
  13817. $6 = ($2<<24>>24)==(0);
  13818. $or$cond = $6 & $5;
  13819. $$0 = $or$cond&1;
  13820. return ($$0|0);
  13821. }
  13822. function _rlClearScreenBuffers() {
  13823. var label = 0, sp = 0;
  13824. sp = STACKTOP;
  13825. _glClear(16640);
  13826. return;
  13827. }
  13828. function _CloseWindow() {
  13829. var $0 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  13830. sp = STACKTOP;
  13831. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  13832. $vararg_buffer = sp;
  13833. _UnloadDefaultFont();
  13834. _rlglClose();
  13835. $0 = HEAP32[4882]|0;
  13836. _glfwDestroyWindow(($0|0));
  13837. _glfwTerminate();
  13838. _TraceLog(0,9049,$vararg_buffer);
  13839. STACKTOP = sp;return;
  13840. }
  13841. function _UnloadDefaultFont() {
  13842. var $$byval_copy = 0, $0 = 0, label = 0, sp = 0;
  13843. sp = STACKTOP;
  13844. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  13845. $$byval_copy = sp;
  13846. ;HEAP32[$$byval_copy>>2]=HEAP32[19568>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[19568+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[19568+8>>2]|0;HEAP32[$$byval_copy+12>>2]=HEAP32[19568+12>>2]|0;HEAP32[$$byval_copy+16>>2]=HEAP32[19568+16>>2]|0;
  13847. _UnloadTexture($$byval_copy);
  13848. $0 = HEAP32[(19596)>>2]|0;
  13849. _free($0);
  13850. STACKTOP = sp;return;
  13851. }
  13852. function _rlglClose() {
  13853. var $0 = 0, $1 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  13854. sp = STACKTOP;
  13855. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  13856. $vararg_buffer = sp;
  13857. _UnloadDefaultShader();
  13858. _UnloadDefaultBuffers();
  13859. _glDeleteTextures(1,(19880|0));
  13860. $0 = HEAP32[4970]|0;
  13861. HEAP32[$vararg_buffer>>2] = $0;
  13862. _TraceLog(0,9076,$vararg_buffer);
  13863. $1 = HEAP32[5000]|0;
  13864. _free($1);
  13865. STACKTOP = sp;return;
  13866. }
  13867. function _UnloadDefaultShader() {
  13868. var $0 = 0, label = 0, sp = 0;
  13869. sp = STACKTOP;
  13870. _glUseProgram(0);
  13871. $0 = HEAP32[4971]|0;
  13872. _glDeleteProgram(($0|0));
  13873. return;
  13874. }
  13875. function _UnloadDefaultBuffers() {
  13876. 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;
  13877. sp = STACKTOP;
  13878. $0 = HEAP32[4963]|0;
  13879. $1 = ($0|0)==(0);
  13880. if (!($1)) {
  13881. $2 = HEAP32[4965]|0;
  13882. FUNCTION_TABLE_vi[$2 & 31](0);
  13883. }
  13884. _glDisableVertexAttribArray(0);
  13885. _glDisableVertexAttribArray(1);
  13886. _glDisableVertexAttribArray(2);
  13887. _glDisableVertexAttribArray(3);
  13888. _glBindBuffer(34962,0);
  13889. _glBindBuffer(34963,0);
  13890. _glDeleteBuffers(1,((21076)|0));
  13891. _glDeleteBuffers(1,((21080)|0));
  13892. _glDeleteBuffers(1,((21124)|0));
  13893. _glDeleteBuffers(1,((21128)|0));
  13894. _glDeleteBuffers(1,((21172)|0));
  13895. _glDeleteBuffers(1,((21176)|0));
  13896. _glDeleteBuffers(1,((21180)|0));
  13897. _glDeleteBuffers(1,((21184)|0));
  13898. $3 = HEAP32[4963]|0;
  13899. $4 = ($3|0)==(0);
  13900. if (!($4)) {
  13901. $5 = HEAP32[4966]|0;
  13902. FUNCTION_TABLE_vii[$5 & 63](1,(21072));
  13903. $6 = HEAP32[4966]|0;
  13904. FUNCTION_TABLE_vii[$6 & 63](1,(21120));
  13905. $7 = HEAP32[4966]|0;
  13906. FUNCTION_TABLE_vii[$7 & 63](1,(21168));
  13907. }
  13908. $8 = HEAP32[(21056)>>2]|0;
  13909. _free($8);
  13910. $9 = HEAP32[(21064)>>2]|0;
  13911. _free($9);
  13912. $10 = HEAP32[(21104)>>2]|0;
  13913. _free($10);
  13914. $11 = HEAP32[(21112)>>2]|0;
  13915. _free($11);
  13916. $12 = HEAP32[(21152)>>2]|0;
  13917. _free($12);
  13918. $13 = HEAP32[(21156)>>2]|0;
  13919. _free($13);
  13920. $14 = HEAP32[(21160)>>2]|0;
  13921. _free($14);
  13922. $15 = HEAP32[(21164)>>2]|0;
  13923. _free($15);
  13924. return;
  13925. }
  13926. function _UnloadTexture($0) {
  13927. $0 = $0|0;
  13928. var $1 = 0, $2 = 0, $3 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  13929. sp = STACKTOP;
  13930. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  13931. $vararg_buffer = sp;
  13932. $1 = HEAP32[$0>>2]|0;
  13933. $2 = ($1|0)==(0);
  13934. if ($2) {
  13935. STACKTOP = sp;return;
  13936. }
  13937. _rlDeleteTextures($1);
  13938. $3 = HEAP32[$0>>2]|0;
  13939. HEAP32[$vararg_buffer>>2] = $3;
  13940. _TraceLog(0,9141,$vararg_buffer);
  13941. STACKTOP = sp;return;
  13942. }
  13943. function _rlDeleteTextures($0) {
  13944. $0 = $0|0;
  13945. var $1 = 0, $2 = 0, label = 0, sp = 0;
  13946. sp = STACKTOP;
  13947. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  13948. $1 = sp;
  13949. HEAP32[$1>>2] = $0;
  13950. $2 = ($0|0)==(0);
  13951. if (!($2)) {
  13952. _glDeleteTextures(1,($1|0));
  13953. }
  13954. STACKTOP = sp;return;
  13955. }
  13956. function _BeginDrawing() {
  13957. var $0 = 0.0, $1 = 0.0, $2 = 0.0, $downscaleView$byval_copy = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  13958. sp = STACKTOP;
  13959. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  13960. $downscaleView$byval_copy = sp;
  13961. $0 = (+_GetTime());
  13962. HEAPF64[2423] = $0;
  13963. $1 = +HEAPF64[2406];
  13964. $2 = $0 - $1;
  13965. HEAPF64[2424] = $2;
  13966. HEAPF64[2406] = $0;
  13967. _rlClearScreenBuffers();
  13968. _rlLoadIdentity();
  13969. dest=$downscaleView$byval_copy; src=19624; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  13970. (_MatrixToFloat($downscaleView$byval_copy)|0);
  13971. _rlMultMatrixf(21196);
  13972. STACKTOP = sp;return;
  13973. }
  13974. function _MatrixToFloat($0) {
  13975. $0 = $0|0;
  13976. 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;
  13977. 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;
  13978. sp = STACKTOP;
  13979. $1 = HEAP32[$0>>2]|0;
  13980. HEAP32[5299] = $1;
  13981. $2 = ((($0)) + 4|0);
  13982. $3 = HEAP32[$2>>2]|0;
  13983. HEAP32[(21200)>>2] = $3;
  13984. $4 = ((($0)) + 8|0);
  13985. $5 = HEAP32[$4>>2]|0;
  13986. HEAP32[(21204)>>2] = $5;
  13987. $6 = ((($0)) + 12|0);
  13988. $7 = HEAP32[$6>>2]|0;
  13989. HEAP32[(21208)>>2] = $7;
  13990. $8 = ((($0)) + 16|0);
  13991. $9 = HEAP32[$8>>2]|0;
  13992. HEAP32[(21212)>>2] = $9;
  13993. $10 = ((($0)) + 20|0);
  13994. $11 = HEAP32[$10>>2]|0;
  13995. HEAP32[(21216)>>2] = $11;
  13996. $12 = ((($0)) + 24|0);
  13997. $13 = HEAP32[$12>>2]|0;
  13998. HEAP32[(21220)>>2] = $13;
  13999. $14 = ((($0)) + 28|0);
  14000. $15 = HEAP32[$14>>2]|0;
  14001. HEAP32[(21224)>>2] = $15;
  14002. $16 = ((($0)) + 32|0);
  14003. $17 = HEAP32[$16>>2]|0;
  14004. HEAP32[(21228)>>2] = $17;
  14005. $18 = ((($0)) + 36|0);
  14006. $19 = HEAP32[$18>>2]|0;
  14007. HEAP32[(21232)>>2] = $19;
  14008. $20 = ((($0)) + 40|0);
  14009. $21 = HEAP32[$20>>2]|0;
  14010. HEAP32[(21236)>>2] = $21;
  14011. $22 = ((($0)) + 44|0);
  14012. $23 = HEAP32[$22>>2]|0;
  14013. HEAP32[(21240)>>2] = $23;
  14014. $24 = ((($0)) + 48|0);
  14015. $25 = HEAP32[$24>>2]|0;
  14016. HEAP32[(21244)>>2] = $25;
  14017. $26 = ((($0)) + 52|0);
  14018. $27 = HEAP32[$26>>2]|0;
  14019. HEAP32[(21248)>>2] = $27;
  14020. $28 = ((($0)) + 56|0);
  14021. $29 = HEAP32[$28>>2]|0;
  14022. HEAP32[(21252)>>2] = $29;
  14023. $30 = ((($0)) + 60|0);
  14024. $31 = HEAP32[$30>>2]|0;
  14025. HEAP32[(21256)>>2] = $31;
  14026. return (21196|0);
  14027. }
  14028. function _rlMultMatrixf($0) {
  14029. $0 = $0|0;
  14030. 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;
  14031. 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;
  14032. 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;
  14033. sp = STACKTOP;
  14034. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  14035. $$byval_copy1 = sp + 192|0;
  14036. $$byval_copy = sp + 128|0;
  14037. $1 = sp + 64|0;
  14038. $2 = sp;
  14039. $3 = HEAP32[$0>>2]|0;
  14040. HEAP32[$1>>2] = $3;
  14041. $4 = ((($1)) + 4|0);
  14042. $5 = ((($0)) + 4|0);
  14043. $6 = HEAP32[$5>>2]|0;
  14044. HEAP32[$4>>2] = $6;
  14045. $7 = ((($1)) + 8|0);
  14046. $8 = ((($0)) + 8|0);
  14047. $9 = HEAP32[$8>>2]|0;
  14048. HEAP32[$7>>2] = $9;
  14049. $10 = ((($1)) + 12|0);
  14050. $11 = ((($0)) + 12|0);
  14051. $12 = HEAP32[$11>>2]|0;
  14052. HEAP32[$10>>2] = $12;
  14053. $13 = ((($1)) + 16|0);
  14054. $14 = ((($0)) + 16|0);
  14055. $15 = HEAP32[$14>>2]|0;
  14056. HEAP32[$13>>2] = $15;
  14057. $16 = ((($1)) + 20|0);
  14058. $17 = ((($0)) + 20|0);
  14059. $18 = HEAP32[$17>>2]|0;
  14060. HEAP32[$16>>2] = $18;
  14061. $19 = ((($1)) + 24|0);
  14062. $20 = ((($0)) + 24|0);
  14063. $21 = HEAP32[$20>>2]|0;
  14064. HEAP32[$19>>2] = $21;
  14065. $22 = ((($1)) + 28|0);
  14066. $23 = ((($0)) + 28|0);
  14067. $24 = HEAP32[$23>>2]|0;
  14068. HEAP32[$22>>2] = $24;
  14069. $25 = ((($1)) + 32|0);
  14070. $26 = ((($0)) + 32|0);
  14071. $27 = HEAP32[$26>>2]|0;
  14072. HEAP32[$25>>2] = $27;
  14073. $28 = ((($1)) + 36|0);
  14074. $29 = ((($0)) + 36|0);
  14075. $30 = HEAP32[$29>>2]|0;
  14076. HEAP32[$28>>2] = $30;
  14077. $31 = ((($1)) + 40|0);
  14078. $32 = ((($0)) + 40|0);
  14079. $33 = HEAP32[$32>>2]|0;
  14080. HEAP32[$31>>2] = $33;
  14081. $34 = ((($1)) + 44|0);
  14082. $35 = ((($0)) + 44|0);
  14083. $36 = HEAP32[$35>>2]|0;
  14084. HEAP32[$34>>2] = $36;
  14085. $37 = ((($1)) + 48|0);
  14086. $38 = ((($0)) + 48|0);
  14087. $39 = HEAP32[$38>>2]|0;
  14088. HEAP32[$37>>2] = $39;
  14089. $40 = ((($1)) + 52|0);
  14090. $41 = ((($0)) + 52|0);
  14091. $42 = HEAP32[$41>>2]|0;
  14092. HEAP32[$40>>2] = $42;
  14093. $43 = ((($1)) + 56|0);
  14094. $44 = ((($0)) + 56|0);
  14095. $45 = HEAP32[$44>>2]|0;
  14096. HEAP32[$43>>2] = $45;
  14097. $46 = ((($1)) + 60|0);
  14098. $47 = ((($0)) + 60|0);
  14099. $48 = HEAP32[$47>>2]|0;
  14100. HEAP32[$46>>2] = $48;
  14101. $49 = HEAP32[4929]|0;
  14102. 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));
  14103. 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));
  14104. _MatrixMultiply($2,$$byval_copy,$$byval_copy1);
  14105. 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));
  14106. STACKTOP = sp;return;
  14107. }
  14108. function _EndDrawing() {
  14109. 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;
  14110. sp = STACKTOP;
  14111. _rlglDraw();
  14112. _SwapBuffers();
  14113. _PollInputEvents();
  14114. $0 = (+_GetTime());
  14115. HEAPF64[2423] = $0;
  14116. $1 = +HEAPF64[2406];
  14117. $2 = $0 - $1;
  14118. HEAPF64[2425] = $2;
  14119. HEAPF64[2406] = $0;
  14120. $3 = +HEAPF64[2424];
  14121. $4 = $2 + $3;
  14122. HEAPF64[2426] = $4;
  14123. $5 = +HEAPF64[2403];
  14124. $6 = $4 < $5;
  14125. if (!($6)) {
  14126. return;
  14127. }
  14128. $7 = $5 - $4;
  14129. $8 = $7 * 1000.0;
  14130. $9 = $8;
  14131. _Wait($9);
  14132. $10 = (+_GetTime());
  14133. HEAPF64[2423] = $10;
  14134. $11 = +HEAPF64[2406];
  14135. $12 = $10 - $11;
  14136. HEAPF64[2406] = $10;
  14137. $13 = +HEAPF64[2426];
  14138. $14 = $12 + $13;
  14139. HEAPF64[2426] = $14;
  14140. return;
  14141. }
  14142. function _rlglDraw() {
  14143. var label = 0, sp = 0;
  14144. sp = STACKTOP;
  14145. _UpdateDefaultBuffers();
  14146. _DrawDefaultBuffers();
  14147. return;
  14148. }
  14149. function _SwapBuffers() {
  14150. var $0 = 0, label = 0, sp = 0;
  14151. sp = STACKTOP;
  14152. $0 = HEAP32[4882]|0;
  14153. _glfwSwapBuffers(($0|0));
  14154. return;
  14155. }
  14156. function _PollInputEvents() {
  14157. 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;
  14158. 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;
  14159. 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;
  14160. sp = STACKTOP;
  14161. STACKTOP = STACKTOP + 1456|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1456|0);
  14162. $0 = sp + 1440|0;
  14163. $1 = sp + 1432|0;
  14164. $2 = sp;
  14165. _UpdateGestures();
  14166. HEAP32[741] = -1;
  14167. HEAP32[743] = -1;
  14168. HEAP32[5315] = 0;
  14169. $3 = HEAP32[4882]|0;
  14170. _glfwGetCursorPos(($3|0),($0|0),($1|0));
  14171. $4 = +HEAPF64[$0>>3];
  14172. $5 = $4;
  14173. HEAPF32[4804] = $5;
  14174. $6 = +HEAPF64[$1>>3];
  14175. $7 = $6;
  14176. HEAPF32[(19220)>>2] = $7;
  14177. _memcpy((22879|0),(22367|0),512)|0;
  14178. ;HEAP8[22364>>0]=HEAP8[22361>>0]|0;HEAP8[22364+1>>0]=HEAP8[22361+1>>0]|0;HEAP8[22364+2>>0]=HEAP8[22361+2>>0]|0;
  14179. $8 = HEAP32[5298]|0;
  14180. HEAP32[4885] = $8;
  14181. HEAP32[5298] = 0;
  14182. $9 = (_emscripten_get_num_gamepads()|0);
  14183. $10 = ($9|0)>(0);
  14184. if (!($10)) {
  14185. STACKTOP = sp;return;
  14186. }
  14187. $11 = ((($2)) + 12|0);
  14188. $12 = ((($2)) + 8|0);
  14189. $$05160 = 0;
  14190. while(1) {
  14191. $scevgep = (23391 + ($$05160<<5)|0);
  14192. $scevgep67 = (23519 + ($$05160<<5)|0);
  14193. 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));
  14194. $13 = (_emscripten_get_gamepad_status(($$05160|0),($2|0))|0);
  14195. $14 = ($13|0)==(0);
  14196. if ($14) {
  14197. $15 = HEAP32[$11>>2]|0;
  14198. $16 = ($15|0)>(0);
  14199. if ($16) {
  14200. $17 = HEAP32[$11>>2]|0;
  14201. $$04857 = 0;
  14202. while(1) {
  14203. $21 = (((($2)) + 1040|0) + ($$04857<<2)|0);
  14204. $22 = HEAP32[$21>>2]|0;
  14205. $23 = ($22|0)==(1);
  14206. $24 = ((23519 + ($$05160<<5)|0) + ($$04857)|0);
  14207. if ($23) {
  14208. HEAP8[$24>>0] = 1;
  14209. HEAP32[743] = $$04857;
  14210. } else {
  14211. HEAP8[$24>>0] = 0;
  14212. }
  14213. $25 = (($$04857) + 1)|0;
  14214. $26 = ($25|0)<($17|0);
  14215. $27 = ($25|0)<(32);
  14216. $28 = $27 & $26;
  14217. if ($28) {
  14218. $$04857 = $25;
  14219. } else {
  14220. break;
  14221. }
  14222. }
  14223. }
  14224. $18 = HEAP32[$12>>2]|0;
  14225. $19 = ($18|0)>(0);
  14226. if ($19) {
  14227. $20 = HEAP32[$12>>2]|0;
  14228. $$058 = 0;
  14229. while(1) {
  14230. $29 = (((($2)) + 16|0) + ($$058<<3)|0);
  14231. $30 = +HEAPF64[$29>>3];
  14232. $31 = $30;
  14233. $32 = ((21264 + ($$05160<<5)|0) + ($$058<<2)|0);
  14234. HEAPF32[$32>>2] = $31;
  14235. $33 = (($$058) + 1)|0;
  14236. $34 = ($33|0)<($20|0);
  14237. $35 = ($33|0)<(8);
  14238. $36 = $35 & $34;
  14239. if ($36) {
  14240. $$058 = $33;
  14241. } else {
  14242. $$lcssa = $20;
  14243. break;
  14244. }
  14245. }
  14246. } else {
  14247. $$lcssa = $18;
  14248. }
  14249. HEAP32[5315] = $$lcssa;
  14250. }
  14251. $37 = (($$05160) + 1)|0;
  14252. $38 = ($37|0)<($9|0);
  14253. $39 = ($37|0)<(4);
  14254. $40 = $38 & $39;
  14255. if ($40) {
  14256. $$05160 = $37;
  14257. } else {
  14258. break;
  14259. }
  14260. }
  14261. STACKTOP = sp;return;
  14262. }
  14263. function _Wait($0) {
  14264. $0 = +$0;
  14265. 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;
  14266. sp = STACKTOP;
  14267. $1 = (+_GetTime());
  14268. $2 = 0.0 - $1;
  14269. $3 = $0 / 1000.0;
  14270. $4 = $3;
  14271. $5 = $2 < $4;
  14272. if (!($5)) {
  14273. return;
  14274. }
  14275. while(1) {
  14276. $6 = (+_GetTime());
  14277. $7 = $6 - $1;
  14278. $8 = $7 < $4;
  14279. if (!($8)) {
  14280. break;
  14281. }
  14282. }
  14283. return;
  14284. }
  14285. function _UpdateDefaultBuffers() {
  14286. 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;
  14287. 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;
  14288. var $45 = 0, $46 = 0, $47 = 0, $48 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  14289. sp = STACKTOP;
  14290. $0 = HEAP32[5261]|0;
  14291. $1 = ($0|0)>(0);
  14292. if ($1) {
  14293. $2 = HEAP32[4963]|0;
  14294. $3 = ($2|0)==(0);
  14295. if (!($3)) {
  14296. $4 = HEAP32[4965]|0;
  14297. $5 = HEAP32[(21072)>>2]|0;
  14298. FUNCTION_TABLE_vi[$4 & 31]($5);
  14299. }
  14300. $6 = HEAP32[(21076)>>2]|0;
  14301. _glBindBuffer(34962,($6|0));
  14302. $7 = HEAP32[5261]|0;
  14303. $8 = ($7*12)|0;
  14304. $9 = HEAP32[(21056)>>2]|0;
  14305. _glBufferSubData(34962,0,($8|0),($9|0));
  14306. $10 = HEAP32[(21080)>>2]|0;
  14307. _glBindBuffer(34962,($10|0));
  14308. $11 = HEAP32[(21052)>>2]|0;
  14309. $12 = $11 << 2;
  14310. $13 = HEAP32[(21064)>>2]|0;
  14311. _glBufferSubData(34962,0,($12|0),($13|0));
  14312. }
  14313. $14 = HEAP32[5273]|0;
  14314. $15 = ($14|0)>(0);
  14315. if ($15) {
  14316. $16 = HEAP32[4963]|0;
  14317. $17 = ($16|0)==(0);
  14318. if (!($17)) {
  14319. $18 = HEAP32[4965]|0;
  14320. $19 = HEAP32[(21120)>>2]|0;
  14321. FUNCTION_TABLE_vi[$18 & 31]($19);
  14322. }
  14323. $20 = HEAP32[(21124)>>2]|0;
  14324. _glBindBuffer(34962,($20|0));
  14325. $21 = HEAP32[5273]|0;
  14326. $22 = ($21*12)|0;
  14327. $23 = HEAP32[(21104)>>2]|0;
  14328. _glBufferSubData(34962,0,($22|0),($23|0));
  14329. $24 = HEAP32[(21128)>>2]|0;
  14330. _glBindBuffer(34962,($24|0));
  14331. $25 = HEAP32[(21100)>>2]|0;
  14332. $26 = $25 << 2;
  14333. $27 = HEAP32[(21112)>>2]|0;
  14334. _glBufferSubData(34962,0,($26|0),($27|0));
  14335. }
  14336. $28 = HEAP32[5285]|0;
  14337. $29 = ($28|0)>(0);
  14338. if ($29) {
  14339. $30 = HEAP32[4963]|0;
  14340. $31 = ($30|0)==(0);
  14341. if (!($31)) {
  14342. $32 = HEAP32[4965]|0;
  14343. $33 = HEAP32[(21168)>>2]|0;
  14344. FUNCTION_TABLE_vi[$32 & 31]($33);
  14345. }
  14346. $34 = HEAP32[(21172)>>2]|0;
  14347. _glBindBuffer(34962,($34|0));
  14348. $35 = HEAP32[5285]|0;
  14349. $36 = ($35*12)|0;
  14350. $37 = HEAP32[(21152)>>2]|0;
  14351. _glBufferSubData(34962,0,($36|0),($37|0));
  14352. $38 = HEAP32[(21176)>>2]|0;
  14353. _glBindBuffer(34962,($38|0));
  14354. $39 = HEAP32[5285]|0;
  14355. $40 = $39 << 3;
  14356. $41 = HEAP32[(21156)>>2]|0;
  14357. _glBufferSubData(34962,0,($40|0),($41|0));
  14358. $42 = HEAP32[(21180)>>2]|0;
  14359. _glBindBuffer(34962,($42|0));
  14360. $43 = HEAP32[5285]|0;
  14361. $44 = $43 << 2;
  14362. $45 = HEAP32[(21160)>>2]|0;
  14363. _glBufferSubData(34962,0,($44|0),($45|0));
  14364. }
  14365. $46 = HEAP32[4963]|0;
  14366. $47 = ($46|0)==(0);
  14367. if ($47) {
  14368. return;
  14369. }
  14370. $48 = HEAP32[4965]|0;
  14371. FUNCTION_TABLE_vi[$48 & 31](0);
  14372. return;
  14373. }
  14374. function _DrawDefaultBuffers() {
  14375. 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;
  14376. 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;
  14377. 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;
  14378. 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;
  14379. 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;
  14380. var $or$cond = 0, $or$cond3 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14381. sp = STACKTOP;
  14382. STACKTOP = STACKTOP + 320|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(320|0);
  14383. $$byval_copy2 = sp + 256|0;
  14384. $modelview$byval_copy = sp + 192|0;
  14385. $0 = sp + 128|0;
  14386. $1 = sp + 64|0;
  14387. $2 = sp;
  14388. dest=$0; src=19720; stop=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. dest=$1; src=19784; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  14390. $3 = HEAP32[5348]|0;
  14391. $4 = ($3|0)!=(0);
  14392. $$ = $4 ? 2 : 1;
  14393. $$02932 = 0;
  14394. while(1) {
  14395. if ($4) {
  14396. 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));
  14397. 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));
  14398. _SetStereoView($$02932,$modelview$byval_copy,$$byval_copy2);
  14399. }
  14400. $8 = HEAP32[5261]|0;
  14401. $9 = ($8|0)>(0);
  14402. $10 = HEAP32[5273]|0;
  14403. $11 = ($10|0)>(0);
  14404. $or$cond = $9 | $11;
  14405. $12 = HEAP32[5285]|0;
  14406. $13 = ($12|0)>(0);
  14407. $or$cond3 = $or$cond | $13;
  14408. if ($or$cond3) {
  14409. $14 = HEAP32[4985]|0;
  14410. _glUseProgram(($14|0));
  14411. dest=$modelview$byval_copy; src=19784; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  14412. dest=$$byval_copy2; src=19720; stop=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. _MatrixMultiply($2,$modelview$byval_copy,$$byval_copy2);
  14414. $15 = HEAP32[(19968)>>2]|0;
  14415. 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));
  14416. $16 = (_MatrixToFloat($$byval_copy2)|0);
  14417. _glUniformMatrix4fv(($15|0),1,0,($16|0));
  14418. $17 = HEAP32[(19972)>>2]|0;
  14419. _glUniform4f(($17|0),1.0,1.0,1.0,1.0);
  14420. $18 = HEAP32[(19984)>>2]|0;
  14421. _glUniform1i(($18|0),0);
  14422. }
  14423. $19 = HEAP32[5261]|0;
  14424. $20 = ($19|0)>(0);
  14425. if ($20) {
  14426. $21 = HEAP32[4970]|0;
  14427. _glBindTexture(3553,($21|0));
  14428. $22 = HEAP32[4963]|0;
  14429. $23 = ($22|0)==(0);
  14430. if ($23) {
  14431. $26 = HEAP32[(21076)>>2]|0;
  14432. _glBindBuffer(34962,($26|0));
  14433. $27 = HEAP32[(19944)>>2]|0;
  14434. _glVertexAttribPointer(($27|0),3,5126,0,0,(0|0));
  14435. $28 = HEAP32[(19944)>>2]|0;
  14436. _glEnableVertexAttribArray(($28|0));
  14437. $29 = HEAP32[(21080)>>2]|0;
  14438. _glBindBuffer(34962,($29|0));
  14439. $30 = HEAP32[(19964)>>2]|0;
  14440. _glVertexAttribPointer(($30|0),4,5121,1,0,(0|0));
  14441. $31 = HEAP32[(19964)>>2]|0;
  14442. _glEnableVertexAttribArray(($31|0));
  14443. } else {
  14444. $24 = HEAP32[4965]|0;
  14445. $25 = HEAP32[(21072)>>2]|0;
  14446. FUNCTION_TABLE_vi[$24 & 31]($25);
  14447. }
  14448. $32 = HEAP32[5261]|0;
  14449. _glDrawArrays(1,0,($32|0));
  14450. $33 = HEAP32[4963]|0;
  14451. $34 = ($33|0)==(0);
  14452. if ($34) {
  14453. _glBindBuffer(34962,0);
  14454. }
  14455. _glBindTexture(3553,0);
  14456. }
  14457. $35 = HEAP32[5273]|0;
  14458. $36 = ($35|0)>(0);
  14459. if ($36) {
  14460. $37 = HEAP32[4970]|0;
  14461. _glBindTexture(3553,($37|0));
  14462. $38 = HEAP32[4963]|0;
  14463. $39 = ($38|0)==(0);
  14464. if ($39) {
  14465. $42 = HEAP32[(21124)>>2]|0;
  14466. _glBindBuffer(34962,($42|0));
  14467. $43 = HEAP32[(19944)>>2]|0;
  14468. _glVertexAttribPointer(($43|0),3,5126,0,0,(0|0));
  14469. $44 = HEAP32[(19944)>>2]|0;
  14470. _glEnableVertexAttribArray(($44|0));
  14471. $45 = HEAP32[(21128)>>2]|0;
  14472. _glBindBuffer(34962,($45|0));
  14473. $46 = HEAP32[(19964)>>2]|0;
  14474. _glVertexAttribPointer(($46|0),4,5121,1,0,(0|0));
  14475. $47 = HEAP32[(19964)>>2]|0;
  14476. _glEnableVertexAttribArray(($47|0));
  14477. } else {
  14478. $40 = HEAP32[4965]|0;
  14479. $41 = HEAP32[(21120)>>2]|0;
  14480. FUNCTION_TABLE_vi[$40 & 31]($41);
  14481. }
  14482. $48 = HEAP32[5273]|0;
  14483. _glDrawArrays(4,0,($48|0));
  14484. $49 = HEAP32[4963]|0;
  14485. $50 = ($49|0)==(0);
  14486. if ($50) {
  14487. _glBindBuffer(34962,0);
  14488. }
  14489. _glBindTexture(3553,0);
  14490. }
  14491. $51 = HEAP32[5285]|0;
  14492. $52 = ($51|0)>(0);
  14493. if ($52) {
  14494. $53 = HEAP32[4963]|0;
  14495. $54 = ($53|0)==(0);
  14496. if ($54) {
  14497. $57 = HEAP32[(21172)>>2]|0;
  14498. _glBindBuffer(34962,($57|0));
  14499. $58 = HEAP32[(19944)>>2]|0;
  14500. _glVertexAttribPointer(($58|0),3,5126,0,0,(0|0));
  14501. $59 = HEAP32[(19944)>>2]|0;
  14502. _glEnableVertexAttribArray(($59|0));
  14503. $60 = HEAP32[(21176)>>2]|0;
  14504. _glBindBuffer(34962,($60|0));
  14505. $61 = HEAP32[(19948)>>2]|0;
  14506. _glVertexAttribPointer(($61|0),2,5126,0,0,(0|0));
  14507. $62 = HEAP32[(19948)>>2]|0;
  14508. _glEnableVertexAttribArray(($62|0));
  14509. $63 = HEAP32[(21180)>>2]|0;
  14510. _glBindBuffer(34962,($63|0));
  14511. $64 = HEAP32[(19964)>>2]|0;
  14512. _glVertexAttribPointer(($64|0),4,5121,1,0,(0|0));
  14513. $65 = HEAP32[(19964)>>2]|0;
  14514. _glEnableVertexAttribArray(($65|0));
  14515. $66 = HEAP32[(21184)>>2]|0;
  14516. _glBindBuffer(34963,($66|0));
  14517. } else {
  14518. $55 = HEAP32[4965]|0;
  14519. $56 = HEAP32[(21168)>>2]|0;
  14520. FUNCTION_TABLE_vi[$55 & 31]($56);
  14521. }
  14522. $67 = HEAP32[5001]|0;
  14523. $68 = ($67|0)>(0);
  14524. if ($68) {
  14525. $$02830 = 0;$$031 = 0;
  14526. while(1) {
  14527. $71 = HEAP32[5000]|0;
  14528. $72 = (($71) + (($$031*144)|0)|0);
  14529. $73 = HEAP32[$72>>2]|0;
  14530. $74 = (($73|0) / 4)&-1;
  14531. $75 = ($74*6)|0;
  14532. $76 = (((($71) + (($$031*144)|0)|0)) + 8|0);
  14533. $77 = HEAP32[$76>>2]|0;
  14534. _glBindTexture(3553,($77|0));
  14535. $78 = $$02830 << 1;
  14536. $79 = $78;
  14537. _glDrawElements(4,($75|0),5123,($79|0));
  14538. $80 = HEAP32[5000]|0;
  14539. $81 = (($80) + (($$031*144)|0)|0);
  14540. $82 = HEAP32[$81>>2]|0;
  14541. $83 = (($82|0) / 4)&-1;
  14542. $84 = ($83*6)|0;
  14543. $85 = (($84) + ($$02830))|0;
  14544. $86 = (($$031) + 1)|0;
  14545. $87 = HEAP32[5001]|0;
  14546. $88 = ($86|0)<($87|0);
  14547. if ($88) {
  14548. $$02830 = $85;$$031 = $86;
  14549. } else {
  14550. break;
  14551. }
  14552. }
  14553. }
  14554. $69 = HEAP32[4963]|0;
  14555. $70 = ($69|0)==(0);
  14556. if ($70) {
  14557. _glBindBuffer(34962,0);
  14558. _glBindBuffer(34963,0);
  14559. }
  14560. _glBindTexture(3553,0);
  14561. }
  14562. $89 = HEAP32[4963]|0;
  14563. $90 = ($89|0)==(0);
  14564. if (!($90)) {
  14565. $91 = HEAP32[4965]|0;
  14566. FUNCTION_TABLE_vi[$91 & 31](0);
  14567. }
  14568. _glUseProgram(0);
  14569. $92 = (($$02932) + 1)|0;
  14570. $93 = ($92|0)<($$|0);
  14571. if ($93) {
  14572. $$02932 = $92;
  14573. } else {
  14574. break;
  14575. }
  14576. }
  14577. HEAP32[5001] = 1;
  14578. $5 = HEAP32[4970]|0;
  14579. $6 = HEAP32[5000]|0;
  14580. $7 = ((($6)) + 8|0);
  14581. HEAP32[$7>>2] = $5;
  14582. HEAP32[$6>>2] = 0;
  14583. HEAP32[5261] = 0;
  14584. HEAP32[(21052)>>2] = 0;
  14585. HEAP32[5273] = 0;
  14586. HEAP32[(21100)>>2] = 0;
  14587. HEAP32[5285] = 0;
  14588. HEAP32[(21144)>>2] = 0;
  14589. HEAP32[(21148)>>2] = 0;
  14590. HEAPF32[744] = -1.0;
  14591. dest=19720; 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));
  14592. dest=19784; 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));
  14593. STACKTOP = sp;return;
  14594. }
  14595. function _SetStereoView($0,$1,$2) {
  14596. $0 = $0|0;
  14597. $1 = $1|0;
  14598. $2 = $2|0;
  14599. 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;
  14600. sp = STACKTOP;
  14601. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  14602. $$byval_copy3 = sp + 192|0;
  14603. $$byval_copy = sp + 64|0;
  14604. $3 = sp;
  14605. $4 = sp + 128|0;
  14606. 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));
  14607. $5 = HEAP32[5259]|0;
  14608. $6 = Math_imul($5, $0)|0;
  14609. $7 = (($6|0) / 2)&-1;
  14610. $8 = (($5|0) / 2)&-1;
  14611. $9 = HEAP32[5260]|0;
  14612. _rlViewport($7,0,$8,$9);
  14613. $10 = (21624 + ($0<<6)|0);
  14614. 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));
  14615. 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));
  14616. _MatrixMultiply($4,$$byval_copy,$$byval_copy3);
  14617. $11 = (21496 + ($0<<6)|0);
  14618. 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));
  14619. 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));
  14620. _SetMatrixModelview($$byval_copy3);
  14621. 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));
  14622. _SetMatrixProjection($$byval_copy3);
  14623. STACKTOP = sp;return;
  14624. }
  14625. function _SetMatrixModelview($0) {
  14626. $0 = $0|0;
  14627. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14628. sp = STACKTOP;
  14629. dest=19784; 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));
  14630. return;
  14631. }
  14632. function _SetMatrixProjection($0) {
  14633. $0 = $0|0;
  14634. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14635. sp = STACKTOP;
  14636. dest=19720; 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));
  14637. return;
  14638. }
  14639. function _rlPushMatrix() {
  14640. 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;
  14641. sp = STACKTOP;
  14642. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  14643. $vararg_buffer = sp;
  14644. $0 = HEAP32[5438]|0;
  14645. $1 = ($0|0)==(15);
  14646. if ($1) {
  14647. HEAP32[$vararg_buffer>>2] = 16;
  14648. _TraceLog(1,9191,$vararg_buffer);
  14649. }
  14650. $2 = HEAP32[5438]|0;
  14651. $3 = (20012 + ($2<<6)|0);
  14652. $4 = HEAP32[4929]|0;
  14653. 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));
  14654. _rlLoadIdentity();
  14655. $5 = HEAP32[5438]|0;
  14656. $6 = (($5) + 1)|0;
  14657. HEAP32[5438] = $6;
  14658. $7 = HEAP32[4962]|0;
  14659. $8 = ($7|0)==(5888);
  14660. if (!($8)) {
  14661. STACKTOP = sp;return;
  14662. }
  14663. HEAP32[5439] = 1;
  14664. STACKTOP = sp;return;
  14665. }
  14666. function _rlPopMatrix() {
  14667. var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  14668. sp = STACKTOP;
  14669. $0 = HEAP32[5438]|0;
  14670. $1 = ($0|0)>(0);
  14671. if (!($1)) {
  14672. return;
  14673. }
  14674. $2 = HEAP32[5438]|0;
  14675. $3 = (($2) + -1)|0;
  14676. $4 = (20012 + ($3<<6)|0);
  14677. $5 = HEAP32[4929]|0;
  14678. _memmove(($5|0),($4|0),64)|0;
  14679. $6 = (($2) + -1)|0;
  14680. HEAP32[5438] = $6;
  14681. return;
  14682. }
  14683. function _IsFileExtension($0,$1) {
  14684. $0 = $0|0;
  14685. $1 = $1|0;
  14686. var $$ = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  14687. sp = STACKTOP;
  14688. $2 = (_strrchr($0,46)|0);
  14689. $3 = ($2|0)==(0|0);
  14690. if ($3) {
  14691. return 0;
  14692. } else {
  14693. $4 = (_strcmp($2,$1)|0);
  14694. $5 = ($4|0)==(0);
  14695. $$ = $5&1;
  14696. return ($$|0);
  14697. }
  14698. return (0)|0;
  14699. }
  14700. function _rlTranslatef($0,$1,$2) {
  14701. $0 = +$0;
  14702. $1 = +$1;
  14703. $2 = +$2;
  14704. var $$byval_copy = 0, $$byval_copy1 = 0, $3 = 0, $4 = 0, $5 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14705. sp = STACKTOP;
  14706. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  14707. $$byval_copy1 = sp + 192|0;
  14708. $$byval_copy = sp + 128|0;
  14709. $3 = sp + 64|0;
  14710. $4 = sp;
  14711. _MatrixTranslate($3,$0,$1,$2);
  14712. _MatrixTranspose($3);
  14713. $5 = HEAP32[4929]|0;
  14714. 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));
  14715. 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));
  14716. _MatrixMultiply($4,$$byval_copy,$$byval_copy1);
  14717. 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));
  14718. STACKTOP = sp;return;
  14719. }
  14720. function _rlRotatef($0,$1,$2,$3) {
  14721. $0 = +$0;
  14722. $1 = +$1;
  14723. $2 = +$2;
  14724. $3 = +$3;
  14725. 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;
  14726. sp = STACKTOP;
  14727. STACKTOP = STACKTOP + 336|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(336|0);
  14728. $$byval_copy2 = sp + 272|0;
  14729. $$byval_copy1 = sp + 208|0;
  14730. $4 = sp + 144|0;
  14731. $5 = sp + 64|0;
  14732. $6 = sp + 80|0;
  14733. $7 = sp;
  14734. _MatrixIdentity($4);
  14735. HEAPF32[$5>>2] = $1;
  14736. $8 = ((($5)) + 4|0);
  14737. HEAPF32[$8>>2] = $2;
  14738. $9 = ((($5)) + 8|0);
  14739. HEAPF32[$9>>2] = $3;
  14740. _VectorNormalize($5);
  14741. $10 = $0 * 0.01745329238474369;
  14742. ;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;
  14743. _MatrixRotate($6,$$byval_copy2,$10);
  14744. 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));
  14745. _MatrixTranspose($4);
  14746. $11 = HEAP32[4929]|0;
  14747. 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));
  14748. 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));
  14749. _MatrixMultiply($7,$$byval_copy1,$$byval_copy2);
  14750. 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));
  14751. STACKTOP = sp;return;
  14752. }
  14753. function _rlBegin($0) {
  14754. $0 = $0|0;
  14755. var label = 0, sp = 0;
  14756. sp = STACKTOP;
  14757. HEAP32[5002] = $0;
  14758. return;
  14759. }
  14760. function _rlEnd() {
  14761. 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;
  14762. 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;
  14763. 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;
  14764. 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;
  14765. 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;
  14766. 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;
  14767. 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;
  14768. 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;
  14769. var $scevgep = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14770. sp = STACKTOP;
  14771. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  14772. $$byval_copy = sp;
  14773. $0 = HEAP32[5439]|0;
  14774. $1 = ($0|0)==(0);
  14775. if (!($1)) {
  14776. $2 = HEAP32[5440]|0;
  14777. $3 = ($2|0)>(0);
  14778. if ($3) {
  14779. $$03956 = 0;
  14780. while(1) {
  14781. $6 = HEAP32[4999]|0;
  14782. $7 = (($6) + (($$03956*12)|0)|0);
  14783. $8 = HEAP32[4929]|0;
  14784. 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));
  14785. _VectorTransform($7,$$byval_copy);
  14786. $9 = (($$03956) + 1)|0;
  14787. $5 = HEAP32[5440]|0;
  14788. $10 = ($9|0)<($5|0);
  14789. if ($10) {
  14790. $$03956 = $9;
  14791. } else {
  14792. break;
  14793. }
  14794. }
  14795. HEAP32[5439] = 0;
  14796. $4 = ($5|0)>(0);
  14797. if ($4) {
  14798. $$04154 = 0;
  14799. while(1) {
  14800. $11 = HEAP32[4999]|0;
  14801. $12 = (($11) + (($$04154*12)|0)|0);
  14802. $13 = +HEAPF32[$12>>2];
  14803. $14 = (((($11) + (($$04154*12)|0)|0)) + 4|0);
  14804. $15 = +HEAPF32[$14>>2];
  14805. $16 = (((($11) + (($$04154*12)|0)|0)) + 8|0);
  14806. $17 = +HEAPF32[$16>>2];
  14807. _rlVertex3f($13,$15,$17);
  14808. $18 = (($$04154) + 1)|0;
  14809. $19 = HEAP32[5440]|0;
  14810. $20 = ($18|0)<($19|0);
  14811. if ($20) {
  14812. $$04154 = $18;
  14813. } else {
  14814. break;
  14815. }
  14816. }
  14817. }
  14818. } else {
  14819. HEAP32[5439] = 0;
  14820. }
  14821. HEAP32[5440] = 0;
  14822. }
  14823. $21 = HEAP32[5002]|0;
  14824. switch ($21|0) {
  14825. case 1: {
  14826. $22 = HEAP32[5261]|0;
  14827. $23 = HEAP32[(21052)>>2]|0;
  14828. $24 = ($22|0)==($23|0);
  14829. if ($24) {
  14830. $148 = +HEAPF32[744];
  14831. $149 = $148 + 4.9999998736893758E-5;
  14832. HEAPF32[744] = $149;
  14833. STACKTOP = sp;return;
  14834. }
  14835. $25 = (($22) - ($23))|0;
  14836. $26 = ($25|0)>(0);
  14837. if ($26) {
  14838. $$04347 = 0;
  14839. } else {
  14840. $148 = +HEAPF32[744];
  14841. $149 = $148 + 4.9999998736893758E-5;
  14842. HEAPF32[744] = $149;
  14843. STACKTOP = sp;return;
  14844. }
  14845. while(1) {
  14846. $27 = HEAP32[(21064)>>2]|0;
  14847. $28 = HEAP32[(21052)>>2]|0;
  14848. $29 = $28 << 2;
  14849. $30 = (($29) + -4)|0;
  14850. $31 = (($27) + ($30)|0);
  14851. $32 = HEAP8[$31>>0]|0;
  14852. $33 = (($27) + ($29)|0);
  14853. HEAP8[$33>>0] = $32;
  14854. $34 = HEAP32[(21064)>>2]|0;
  14855. $35 = HEAP32[(21052)>>2]|0;
  14856. $36 = $35 << 2;
  14857. $37 = (($36) + -3)|0;
  14858. $38 = (($34) + ($37)|0);
  14859. $39 = HEAP8[$38>>0]|0;
  14860. $40 = $36 | 1;
  14861. $41 = (($34) + ($40)|0);
  14862. HEAP8[$41>>0] = $39;
  14863. $42 = HEAP32[(21064)>>2]|0;
  14864. $43 = HEAP32[(21052)>>2]|0;
  14865. $44 = $43 << 2;
  14866. $45 = (($44) + -2)|0;
  14867. $46 = (($42) + ($45)|0);
  14868. $47 = HEAP8[$46>>0]|0;
  14869. $48 = $44 | 2;
  14870. $49 = (($42) + ($48)|0);
  14871. HEAP8[$49>>0] = $47;
  14872. $50 = HEAP32[(21064)>>2]|0;
  14873. $51 = HEAP32[(21052)>>2]|0;
  14874. $52 = $51 << 2;
  14875. $53 = (($52) + -1)|0;
  14876. $54 = (($50) + ($53)|0);
  14877. $55 = HEAP8[$54>>0]|0;
  14878. $56 = $52 | 3;
  14879. $57 = (($50) + ($56)|0);
  14880. HEAP8[$57>>0] = $55;
  14881. $58 = HEAP32[(21052)>>2]|0;
  14882. $59 = (($58) + 1)|0;
  14883. HEAP32[(21052)>>2] = $59;
  14884. $60 = (($$04347) + 1)|0;
  14885. $exitcond = ($60|0)==($25|0);
  14886. if ($exitcond) {
  14887. break;
  14888. } else {
  14889. $$04347 = $60;
  14890. }
  14891. }
  14892. $148 = +HEAPF32[744];
  14893. $149 = $148 + 4.9999998736893758E-5;
  14894. HEAPF32[744] = $149;
  14895. STACKTOP = sp;return;
  14896. break;
  14897. }
  14898. case 4: {
  14899. $61 = HEAP32[5273]|0;
  14900. $62 = HEAP32[(21100)>>2]|0;
  14901. $63 = ($61|0)==($62|0);
  14902. if ($63) {
  14903. $148 = +HEAPF32[744];
  14904. $149 = $148 + 4.9999998736893758E-5;
  14905. HEAPF32[744] = $149;
  14906. STACKTOP = sp;return;
  14907. }
  14908. $64 = (($61) - ($62))|0;
  14909. $65 = ($64|0)>(0);
  14910. if ($65) {
  14911. $$04248 = 0;
  14912. } else {
  14913. $148 = +HEAPF32[744];
  14914. $149 = $148 + 4.9999998736893758E-5;
  14915. HEAPF32[744] = $149;
  14916. STACKTOP = sp;return;
  14917. }
  14918. while(1) {
  14919. $66 = HEAP32[(21112)>>2]|0;
  14920. $67 = HEAP32[(21100)>>2]|0;
  14921. $68 = $67 << 2;
  14922. $69 = (($68) + -4)|0;
  14923. $70 = (($66) + ($69)|0);
  14924. $71 = HEAP8[$70>>0]|0;
  14925. $72 = (($66) + ($68)|0);
  14926. HEAP8[$72>>0] = $71;
  14927. $73 = HEAP32[(21112)>>2]|0;
  14928. $74 = HEAP32[(21100)>>2]|0;
  14929. $75 = $74 << 2;
  14930. $76 = (($75) + -3)|0;
  14931. $77 = (($73) + ($76)|0);
  14932. $78 = HEAP8[$77>>0]|0;
  14933. $79 = $75 | 1;
  14934. $80 = (($73) + ($79)|0);
  14935. HEAP8[$80>>0] = $78;
  14936. $81 = HEAP32[(21112)>>2]|0;
  14937. $82 = HEAP32[(21100)>>2]|0;
  14938. $83 = $82 << 2;
  14939. $84 = (($83) + -2)|0;
  14940. $85 = (($81) + ($84)|0);
  14941. $86 = HEAP8[$85>>0]|0;
  14942. $87 = $83 | 2;
  14943. $88 = (($81) + ($87)|0);
  14944. HEAP8[$88>>0] = $86;
  14945. $89 = HEAP32[(21112)>>2]|0;
  14946. $90 = HEAP32[(21100)>>2]|0;
  14947. $91 = $90 << 2;
  14948. $92 = (($91) + -1)|0;
  14949. $93 = (($89) + ($92)|0);
  14950. $94 = HEAP8[$93>>0]|0;
  14951. $95 = $91 | 3;
  14952. $96 = (($89) + ($95)|0);
  14953. HEAP8[$96>>0] = $94;
  14954. $97 = HEAP32[(21100)>>2]|0;
  14955. $98 = (($97) + 1)|0;
  14956. HEAP32[(21100)>>2] = $98;
  14957. $99 = (($$04248) + 1)|0;
  14958. $exitcond60 = ($99|0)==($64|0);
  14959. if ($exitcond60) {
  14960. break;
  14961. } else {
  14962. $$04248 = $99;
  14963. }
  14964. }
  14965. $148 = +HEAPF32[744];
  14966. $149 = $148 + 4.9999998736893758E-5;
  14967. HEAPF32[744] = $149;
  14968. STACKTOP = sp;return;
  14969. break;
  14970. }
  14971. case 7: {
  14972. $100 = HEAP32[5285]|0;
  14973. $101 = HEAP32[(21148)>>2]|0;
  14974. $102 = ($100|0)==($101|0);
  14975. if (!($102)) {
  14976. $103 = (($100) - ($101))|0;
  14977. $104 = ($103|0)>(0);
  14978. if ($104) {
  14979. $$04052 = 0;
  14980. while(1) {
  14981. $105 = HEAP32[(21160)>>2]|0;
  14982. $106 = HEAP32[(21148)>>2]|0;
  14983. $107 = $106 << 2;
  14984. $108 = (($107) + -4)|0;
  14985. $109 = (($105) + ($108)|0);
  14986. $110 = HEAP8[$109>>0]|0;
  14987. $111 = (($105) + ($107)|0);
  14988. HEAP8[$111>>0] = $110;
  14989. $112 = HEAP32[(21160)>>2]|0;
  14990. $113 = HEAP32[(21148)>>2]|0;
  14991. $114 = $113 << 2;
  14992. $115 = (($114) + -3)|0;
  14993. $116 = (($112) + ($115)|0);
  14994. $117 = HEAP8[$116>>0]|0;
  14995. $118 = $114 | 1;
  14996. $119 = (($112) + ($118)|0);
  14997. HEAP8[$119>>0] = $117;
  14998. $120 = HEAP32[(21160)>>2]|0;
  14999. $121 = HEAP32[(21148)>>2]|0;
  15000. $122 = $121 << 2;
  15001. $123 = (($122) + -2)|0;
  15002. $124 = (($120) + ($123)|0);
  15003. $125 = HEAP8[$124>>0]|0;
  15004. $126 = $122 | 2;
  15005. $127 = (($120) + ($126)|0);
  15006. HEAP8[$127>>0] = $125;
  15007. $128 = HEAP32[(21160)>>2]|0;
  15008. $129 = HEAP32[(21148)>>2]|0;
  15009. $130 = $129 << 2;
  15010. $131 = (($130) + -1)|0;
  15011. $132 = (($128) + ($131)|0);
  15012. $133 = HEAP8[$132>>0]|0;
  15013. $134 = $130 | 3;
  15014. $135 = (($128) + ($134)|0);
  15015. HEAP8[$135>>0] = $133;
  15016. $136 = HEAP32[(21148)>>2]|0;
  15017. $137 = (($136) + 1)|0;
  15018. HEAP32[(21148)>>2] = $137;
  15019. $138 = (($$04052) + 1)|0;
  15020. $exitcond63 = ($138|0)==($103|0);
  15021. if ($exitcond63) {
  15022. break;
  15023. } else {
  15024. $$04052 = $138;
  15025. }
  15026. }
  15027. }
  15028. }
  15029. $139 = HEAP32[5285]|0;
  15030. $140 = HEAP32[(21144)>>2]|0;
  15031. $141 = ($139|0)>($140|0);
  15032. if (!($141)) {
  15033. $148 = +HEAPF32[744];
  15034. $149 = $148 + 4.9999998736893758E-5;
  15035. HEAPF32[744] = $149;
  15036. STACKTOP = sp;return;
  15037. }
  15038. $142 = HEAP32[(21156)>>2]|0;
  15039. $$promoted = HEAP32[(21144)>>2]|0;
  15040. $143 = $$promoted << 1;
  15041. $scevgep = (($142) + ($143<<2)|0);
  15042. $144 = (($139) - ($140))|0;
  15043. $145 = $144 << 3;
  15044. _memset(($scevgep|0),0,($145|0))|0;
  15045. $146 = (($139) + ($$promoted))|0;
  15046. $147 = (($146) - ($140))|0;
  15047. HEAP32[(21144)>>2] = $147;
  15048. $148 = +HEAPF32[744];
  15049. $149 = $148 + 4.9999998736893758E-5;
  15050. HEAPF32[744] = $149;
  15051. STACKTOP = sp;return;
  15052. break;
  15053. }
  15054. default: {
  15055. $148 = +HEAPF32[744];
  15056. $149 = $148 + 4.9999998736893758E-5;
  15057. HEAPF32[744] = $149;
  15058. STACKTOP = sp;return;
  15059. }
  15060. }
  15061. }
  15062. function _rlVertex3f($0,$1,$2) {
  15063. $0 = +$0;
  15064. $1 = +$1;
  15065. $2 = +$2;
  15066. 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;
  15067. 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;
  15068. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer3 = 0, label = 0, sp = 0;
  15069. sp = STACKTOP;
  15070. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  15071. $vararg_buffer3 = sp + 16|0;
  15072. $vararg_buffer1 = sp + 8|0;
  15073. $vararg_buffer = sp;
  15074. $3 = HEAP32[5439]|0;
  15075. $4 = ($3|0)==(0);
  15076. if (!($4)) {
  15077. $5 = HEAP32[4999]|0;
  15078. $6 = HEAP32[5440]|0;
  15079. $7 = (($5) + (($6*12)|0)|0);
  15080. HEAPF32[$7>>2] = $0;
  15081. $8 = (((($5) + (($6*12)|0)|0)) + 4|0);
  15082. HEAPF32[$8>>2] = $1;
  15083. $9 = (((($5) + (($6*12)|0)|0)) + 8|0);
  15084. HEAPF32[$9>>2] = $2;
  15085. $10 = (($6) + 1)|0;
  15086. HEAP32[5440] = $10;
  15087. STACKTOP = sp;return;
  15088. }
  15089. $11 = HEAP32[5002]|0;
  15090. switch ($11|0) {
  15091. case 1: {
  15092. $12 = HEAP32[5261]|0;
  15093. $13 = ($12|0)<(2048);
  15094. if ($13) {
  15095. $14 = HEAP32[(21056)>>2]|0;
  15096. $15 = ($12*3)|0;
  15097. $16 = (($14) + ($15<<2)|0);
  15098. HEAPF32[$16>>2] = $0;
  15099. $17 = (($15) + 1)|0;
  15100. $18 = (($14) + ($17<<2)|0);
  15101. HEAPF32[$18>>2] = $1;
  15102. $19 = (($15) + 2)|0;
  15103. $20 = (($14) + ($19<<2)|0);
  15104. HEAPF32[$20>>2] = $2;
  15105. $21 = (($12) + 1)|0;
  15106. HEAP32[5261] = $21;
  15107. STACKTOP = sp;return;
  15108. } else {
  15109. _TraceLog(1,9229,$vararg_buffer);
  15110. STACKTOP = sp;return;
  15111. }
  15112. break;
  15113. }
  15114. case 4: {
  15115. $22 = HEAP32[5273]|0;
  15116. $23 = ($22|0)<(6144);
  15117. if ($23) {
  15118. $24 = HEAP32[(21104)>>2]|0;
  15119. $25 = ($22*3)|0;
  15120. $26 = (($24) + ($25<<2)|0);
  15121. HEAPF32[$26>>2] = $0;
  15122. $27 = (($25) + 1)|0;
  15123. $28 = (($24) + ($27<<2)|0);
  15124. HEAPF32[$28>>2] = $1;
  15125. $29 = (($25) + 2)|0;
  15126. $30 = (($24) + ($29<<2)|0);
  15127. HEAPF32[$30>>2] = $2;
  15128. $31 = (($22) + 1)|0;
  15129. HEAP32[5273] = $31;
  15130. STACKTOP = sp;return;
  15131. } else {
  15132. _TraceLog(1,9254,$vararg_buffer1);
  15133. STACKTOP = sp;return;
  15134. }
  15135. break;
  15136. }
  15137. case 7: {
  15138. $32 = HEAP32[5285]|0;
  15139. $33 = ($32|0)<(4096);
  15140. if ($33) {
  15141. $34 = HEAP32[(21152)>>2]|0;
  15142. $35 = ($32*3)|0;
  15143. $36 = (($34) + ($35<<2)|0);
  15144. HEAPF32[$36>>2] = $0;
  15145. $37 = (($35) + 1)|0;
  15146. $38 = (($34) + ($37<<2)|0);
  15147. HEAPF32[$38>>2] = $1;
  15148. $39 = (($35) + 2)|0;
  15149. $40 = (($34) + ($39<<2)|0);
  15150. HEAPF32[$40>>2] = $2;
  15151. $41 = (($32) + 1)|0;
  15152. HEAP32[5285] = $41;
  15153. $42 = HEAP32[5000]|0;
  15154. $43 = HEAP32[5001]|0;
  15155. $44 = (($43) + -1)|0;
  15156. $45 = (($42) + (($44*144)|0)|0);
  15157. $46 = HEAP32[$45>>2]|0;
  15158. $47 = (($46) + 1)|0;
  15159. HEAP32[$45>>2] = $47;
  15160. STACKTOP = sp;return;
  15161. } else {
  15162. _TraceLog(1,9283,$vararg_buffer3);
  15163. STACKTOP = sp;return;
  15164. }
  15165. break;
  15166. }
  15167. default: {
  15168. STACKTOP = sp;return;
  15169. }
  15170. }
  15171. }
  15172. function _rlVertex2f($0,$1) {
  15173. $0 = +$0;
  15174. $1 = +$1;
  15175. var $2 = 0.0, label = 0, sp = 0;
  15176. sp = STACKTOP;
  15177. $2 = +HEAPF32[744];
  15178. _rlVertex3f($0,$1,$2);
  15179. return;
  15180. }
  15181. function _rlTexCoord2f($0,$1) {
  15182. $0 = +$0;
  15183. $1 = +$1;
  15184. var $10 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  15185. sp = STACKTOP;
  15186. $2 = HEAP32[5002]|0;
  15187. $3 = ($2|0)==(7);
  15188. if (!($3)) {
  15189. return;
  15190. }
  15191. $4 = HEAP32[(21156)>>2]|0;
  15192. $5 = HEAP32[(21144)>>2]|0;
  15193. $6 = $5 << 1;
  15194. $7 = (($4) + ($6<<2)|0);
  15195. HEAPF32[$7>>2] = $0;
  15196. $8 = $6 | 1;
  15197. $9 = (($4) + ($8<<2)|0);
  15198. HEAPF32[$9>>2] = $1;
  15199. $10 = (($5) + 1)|0;
  15200. HEAP32[(21144)>>2] = $10;
  15201. return;
  15202. }
  15203. function _rlNormal3f($0,$1,$2) {
  15204. $0 = +$0;
  15205. $1 = +$1;
  15206. $2 = +$2;
  15207. var label = 0, sp = 0;
  15208. sp = STACKTOP;
  15209. return;
  15210. }
  15211. function _rlColor4ub($0,$1,$2,$3) {
  15212. $0 = $0|0;
  15213. $1 = $1|0;
  15214. $2 = $2|0;
  15215. $3 = $3|0;
  15216. 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;
  15217. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  15218. sp = STACKTOP;
  15219. $4 = HEAP32[5002]|0;
  15220. switch ($4|0) {
  15221. case 1: {
  15222. $$sink37 = (21052);$$sink38 = (21064);
  15223. break;
  15224. }
  15225. case 4: {
  15226. $$sink37 = (21100);$$sink38 = (21112);
  15227. break;
  15228. }
  15229. case 7: {
  15230. $$sink37 = (21148);$$sink38 = (21160);
  15231. break;
  15232. }
  15233. default: {
  15234. return;
  15235. }
  15236. }
  15237. $5 = HEAP32[$$sink38>>2]|0;
  15238. $6 = HEAP32[$$sink37>>2]|0;
  15239. $7 = $6 << 2;
  15240. $8 = (($5) + ($7)|0);
  15241. HEAP8[$8>>0] = $0;
  15242. $9 = HEAP32[$$sink38>>2]|0;
  15243. $10 = HEAP32[$$sink37>>2]|0;
  15244. $11 = $10 << 2;
  15245. $12 = $11 | 1;
  15246. $13 = (($9) + ($12)|0);
  15247. HEAP8[$13>>0] = $1;
  15248. $14 = HEAP32[$$sink38>>2]|0;
  15249. $15 = HEAP32[$$sink37>>2]|0;
  15250. $16 = $15 << 2;
  15251. $17 = $16 | 2;
  15252. $18 = (($14) + ($17)|0);
  15253. HEAP8[$18>>0] = $2;
  15254. $19 = HEAP32[$$sink38>>2]|0;
  15255. $20 = HEAP32[$$sink37>>2]|0;
  15256. $21 = $20 << 2;
  15257. $22 = $21 | 3;
  15258. $23 = (($19) + ($22)|0);
  15259. HEAP8[$23>>0] = $3;
  15260. $24 = HEAP32[$$sink37>>2]|0;
  15261. $25 = (($24) + 1)|0;
  15262. HEAP32[$$sink37>>2] = $25;
  15263. return;
  15264. }
  15265. function _rlEnableTexture($0) {
  15266. $0 = $0|0;
  15267. 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;
  15268. sp = STACKTOP;
  15269. $1 = HEAP32[5000]|0;
  15270. $2 = HEAP32[5001]|0;
  15271. $3 = (($2) + -1)|0;
  15272. $4 = (((($1) + (($3*144)|0)|0)) + 8|0);
  15273. $5 = HEAP32[$4>>2]|0;
  15274. $6 = ($5|0)==($0|0);
  15275. if ($6) {
  15276. return;
  15277. }
  15278. $7 = (($1) + (($3*144)|0)|0);
  15279. $8 = HEAP32[$7>>2]|0;
  15280. $9 = ($8|0)>(0);
  15281. if ($9) {
  15282. $10 = (($2) + 1)|0;
  15283. HEAP32[5001] = $10;
  15284. }
  15285. $11 = HEAP32[5001]|0;
  15286. $12 = (($11) + -1)|0;
  15287. $13 = (((($1) + (($12*144)|0)|0)) + 8|0);
  15288. HEAP32[$13>>2] = $0;
  15289. $14 = (($1) + (($12*144)|0)|0);
  15290. HEAP32[$14>>2] = 0;
  15291. return;
  15292. }
  15293. function _rlDisableTexture() {
  15294. var $0 = 0, $1 = 0, label = 0, sp = 0;
  15295. sp = STACKTOP;
  15296. $0 = HEAP32[5285]|0;
  15297. $1 = ($0|0)>(4095);
  15298. if (!($1)) {
  15299. return;
  15300. }
  15301. _rlglDraw();
  15302. return;
  15303. }
  15304. function _rlTextureParameters($0,$1,$2) {
  15305. $0 = $0|0;
  15306. $1 = $1|0;
  15307. $2 = $2|0;
  15308. var $10 = 0.0, $3 = 0, $4 = 0, $5 = 0, $6 = 0.0, $7 = 0.0, $8 = 0, $9 = 0, $or$cond = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer4 = 0, $vararg_ptr3 = 0, label = 0, sp = 0;
  15309. sp = STACKTOP;
  15310. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  15311. $vararg_buffer4 = sp + 24|0;
  15312. $vararg_buffer1 = sp + 8|0;
  15313. $vararg_buffer = sp;
  15314. _glBindTexture(3553,($0|0));
  15315. L1: do {
  15316. switch ($1|0) {
  15317. case 10243: case 10242: {
  15318. $3 = ($2|0)!=(34626);
  15319. $4 = HEAP32[4969]|0;
  15320. $5 = ($4|0)!=(0);
  15321. $or$cond = $3 | $5;
  15322. if ($or$cond) {
  15323. _glTexParameteri(3553,($1|0),($2|0));
  15324. break L1;
  15325. } else {
  15326. _TraceLog(2,9308,$vararg_buffer);
  15327. break L1;
  15328. }
  15329. break;
  15330. }
  15331. case 10241: case 10240: {
  15332. _glTexParameteri(3553,($1|0),($2|0));
  15333. break;
  15334. }
  15335. case 12288: {
  15336. $6 = (+($2|0));
  15337. $7 = +HEAPF32[4968];
  15338. $8 = !($6 <= $7);
  15339. if (!($8)) {
  15340. _glTexParameterf(3553,34046,(+$6));
  15341. break L1;
  15342. }
  15343. $9 = $7 > 0.0;
  15344. if ($9) {
  15345. $10 = $7;
  15346. HEAP32[$vararg_buffer1>>2] = $0;
  15347. $vararg_ptr3 = ((($vararg_buffer1)) + 8|0);
  15348. HEAPF64[$vararg_ptr3>>3] = $10;
  15349. _TraceLog(2,9345,$vararg_buffer1);
  15350. _glTexParameterf(3553,34046,(+$6));
  15351. break L1;
  15352. } else {
  15353. _TraceLog(2,9407,$vararg_buffer4);
  15354. break L1;
  15355. }
  15356. break;
  15357. }
  15358. default: {
  15359. }
  15360. }
  15361. } while(0);
  15362. _glBindTexture(3553,0);
  15363. STACKTOP = sp;return;
  15364. }
  15365. function _stbi__err($0) {
  15366. $0 = $0|0;
  15367. var label = 0, sp = 0;
  15368. sp = STACKTOP;
  15369. HEAP32[5441] = $0;
  15370. return;
  15371. }
  15372. function _stbi_load_from_file($0,$1,$2,$3,$4) {
  15373. $0 = $0|0;
  15374. $1 = $1|0;
  15375. $2 = $2|0;
  15376. $3 = $3|0;
  15377. $4 = $4|0;
  15378. var $10 = 0, $11 = 0, $12 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  15379. sp = STACKTOP;
  15380. STACKTOP = STACKTOP + 192|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(192|0);
  15381. $5 = sp;
  15382. _stbi__start_file($5,$0);
  15383. $6 = (_stbi__load_and_postprocess_8bit($5,$1,$2,$3,$4)|0);
  15384. $7 = ($6|0)==(0|0);
  15385. if ($7) {
  15386. STACKTOP = sp;return ($6|0);
  15387. }
  15388. $8 = ((($5)) + 172|0);
  15389. $9 = HEAP32[$8>>2]|0;
  15390. $10 = ((($5)) + 168|0);
  15391. $11 = HEAP32[$10>>2]|0;
  15392. $12 = (($11) - ($9))|0;
  15393. (_fseek($0,$12,1)|0);
  15394. STACKTOP = sp;return ($6|0);
  15395. }
  15396. function _stbi__start_file($0,$1) {
  15397. $0 = $0|0;
  15398. $1 = $1|0;
  15399. var label = 0, sp = 0;
  15400. sp = STACKTOP;
  15401. _stbi__start_callbacks($0,3092,$1);
  15402. return;
  15403. }
  15404. function _stbi__load_and_postprocess_8bit($0,$1,$2,$3,$4) {
  15405. $0 = $0|0;
  15406. $1 = $1|0;
  15407. $2 = $2|0;
  15408. $3 = $3|0;
  15409. $4 = $4|0;
  15410. 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;
  15411. 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;
  15412. var $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $exitcond79 = 0, $exitcond80 = 0, label = 0, sp = 0;
  15413. sp = STACKTOP;
  15414. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15415. $5 = sp;
  15416. $6 = (_stbi__load_main($0,$1,$2,$3,$4,$5)|0);
  15417. $7 = ($6|0)==(0|0);
  15418. if ($7) {
  15419. $$0 = 0;
  15420. STACKTOP = sp;return ($$0|0);
  15421. }
  15422. $8 = HEAP32[$5>>2]|0;
  15423. switch ($8|0) {
  15424. case 8: {
  15425. $$070 = $6;
  15426. break;
  15427. }
  15428. case 16: {
  15429. label = 4;
  15430. break;
  15431. }
  15432. default: {
  15433. ___assert_fail((9443|0),(9469|0),1041,(9492|0));
  15434. // unreachable;
  15435. }
  15436. }
  15437. if ((label|0) == 4) {
  15438. $9 = HEAP32[$1>>2]|0;
  15439. $10 = HEAP32[$2>>2]|0;
  15440. $11 = ($4|0)==(0);
  15441. if ($11) {
  15442. $12 = HEAP32[$3>>2]|0;
  15443. $13 = $12;
  15444. } else {
  15445. $13 = $4;
  15446. }
  15447. $14 = (_stbi__convert_16_to_8($6,$9,$10,$13)|0);
  15448. HEAP32[$5>>2] = 8;
  15449. $$070 = $14;
  15450. }
  15451. $15 = HEAP32[5442]|0;
  15452. $16 = ($15|0)==(0);
  15453. if ($16) {
  15454. $$0 = $$070;
  15455. STACKTOP = sp;return ($$0|0);
  15456. }
  15457. $17 = HEAP32[$1>>2]|0;
  15458. $18 = HEAP32[$2>>2]|0;
  15459. $19 = ($4|0)==(0);
  15460. if ($19) {
  15461. $20 = HEAP32[$3>>2]|0;
  15462. $25 = $20;
  15463. } else {
  15464. $25 = $4;
  15465. }
  15466. $21 = $18 >> 1;
  15467. $22 = ($21|0)>(0);
  15468. if (!($22)) {
  15469. $$0 = $$070;
  15470. STACKTOP = sp;return ($$0|0);
  15471. }
  15472. $23 = ($17|0)>(0);
  15473. $24 = ($25|0)>(0);
  15474. $26 = (($18) + -1)|0;
  15475. $$07378 = 0;
  15476. while(1) {
  15477. if ($23) {
  15478. $27 = Math_imul($$07378, $17)|0;
  15479. $28 = (($26) - ($$07378))|0;
  15480. $29 = Math_imul($28, $17)|0;
  15481. $$07276 = 0;
  15482. while(1) {
  15483. if ($24) {
  15484. $30 = (($$07276) + ($27))|0;
  15485. $31 = Math_imul($30, $25)|0;
  15486. $32 = (($$07276) + ($29))|0;
  15487. $33 = Math_imul($32, $25)|0;
  15488. $$07175 = 0;
  15489. while(1) {
  15490. $34 = (($$07175) + ($31))|0;
  15491. $35 = (($$070) + ($34)|0);
  15492. $36 = HEAP8[$35>>0]|0;
  15493. $37 = (($$07175) + ($33))|0;
  15494. $38 = (($$070) + ($37)|0);
  15495. $39 = HEAP8[$38>>0]|0;
  15496. HEAP8[$35>>0] = $39;
  15497. HEAP8[$38>>0] = $36;
  15498. $40 = (($$07175) + 1)|0;
  15499. $exitcond = ($40|0)==($25|0);
  15500. if ($exitcond) {
  15501. break;
  15502. } else {
  15503. $$07175 = $40;
  15504. }
  15505. }
  15506. }
  15507. $41 = (($$07276) + 1)|0;
  15508. $exitcond79 = ($41|0)==($17|0);
  15509. if ($exitcond79) {
  15510. break;
  15511. } else {
  15512. $$07276 = $41;
  15513. }
  15514. }
  15515. }
  15516. $42 = (($$07378) + 1)|0;
  15517. $exitcond80 = ($42|0)==($21|0);
  15518. if ($exitcond80) {
  15519. $$0 = $$070;
  15520. break;
  15521. } else {
  15522. $$07378 = $42;
  15523. }
  15524. }
  15525. STACKTOP = sp;return ($$0|0);
  15526. }
  15527. function _stbi__load_main($0,$1,$2,$3,$4,$5) {
  15528. $0 = $0|0;
  15529. $1 = $1|0;
  15530. $2 = $2|0;
  15531. $3 = $3|0;
  15532. $4 = $4|0;
  15533. $5 = $5|0;
  15534. var $$0 = 0, $10 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  15535. sp = STACKTOP;
  15536. HEAP32[$5>>2] = 8;
  15537. $6 = ((($5)) + 8|0);
  15538. HEAP32[$6>>2] = 0;
  15539. $7 = ((($5)) + 4|0);
  15540. HEAP32[$7>>2] = 0;
  15541. $8 = (_stbi__png_test($0)|0);
  15542. $9 = ($8|0)==(0);
  15543. if ($9) {
  15544. _stbi__err(9533);
  15545. $$0 = 0;
  15546. return ($$0|0);
  15547. } else {
  15548. $10 = (_stbi__png_load($0,$1,$2,$3,$4,$5)|0);
  15549. $$0 = $10;
  15550. return ($$0|0);
  15551. }
  15552. return (0)|0;
  15553. }
  15554. function _stbi__convert_16_to_8($0,$1,$2,$3) {
  15555. $0 = $0|0;
  15556. $1 = $1|0;
  15557. $2 = $2|0;
  15558. $3 = $3|0;
  15559. 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;
  15560. sp = STACKTOP;
  15561. $4 = Math_imul($2, $1)|0;
  15562. $5 = Math_imul($4, $3)|0;
  15563. $6 = (_stbi__malloc($5)|0);
  15564. $7 = ($6|0)==(0|0);
  15565. if ($7) {
  15566. _stbi__err(9524);
  15567. $$0 = 0;
  15568. return ($$0|0);
  15569. }
  15570. $8 = ($5|0)>(0);
  15571. if ($8) {
  15572. $$01819 = 0;
  15573. while(1) {
  15574. $9 = (($0) + ($$01819<<1)|0);
  15575. $10 = HEAP16[$9>>1]|0;
  15576. $11 = ($10&65535) >>> 8;
  15577. $12 = $11&255;
  15578. $13 = (($6) + ($$01819)|0);
  15579. HEAP8[$13>>0] = $12;
  15580. $14 = (($$01819) + 1)|0;
  15581. $exitcond = ($14|0)==($5|0);
  15582. if ($exitcond) {
  15583. break;
  15584. } else {
  15585. $$01819 = $14;
  15586. }
  15587. }
  15588. }
  15589. _free($0);
  15590. $$0 = $6;
  15591. return ($$0|0);
  15592. }
  15593. function _stbi__malloc($0) {
  15594. $0 = $0|0;
  15595. var $1 = 0, label = 0, sp = 0;
  15596. sp = STACKTOP;
  15597. $1 = (_malloc($0)|0);
  15598. return ($1|0);
  15599. }
  15600. function _stbi__png_test($0) {
  15601. $0 = $0|0;
  15602. var $1 = 0, label = 0, sp = 0;
  15603. sp = STACKTOP;
  15604. $1 = (_stbi__check_png_header($0)|0);
  15605. _stbi__rewind($0);
  15606. return ($1|0);
  15607. }
  15608. function _stbi__png_load($0,$1,$2,$3,$4,$5) {
  15609. $0 = $0|0;
  15610. $1 = $1|0;
  15611. $2 = $2|0;
  15612. $3 = $3|0;
  15613. $4 = $4|0;
  15614. $5 = $5|0;
  15615. var $6 = 0, $7 = 0, label = 0, sp = 0;
  15616. sp = STACKTOP;
  15617. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  15618. $6 = sp;
  15619. HEAP32[$6>>2] = $0;
  15620. $7 = (_stbi__do_png($6,$1,$2,$3,$4,$5)|0);
  15621. STACKTOP = sp;return ($7|0);
  15622. }
  15623. function _stbi__do_png($0,$1,$2,$3,$4,$5) {
  15624. $0 = $0|0;
  15625. $1 = $1|0;
  15626. $2 = $2|0;
  15627. $3 = $3|0;
  15628. $4 = $4|0;
  15629. $5 = $5|0;
  15630. 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;
  15631. 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;
  15632. var $9 = 0, label = 0, sp = 0;
  15633. sp = STACKTOP;
  15634. $6 = ($4>>>0)>(4);
  15635. if ($6) {
  15636. _stbi__err(9552);
  15637. $$045 = 0;
  15638. return ($$045|0);
  15639. }
  15640. $7 = (_stbi__parse_png_file($0,0,$4)|0);
  15641. $8 = ($7|0)==(0);
  15642. if ($8) {
  15643. $$2 = 0;
  15644. } else {
  15645. $9 = ((($0)) + 16|0);
  15646. $10 = HEAP32[$9>>2]|0;
  15647. $11 = ($10|0)>(8);
  15648. $$ = $11 ? $10 : 8;
  15649. HEAP32[$5>>2] = $$;
  15650. $12 = ((($0)) + 12|0);
  15651. $13 = HEAP32[$12>>2]|0;
  15652. HEAP32[$12>>2] = 0;
  15653. $14 = ($4|0)==(0);
  15654. if ($14) {
  15655. $$1 = $13;
  15656. } else {
  15657. $15 = HEAP32[$0>>2]|0;
  15658. $16 = ((($15)) + 12|0);
  15659. $17 = HEAP32[$16>>2]|0;
  15660. $18 = ($17|0)==($4|0);
  15661. if ($18) {
  15662. $$1 = $13;
  15663. } else {
  15664. $19 = HEAP32[$5>>2]|0;
  15665. $20 = ($19|0)==(8);
  15666. $21 = ((($15)) + 4|0);
  15667. $22 = HEAP32[$21>>2]|0;
  15668. $23 = HEAP32[$15>>2]|0;
  15669. if ($20) {
  15670. $24 = (_stbi__convert_format($13,$17,$4,$23,$22)|0);
  15671. $$0 = $24;
  15672. } else {
  15673. $25 = (_stbi__convert_format16($13,$17,$4,$23,$22)|0);
  15674. $$0 = $25;
  15675. }
  15676. $26 = HEAP32[$0>>2]|0;
  15677. $27 = ((($26)) + 12|0);
  15678. HEAP32[$27>>2] = $4;
  15679. $28 = ($$0|0)==(0|0);
  15680. if ($28) {
  15681. $$045 = 0;
  15682. return ($$045|0);
  15683. } else {
  15684. $$1 = $$0;
  15685. }
  15686. }
  15687. }
  15688. $29 = HEAP32[$0>>2]|0;
  15689. $30 = HEAP32[$29>>2]|0;
  15690. HEAP32[$1>>2] = $30;
  15691. $31 = ((($29)) + 4|0);
  15692. $32 = HEAP32[$31>>2]|0;
  15693. HEAP32[$2>>2] = $32;
  15694. $33 = ($3|0)==(0|0);
  15695. if ($33) {
  15696. $$2 = $$1;
  15697. } else {
  15698. $34 = ((($29)) + 8|0);
  15699. $35 = HEAP32[$34>>2]|0;
  15700. HEAP32[$3>>2] = $35;
  15701. $$2 = $$1;
  15702. }
  15703. }
  15704. $36 = ((($0)) + 12|0);
  15705. $37 = HEAP32[$36>>2]|0;
  15706. _free($37);
  15707. HEAP32[$36>>2] = 0;
  15708. $38 = ((($0)) + 8|0);
  15709. $39 = HEAP32[$38>>2]|0;
  15710. _free($39);
  15711. HEAP32[$38>>2] = 0;
  15712. $40 = ((($0)) + 4|0);
  15713. $41 = HEAP32[$40>>2]|0;
  15714. _free($41);
  15715. HEAP32[$40>>2] = 0;
  15716. $$045 = $$2;
  15717. return ($$045|0);
  15718. }
  15719. function _stbi__parse_png_file($0,$1,$2) {
  15720. $0 = $0|0;
  15721. $1 = $1|0;
  15722. $2 = $2|0;
  15723. 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;
  15724. 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;
  15725. 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;
  15726. 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;
  15727. 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;
  15728. 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;
  15729. 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;
  15730. 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;
  15731. 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;
  15732. 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;
  15733. 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;
  15734. 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;
  15735. 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;
  15736. sp = STACKTOP;
  15737. STACKTOP = STACKTOP + 1056|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1056|0);
  15738. $3 = sp + 32|0;
  15739. $4 = sp + 22|0;
  15740. $5 = sp + 16|0;
  15741. $6 = sp + 8|0;
  15742. $7 = sp;
  15743. $8 = HEAP32[$0>>2]|0;
  15744. $9 = ((($0)) + 8|0);
  15745. HEAP32[$9>>2] = 0;
  15746. $10 = ((($0)) + 4|0);
  15747. HEAP32[$10>>2] = 0;
  15748. $11 = ((($0)) + 12|0);
  15749. HEAP32[$11>>2] = 0;
  15750. $12 = (_stbi__check_png_header($8)|0);
  15751. $13 = ($12|0)==(0);
  15752. if ($13) {
  15753. $$7 = 0;
  15754. STACKTOP = sp;return ($$7|0);
  15755. }
  15756. $14 = ($1|0)==(1);
  15757. if ($14) {
  15758. $$7 = 1;
  15759. STACKTOP = sp;return ($$7|0);
  15760. }
  15761. $15 = ((($6)) + 4|0);
  15762. $16 = ((($8)) + 4|0);
  15763. $17 = ((($0)) + 16|0);
  15764. $18 = ((($8)) + 8|0);
  15765. $19 = ($1|0)==(2);
  15766. $20 = ((($8)) + 8|0);
  15767. $21 = ((($8)) + 8|0);
  15768. $22 = ((($0)) + 16|0);
  15769. $23 = ($1|0)==(2);
  15770. $24 = ($1|0)==(2);
  15771. $$0206 = 0;$$0211 = 0;$$0214 = 0;$$0217 = 0;$$0228 = 0;$$0231 = 0;$$0235 = 0;$$0241 = 1;$$0245 = 0;
  15772. L7: while(1) {
  15773. _stbi__get_chunk_header($6,$8);
  15774. $25 = HEAP32[$15>>2]|0;
  15775. $switch$split2D = ($25|0)<(1229472850);
  15776. L9: do {
  15777. if ($switch$split2D) {
  15778. $switch$split52D = ($25|0)<(1229209940);
  15779. if ($switch$split52D) {
  15780. switch ($25|0) {
  15781. case 1130840649: {
  15782. break;
  15783. }
  15784. default: {
  15785. label = 103;
  15786. break L9;
  15787. }
  15788. }
  15789. $26 = HEAP32[$6>>2]|0;
  15790. _stbi__skip($8,$26);
  15791. $$1212 = $$0211;$$1215 = $$0214;$$1229 = 1;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  15792. break;
  15793. }
  15794. $switch$split112D = ($25|0)<(1229278788);
  15795. if (!($switch$split112D)) {
  15796. switch ($25|0) {
  15797. case 1229278788: {
  15798. label = 85;
  15799. break L7;
  15800. break;
  15801. }
  15802. default: {
  15803. label = 103;
  15804. break L9;
  15805. }
  15806. }
  15807. }
  15808. switch ($25|0) {
  15809. case 1229209940: {
  15810. break;
  15811. }
  15812. default: {
  15813. label = 103;
  15814. break L9;
  15815. }
  15816. }
  15817. $130 = ($$0241|0)==(0);
  15818. if (!($130)) {
  15819. label = 70;
  15820. break L7;
  15821. }
  15822. $131 = ($$0206<<24>>24)==(0);
  15823. $132 = ($$0245|0)!=(0);
  15824. $or$cond = $132 | $131;
  15825. if (!($or$cond)) {
  15826. label = 72;
  15827. break L7;
  15828. }
  15829. if ($24) {
  15830. label = 74;
  15831. break L7;
  15832. }
  15833. $135 = HEAP32[$6>>2]|0;
  15834. $136 = (($135) + ($$0214))|0;
  15835. $137 = ($136|0)<($$0214|0);
  15836. if ($137) {
  15837. $$6$ph = 0;
  15838. break L7;
  15839. }
  15840. $138 = ($136>>>0)>($$0217>>>0);
  15841. if ($138) {
  15842. $139 = ($$0217|0)==(0);
  15843. $140 = ($135>>>0)>(4096);
  15844. $141 = $140 ? $135 : 4096;
  15845. $$$0217 = $139 ? $141 : $$0217;
  15846. $142 = HEAP32[$6>>2]|0;
  15847. $143 = (($142) + ($$0214))|0;
  15848. $$1218 = $$$0217;
  15849. while(1) {
  15850. $144 = ($143>>>0)>($$1218>>>0);
  15851. $145 = $$1218 << 1;
  15852. if ($144) {
  15853. $$1218 = $145;
  15854. } else {
  15855. break;
  15856. }
  15857. }
  15858. $146 = HEAP32[$10>>2]|0;
  15859. $147 = (_realloc($146,$$1218)|0);
  15860. $148 = ($147|0)==(0|0);
  15861. if ($148) {
  15862. label = 81;
  15863. break L7;
  15864. }
  15865. HEAP32[$10>>2] = $147;
  15866. $$2219 = $$1218;
  15867. } else {
  15868. $$2219 = $$0217;
  15869. }
  15870. $149 = HEAP32[$10>>2]|0;
  15871. $150 = (($149) + ($$0214)|0);
  15872. $151 = HEAP32[$6>>2]|0;
  15873. $152 = (_stbi__getn($8,$150,$151)|0);
  15874. $153 = ($152|0)==(0);
  15875. if ($153) {
  15876. label = 83;
  15877. break L7;
  15878. }
  15879. $154 = HEAP32[$6>>2]|0;
  15880. $155 = (($154) + ($$0214))|0;
  15881. $$1212 = $$0211;$$1215 = $155;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$2219;
  15882. } else {
  15883. $switch$split82D = ($25|0)<(1347179589);
  15884. if ($switch$split82D) {
  15885. switch ($25|0) {
  15886. case 1229472850: {
  15887. break;
  15888. }
  15889. default: {
  15890. label = 103;
  15891. break L9;
  15892. }
  15893. }
  15894. $27 = ($$0241|0)==(0);
  15895. if ($27) {
  15896. label = 7;
  15897. break L7;
  15898. }
  15899. $28 = HEAP32[$6>>2]|0;
  15900. $29 = ($28|0)==(13);
  15901. if (!($29)) {
  15902. label = 9;
  15903. break L7;
  15904. }
  15905. $30 = (_stbi__get32be($8)|0);
  15906. HEAP32[$8>>2] = $30;
  15907. $31 = ($30>>>0)>(16777216);
  15908. if ($31) {
  15909. label = 11;
  15910. break L7;
  15911. }
  15912. $32 = (_stbi__get32be($8)|0);
  15913. HEAP32[$16>>2] = $32;
  15914. $33 = ($32>>>0)>(16777216);
  15915. if ($33) {
  15916. label = 13;
  15917. break L7;
  15918. }
  15919. $34 = (_stbi__get8($8)|0);
  15920. $35 = $34&255;
  15921. HEAP32[$17>>2] = $35;
  15922. switch ($34<<24>>24) {
  15923. case 16: case 8: case 4: case 2: case 1: {
  15924. break;
  15925. }
  15926. default: {
  15927. label = 15;
  15928. break L7;
  15929. }
  15930. }
  15931. $36 = (_stbi__get8($8)|0);
  15932. $37 = $36&255;
  15933. $38 = ($36&255)>(6);
  15934. if ($38) {
  15935. label = 17;
  15936. break L7;
  15937. }
  15938. $39 = ($36<<24>>24)==(3);
  15939. if ($39) {
  15940. $40 = HEAP32[$17>>2]|0;
  15941. $41 = ($40|0)==(16);
  15942. if ($41) {
  15943. label = 20;
  15944. break L7;
  15945. } else {
  15946. $$1207 = 3;
  15947. }
  15948. } else {
  15949. $42 = $37 & 1;
  15950. $43 = ($42|0)==(0);
  15951. if ($43) {
  15952. $$1207 = $$0206;
  15953. } else {
  15954. label = 22;
  15955. break L7;
  15956. }
  15957. }
  15958. $44 = (_stbi__get8($8)|0);
  15959. $45 = ($44<<24>>24)==(0);
  15960. if (!($45)) {
  15961. label = 24;
  15962. break L7;
  15963. }
  15964. $46 = (_stbi__get8($8)|0);
  15965. $47 = ($46<<24>>24)==(0);
  15966. if (!($47)) {
  15967. label = 26;
  15968. break L7;
  15969. }
  15970. $48 = (_stbi__get8($8)|0);
  15971. $49 = $48&255;
  15972. $50 = ($48&255)>(1);
  15973. if ($50) {
  15974. label = 28;
  15975. break L7;
  15976. }
  15977. $51 = HEAP32[$8>>2]|0;
  15978. $52 = ($51|0)==(0);
  15979. if ($52) {
  15980. label = 31;
  15981. break L7;
  15982. }
  15983. $53 = HEAP32[$16>>2]|0;
  15984. $54 = ($53|0)==(0);
  15985. if ($54) {
  15986. label = 31;
  15987. break L7;
  15988. }
  15989. $55 = ($$1207<<24>>24)==(0);
  15990. $56 = (1073741824 / ($51>>>0))&-1;
  15991. if (!($55)) {
  15992. HEAP32[$20>>2] = 1;
  15993. $63 = $56 >>> 2;
  15994. $64 = ($63>>>0)<($53>>>0);
  15995. if ($64) {
  15996. label = 37;
  15997. break L7;
  15998. } else {
  15999. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $37;$$2237 = $49;$$2243 = 0;$$3209 = $$1207;$$3220 = $$0217;
  16000. break;
  16001. }
  16002. }
  16003. $57 = $37 & 2;
  16004. $58 = $57 | 1;
  16005. $59 = $37 >>> 2;
  16006. $$lobit = $59 & 1;
  16007. $60 = (($58) + ($$lobit))|0;
  16008. HEAP32[$18>>2] = $60;
  16009. $61 = (($56>>>0) / ($60>>>0))&-1;
  16010. $62 = ($61>>>0)<($53>>>0);
  16011. if ($62) {
  16012. label = 34;
  16013. break L7;
  16014. }
  16015. if ($19) {
  16016. $$6$ph = 1;
  16017. break L7;
  16018. } else {
  16019. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $37;$$2237 = $49;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  16020. break;
  16021. }
  16022. }
  16023. $switch$split142D = ($25|0)<(1951551059);
  16024. if ($switch$split142D) {
  16025. switch ($25|0) {
  16026. case 1347179589: {
  16027. break;
  16028. }
  16029. default: {
  16030. label = 103;
  16031. break L9;
  16032. }
  16033. }
  16034. $65 = ($$0241|0)==(0);
  16035. if (!($65)) {
  16036. label = 39;
  16037. break L7;
  16038. }
  16039. $66 = HEAP32[$6>>2]|0;
  16040. $67 = ($66>>>0)>(768);
  16041. if ($67) {
  16042. label = 41;
  16043. break L7;
  16044. }
  16045. $68 = (($66>>>0) / 3)&-1;
  16046. $69 = ($68*3)|0;
  16047. $70 = ($69|0)==($66|0);
  16048. if (!($70)) {
  16049. label = 44;
  16050. break L7;
  16051. }
  16052. $71 = ($66>>>0)>(2);
  16053. if ($71) {
  16054. $$0226593 = 0;
  16055. } else {
  16056. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $68;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = $$0206;$$3220 = $$0217;
  16057. break;
  16058. }
  16059. while(1) {
  16060. $72 = (_stbi__get8($8)|0);
  16061. $73 = $$0226593 << 2;
  16062. $74 = (($3) + ($73)|0);
  16063. HEAP8[$74>>0] = $72;
  16064. $75 = (_stbi__get8($8)|0);
  16065. $76 = $73 | 1;
  16066. $77 = (($3) + ($76)|0);
  16067. HEAP8[$77>>0] = $75;
  16068. $78 = (_stbi__get8($8)|0);
  16069. $79 = $73 | 2;
  16070. $80 = (($3) + ($79)|0);
  16071. HEAP8[$80>>0] = $78;
  16072. $81 = $73 | 3;
  16073. $82 = (($3) + ($81)|0);
  16074. HEAP8[$82>>0] = -1;
  16075. $83 = (($$0226593) + 1)|0;
  16076. $84 = ($83>>>0)<($68>>>0);
  16077. if ($84) {
  16078. $$0226593 = $83;
  16079. } else {
  16080. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $68;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  16081. break L9;
  16082. }
  16083. }
  16084. }
  16085. switch ($25|0) {
  16086. case 1951551059: {
  16087. break;
  16088. }
  16089. default: {
  16090. label = 103;
  16091. break L9;
  16092. }
  16093. }
  16094. $85 = ($$0241|0)==(0);
  16095. if (!($85)) {
  16096. label = 47;
  16097. break L7;
  16098. }
  16099. $86 = HEAP32[$10>>2]|0;
  16100. $87 = ($86|0)==(0|0);
  16101. if (!($87)) {
  16102. label = 49;
  16103. break L7;
  16104. }
  16105. $88 = ($$0206<<24>>24)==(0);
  16106. if (!($88)) {
  16107. if ($23) {
  16108. label = 52;
  16109. break L7;
  16110. }
  16111. $90 = ($$0245|0)==(0);
  16112. if ($90) {
  16113. label = 54;
  16114. break L7;
  16115. }
  16116. $91 = HEAP32[$6>>2]|0;
  16117. $92 = ($91>>>0)>($$0245>>>0);
  16118. if ($92) {
  16119. label = 58;
  16120. break L7;
  16121. }
  16122. $93 = HEAP32[$6>>2]|0;
  16123. $94 = ($93|0)==(0);
  16124. if ($94) {
  16125. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 4;$$3220 = $$0217;
  16126. break;
  16127. }
  16128. $95 = HEAP32[$6>>2]|0;
  16129. $$1227588 = 0;
  16130. while(1) {
  16131. $96 = (_stbi__get8($8)|0);
  16132. $97 = $$1227588 << 2;
  16133. $98 = $97 | 3;
  16134. $99 = (($3) + ($98)|0);
  16135. HEAP8[$99>>0] = $96;
  16136. $100 = (($$1227588) + 1)|0;
  16137. $101 = ($100>>>0)<($95>>>0);
  16138. if ($101) {
  16139. $$1227588 = $100;
  16140. } else {
  16141. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = 4;$$3220 = $$0217;
  16142. break L9;
  16143. }
  16144. }
  16145. }
  16146. $102 = HEAP32[$21>>2]|0;
  16147. $103 = $102 & 1;
  16148. $104 = ($103|0)==(0);
  16149. if ($104) {
  16150. label = 61;
  16151. break L7;
  16152. }
  16153. $105 = HEAP32[$6>>2]|0;
  16154. $106 = $102 << 1;
  16155. $107 = ($105|0)==($106|0);
  16156. if (!($107)) {
  16157. label = 63;
  16158. break L7;
  16159. }
  16160. $108 = HEAP32[$22>>2]|0;
  16161. $109 = ($108|0)==(16);
  16162. $110 = HEAP32[$21>>2]|0;
  16163. $111 = ($110|0)>(0);
  16164. if ($109) {
  16165. if ($111) {
  16166. $$0239591 = 0;
  16167. } else {
  16168. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  16169. break;
  16170. }
  16171. while(1) {
  16172. $112 = (_stbi__get16be($8)|0);
  16173. $113 = $112&65535;
  16174. $114 = (($5) + ($$0239591<<1)|0);
  16175. HEAP16[$114>>1] = $113;
  16176. $115 = (($$0239591) + 1)|0;
  16177. $116 = HEAP32[$21>>2]|0;
  16178. $117 = ($115|0)<($116|0);
  16179. if ($117) {
  16180. $$0239591 = $115;
  16181. } else {
  16182. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  16183. break;
  16184. }
  16185. }
  16186. } else {
  16187. if ($111) {
  16188. $$1240589 = 0;
  16189. } else {
  16190. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  16191. break;
  16192. }
  16193. while(1) {
  16194. $118 = (_stbi__get16be($8)|0);
  16195. $119 = $118 & 255;
  16196. $120 = HEAP32[$22>>2]|0;
  16197. $121 = (9866 + ($120)|0);
  16198. $122 = HEAP8[$121>>0]|0;
  16199. $123 = $122&255;
  16200. $124 = Math_imul($123, $119)|0;
  16201. $125 = $124&255;
  16202. $126 = (($4) + ($$1240589)|0);
  16203. HEAP8[$126>>0] = $125;
  16204. $127 = (($$1240589) + 1)|0;
  16205. $128 = HEAP32[$21>>2]|0;
  16206. $129 = ($127|0)<($128|0);
  16207. if ($129) {
  16208. $$1240589 = $127;
  16209. } else {
  16210. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  16211. break;
  16212. }
  16213. }
  16214. }
  16215. }
  16216. } while(0);
  16217. if ((label|0) == 103) {
  16218. label = 0;
  16219. $202 = ($$0241|0)==(0);
  16220. if (!($202)) {
  16221. label = 104;
  16222. break;
  16223. }
  16224. $203 = $25 & 536870912;
  16225. $204 = ($203|0)==(0);
  16226. if ($204) {
  16227. label = 106;
  16228. break;
  16229. }
  16230. $213 = HEAP32[$6>>2]|0;
  16231. _stbi__skip($8,$213);
  16232. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = $$0206;$$3220 = $$0217;
  16233. }
  16234. (_stbi__get32be($8)|0);
  16235. $$0206 = $$3209;$$0211 = $$1212;$$0214 = $$1215;$$0217 = $$3220;$$0228 = $$1229;$$0231 = $$2233;$$0235 = $$2237;$$0241 = $$2243;$$0245 = $$1246;
  16236. }
  16237. switch (label|0) {
  16238. case 7: {
  16239. _stbi__err(9640);
  16240. $$6$ph = 0;
  16241. break;
  16242. }
  16243. case 9: {
  16244. _stbi__err(9654);
  16245. $$6$ph = 0;
  16246. break;
  16247. }
  16248. case 11: {
  16249. _stbi__err(9667);
  16250. $$6$ph = 0;
  16251. break;
  16252. }
  16253. case 13: {
  16254. _stbi__err(9667);
  16255. $$6$ph = 0;
  16256. break;
  16257. }
  16258. case 15: {
  16259. _stbi__err(9677);
  16260. $$6$ph = 0;
  16261. break;
  16262. }
  16263. case 17: {
  16264. _stbi__err(9697);
  16265. $$6$ph = 0;
  16266. break;
  16267. }
  16268. case 20: {
  16269. _stbi__err(9697);
  16270. $$6$ph = 0;
  16271. break;
  16272. }
  16273. case 22: {
  16274. _stbi__err(9697);
  16275. $$6$ph = 0;
  16276. break;
  16277. }
  16278. case 24: {
  16279. _stbi__err(9707);
  16280. $$6$ph = 0;
  16281. break;
  16282. }
  16283. case 26: {
  16284. _stbi__err(9723);
  16285. $$6$ph = 0;
  16286. break;
  16287. }
  16288. case 28: {
  16289. _stbi__err(9741);
  16290. $$6$ph = 0;
  16291. break;
  16292. }
  16293. case 31: {
  16294. _stbi__err(9762);
  16295. $$6$ph = 0;
  16296. break;
  16297. }
  16298. case 34: {
  16299. _stbi__err(9667);
  16300. $$6$ph = 0;
  16301. break;
  16302. }
  16303. case 37: {
  16304. _stbi__err(9667);
  16305. $$6$ph = 0;
  16306. break;
  16307. }
  16308. case 39: {
  16309. _stbi__err(9776);
  16310. $$6$ph = 0;
  16311. break;
  16312. }
  16313. case 41: {
  16314. _stbi__err(9791);
  16315. $$6$ph = 0;
  16316. break;
  16317. }
  16318. case 44: {
  16319. _stbi__err(9791);
  16320. $$6$ph = 0;
  16321. break;
  16322. }
  16323. case 47: {
  16324. _stbi__err(9776);
  16325. $$6$ph = 0;
  16326. break;
  16327. }
  16328. case 49: {
  16329. _stbi__err(9804);
  16330. $$6$ph = 0;
  16331. break;
  16332. }
  16333. case 52: {
  16334. $89 = ((($8)) + 8|0);
  16335. HEAP32[$89>>2] = 4;
  16336. $$6$ph = 1;
  16337. break;
  16338. }
  16339. case 54: {
  16340. _stbi__err(9820);
  16341. $$6$ph = 0;
  16342. break;
  16343. }
  16344. case 58: {
  16345. _stbi__err(9837);
  16346. $$6$ph = 0;
  16347. break;
  16348. }
  16349. case 61: {
  16350. _stbi__err(9850);
  16351. $$6$ph = 0;
  16352. break;
  16353. }
  16354. case 63: {
  16355. _stbi__err(9837);
  16356. $$6$ph = 0;
  16357. break;
  16358. }
  16359. case 70: {
  16360. _stbi__err(9776);
  16361. $$6$ph = 0;
  16362. break;
  16363. }
  16364. case 72: {
  16365. _stbi__err(9875);
  16366. $$6$ph = 0;
  16367. break;
  16368. }
  16369. case 74: {
  16370. $133 = $$0206&255;
  16371. $134 = ((($8)) + 8|0);
  16372. HEAP32[$134>>2] = $133;
  16373. $$6$ph = 1;
  16374. break;
  16375. }
  16376. case 81: {
  16377. _stbi__err(9524);
  16378. $$6$ph = 0;
  16379. break;
  16380. }
  16381. case 83: {
  16382. _stbi__err(9883);
  16383. $$6$ph = 0;
  16384. break;
  16385. }
  16386. case 85: {
  16387. $156 = ($$0241|0)==(0);
  16388. do {
  16389. if ($156) {
  16390. $157 = ($1|0)==(0);
  16391. if ($157) {
  16392. $158 = HEAP32[$10>>2]|0;
  16393. $159 = ($158|0)==(0|0);
  16394. if ($159) {
  16395. _stbi__err(9893);
  16396. $$4 = 0;
  16397. break;
  16398. }
  16399. $160 = HEAP32[$8>>2]|0;
  16400. $161 = ((($0)) + 16|0);
  16401. $162 = HEAP32[$161>>2]|0;
  16402. $163 = Math_imul($162, $160)|0;
  16403. $164 = (($163) + 7)|0;
  16404. $165 = $164 >>> 3;
  16405. $166 = ((($8)) + 4|0);
  16406. $167 = HEAP32[$166>>2]|0;
  16407. $168 = ((($8)) + 8|0);
  16408. $169 = HEAP32[$168>>2]|0;
  16409. $170 = Math_imul($169, $167)|0;
  16410. $171 = Math_imul($170, $165)|0;
  16411. $172 = (($171) + ($167))|0;
  16412. HEAP32[$7>>2] = $172;
  16413. $173 = ($$0228|0)!=(0);
  16414. $174 = $173 ^ 1;
  16415. $175 = $174&1;
  16416. $176 = (_stbi_zlib_decode_malloc_guesssize_headerflag($158,$$0214,$172,$7,$175)|0);
  16417. HEAP32[$9>>2] = $176;
  16418. $177 = ($176|0)==(0|0);
  16419. if ($177) {
  16420. $$4 = 0;
  16421. } else {
  16422. $178 = HEAP32[$10>>2]|0;
  16423. _free($178);
  16424. HEAP32[$10>>2] = 0;
  16425. $179 = HEAP32[$168>>2]|0;
  16426. $180 = (($179) + 1)|0;
  16427. $notlhs = ($180|0)!=($2|0);
  16428. $notrhs = ($2|0)==(3);
  16429. $or$cond5$not = $notrhs | $notlhs;
  16430. $181 = ($$0206<<24>>24)!=(0);
  16431. $or$cond7 = $181 | $or$cond5$not;
  16432. $182 = ($$0211<<24>>24)==(0);
  16433. $or$cond248 = $182 & $or$cond7;
  16434. $$254 = $or$cond248 ? $179 : $180;
  16435. $183 = ((($8)) + 12|0);
  16436. HEAP32[$183>>2] = $$254;
  16437. $184 = HEAP32[$9>>2]|0;
  16438. $185 = HEAP32[$7>>2]|0;
  16439. $186 = HEAP32[$161>>2]|0;
  16440. $187 = (_stbi__create_png_image($0,$184,$185,$$254,$186,$$0231,$$0235)|0);
  16441. $188 = ($187|0)==(0);
  16442. if ($188) {
  16443. $$4 = 0;
  16444. } else {
  16445. do {
  16446. if (!($182)) {
  16447. $189 = HEAP32[$161>>2]|0;
  16448. $190 = ($189|0)==(16);
  16449. if ($190) {
  16450. $191 = HEAP32[$183>>2]|0;
  16451. _stbi__compute_transparency16($0,$5,$191);
  16452. break;
  16453. } else {
  16454. $192 = HEAP32[$183>>2]|0;
  16455. _stbi__compute_transparency($0,$4,$192);
  16456. break;
  16457. }
  16458. }
  16459. } while(0);
  16460. $193 = HEAP32[5443]|0;
  16461. $194 = ($193|0)!=(0);
  16462. $or$cond11 = $173 & $194;
  16463. if ($or$cond11) {
  16464. $195 = HEAP32[$183>>2]|0;
  16465. $196 = ($195|0)>(2);
  16466. if ($196) {
  16467. _stbi__de_iphone($0);
  16468. }
  16469. }
  16470. if ($181) {
  16471. $197 = $$0206&255;
  16472. HEAP32[$168>>2] = $197;
  16473. $198 = ($2|0)>(2);
  16474. $$ = $198 ? $2 : $197;
  16475. HEAP32[$183>>2] = $$;
  16476. $199 = (_stbi__expand_png_palette($0,$3,$$)|0);
  16477. $200 = ($199|0)==(0);
  16478. if ($200) {
  16479. $$4 = 0;
  16480. break;
  16481. }
  16482. }
  16483. $201 = HEAP32[$9>>2]|0;
  16484. _free($201);
  16485. HEAP32[$9>>2] = 0;
  16486. $$4 = 1;
  16487. }
  16488. }
  16489. } else {
  16490. $$4 = 1;
  16491. }
  16492. } else {
  16493. _stbi__err(9776);
  16494. $$4 = 0;
  16495. }
  16496. } while(0);
  16497. $$6$ph = $$4;
  16498. break;
  16499. }
  16500. case 104: {
  16501. _stbi__err(9776);
  16502. $$6$ph = 0;
  16503. break;
  16504. }
  16505. case 106: {
  16506. $205 = $25 >>> 24;
  16507. $206 = $205&255;
  16508. HEAP8[9901] = $206;
  16509. $207 = HEAP32[$15>>2]|0;
  16510. $208 = $207 >>> 16;
  16511. $209 = $208&255;
  16512. HEAP8[(9902)>>0] = $209;
  16513. $210 = $207 >>> 8;
  16514. $211 = $210&255;
  16515. HEAP8[(9903)>>0] = $211;
  16516. $212 = $207&255;
  16517. HEAP8[(9904)>>0] = $212;
  16518. _stbi__err(9901);
  16519. $$6$ph = 0;
  16520. break;
  16521. }
  16522. }
  16523. $$7 = $$6$ph;
  16524. STACKTOP = sp;return ($$7|0);
  16525. }
  16526. function _stbi__convert_format($0,$1,$2,$3,$4) {
  16527. $0 = $0|0;
  16528. $1 = $1|0;
  16529. $2 = $2|0;
  16530. $3 = $3|0;
  16531. $4 = $4|0;
  16532. 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;
  16533. 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;
  16534. 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;
  16535. 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;
  16536. 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;
  16537. 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;
  16538. 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;
  16539. 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;
  16540. 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;
  16541. 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;
  16542. var sp = 0;
  16543. sp = STACKTOP;
  16544. $5 = ($2|0)==($1|0);
  16545. if ($5) {
  16546. $$0163 = $0;
  16547. return ($$0163|0);
  16548. }
  16549. $$off = (($2) + -1)|0;
  16550. $6 = ($$off>>>0)<(4);
  16551. if (!($6)) {
  16552. ___assert_fail((9565|0),(9469|0),1477,(9619|0));
  16553. // unreachable;
  16554. }
  16555. $7 = (_stbi__malloc_mad3($2,$3,$4)|0);
  16556. $8 = ($7|0)==(0|0);
  16557. if ($8) {
  16558. _free($0);
  16559. _stbi__err(9524);
  16560. $$0163 = 0;
  16561. return ($$0163|0);
  16562. }
  16563. $9 = ($4|0)>(0);
  16564. L11: do {
  16565. if ($9) {
  16566. $10 = $1 << 3;
  16567. $11 = (($10) + ($2))|0;
  16568. $$0165254 = (($3) + -1)|0;
  16569. $12 = ($$0165254|0)>(-1);
  16570. $$1166249 = (($3) + -1)|0;
  16571. $13 = ($$1166249|0)>(-1);
  16572. $$2167244 = (($3) + -1)|0;
  16573. $14 = ($$2167244|0)>(-1);
  16574. $$3168239 = (($3) + -1)|0;
  16575. $15 = ($$3168239|0)>(-1);
  16576. $$4169234 = (($3) + -1)|0;
  16577. $16 = ($$4169234|0)>(-1);
  16578. $$5170229 = (($3) + -1)|0;
  16579. $17 = ($$5170229|0)>(-1);
  16580. $$6171224 = (($3) + -1)|0;
  16581. $18 = ($$6171224|0)>(-1);
  16582. $$7172219 = (($3) + -1)|0;
  16583. $19 = ($$7172219|0)>(-1);
  16584. $$8173214 = (($3) + -1)|0;
  16585. $20 = ($$8173214|0)>(-1);
  16586. $$9174209 = (($3) + -1)|0;
  16587. $21 = ($$9174209|0)>(-1);
  16588. $$10175204 = (($3) + -1)|0;
  16589. $22 = ($$10175204|0)>(-1);
  16590. $$11176200 = (($3) + -1)|0;
  16591. $23 = ($$11176200|0)>(-1);
  16592. $$0164259 = 0;
  16593. L13: while(1) {
  16594. $24 = Math_imul($$0164259, $3)|0;
  16595. $25 = Math_imul($24, $1)|0;
  16596. $26 = (($0) + ($25)|0);
  16597. $27 = Math_imul($24, $2)|0;
  16598. $28 = (($7) + ($27)|0);
  16599. do {
  16600. switch ($11|0) {
  16601. case 10: {
  16602. if ($12) {
  16603. $$0151255 = $26;$$0165257 = $$0165254;$$0256 = $28;
  16604. while(1) {
  16605. $29 = HEAP8[$$0151255>>0]|0;
  16606. HEAP8[$$0256>>0] = $29;
  16607. $30 = ((($$0256)) + 1|0);
  16608. HEAP8[$30>>0] = -1;
  16609. $31 = ((($$0151255)) + 1|0);
  16610. $32 = ((($$0256)) + 2|0);
  16611. $$0165 = (($$0165257) + -1)|0;
  16612. $33 = ($$0165|0)>(-1);
  16613. if ($33) {
  16614. $$0151255 = $31;$$0165257 = $$0165;$$0256 = $32;
  16615. } else {
  16616. break;
  16617. }
  16618. }
  16619. }
  16620. break;
  16621. }
  16622. case 11: {
  16623. if ($13) {
  16624. $$1152250 = $26;$$1166252 = $$1166249;$$1251 = $28;
  16625. while(1) {
  16626. $34 = HEAP8[$$1152250>>0]|0;
  16627. $35 = ((($$1251)) + 2|0);
  16628. HEAP8[$35>>0] = $34;
  16629. $36 = ((($$1251)) + 1|0);
  16630. HEAP8[$36>>0] = $34;
  16631. HEAP8[$$1251>>0] = $34;
  16632. $37 = ((($$1152250)) + 1|0);
  16633. $38 = ((($$1251)) + 3|0);
  16634. $$1166 = (($$1166252) + -1)|0;
  16635. $39 = ($$1166|0)>(-1);
  16636. if ($39) {
  16637. $$1152250 = $37;$$1166252 = $$1166;$$1251 = $38;
  16638. } else {
  16639. break;
  16640. }
  16641. }
  16642. }
  16643. break;
  16644. }
  16645. case 12: {
  16646. if ($14) {
  16647. $$2153245 = $26;$$2167247 = $$2167244;$$2246 = $28;
  16648. while(1) {
  16649. $40 = HEAP8[$$2153245>>0]|0;
  16650. $41 = ((($$2246)) + 2|0);
  16651. HEAP8[$41>>0] = $40;
  16652. $42 = ((($$2246)) + 1|0);
  16653. HEAP8[$42>>0] = $40;
  16654. HEAP8[$$2246>>0] = $40;
  16655. $43 = ((($$2246)) + 3|0);
  16656. HEAP8[$43>>0] = -1;
  16657. $44 = ((($$2153245)) + 1|0);
  16658. $45 = ((($$2246)) + 4|0);
  16659. $$2167 = (($$2167247) + -1)|0;
  16660. $46 = ($$2167|0)>(-1);
  16661. if ($46) {
  16662. $$2153245 = $44;$$2167247 = $$2167;$$2246 = $45;
  16663. } else {
  16664. break;
  16665. }
  16666. }
  16667. }
  16668. break;
  16669. }
  16670. case 17: {
  16671. if ($15) {
  16672. $$3154240 = $26;$$3168242 = $$3168239;$$3241 = $28;
  16673. while(1) {
  16674. $47 = HEAP8[$$3154240>>0]|0;
  16675. HEAP8[$$3241>>0] = $47;
  16676. $48 = ((($$3154240)) + 2|0);
  16677. $49 = ((($$3241)) + 1|0);
  16678. $$3168 = (($$3168242) + -1)|0;
  16679. $50 = ($$3168|0)>(-1);
  16680. if ($50) {
  16681. $$3154240 = $48;$$3168242 = $$3168;$$3241 = $49;
  16682. } else {
  16683. break;
  16684. }
  16685. }
  16686. }
  16687. break;
  16688. }
  16689. case 19: {
  16690. if ($16) {
  16691. $$4155235 = $26;$$4169237 = $$4169234;$$4236 = $28;
  16692. while(1) {
  16693. $51 = HEAP8[$$4155235>>0]|0;
  16694. $52 = ((($$4236)) + 2|0);
  16695. HEAP8[$52>>0] = $51;
  16696. $53 = ((($$4236)) + 1|0);
  16697. HEAP8[$53>>0] = $51;
  16698. HEAP8[$$4236>>0] = $51;
  16699. $54 = ((($$4155235)) + 2|0);
  16700. $55 = ((($$4236)) + 3|0);
  16701. $$4169 = (($$4169237) + -1)|0;
  16702. $56 = ($$4169|0)>(-1);
  16703. if ($56) {
  16704. $$4155235 = $54;$$4169237 = $$4169;$$4236 = $55;
  16705. } else {
  16706. break;
  16707. }
  16708. }
  16709. }
  16710. break;
  16711. }
  16712. case 20: {
  16713. if ($17) {
  16714. $$5156230 = $26;$$5170232 = $$5170229;$$5231 = $28;
  16715. while(1) {
  16716. $57 = HEAP8[$$5156230>>0]|0;
  16717. $58 = ((($$5231)) + 2|0);
  16718. HEAP8[$58>>0] = $57;
  16719. $59 = ((($$5231)) + 1|0);
  16720. HEAP8[$59>>0] = $57;
  16721. HEAP8[$$5231>>0] = $57;
  16722. $60 = ((($$5156230)) + 1|0);
  16723. $61 = HEAP8[$60>>0]|0;
  16724. $62 = ((($$5231)) + 3|0);
  16725. HEAP8[$62>>0] = $61;
  16726. $63 = ((($$5156230)) + 2|0);
  16727. $64 = ((($$5231)) + 4|0);
  16728. $$5170 = (($$5170232) + -1)|0;
  16729. $65 = ($$5170|0)>(-1);
  16730. if ($65) {
  16731. $$5156230 = $63;$$5170232 = $$5170;$$5231 = $64;
  16732. } else {
  16733. break;
  16734. }
  16735. }
  16736. }
  16737. break;
  16738. }
  16739. case 28: {
  16740. if ($18) {
  16741. $$6157225 = $26;$$6171227 = $$6171224;$$6226 = $28;
  16742. while(1) {
  16743. $66 = HEAP8[$$6157225>>0]|0;
  16744. HEAP8[$$6226>>0] = $66;
  16745. $67 = ((($$6157225)) + 1|0);
  16746. $68 = HEAP8[$67>>0]|0;
  16747. $69 = ((($$6226)) + 1|0);
  16748. HEAP8[$69>>0] = $68;
  16749. $70 = ((($$6157225)) + 2|0);
  16750. $71 = HEAP8[$70>>0]|0;
  16751. $72 = ((($$6226)) + 2|0);
  16752. HEAP8[$72>>0] = $71;
  16753. $73 = ((($$6226)) + 3|0);
  16754. HEAP8[$73>>0] = -1;
  16755. $74 = ((($$6157225)) + 3|0);
  16756. $75 = ((($$6226)) + 4|0);
  16757. $$6171 = (($$6171227) + -1)|0;
  16758. $76 = ($$6171|0)>(-1);
  16759. if ($76) {
  16760. $$6157225 = $74;$$6171227 = $$6171;$$6226 = $75;
  16761. } else {
  16762. break;
  16763. }
  16764. }
  16765. }
  16766. break;
  16767. }
  16768. case 25: {
  16769. if ($19) {
  16770. $$7158220 = $26;$$7172222 = $$7172219;$$7221 = $28;
  16771. while(1) {
  16772. $77 = HEAP8[$$7158220>>0]|0;
  16773. $78 = $77&255;
  16774. $79 = ((($$7158220)) + 1|0);
  16775. $80 = HEAP8[$79>>0]|0;
  16776. $81 = $80&255;
  16777. $82 = ((($$7158220)) + 2|0);
  16778. $83 = HEAP8[$82>>0]|0;
  16779. $84 = $83&255;
  16780. $85 = (_stbi__compute_y($78,$81,$84)|0);
  16781. HEAP8[$$7221>>0] = $85;
  16782. $86 = ((($$7158220)) + 3|0);
  16783. $87 = ((($$7221)) + 1|0);
  16784. $$7172 = (($$7172222) + -1)|0;
  16785. $88 = ($$7172|0)>(-1);
  16786. if ($88) {
  16787. $$7158220 = $86;$$7172222 = $$7172;$$7221 = $87;
  16788. } else {
  16789. break;
  16790. }
  16791. }
  16792. }
  16793. break;
  16794. }
  16795. case 26: {
  16796. if ($20) {
  16797. $$8159215 = $26;$$8173217 = $$8173214;$$8216 = $28;
  16798. while(1) {
  16799. $89 = HEAP8[$$8159215>>0]|0;
  16800. $90 = $89&255;
  16801. $91 = ((($$8159215)) + 1|0);
  16802. $92 = HEAP8[$91>>0]|0;
  16803. $93 = $92&255;
  16804. $94 = ((($$8159215)) + 2|0);
  16805. $95 = HEAP8[$94>>0]|0;
  16806. $96 = $95&255;
  16807. $97 = (_stbi__compute_y($90,$93,$96)|0);
  16808. HEAP8[$$8216>>0] = $97;
  16809. $98 = ((($$8216)) + 1|0);
  16810. HEAP8[$98>>0] = -1;
  16811. $99 = ((($$8159215)) + 3|0);
  16812. $100 = ((($$8216)) + 2|0);
  16813. $$8173 = (($$8173217) + -1)|0;
  16814. $101 = ($$8173|0)>(-1);
  16815. if ($101) {
  16816. $$8159215 = $99;$$8173217 = $$8173;$$8216 = $100;
  16817. } else {
  16818. break;
  16819. }
  16820. }
  16821. }
  16822. break;
  16823. }
  16824. case 33: {
  16825. if ($21) {
  16826. $$9160210 = $26;$$9174212 = $$9174209;$$9211 = $28;
  16827. while(1) {
  16828. $102 = HEAP8[$$9160210>>0]|0;
  16829. $103 = $102&255;
  16830. $104 = ((($$9160210)) + 1|0);
  16831. $105 = HEAP8[$104>>0]|0;
  16832. $106 = $105&255;
  16833. $107 = ((($$9160210)) + 2|0);
  16834. $108 = HEAP8[$107>>0]|0;
  16835. $109 = $108&255;
  16836. $110 = (_stbi__compute_y($103,$106,$109)|0);
  16837. HEAP8[$$9211>>0] = $110;
  16838. $111 = ((($$9160210)) + 4|0);
  16839. $112 = ((($$9211)) + 1|0);
  16840. $$9174 = (($$9174212) + -1)|0;
  16841. $113 = ($$9174|0)>(-1);
  16842. if ($113) {
  16843. $$9160210 = $111;$$9174212 = $$9174;$$9211 = $112;
  16844. } else {
  16845. break;
  16846. }
  16847. }
  16848. }
  16849. break;
  16850. }
  16851. case 34: {
  16852. if ($22) {
  16853. $$10161205 = $26;$$10175207 = $$10175204;$$10206 = $28;
  16854. while(1) {
  16855. $114 = HEAP8[$$10161205>>0]|0;
  16856. $115 = $114&255;
  16857. $116 = ((($$10161205)) + 1|0);
  16858. $117 = HEAP8[$116>>0]|0;
  16859. $118 = $117&255;
  16860. $119 = ((($$10161205)) + 2|0);
  16861. $120 = HEAP8[$119>>0]|0;
  16862. $121 = $120&255;
  16863. $122 = (_stbi__compute_y($115,$118,$121)|0);
  16864. HEAP8[$$10206>>0] = $122;
  16865. $123 = ((($$10161205)) + 3|0);
  16866. $124 = HEAP8[$123>>0]|0;
  16867. $125 = ((($$10206)) + 1|0);
  16868. HEAP8[$125>>0] = $124;
  16869. $126 = ((($$10161205)) + 4|0);
  16870. $127 = ((($$10206)) + 2|0);
  16871. $$10175 = (($$10175207) + -1)|0;
  16872. $128 = ($$10175|0)>(-1);
  16873. if ($128) {
  16874. $$10161205 = $126;$$10175207 = $$10175;$$10206 = $127;
  16875. } else {
  16876. break;
  16877. }
  16878. }
  16879. }
  16880. break;
  16881. }
  16882. case 35: {
  16883. if ($23) {
  16884. $$11162201 = $26;$$11176203 = $$11176200;$$11202 = $28;
  16885. while(1) {
  16886. $129 = HEAP8[$$11162201>>0]|0;
  16887. HEAP8[$$11202>>0] = $129;
  16888. $130 = ((($$11162201)) + 1|0);
  16889. $131 = HEAP8[$130>>0]|0;
  16890. $132 = ((($$11202)) + 1|0);
  16891. HEAP8[$132>>0] = $131;
  16892. $133 = ((($$11162201)) + 2|0);
  16893. $134 = HEAP8[$133>>0]|0;
  16894. $135 = ((($$11202)) + 2|0);
  16895. HEAP8[$135>>0] = $134;
  16896. $136 = ((($$11162201)) + 4|0);
  16897. $137 = ((($$11202)) + 3|0);
  16898. $$11176 = (($$11176203) + -1)|0;
  16899. $138 = ($$11176|0)>(-1);
  16900. if ($138) {
  16901. $$11162201 = $136;$$11176203 = $$11176;$$11202 = $137;
  16902. } else {
  16903. break;
  16904. }
  16905. }
  16906. }
  16907. break;
  16908. }
  16909. default: {
  16910. break L13;
  16911. }
  16912. }
  16913. } while(0);
  16914. $139 = (($$0164259) + 1)|0;
  16915. $140 = ($139|0)<($4|0);
  16916. if ($140) {
  16917. $$0164259 = $139;
  16918. } else {
  16919. break L11;
  16920. }
  16921. }
  16922. ___assert_fail((13025|0),(9469|0),1506,(9619|0));
  16923. // unreachable;
  16924. }
  16925. } while(0);
  16926. _free($0);
  16927. $$0163 = $7;
  16928. return ($$0163|0);
  16929. }
  16930. function _stbi__convert_format16($0,$1,$2,$3,$4) {
  16931. $0 = $0|0;
  16932. $1 = $1|0;
  16933. $2 = $2|0;
  16934. $3 = $3|0;
  16935. $4 = $4|0;
  16936. 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;
  16937. 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;
  16938. 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;
  16939. 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;
  16940. 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;
  16941. 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;
  16942. 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;
  16943. 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;
  16944. 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;
  16945. 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;
  16946. var $98 = 0, $99 = 0, label = 0, sp = 0;
  16947. sp = STACKTOP;
  16948. $5 = ($2|0)==($1|0);
  16949. if ($5) {
  16950. $$0163 = $0;
  16951. return ($$0163|0);
  16952. }
  16953. $$off = (($2) + -1)|0;
  16954. $6 = ($$off>>>0)<(4);
  16955. if (!($6)) {
  16956. ___assert_fail((9565|0),(9469|0),1526,(9596|0));
  16957. // unreachable;
  16958. }
  16959. $7 = $2 << 1;
  16960. $8 = Math_imul($7, $3)|0;
  16961. $9 = Math_imul($8, $4)|0;
  16962. $10 = (_stbi__malloc($9)|0);
  16963. $11 = ($10|0)==(0|0);
  16964. if ($11) {
  16965. _free($0);
  16966. _stbi__err(9524);
  16967. $$0163 = 0;
  16968. return ($$0163|0);
  16969. }
  16970. $12 = ($4|0)>(0);
  16971. L11: do {
  16972. if ($12) {
  16973. $13 = $1 << 3;
  16974. $14 = (($13) + ($2))|0;
  16975. $$0165254 = (($3) + -1)|0;
  16976. $15 = ($$0165254|0)>(-1);
  16977. $$1166249 = (($3) + -1)|0;
  16978. $16 = ($$1166249|0)>(-1);
  16979. $$2167244 = (($3) + -1)|0;
  16980. $17 = ($$2167244|0)>(-1);
  16981. $$3168239 = (($3) + -1)|0;
  16982. $18 = ($$3168239|0)>(-1);
  16983. $$4169234 = (($3) + -1)|0;
  16984. $19 = ($$4169234|0)>(-1);
  16985. $$5170229 = (($3) + -1)|0;
  16986. $20 = ($$5170229|0)>(-1);
  16987. $$6171224 = (($3) + -1)|0;
  16988. $21 = ($$6171224|0)>(-1);
  16989. $$7172219 = (($3) + -1)|0;
  16990. $22 = ($$7172219|0)>(-1);
  16991. $$8173214 = (($3) + -1)|0;
  16992. $23 = ($$8173214|0)>(-1);
  16993. $$9174209 = (($3) + -1)|0;
  16994. $24 = ($$9174209|0)>(-1);
  16995. $$10175204 = (($3) + -1)|0;
  16996. $25 = ($$10175204|0)>(-1);
  16997. $$11176200 = (($3) + -1)|0;
  16998. $26 = ($$11176200|0)>(-1);
  16999. $$0164259 = 0;
  17000. L13: while(1) {
  17001. $27 = Math_imul($$0164259, $3)|0;
  17002. $28 = Math_imul($27, $1)|0;
  17003. $29 = (($0) + ($28<<1)|0);
  17004. $30 = Math_imul($27, $2)|0;
  17005. $31 = (($10) + ($30<<1)|0);
  17006. do {
  17007. switch ($14|0) {
  17008. case 10: {
  17009. if ($15) {
  17010. $$0151255 = $29;$$0165257 = $$0165254;$$0256 = $31;
  17011. while(1) {
  17012. $32 = HEAP16[$$0151255>>1]|0;
  17013. HEAP16[$$0256>>1] = $32;
  17014. $33 = ((($$0256)) + 2|0);
  17015. HEAP16[$33>>1] = -1;
  17016. $34 = ((($$0151255)) + 2|0);
  17017. $35 = ((($$0256)) + 4|0);
  17018. $$0165 = (($$0165257) + -1)|0;
  17019. $36 = ($$0165|0)>(-1);
  17020. if ($36) {
  17021. $$0151255 = $34;$$0165257 = $$0165;$$0256 = $35;
  17022. } else {
  17023. break;
  17024. }
  17025. }
  17026. }
  17027. break;
  17028. }
  17029. case 11: {
  17030. if ($16) {
  17031. $$1152250 = $29;$$1166252 = $$1166249;$$1251 = $31;
  17032. while(1) {
  17033. $37 = HEAP16[$$1152250>>1]|0;
  17034. $38 = ((($$1251)) + 4|0);
  17035. HEAP16[$38>>1] = $37;
  17036. $39 = ((($$1251)) + 2|0);
  17037. HEAP16[$39>>1] = $37;
  17038. HEAP16[$$1251>>1] = $37;
  17039. $40 = ((($$1152250)) + 2|0);
  17040. $41 = ((($$1251)) + 6|0);
  17041. $$1166 = (($$1166252) + -1)|0;
  17042. $42 = ($$1166|0)>(-1);
  17043. if ($42) {
  17044. $$1152250 = $40;$$1166252 = $$1166;$$1251 = $41;
  17045. } else {
  17046. break;
  17047. }
  17048. }
  17049. }
  17050. break;
  17051. }
  17052. case 12: {
  17053. if ($17) {
  17054. $$2153245 = $29;$$2167247 = $$2167244;$$2246 = $31;
  17055. while(1) {
  17056. $43 = HEAP16[$$2153245>>1]|0;
  17057. $44 = ((($$2246)) + 4|0);
  17058. HEAP16[$44>>1] = $43;
  17059. $45 = ((($$2246)) + 2|0);
  17060. HEAP16[$45>>1] = $43;
  17061. HEAP16[$$2246>>1] = $43;
  17062. $46 = ((($$2246)) + 6|0);
  17063. HEAP16[$46>>1] = -1;
  17064. $47 = ((($$2153245)) + 2|0);
  17065. $48 = ((($$2246)) + 8|0);
  17066. $$2167 = (($$2167247) + -1)|0;
  17067. $49 = ($$2167|0)>(-1);
  17068. if ($49) {
  17069. $$2153245 = $47;$$2167247 = $$2167;$$2246 = $48;
  17070. } else {
  17071. break;
  17072. }
  17073. }
  17074. }
  17075. break;
  17076. }
  17077. case 17: {
  17078. if ($18) {
  17079. $$3154240 = $29;$$3168242 = $$3168239;$$3241 = $31;
  17080. while(1) {
  17081. $50 = HEAP16[$$3154240>>1]|0;
  17082. HEAP16[$$3241>>1] = $50;
  17083. $51 = ((($$3154240)) + 4|0);
  17084. $52 = ((($$3241)) + 2|0);
  17085. $$3168 = (($$3168242) + -1)|0;
  17086. $53 = ($$3168|0)>(-1);
  17087. if ($53) {
  17088. $$3154240 = $51;$$3168242 = $$3168;$$3241 = $52;
  17089. } else {
  17090. break;
  17091. }
  17092. }
  17093. }
  17094. break;
  17095. }
  17096. case 19: {
  17097. if ($19) {
  17098. $$4155235 = $29;$$4169237 = $$4169234;$$4236 = $31;
  17099. while(1) {
  17100. $54 = HEAP16[$$4155235>>1]|0;
  17101. $55 = ((($$4236)) + 4|0);
  17102. HEAP16[$55>>1] = $54;
  17103. $56 = ((($$4236)) + 2|0);
  17104. HEAP16[$56>>1] = $54;
  17105. HEAP16[$$4236>>1] = $54;
  17106. $57 = ((($$4155235)) + 4|0);
  17107. $58 = ((($$4236)) + 6|0);
  17108. $$4169 = (($$4169237) + -1)|0;
  17109. $59 = ($$4169|0)>(-1);
  17110. if ($59) {
  17111. $$4155235 = $57;$$4169237 = $$4169;$$4236 = $58;
  17112. } else {
  17113. break;
  17114. }
  17115. }
  17116. }
  17117. break;
  17118. }
  17119. case 20: {
  17120. if ($20) {
  17121. $$5156230 = $29;$$5170232 = $$5170229;$$5231 = $31;
  17122. while(1) {
  17123. $60 = HEAP16[$$5156230>>1]|0;
  17124. $61 = ((($$5231)) + 4|0);
  17125. HEAP16[$61>>1] = $60;
  17126. $62 = ((($$5231)) + 2|0);
  17127. HEAP16[$62>>1] = $60;
  17128. HEAP16[$$5231>>1] = $60;
  17129. $63 = ((($$5156230)) + 2|0);
  17130. $64 = HEAP16[$63>>1]|0;
  17131. $65 = ((($$5231)) + 6|0);
  17132. HEAP16[$65>>1] = $64;
  17133. $66 = ((($$5156230)) + 4|0);
  17134. $67 = ((($$5231)) + 8|0);
  17135. $$5170 = (($$5170232) + -1)|0;
  17136. $68 = ($$5170|0)>(-1);
  17137. if ($68) {
  17138. $$5156230 = $66;$$5170232 = $$5170;$$5231 = $67;
  17139. } else {
  17140. break;
  17141. }
  17142. }
  17143. }
  17144. break;
  17145. }
  17146. case 28: {
  17147. if ($21) {
  17148. $$6157225 = $29;$$6171227 = $$6171224;$$6226 = $31;
  17149. while(1) {
  17150. $69 = HEAP16[$$6157225>>1]|0;
  17151. HEAP16[$$6226>>1] = $69;
  17152. $70 = ((($$6157225)) + 2|0);
  17153. $71 = HEAP16[$70>>1]|0;
  17154. $72 = ((($$6226)) + 2|0);
  17155. HEAP16[$72>>1] = $71;
  17156. $73 = ((($$6157225)) + 4|0);
  17157. $74 = HEAP16[$73>>1]|0;
  17158. $75 = ((($$6226)) + 4|0);
  17159. HEAP16[$75>>1] = $74;
  17160. $76 = ((($$6226)) + 6|0);
  17161. HEAP16[$76>>1] = -1;
  17162. $77 = ((($$6157225)) + 6|0);
  17163. $78 = ((($$6226)) + 8|0);
  17164. $$6171 = (($$6171227) + -1)|0;
  17165. $79 = ($$6171|0)>(-1);
  17166. if ($79) {
  17167. $$6157225 = $77;$$6171227 = $$6171;$$6226 = $78;
  17168. } else {
  17169. break;
  17170. }
  17171. }
  17172. }
  17173. break;
  17174. }
  17175. case 25: {
  17176. if ($22) {
  17177. $$7158220 = $29;$$7172222 = $$7172219;$$7221 = $31;
  17178. while(1) {
  17179. $80 = HEAP16[$$7158220>>1]|0;
  17180. $81 = $80&65535;
  17181. $82 = ((($$7158220)) + 2|0);
  17182. $83 = HEAP16[$82>>1]|0;
  17183. $84 = $83&65535;
  17184. $85 = ((($$7158220)) + 4|0);
  17185. $86 = HEAP16[$85>>1]|0;
  17186. $87 = $86&65535;
  17187. $88 = (_stbi__compute_y_16($81,$84,$87)|0);
  17188. HEAP16[$$7221>>1] = $88;
  17189. $89 = ((($$7158220)) + 6|0);
  17190. $90 = ((($$7221)) + 2|0);
  17191. $$7172 = (($$7172222) + -1)|0;
  17192. $91 = ($$7172|0)>(-1);
  17193. if ($91) {
  17194. $$7158220 = $89;$$7172222 = $$7172;$$7221 = $90;
  17195. } else {
  17196. break;
  17197. }
  17198. }
  17199. }
  17200. break;
  17201. }
  17202. case 26: {
  17203. if ($23) {
  17204. $$8159215 = $29;$$8173217 = $$8173214;$$8216 = $31;
  17205. while(1) {
  17206. $92 = HEAP16[$$8159215>>1]|0;
  17207. $93 = $92&65535;
  17208. $94 = ((($$8159215)) + 2|0);
  17209. $95 = HEAP16[$94>>1]|0;
  17210. $96 = $95&65535;
  17211. $97 = ((($$8159215)) + 4|0);
  17212. $98 = HEAP16[$97>>1]|0;
  17213. $99 = $98&65535;
  17214. $100 = (_stbi__compute_y_16($93,$96,$99)|0);
  17215. HEAP16[$$8216>>1] = $100;
  17216. $101 = ((($$8216)) + 2|0);
  17217. HEAP16[$101>>1] = -1;
  17218. $102 = ((($$8159215)) + 6|0);
  17219. $103 = ((($$8216)) + 4|0);
  17220. $$8173 = (($$8173217) + -1)|0;
  17221. $104 = ($$8173|0)>(-1);
  17222. if ($104) {
  17223. $$8159215 = $102;$$8173217 = $$8173;$$8216 = $103;
  17224. } else {
  17225. break;
  17226. }
  17227. }
  17228. }
  17229. break;
  17230. }
  17231. case 33: {
  17232. if ($24) {
  17233. $$9160210 = $29;$$9174212 = $$9174209;$$9211 = $31;
  17234. while(1) {
  17235. $105 = HEAP16[$$9160210>>1]|0;
  17236. $106 = $105&65535;
  17237. $107 = ((($$9160210)) + 2|0);
  17238. $108 = HEAP16[$107>>1]|0;
  17239. $109 = $108&65535;
  17240. $110 = ((($$9160210)) + 4|0);
  17241. $111 = HEAP16[$110>>1]|0;
  17242. $112 = $111&65535;
  17243. $113 = (_stbi__compute_y_16($106,$109,$112)|0);
  17244. HEAP16[$$9211>>1] = $113;
  17245. $114 = ((($$9160210)) + 8|0);
  17246. $115 = ((($$9211)) + 2|0);
  17247. $$9174 = (($$9174212) + -1)|0;
  17248. $116 = ($$9174|0)>(-1);
  17249. if ($116) {
  17250. $$9160210 = $114;$$9174212 = $$9174;$$9211 = $115;
  17251. } else {
  17252. break;
  17253. }
  17254. }
  17255. }
  17256. break;
  17257. }
  17258. case 34: {
  17259. if ($25) {
  17260. $$10161205 = $29;$$10175207 = $$10175204;$$10206 = $31;
  17261. while(1) {
  17262. $117 = HEAP16[$$10161205>>1]|0;
  17263. $118 = $117&65535;
  17264. $119 = ((($$10161205)) + 2|0);
  17265. $120 = HEAP16[$119>>1]|0;
  17266. $121 = $120&65535;
  17267. $122 = ((($$10161205)) + 4|0);
  17268. $123 = HEAP16[$122>>1]|0;
  17269. $124 = $123&65535;
  17270. $125 = (_stbi__compute_y_16($118,$121,$124)|0);
  17271. HEAP16[$$10206>>1] = $125;
  17272. $126 = ((($$10161205)) + 6|0);
  17273. $127 = HEAP16[$126>>1]|0;
  17274. $128 = ((($$10206)) + 2|0);
  17275. HEAP16[$128>>1] = $127;
  17276. $129 = ((($$10161205)) + 8|0);
  17277. $130 = ((($$10206)) + 4|0);
  17278. $$10175 = (($$10175207) + -1)|0;
  17279. $131 = ($$10175|0)>(-1);
  17280. if ($131) {
  17281. $$10161205 = $129;$$10175207 = $$10175;$$10206 = $130;
  17282. } else {
  17283. break;
  17284. }
  17285. }
  17286. }
  17287. break;
  17288. }
  17289. case 35: {
  17290. if ($26) {
  17291. $$11162201 = $29;$$11176203 = $$11176200;$$11202 = $31;
  17292. while(1) {
  17293. $132 = HEAP16[$$11162201>>1]|0;
  17294. HEAP16[$$11202>>1] = $132;
  17295. $133 = ((($$11162201)) + 2|0);
  17296. $134 = HEAP16[$133>>1]|0;
  17297. $135 = ((($$11202)) + 2|0);
  17298. HEAP16[$135>>1] = $134;
  17299. $136 = ((($$11162201)) + 4|0);
  17300. $137 = HEAP16[$136>>1]|0;
  17301. $138 = ((($$11202)) + 4|0);
  17302. HEAP16[$138>>1] = $137;
  17303. $139 = ((($$11162201)) + 8|0);
  17304. $140 = ((($$11202)) + 6|0);
  17305. $$11176 = (($$11176203) + -1)|0;
  17306. $141 = ($$11176|0)>(-1);
  17307. if ($141) {
  17308. $$11162201 = $139;$$11176203 = $$11176;$$11202 = $140;
  17309. } else {
  17310. break;
  17311. }
  17312. }
  17313. }
  17314. break;
  17315. }
  17316. default: {
  17317. break L13;
  17318. }
  17319. }
  17320. } while(0);
  17321. $142 = (($$0164259) + 1)|0;
  17322. $143 = ($142|0)<($4|0);
  17323. if ($143) {
  17324. $$0164259 = $142;
  17325. } else {
  17326. break L11;
  17327. }
  17328. }
  17329. ___assert_fail((13025|0),(9469|0),1555,(9596|0));
  17330. // unreachable;
  17331. }
  17332. } while(0);
  17333. _free($0);
  17334. $$0163 = $10;
  17335. return ($$0163|0);
  17336. }
  17337. function _stbi__compute_y_16($0,$1,$2) {
  17338. $0 = $0|0;
  17339. $1 = $1|0;
  17340. $2 = $2|0;
  17341. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17342. sp = STACKTOP;
  17343. $3 = ($0*77)|0;
  17344. $4 = ($1*150)|0;
  17345. $5 = (($4) + ($3))|0;
  17346. $6 = ($2*29)|0;
  17347. $7 = (($5) + ($6))|0;
  17348. $8 = $7 >>> 8;
  17349. $9 = $8&65535;
  17350. return ($9|0);
  17351. }
  17352. function _stbi__malloc_mad3($0,$1,$2) {
  17353. $0 = $0|0;
  17354. $1 = $1|0;
  17355. $2 = $2|0;
  17356. var $$0 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  17357. sp = STACKTOP;
  17358. $3 = (_stbi__mad3sizes_valid($0,$1,$2)|0);
  17359. $4 = ($3|0)==(0);
  17360. if ($4) {
  17361. $$0 = 0;
  17362. return ($$0|0);
  17363. }
  17364. $5 = Math_imul($1, $0)|0;
  17365. $6 = Math_imul($5, $2)|0;
  17366. $7 = (_stbi__malloc($6)|0);
  17367. $$0 = $7;
  17368. return ($$0|0);
  17369. }
  17370. function _stbi__compute_y($0,$1,$2) {
  17371. $0 = $0|0;
  17372. $1 = $1|0;
  17373. $2 = $2|0;
  17374. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17375. sp = STACKTOP;
  17376. $3 = ($0*77)|0;
  17377. $4 = ($1*150)|0;
  17378. $5 = (($4) + ($3))|0;
  17379. $6 = ($2*29)|0;
  17380. $7 = (($5) + ($6))|0;
  17381. $8 = $7 >>> 8;
  17382. $9 = $8&255;
  17383. return ($9|0);
  17384. }
  17385. function _stbi__mad3sizes_valid($0,$1,$2) {
  17386. $0 = $0|0;
  17387. $1 = $1|0;
  17388. $2 = $2|0;
  17389. 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;
  17390. sp = STACKTOP;
  17391. $3 = (_stbi__mul2sizes_valid($0,$1)|0);
  17392. $4 = ($3|0)==(0);
  17393. if ($4) {
  17394. $12 = 0;
  17395. } else {
  17396. $5 = Math_imul($1, $0)|0;
  17397. $6 = (_stbi__mul2sizes_valid($5,$2)|0);
  17398. $7 = ($6|0)==(0);
  17399. if ($7) {
  17400. $12 = 0;
  17401. } else {
  17402. $8 = Math_imul($5, $2)|0;
  17403. $9 = (_stbi__addsizes_valid($8)|0);
  17404. $10 = ($9|0)!=(0);
  17405. $12 = $10;
  17406. }
  17407. }
  17408. $11 = $12&1;
  17409. return ($11|0);
  17410. }
  17411. function _stbi__mul2sizes_valid($0,$1) {
  17412. $0 = $0|0;
  17413. $1 = $1|0;
  17414. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  17415. sp = STACKTOP;
  17416. $2 = $1 | $0;
  17417. $3 = ($2|0)<(0);
  17418. if ($3) {
  17419. $$0 = 0;
  17420. } else {
  17421. $4 = ($1|0)==(0);
  17422. if ($4) {
  17423. $$0 = 1;
  17424. } else {
  17425. $5 = (2147483647 / ($1|0))&-1;
  17426. $6 = ($5|0)>=($0|0);
  17427. $7 = $6&1;
  17428. $$0 = $7;
  17429. }
  17430. }
  17431. return ($$0|0);
  17432. }
  17433. function _stbi__addsizes_valid($0) {
  17434. $0 = $0|0;
  17435. var label = 0, sp = 0;
  17436. sp = STACKTOP;
  17437. return 1;
  17438. }
  17439. function _stbi__check_png_header($0) {
  17440. $0 = $0|0;
  17441. 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;
  17442. sp = STACKTOP;
  17443. $1 = (_stbi__get8($0)|0);
  17444. $2 = ($1<<24>>24)==(-119);
  17445. if ($2) {
  17446. $3 = (_stbi__get8($0)|0);
  17447. $4 = ($3<<24>>24)==(80);
  17448. if ($4) {
  17449. $5 = (_stbi__get8($0)|0);
  17450. $6 = ($5<<24>>24)==(78);
  17451. if ($6) {
  17452. $7 = (_stbi__get8($0)|0);
  17453. $8 = ($7<<24>>24)==(71);
  17454. if ($8) {
  17455. $9 = (_stbi__get8($0)|0);
  17456. $10 = ($9<<24>>24)==(13);
  17457. if ($10) {
  17458. $11 = (_stbi__get8($0)|0);
  17459. $12 = ($11<<24>>24)==(10);
  17460. if ($12) {
  17461. $13 = (_stbi__get8($0)|0);
  17462. $14 = ($13<<24>>24)==(26);
  17463. if ($14) {
  17464. $15 = (_stbi__get8($0)|0);
  17465. $16 = ($15<<24>>24)==(10);
  17466. if ($16) {
  17467. $$05 = 1;
  17468. return ($$05|0);
  17469. }
  17470. }
  17471. }
  17472. }
  17473. }
  17474. }
  17475. }
  17476. }
  17477. _stbi__err(10878);
  17478. $$05 = 0;
  17479. return ($$05|0);
  17480. }
  17481. function _stbi__get_chunk_header($0,$1) {
  17482. $0 = $0|0;
  17483. $1 = $1|0;
  17484. var $$sroa$4$0$$sroa_idx2 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  17485. sp = STACKTOP;
  17486. $2 = (_stbi__get32be($1)|0);
  17487. $3 = (_stbi__get32be($1)|0);
  17488. HEAP32[$0>>2] = $2;
  17489. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  17490. HEAP32[$$sroa$4$0$$sroa_idx2>>2] = $3;
  17491. return;
  17492. }
  17493. function _stbi__skip($0,$1) {
  17494. $0 = $0|0;
  17495. $1 = $1|0;
  17496. 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;
  17497. var $8 = 0, $9 = 0, label = 0, sp = 0;
  17498. sp = STACKTOP;
  17499. $2 = ($1|0)<(0);
  17500. if ($2) {
  17501. $3 = ((($0)) + 172|0);
  17502. $4 = HEAP32[$3>>2]|0;
  17503. $5 = ((($0)) + 168|0);
  17504. HEAP32[$5>>2] = $4;
  17505. return;
  17506. }
  17507. $6 = ((($0)) + 16|0);
  17508. $7 = HEAP32[$6>>2]|0;
  17509. $8 = ($7|0)==(0|0);
  17510. if (!($8)) {
  17511. $9 = ((($0)) + 172|0);
  17512. $10 = HEAP32[$9>>2]|0;
  17513. $11 = ((($0)) + 168|0);
  17514. $12 = HEAP32[$11>>2]|0;
  17515. $13 = $10;
  17516. $14 = (($13) - ($12))|0;
  17517. $15 = ($14|0)<($1|0);
  17518. if ($15) {
  17519. HEAP32[$11>>2] = $10;
  17520. $16 = ((($0)) + 20|0);
  17521. $17 = HEAP32[$16>>2]|0;
  17522. $18 = ((($0)) + 28|0);
  17523. $19 = HEAP32[$18>>2]|0;
  17524. $20 = (($1) - ($14))|0;
  17525. FUNCTION_TABLE_vii[$17 & 63]($19,$20);
  17526. return;
  17527. }
  17528. }
  17529. $21 = ((($0)) + 168|0);
  17530. $22 = HEAP32[$21>>2]|0;
  17531. $23 = (($22) + ($1)|0);
  17532. HEAP32[$21>>2] = $23;
  17533. return;
  17534. }
  17535. function _stbi__get32be($0) {
  17536. $0 = $0|0;
  17537. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  17538. sp = STACKTOP;
  17539. $1 = (_stbi__get16be($0)|0);
  17540. $2 = $1 << 16;
  17541. $3 = (_stbi__get16be($0)|0);
  17542. $4 = (($2) + ($3))|0;
  17543. return ($4|0);
  17544. }
  17545. function _stbi__get8($0) {
  17546. $0 = $0|0;
  17547. 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;
  17548. sp = STACKTOP;
  17549. $1 = ((($0)) + 168|0);
  17550. $2 = HEAP32[$1>>2]|0;
  17551. $3 = ((($0)) + 172|0);
  17552. $4 = HEAP32[$3>>2]|0;
  17553. $5 = ($2>>>0)<($4>>>0);
  17554. do {
  17555. if ($5) {
  17556. $$sink6 = $2;
  17557. } else {
  17558. $6 = ((($0)) + 32|0);
  17559. $7 = HEAP32[$6>>2]|0;
  17560. $8 = ($7|0)==(0);
  17561. if ($8) {
  17562. $$0 = 0;
  17563. return ($$0|0);
  17564. } else {
  17565. _stbi__refill_buffer($0);
  17566. $9 = HEAP32[$1>>2]|0;
  17567. $$sink6 = $9;
  17568. break;
  17569. }
  17570. }
  17571. } while(0);
  17572. $10 = ((($$sink6)) + 1|0);
  17573. HEAP32[$1>>2] = $10;
  17574. $11 = HEAP8[$$sink6>>0]|0;
  17575. $$0 = $11;
  17576. return ($$0|0);
  17577. }
  17578. function _stbi__get16be($0) {
  17579. $0 = $0|0;
  17580. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  17581. sp = STACKTOP;
  17582. $1 = (_stbi__get8($0)|0);
  17583. $2 = $1&255;
  17584. $3 = $2 << 8;
  17585. $4 = (_stbi__get8($0)|0);
  17586. $5 = $4&255;
  17587. $6 = $3 | $5;
  17588. return ($6|0);
  17589. }
  17590. function _stbi__getn($0,$1,$2) {
  17591. $0 = $0|0;
  17592. $1 = $1|0;
  17593. $2 = $2|0;
  17594. 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;
  17595. var $29 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17596. sp = STACKTOP;
  17597. $3 = ((($0)) + 16|0);
  17598. $4 = HEAP32[$3>>2]|0;
  17599. $5 = ($4|0)==(0|0);
  17600. if (!($5)) {
  17601. $6 = ((($0)) + 172|0);
  17602. $7 = HEAP32[$6>>2]|0;
  17603. $8 = ((($0)) + 168|0);
  17604. $9 = HEAP32[$8>>2]|0;
  17605. $10 = $9;
  17606. $11 = (($7) - ($10))|0;
  17607. $12 = ($11|0)<($2|0);
  17608. if ($12) {
  17609. _memcpy(($1|0),($9|0),($11|0))|0;
  17610. $13 = HEAP32[$3>>2]|0;
  17611. $14 = ((($0)) + 28|0);
  17612. $15 = HEAP32[$14>>2]|0;
  17613. $16 = (($1) + ($11)|0);
  17614. $17 = (($2) - ($11))|0;
  17615. $18 = (FUNCTION_TABLE_iiii[$13 & 15]($15,$16,$17)|0);
  17616. $19 = ($18|0)==($17|0);
  17617. $20 = $19&1;
  17618. $21 = HEAP32[$6>>2]|0;
  17619. HEAP32[$8>>2] = $21;
  17620. $$1 = $20;
  17621. return ($$1|0);
  17622. }
  17623. }
  17624. $22 = ((($0)) + 168|0);
  17625. $23 = HEAP32[$22>>2]|0;
  17626. $24 = (($23) + ($2)|0);
  17627. $25 = ((($0)) + 172|0);
  17628. $26 = HEAP32[$25>>2]|0;
  17629. $27 = ($24>>>0)>($26>>>0);
  17630. if ($27) {
  17631. $$1 = 0;
  17632. return ($$1|0);
  17633. }
  17634. _memcpy(($1|0),($23|0),($2|0))|0;
  17635. $28 = HEAP32[$22>>2]|0;
  17636. $29 = (($28) + ($2)|0);
  17637. HEAP32[$22>>2] = $29;
  17638. $$1 = 1;
  17639. return ($$1|0);
  17640. }
  17641. function _stbi_zlib_decode_malloc_guesssize_headerflag($0,$1,$2,$3,$4) {
  17642. $0 = $0|0;
  17643. $1 = $1|0;
  17644. $2 = $2|0;
  17645. $3 = $3|0;
  17646. $4 = $4|0;
  17647. 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;
  17648. sp = STACKTOP;
  17649. STACKTOP = STACKTOP + 4080|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(4080|0);
  17650. $5 = sp;
  17651. $6 = (_stbi__malloc($2)|0);
  17652. $7 = ($6|0)==(0|0);
  17653. do {
  17654. if ($7) {
  17655. $$0 = 0;
  17656. } else {
  17657. HEAP32[$5>>2] = $0;
  17658. $8 = (($0) + ($1)|0);
  17659. $9 = ((($5)) + 4|0);
  17660. HEAP32[$9>>2] = $8;
  17661. $10 = (_stbi__do_zlib($5,$6,$2,1,$4)|0);
  17662. $11 = ($10|0)==(0);
  17663. $12 = ((($5)) + 20|0);
  17664. $13 = HEAP32[$12>>2]|0;
  17665. if ($11) {
  17666. _free($13);
  17667. $$0 = 0;
  17668. break;
  17669. }
  17670. $14 = ($3|0)==(0|0);
  17671. if ($14) {
  17672. $$0 = $13;
  17673. } else {
  17674. $15 = ((($5)) + 16|0);
  17675. $16 = HEAP32[$15>>2]|0;
  17676. $17 = $13;
  17677. $18 = (($16) - ($17))|0;
  17678. HEAP32[$3>>2] = $18;
  17679. $$0 = $13;
  17680. }
  17681. }
  17682. } while(0);
  17683. STACKTOP = sp;return ($$0|0);
  17684. }
  17685. function _stbi__create_png_image($0,$1,$2,$3,$4,$5,$6) {
  17686. $0 = $0|0;
  17687. $1 = $1|0;
  17688. $2 = $2|0;
  17689. $3 = $3|0;
  17690. $4 = $4|0;
  17691. $5 = $5|0;
  17692. $6 = $6|0;
  17693. 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;
  17694. 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;
  17695. 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;
  17696. 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;
  17697. var $80 = 0, $81 = 0, $82 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  17698. sp = STACKTOP;
  17699. $7 = ($4|0)==(16);
  17700. $8 = $7 ? 2 : 1;
  17701. $9 = Math_imul($8, $3)|0;
  17702. $10 = ($6|0)==(0);
  17703. $11 = HEAP32[$0>>2]|0;
  17704. $12 = HEAP32[$11>>2]|0;
  17705. $13 = ((($11)) + 4|0);
  17706. $14 = HEAP32[$13>>2]|0;
  17707. if ($10) {
  17708. $15 = (_stbi__create_png_image_raw($0,$1,$2,$3,$12,$14,$4,$5)|0);
  17709. $$4 = $15;
  17710. return ($$4|0);
  17711. }
  17712. $16 = (_stbi__malloc_mad3($12,$14,$9)|0);
  17713. $17 = ((($0)) + 12|0);
  17714. $18 = ((($0)) + 12|0);
  17715. $$0103117 = 0;$$095119 = $1;$$099118 = $2;
  17716. while(1) {
  17717. $19 = HEAP32[$0>>2]|0;
  17718. $20 = HEAP32[$19>>2]|0;
  17719. $21 = (2980 + ($$0103117<<2)|0);
  17720. $22 = HEAP32[$21>>2]|0;
  17721. $23 = (3008 + ($$0103117<<2)|0);
  17722. $24 = HEAP32[$23>>2]|0;
  17723. $25 = (($20) + -1)|0;
  17724. $26 = (($25) - ($22))|0;
  17725. $27 = (($26) + ($24))|0;
  17726. $28 = (($27>>>0) / ($24>>>0))&-1;
  17727. $29 = ((($19)) + 4|0);
  17728. $30 = HEAP32[$29>>2]|0;
  17729. $31 = (3036 + ($$0103117<<2)|0);
  17730. $32 = HEAP32[$31>>2]|0;
  17731. $33 = (3064 + ($$0103117<<2)|0);
  17732. $34 = HEAP32[$33>>2]|0;
  17733. $35 = (($30) + -1)|0;
  17734. $36 = (($35) - ($32))|0;
  17735. $37 = (($36) + ($34))|0;
  17736. $38 = (($37>>>0) / ($34>>>0))&-1;
  17737. $39 = ($24>>>0)<=($27>>>0);
  17738. $40 = ($34>>>0)<=($37>>>0);
  17739. $or$cond = $39 & $40;
  17740. if ($or$cond) {
  17741. $41 = ((($19)) + 8|0);
  17742. $42 = HEAP32[$41>>2]|0;
  17743. $43 = Math_imul($28, $4)|0;
  17744. $44 = Math_imul($43, $42)|0;
  17745. $45 = (($44) + 7)|0;
  17746. $46 = $45 >> 3;
  17747. $47 = (($46) + 1)|0;
  17748. $48 = Math_imul($47, $38)|0;
  17749. $49 = (_stbi__create_png_image_raw($0,$$095119,$$099118,$3,$28,$38,$4,$5)|0);
  17750. $50 = ($49|0)==(0);
  17751. if ($50) {
  17752. label = 13;
  17753. break;
  17754. }
  17755. $51 = ($38|0)>(0);
  17756. if ($51) {
  17757. $52 = ($28|0)>(0);
  17758. $$0106116 = 0;
  17759. while(1) {
  17760. if ($52) {
  17761. $53 = HEAP32[$33>>2]|0;
  17762. $54 = Math_imul($53, $$0106116)|0;
  17763. $55 = HEAP32[$31>>2]|0;
  17764. $56 = (($54) + ($55))|0;
  17765. $57 = HEAP32[$23>>2]|0;
  17766. $58 = HEAP32[$21>>2]|0;
  17767. $59 = Math_imul($56, $9)|0;
  17768. $60 = Math_imul($$0106116, $28)|0;
  17769. $$0107115 = 0;
  17770. while(1) {
  17771. $61 = Math_imul($57, $$0107115)|0;
  17772. $62 = (($61) + ($58))|0;
  17773. $63 = HEAP32[$0>>2]|0;
  17774. $64 = HEAP32[$63>>2]|0;
  17775. $65 = Math_imul($59, $64)|0;
  17776. $66 = (($16) + ($65)|0);
  17777. $67 = Math_imul($62, $9)|0;
  17778. $68 = (($66) + ($67)|0);
  17779. $69 = HEAP32[$18>>2]|0;
  17780. $70 = (($$0107115) + ($60))|0;
  17781. $71 = Math_imul($70, $9)|0;
  17782. $72 = (($69) + ($71)|0);
  17783. _memcpy(($68|0),($72|0),($9|0))|0;
  17784. $73 = (($$0107115) + 1)|0;
  17785. $74 = ($73|0)<($28|0);
  17786. if ($74) {
  17787. $$0107115 = $73;
  17788. } else {
  17789. break;
  17790. }
  17791. }
  17792. }
  17793. $75 = (($$0106116) + 1)|0;
  17794. $76 = ($75|0)<($38|0);
  17795. if ($76) {
  17796. $$0106116 = $75;
  17797. } else {
  17798. break;
  17799. }
  17800. }
  17801. }
  17802. $77 = HEAP32[$17>>2]|0;
  17803. _free($77);
  17804. $78 = (($$095119) + ($48)|0);
  17805. $79 = (($$099118) - ($48))|0;
  17806. $$3102$ph = $79;$$398$ph = $78;
  17807. } else {
  17808. $$3102$ph = $$099118;$$398$ph = $$095119;
  17809. }
  17810. $80 = (($$0103117) + 1)|0;
  17811. $81 = ($80|0)<(7);
  17812. if ($81) {
  17813. $$0103117 = $80;$$095119 = $$398$ph;$$099118 = $$3102$ph;
  17814. } else {
  17815. label = 15;
  17816. break;
  17817. }
  17818. }
  17819. if ((label|0) == 13) {
  17820. _free($16);
  17821. $$4 = 0;
  17822. return ($$4|0);
  17823. }
  17824. else if ((label|0) == 15) {
  17825. $82 = ((($0)) + 12|0);
  17826. HEAP32[$82>>2] = $16;
  17827. $$4 = 1;
  17828. return ($$4|0);
  17829. }
  17830. return (0)|0;
  17831. }
  17832. function _stbi__compute_transparency16($0,$1,$2) {
  17833. $0 = $0|0;
  17834. $1 = $1|0;
  17835. $2 = $2|0;
  17836. 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;
  17837. 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;
  17838. sp = STACKTOP;
  17839. $3 = HEAP32[$0>>2]|0;
  17840. $4 = HEAP32[$3>>2]|0;
  17841. $5 = ((($3)) + 4|0);
  17842. $6 = HEAP32[$5>>2]|0;
  17843. $7 = Math_imul($6, $4)|0;
  17844. $8 = ((($0)) + 12|0);
  17845. $9 = HEAP32[$8>>2]|0;
  17846. switch ($2|0) {
  17847. case 2: {
  17848. $13 = ($7|0)==(0);
  17849. if ($13) {
  17850. return;
  17851. } else {
  17852. $$0323 = 0;$$04 = $9;
  17853. }
  17854. while(1) {
  17855. $14 = HEAP16[$$04>>1]|0;
  17856. $15 = HEAP16[$1>>1]|0;
  17857. $not$ = ($14<<16>>16)!=($15<<16>>16);
  17858. $16 = $not$ << 31 >> 31;
  17859. $17 = ((($$04)) + 2|0);
  17860. HEAP16[$17>>1] = $16;
  17861. $18 = ((($$04)) + 4|0);
  17862. $19 = (($$0323) + 1)|0;
  17863. $exitcond = ($19|0)==($7|0);
  17864. if ($exitcond) {
  17865. break;
  17866. } else {
  17867. $$0323 = $19;$$04 = $18;
  17868. }
  17869. }
  17870. return;
  17871. break;
  17872. }
  17873. case 4: {
  17874. $10 = ($7|0)==(0);
  17875. if ($10) {
  17876. return;
  17877. }
  17878. $11 = ((($1)) + 2|0);
  17879. $12 = ((($1)) + 4|0);
  17880. $$1335 = 0;$$16 = $9;
  17881. while(1) {
  17882. $20 = HEAP16[$$16>>1]|0;
  17883. $21 = HEAP16[$1>>1]|0;
  17884. $22 = ($20<<16>>16)==($21<<16>>16);
  17885. if ($22) {
  17886. $23 = ((($$16)) + 2|0);
  17887. $24 = HEAP16[$23>>1]|0;
  17888. $25 = HEAP16[$11>>1]|0;
  17889. $26 = ($24<<16>>16)==($25<<16>>16);
  17890. if ($26) {
  17891. $27 = ((($$16)) + 4|0);
  17892. $28 = HEAP16[$27>>1]|0;
  17893. $29 = HEAP16[$12>>1]|0;
  17894. $30 = ($28<<16>>16)==($29<<16>>16);
  17895. if ($30) {
  17896. $31 = ((($$16)) + 6|0);
  17897. HEAP16[$31>>1] = 0;
  17898. }
  17899. }
  17900. }
  17901. $32 = ((($$16)) + 8|0);
  17902. $33 = (($$1335) + 1)|0;
  17903. $exitcond9 = ($33|0)==($7|0);
  17904. if ($exitcond9) {
  17905. break;
  17906. } else {
  17907. $$1335 = $33;$$16 = $32;
  17908. }
  17909. }
  17910. return;
  17911. break;
  17912. }
  17913. default: {
  17914. ___assert_fail((9960|0),(9469|0),4569,(10012|0));
  17915. // unreachable;
  17916. }
  17917. }
  17918. }
  17919. function _stbi__compute_transparency($0,$1,$2) {
  17920. $0 = $0|0;
  17921. $1 = $1|0;
  17922. $2 = $2|0;
  17923. 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;
  17924. 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;
  17925. sp = STACKTOP;
  17926. $3 = HEAP32[$0>>2]|0;
  17927. $4 = HEAP32[$3>>2]|0;
  17928. $5 = ((($3)) + 4|0);
  17929. $6 = HEAP32[$5>>2]|0;
  17930. $7 = Math_imul($6, $4)|0;
  17931. $8 = ((($0)) + 12|0);
  17932. $9 = HEAP32[$8>>2]|0;
  17933. switch ($2|0) {
  17934. case 2: {
  17935. $13 = ($7|0)==(0);
  17936. if ($13) {
  17937. return;
  17938. } else {
  17939. $$0323 = 0;$$04 = $9;
  17940. }
  17941. while(1) {
  17942. $14 = HEAP8[$$04>>0]|0;
  17943. $15 = HEAP8[$1>>0]|0;
  17944. $not$ = ($14<<24>>24)!=($15<<24>>24);
  17945. $16 = $not$ << 31 >> 31;
  17946. $17 = ((($$04)) + 1|0);
  17947. HEAP8[$17>>0] = $16;
  17948. $18 = ((($$04)) + 2|0);
  17949. $19 = (($$0323) + 1)|0;
  17950. $exitcond = ($19|0)==($7|0);
  17951. if ($exitcond) {
  17952. break;
  17953. } else {
  17954. $$0323 = $19;$$04 = $18;
  17955. }
  17956. }
  17957. return;
  17958. break;
  17959. }
  17960. case 4: {
  17961. $10 = ($7|0)==(0);
  17962. if ($10) {
  17963. return;
  17964. }
  17965. $11 = ((($1)) + 1|0);
  17966. $12 = ((($1)) + 2|0);
  17967. $$1335 = 0;$$16 = $9;
  17968. while(1) {
  17969. $20 = HEAP8[$$16>>0]|0;
  17970. $21 = HEAP8[$1>>0]|0;
  17971. $22 = ($20<<24>>24)==($21<<24>>24);
  17972. if ($22) {
  17973. $23 = ((($$16)) + 1|0);
  17974. $24 = HEAP8[$23>>0]|0;
  17975. $25 = HEAP8[$11>>0]|0;
  17976. $26 = ($24<<24>>24)==($25<<24>>24);
  17977. if ($26) {
  17978. $27 = ((($$16)) + 2|0);
  17979. $28 = HEAP8[$27>>0]|0;
  17980. $29 = HEAP8[$12>>0]|0;
  17981. $30 = ($28<<24>>24)==($29<<24>>24);
  17982. if ($30) {
  17983. $31 = ((($$16)) + 3|0);
  17984. HEAP8[$31>>0] = 0;
  17985. }
  17986. }
  17987. }
  17988. $32 = ((($$16)) + 4|0);
  17989. $33 = (($$1335) + 1)|0;
  17990. $exitcond9 = ($33|0)==($7|0);
  17991. if ($exitcond9) {
  17992. break;
  17993. } else {
  17994. $$1335 = $33;$$16 = $32;
  17995. }
  17996. }
  17997. return;
  17998. break;
  17999. }
  18000. default: {
  18001. ___assert_fail((9960|0),(9469|0),4544,(9985|0));
  18002. // unreachable;
  18003. }
  18004. }
  18005. }
  18006. function _stbi__de_iphone($0) {
  18007. $0 = $0|0;
  18008. 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;
  18009. 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;
  18010. 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;
  18011. sp = STACKTOP;
  18012. $1 = HEAP32[$0>>2]|0;
  18013. $2 = HEAP32[$1>>2]|0;
  18014. $3 = ((($1)) + 4|0);
  18015. $4 = HEAP32[$3>>2]|0;
  18016. $5 = Math_imul($4, $2)|0;
  18017. $6 = ((($0)) + 12|0);
  18018. $7 = HEAP32[$6>>2]|0;
  18019. $8 = ((($1)) + 12|0);
  18020. $9 = HEAP32[$8>>2]|0;
  18021. switch ($9|0) {
  18022. case 3: {
  18023. $10 = ($5|0)==(0);
  18024. if ($10) {
  18025. return;
  18026. } else {
  18027. $$05158 = $7;$$059 = 0;
  18028. }
  18029. while(1) {
  18030. $11 = HEAP8[$$05158>>0]|0;
  18031. $12 = ((($$05158)) + 2|0);
  18032. $13 = HEAP8[$12>>0]|0;
  18033. HEAP8[$$05158>>0] = $13;
  18034. HEAP8[$12>>0] = $11;
  18035. $14 = ((($$05158)) + 3|0);
  18036. $15 = (($$059) + 1)|0;
  18037. $exitcond = ($15|0)==($5|0);
  18038. if ($exitcond) {
  18039. break;
  18040. } else {
  18041. $$05158 = $14;$$059 = $15;
  18042. }
  18043. }
  18044. return;
  18045. break;
  18046. }
  18047. case 4: {
  18048. $16 = HEAP32[5444]|0;
  18049. $17 = ($16|0)==(0);
  18050. $18 = ($5|0)!=(0);
  18051. if ($17) {
  18052. if ($18) {
  18053. $$25360 = $7;$$261 = 0;
  18054. } else {
  18055. return;
  18056. }
  18057. while(1) {
  18058. $42 = HEAP8[$$25360>>0]|0;
  18059. $43 = ((($$25360)) + 2|0);
  18060. $44 = HEAP8[$43>>0]|0;
  18061. HEAP8[$$25360>>0] = $44;
  18062. HEAP8[$43>>0] = $42;
  18063. $45 = ((($$25360)) + 4|0);
  18064. $46 = (($$261) + 1)|0;
  18065. $exitcond68 = ($46|0)==($5|0);
  18066. if ($exitcond68) {
  18067. break;
  18068. } else {
  18069. $$25360 = $45;$$261 = $46;
  18070. }
  18071. }
  18072. return;
  18073. }
  18074. if ($18) {
  18075. $$15263 = $7;$$164 = 0;
  18076. } else {
  18077. return;
  18078. }
  18079. while(1) {
  18080. $19 = ((($$15263)) + 3|0);
  18081. $20 = HEAP8[$19>>0]|0;
  18082. $21 = HEAP8[$$15263>>0]|0;
  18083. $22 = ($20<<24>>24)==(0);
  18084. $23 = ((($$15263)) + 2|0);
  18085. $24 = HEAP8[$23>>0]|0;
  18086. if ($22) {
  18087. HEAP8[$$15263>>0] = $24;
  18088. $$sink = $21;
  18089. } else {
  18090. $25 = $24&255;
  18091. $26 = ($25*255)|0;
  18092. $27 = $20&255;
  18093. $28 = (($26>>>0) / ($27>>>0))&-1;
  18094. $29 = $28&255;
  18095. HEAP8[$$15263>>0] = $29;
  18096. $30 = ((($$15263)) + 1|0);
  18097. $31 = HEAP8[$30>>0]|0;
  18098. $32 = $31&255;
  18099. $33 = ($32*255)|0;
  18100. $34 = (($33>>>0) / ($27>>>0))&-1;
  18101. $35 = $34&255;
  18102. HEAP8[$30>>0] = $35;
  18103. $36 = $21&255;
  18104. $37 = ($36*255)|0;
  18105. $38 = (($37>>>0) / ($27>>>0))&-1;
  18106. $39 = $38&255;
  18107. $$sink = $39;
  18108. }
  18109. HEAP8[$23>>0] = $$sink;
  18110. $40 = ((($$15263)) + 4|0);
  18111. $41 = (($$164) + 1)|0;
  18112. $exitcond69 = ($41|0)==($5|0);
  18113. if ($exitcond69) {
  18114. break;
  18115. } else {
  18116. $$15263 = $40;$$164 = $41;
  18117. }
  18118. }
  18119. return;
  18120. break;
  18121. }
  18122. default: {
  18123. ___assert_fail((9926|0),(9469|0),4650,(9944|0));
  18124. // unreachable;
  18125. }
  18126. }
  18127. }
  18128. function _stbi__expand_png_palette($0,$1,$2) {
  18129. $0 = $0|0;
  18130. $1 = $1|0;
  18131. $2 = $2|0;
  18132. 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;
  18133. 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;
  18134. 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;
  18135. sp = STACKTOP;
  18136. $3 = HEAP32[$0>>2]|0;
  18137. $4 = HEAP32[$3>>2]|0;
  18138. $5 = ((($3)) + 4|0);
  18139. $6 = HEAP32[$5>>2]|0;
  18140. $7 = Math_imul($6, $4)|0;
  18141. $8 = ((($0)) + 12|0);
  18142. $9 = HEAP32[$8>>2]|0;
  18143. $10 = (_stbi__malloc_mad2($7,$2)|0);
  18144. $11 = ($10|0)==(0|0);
  18145. if ($11) {
  18146. _stbi__err(9524);
  18147. $$0 = 0;
  18148. return ($$0|0);
  18149. }
  18150. $12 = ($2|0)==(3);
  18151. $13 = ($7|0)!=(0);
  18152. if ($12) {
  18153. if ($13) {
  18154. $$0574 = 0;$$0583 = $10;
  18155. while(1) {
  18156. $14 = (($9) + ($$0574)|0);
  18157. $15 = HEAP8[$14>>0]|0;
  18158. $16 = $15&255;
  18159. $17 = $16 << 2;
  18160. $18 = (($1) + ($17)|0);
  18161. $19 = HEAP8[$18>>0]|0;
  18162. HEAP8[$$0583>>0] = $19;
  18163. $20 = $17 | 1;
  18164. $21 = (($1) + ($20)|0);
  18165. $22 = HEAP8[$21>>0]|0;
  18166. $23 = ((($$0583)) + 1|0);
  18167. HEAP8[$23>>0] = $22;
  18168. $24 = $17 | 2;
  18169. $25 = (($1) + ($24)|0);
  18170. $26 = HEAP8[$25>>0]|0;
  18171. $27 = ((($$0583)) + 2|0);
  18172. HEAP8[$27>>0] = $26;
  18173. $28 = ((($$0583)) + 3|0);
  18174. $29 = (($$0574) + 1)|0;
  18175. $exitcond = ($29|0)==($7|0);
  18176. if ($exitcond) {
  18177. break;
  18178. } else {
  18179. $$0574 = $29;$$0583 = $28;
  18180. }
  18181. }
  18182. }
  18183. } else {
  18184. if ($13) {
  18185. $$1595 = $10;$$16 = 0;
  18186. while(1) {
  18187. $30 = (($9) + ($$16)|0);
  18188. $31 = HEAP8[$30>>0]|0;
  18189. $32 = $31&255;
  18190. $33 = $32 << 2;
  18191. $34 = (($1) + ($33)|0);
  18192. $35 = HEAP8[$34>>0]|0;
  18193. HEAP8[$$1595>>0] = $35;
  18194. $36 = $33 | 1;
  18195. $37 = (($1) + ($36)|0);
  18196. $38 = HEAP8[$37>>0]|0;
  18197. $39 = ((($$1595)) + 1|0);
  18198. HEAP8[$39>>0] = $38;
  18199. $40 = $33 | 2;
  18200. $41 = (($1) + ($40)|0);
  18201. $42 = HEAP8[$41>>0]|0;
  18202. $43 = ((($$1595)) + 2|0);
  18203. HEAP8[$43>>0] = $42;
  18204. $44 = $33 | 3;
  18205. $45 = (($1) + ($44)|0);
  18206. $46 = HEAP8[$45>>0]|0;
  18207. $47 = ((($$1595)) + 3|0);
  18208. HEAP8[$47>>0] = $46;
  18209. $48 = ((($$1595)) + 4|0);
  18210. $49 = (($$16) + 1)|0;
  18211. $exitcond9 = ($49|0)==($7|0);
  18212. if ($exitcond9) {
  18213. break;
  18214. } else {
  18215. $$1595 = $48;$$16 = $49;
  18216. }
  18217. }
  18218. }
  18219. }
  18220. $50 = HEAP32[$8>>2]|0;
  18221. _free($50);
  18222. HEAP32[$8>>2] = $10;
  18223. $$0 = 1;
  18224. return ($$0|0);
  18225. }
  18226. function _stbi__malloc_mad2($0,$1) {
  18227. $0 = $0|0;
  18228. $1 = $1|0;
  18229. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  18230. sp = STACKTOP;
  18231. $2 = (_stbi__mad2sizes_valid($0,$1)|0);
  18232. $3 = ($2|0)==(0);
  18233. if ($3) {
  18234. $$0 = 0;
  18235. return ($$0|0);
  18236. }
  18237. $4 = Math_imul($1, $0)|0;
  18238. $5 = (_stbi__malloc($4)|0);
  18239. $$0 = $5;
  18240. return ($$0|0);
  18241. }
  18242. function _stbi__mad2sizes_valid($0,$1) {
  18243. $0 = $0|0;
  18244. $1 = $1|0;
  18245. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  18246. sp = STACKTOP;
  18247. $2 = (_stbi__mul2sizes_valid($0,$1)|0);
  18248. $3 = ($2|0)==(0);
  18249. if ($3) {
  18250. $8 = 0;
  18251. $7 = $8&1;
  18252. return ($7|0);
  18253. }
  18254. $4 = Math_imul($1, $0)|0;
  18255. $5 = (_stbi__addsizes_valid($4)|0);
  18256. $6 = ($5|0)!=(0);
  18257. $8 = $6;
  18258. $7 = $8&1;
  18259. return ($7|0);
  18260. }
  18261. function _stbi__create_png_image_raw($0,$1,$2,$3,$4,$5,$6,$7) {
  18262. $0 = $0|0;
  18263. $1 = $1|0;
  18264. $2 = $2|0;
  18265. $3 = $3|0;
  18266. $4 = $4|0;
  18267. $5 = $5|0;
  18268. $6 = $6|0;
  18269. $7 = $7|0;
  18270. 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;
  18271. 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;
  18272. 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;
  18273. 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;
  18274. 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;
  18275. 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;
  18276. 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;
  18277. 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;
  18278. 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;
  18279. 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;
  18280. 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;
  18281. 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;
  18282. 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;
  18283. 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;
  18284. 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;
  18285. 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;
  18286. 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;
  18287. 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;
  18288. 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;
  18289. 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;
  18290. 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;
  18291. 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;
  18292. 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;
  18293. 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;
  18294. 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;
  18295. 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;
  18296. 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;
  18297. 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;
  18298. 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;
  18299. 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;
  18300. 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;
  18301. 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;
  18302. 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;
  18303. 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;
  18304. 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;
  18305. 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;
  18306. 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;
  18307. 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;
  18308. sp = STACKTOP;
  18309. $8 = ($6|0)==(16);
  18310. $9 = $8 ? 2 : 1;
  18311. $10 = HEAP32[$0>>2]|0;
  18312. $11 = Math_imul($4, $3)|0;
  18313. $12 = Math_imul($9, $11)|0;
  18314. $13 = ((($10)) + 8|0);
  18315. $14 = HEAP32[$13>>2]|0;
  18316. $15 = Math_imul($9, $3)|0;
  18317. $16 = Math_imul($14, $9)|0;
  18318. $17 = ($14|0)==($3|0);
  18319. $18 = (($14) + 1)|0;
  18320. $19 = ($18|0)==($3|0);
  18321. $or$cond = $17 | $19;
  18322. if (!($or$cond)) {
  18323. ___assert_fail((10041|0),(9469|0),4294,(10082|0));
  18324. // unreachable;
  18325. }
  18326. $20 = (_stbi__malloc_mad3($4,$5,$15)|0);
  18327. $21 = ((($0)) + 12|0);
  18328. HEAP32[$21>>2] = $20;
  18329. $22 = ($20|0)==(0|0);
  18330. if ($22) {
  18331. _stbi__err(9524);
  18332. $$2 = 0;
  18333. return ($$2|0);
  18334. }
  18335. $23 = Math_imul($14, $4)|0;
  18336. $24 = Math_imul($23, $6)|0;
  18337. $25 = (($24) + 7)|0;
  18338. $26 = $25 >>> 3;
  18339. $27 = (($26) + 1)|0;
  18340. $28 = Math_imul($27, $5)|0;
  18341. $29 = HEAP32[$10>>2]|0;
  18342. $30 = ($29|0)==($4|0);
  18343. if ($30) {
  18344. $31 = ((($10)) + 4|0);
  18345. $32 = HEAP32[$31>>2]|0;
  18346. $33 = ($32|0)==($5|0);
  18347. if ($33) {
  18348. $34 = ($28|0)==($2|0);
  18349. if (!($34)) {
  18350. _stbi__err(10109);
  18351. $$2 = 0;
  18352. return ($$2|0);
  18353. }
  18354. } else {
  18355. label = 9;
  18356. }
  18357. } else {
  18358. label = 9;
  18359. }
  18360. if ((label|0) == 9) {
  18361. $35 = ($28>>>0)>($2>>>0);
  18362. if ($35) {
  18363. _stbi__err(10109);
  18364. $$2 = 0;
  18365. return ($$2|0);
  18366. }
  18367. }
  18368. $36 = ($5|0)==(0);
  18369. L18: do {
  18370. if (!($36)) {
  18371. $37 = ($6|0)<(8);
  18372. $38 = ($26>>>0)>($4>>>0);
  18373. $39 = (($11) - ($26))|0;
  18374. $40 = (0 - ($12))|0;
  18375. $41 = ($6|0)==(8);
  18376. $brmerge = $37 | $17;
  18377. $42 = ($4|0)==(0);
  18378. $$0614793 = (($4) + -1)|0;
  18379. $43 = ($$0614793|0)==(0);
  18380. $$1615785 = (($4) + -1)|0;
  18381. $44 = ($$1615785|0)==(0);
  18382. $$2616776 = (($4) + -1)|0;
  18383. $45 = ($$2616776|0)==(0);
  18384. $$3617767 = (($4) + -1)|0;
  18385. $46 = ($$3617767|0)==(0);
  18386. $$4618758 = (($4) + -1)|0;
  18387. $47 = ($$4618758|0)==(0);
  18388. $$5619750 = (($4) + -1)|0;
  18389. $48 = ($$5619750|0)==(0);
  18390. $$6620742 = (($4) + -1)|0;
  18391. $49 = ($$6620742|0)==(0);
  18392. $$not = $8 ^ 1;
  18393. $brmerge894 = $42 | $$not;
  18394. $$0577817 = $1;$$0608816 = $4;$$0611815 = $16;$$0623814 = 0;
  18395. while(1) {
  18396. $50 = HEAP32[$21>>2]|0;
  18397. $51 = Math_imul($$0623814, $12)|0;
  18398. $52 = (($50) + ($51)|0);
  18399. $53 = ((($$0577817)) + 1|0);
  18400. $54 = HEAP8[$$0577817>>0]|0;
  18401. $55 = $54&255;
  18402. $56 = ($54&255)>(4);
  18403. if ($56) {
  18404. label = 105;
  18405. break;
  18406. }
  18407. if ($37) {
  18408. if ($38) {
  18409. label = 16;
  18410. break;
  18411. }
  18412. $57 = (($52) + ($39)|0);
  18413. $$0597 = $57;$$1609 = $26;$$1612 = 1;
  18414. } else {
  18415. $$0597 = $52;$$1609 = $$0608816;$$1612 = $$0611815;
  18416. }
  18417. $58 = (($$0597) + ($40)|0);
  18418. $59 = ($$0623814|0)==(0);
  18419. if ($59) {
  18420. $60 = (10148 + ($55)|0);
  18421. $61 = HEAP8[$60>>0]|0;
  18422. $62 = $61&255;
  18423. $$0588 = $62;
  18424. } else {
  18425. $$0588 = $55;
  18426. }
  18427. $63 = ($$1612|0)>(0);
  18428. L30: do {
  18429. if ($63) {
  18430. $trunc638 = $$0588&255;
  18431. $$0625734 = 0;
  18432. while(1) {
  18433. switch ($trunc638<<24>>24) {
  18434. case 0: {
  18435. $64 = (($53) + ($$0625734)|0);
  18436. $65 = HEAP8[$64>>0]|0;
  18437. $$sink = $65;
  18438. label = 30;
  18439. break;
  18440. }
  18441. case 1: {
  18442. $66 = (($53) + ($$0625734)|0);
  18443. $67 = HEAP8[$66>>0]|0;
  18444. $$sink = $67;
  18445. label = 30;
  18446. break;
  18447. }
  18448. case 2: {
  18449. $68 = (($53) + ($$0625734)|0);
  18450. $69 = HEAP8[$68>>0]|0;
  18451. $70 = $69&255;
  18452. $71 = (($58) + ($$0625734)|0);
  18453. $72 = HEAP8[$71>>0]|0;
  18454. $73 = $72&255;
  18455. $74 = (($73) + ($70))|0;
  18456. $75 = $74&255;
  18457. $$sink = $75;
  18458. label = 30;
  18459. break;
  18460. }
  18461. case 3: {
  18462. $76 = (($53) + ($$0625734)|0);
  18463. $77 = HEAP8[$76>>0]|0;
  18464. $78 = $77&255;
  18465. $79 = (($58) + ($$0625734)|0);
  18466. $80 = HEAP8[$79>>0]|0;
  18467. $81 = $80&255;
  18468. $82 = $81 >>> 1;
  18469. $83 = (($82) + ($78))|0;
  18470. $84 = $83&255;
  18471. $$sink = $84;
  18472. label = 30;
  18473. break;
  18474. }
  18475. case 4: {
  18476. $85 = (($53) + ($$0625734)|0);
  18477. $86 = HEAP8[$85>>0]|0;
  18478. $87 = $86&255;
  18479. $88 = (($58) + ($$0625734)|0);
  18480. $89 = HEAP8[$88>>0]|0;
  18481. $90 = $89&255;
  18482. $91 = (_stbi__paeth(0,$90,0)|0);
  18483. $92 = (($91) + ($87))|0;
  18484. $93 = $92&255;
  18485. $$sink = $93;
  18486. label = 30;
  18487. break;
  18488. }
  18489. case 5: {
  18490. $94 = (($53) + ($$0625734)|0);
  18491. $95 = HEAP8[$94>>0]|0;
  18492. $$sink = $95;
  18493. label = 30;
  18494. break;
  18495. }
  18496. case 6: {
  18497. $96 = (($53) + ($$0625734)|0);
  18498. $97 = HEAP8[$96>>0]|0;
  18499. $$sink = $97;
  18500. label = 30;
  18501. break;
  18502. }
  18503. default: {
  18504. }
  18505. }
  18506. if ((label|0) == 30) {
  18507. label = 0;
  18508. $$sink1 = (($$0597) + ($$0625734)|0);
  18509. HEAP8[$$sink1>>0] = $$sink;
  18510. }
  18511. $98 = (($$0625734) + 1)|0;
  18512. $exitcond864 = ($98|0)==($$1612|0);
  18513. if ($exitcond864) {
  18514. break L30;
  18515. } else {
  18516. $$0625734 = $98;
  18517. }
  18518. }
  18519. }
  18520. } while(0);
  18521. do {
  18522. if ($41) {
  18523. if (!($17)) {
  18524. $99 = (($$0597) + ($14)|0);
  18525. HEAP8[$99>>0] = -1;
  18526. }
  18527. $100 = (($53) + ($14)|0);
  18528. $$1578 = $100;$$sink641 = $3;
  18529. } else {
  18530. if (!($8)) {
  18531. $105 = ((($$0577817)) + 2|0);
  18532. $$1578 = $105;$$sink641 = 1;
  18533. break;
  18534. }
  18535. if (!($17)) {
  18536. $101 = (($$1612) + 1)|0;
  18537. $102 = (($$0597) + ($101)|0);
  18538. $103 = (($$0597) + ($$1612)|0);
  18539. HEAP8[$103>>0] = -1;
  18540. HEAP8[$102>>0] = -1;
  18541. }
  18542. $104 = (($53) + ($$1612)|0);
  18543. $$1578 = $104;$$sink641 = $15;
  18544. }
  18545. } while(0);
  18546. $106 = (($$0597) + ($$sink641)|0);
  18547. $107 = (($58) + ($$sink641)|0);
  18548. if ($brmerge) {
  18549. $108 = (($$1609) + -1)|0;
  18550. $109 = Math_imul($108, $$1612)|0;
  18551. $trunc637 = $$0588&255;
  18552. switch ($trunc637<<24>>24) {
  18553. case 0: {
  18554. _memcpy(($106|0),($$1578|0),($109|0))|0;
  18555. break;
  18556. }
  18557. case 1: {
  18558. $115 = ($109|0)>(0);
  18559. if ($115) {
  18560. $$1626812 = 0;
  18561. while(1) {
  18562. $116 = (($$1578) + ($$1626812)|0);
  18563. $117 = HEAP8[$116>>0]|0;
  18564. $118 = $117&255;
  18565. $119 = (($$1626812) - ($$1612))|0;
  18566. $120 = (($106) + ($119)|0);
  18567. $121 = HEAP8[$120>>0]|0;
  18568. $122 = $121&255;
  18569. $123 = (($122) + ($118))|0;
  18570. $124 = $123&255;
  18571. $125 = (($106) + ($$1626812)|0);
  18572. HEAP8[$125>>0] = $124;
  18573. $126 = (($$1626812) + 1)|0;
  18574. $exitcond886 = ($126|0)==($109|0);
  18575. if ($exitcond886) {
  18576. break;
  18577. } else {
  18578. $$1626812 = $126;
  18579. }
  18580. }
  18581. }
  18582. break;
  18583. }
  18584. case 2: {
  18585. $114 = ($109|0)>(0);
  18586. if ($114) {
  18587. $$2627810 = 0;
  18588. while(1) {
  18589. $127 = (($$1578) + ($$2627810)|0);
  18590. $128 = HEAP8[$127>>0]|0;
  18591. $129 = $128&255;
  18592. $130 = (($107) + ($$2627810)|0);
  18593. $131 = HEAP8[$130>>0]|0;
  18594. $132 = $131&255;
  18595. $133 = (($132) + ($129))|0;
  18596. $134 = $133&255;
  18597. $135 = (($106) + ($$2627810)|0);
  18598. HEAP8[$135>>0] = $134;
  18599. $136 = (($$2627810) + 1)|0;
  18600. $exitcond885 = ($136|0)==($109|0);
  18601. if ($exitcond885) {
  18602. break;
  18603. } else {
  18604. $$2627810 = $136;
  18605. }
  18606. }
  18607. }
  18608. break;
  18609. }
  18610. case 3: {
  18611. $113 = ($109|0)>(0);
  18612. if ($113) {
  18613. $$3628808 = 0;
  18614. while(1) {
  18615. $137 = (($$1578) + ($$3628808)|0);
  18616. $138 = HEAP8[$137>>0]|0;
  18617. $139 = $138&255;
  18618. $140 = (($107) + ($$3628808)|0);
  18619. $141 = HEAP8[$140>>0]|0;
  18620. $142 = $141&255;
  18621. $143 = (($$3628808) - ($$1612))|0;
  18622. $144 = (($106) + ($143)|0);
  18623. $145 = HEAP8[$144>>0]|0;
  18624. $146 = $145&255;
  18625. $147 = (($146) + ($142))|0;
  18626. $148 = $147 >>> 1;
  18627. $149 = (($148) + ($139))|0;
  18628. $150 = $149&255;
  18629. $151 = (($106) + ($$3628808)|0);
  18630. HEAP8[$151>>0] = $150;
  18631. $152 = (($$3628808) + 1)|0;
  18632. $exitcond884 = ($152|0)==($109|0);
  18633. if ($exitcond884) {
  18634. break;
  18635. } else {
  18636. $$3628808 = $152;
  18637. }
  18638. }
  18639. }
  18640. break;
  18641. }
  18642. case 4: {
  18643. $112 = ($109|0)>(0);
  18644. if ($112) {
  18645. $$4629806 = 0;
  18646. while(1) {
  18647. $153 = (($$1578) + ($$4629806)|0);
  18648. $154 = HEAP8[$153>>0]|0;
  18649. $155 = $154&255;
  18650. $156 = (($$4629806) - ($$1612))|0;
  18651. $157 = (($106) + ($156)|0);
  18652. $158 = HEAP8[$157>>0]|0;
  18653. $159 = $158&255;
  18654. $160 = (($107) + ($$4629806)|0);
  18655. $161 = HEAP8[$160>>0]|0;
  18656. $162 = $161&255;
  18657. $163 = (($107) + ($156)|0);
  18658. $164 = HEAP8[$163>>0]|0;
  18659. $165 = $164&255;
  18660. $166 = (_stbi__paeth($159,$162,$165)|0);
  18661. $167 = (($166) + ($155))|0;
  18662. $168 = $167&255;
  18663. $169 = (($106) + ($$4629806)|0);
  18664. HEAP8[$169>>0] = $168;
  18665. $170 = (($$4629806) + 1)|0;
  18666. $exitcond883 = ($170|0)==($109|0);
  18667. if ($exitcond883) {
  18668. break;
  18669. } else {
  18670. $$4629806 = $170;
  18671. }
  18672. }
  18673. }
  18674. break;
  18675. }
  18676. case 5: {
  18677. $111 = ($109|0)>(0);
  18678. if ($111) {
  18679. $$5630804 = 0;
  18680. while(1) {
  18681. $171 = (($$1578) + ($$5630804)|0);
  18682. $172 = HEAP8[$171>>0]|0;
  18683. $173 = $172&255;
  18684. $174 = (($$5630804) - ($$1612))|0;
  18685. $175 = (($106) + ($174)|0);
  18686. $176 = HEAP8[$175>>0]|0;
  18687. $177 = $176&255;
  18688. $178 = $177 >>> 1;
  18689. $179 = (($178) + ($173))|0;
  18690. $180 = $179&255;
  18691. $181 = (($106) + ($$5630804)|0);
  18692. HEAP8[$181>>0] = $180;
  18693. $182 = (($$5630804) + 1)|0;
  18694. $exitcond882 = ($182|0)==($109|0);
  18695. if ($exitcond882) {
  18696. break;
  18697. } else {
  18698. $$5630804 = $182;
  18699. }
  18700. }
  18701. }
  18702. break;
  18703. }
  18704. case 6: {
  18705. $110 = ($109|0)>(0);
  18706. if ($110) {
  18707. $$6631802 = 0;
  18708. while(1) {
  18709. $183 = (($$1578) + ($$6631802)|0);
  18710. $184 = HEAP8[$183>>0]|0;
  18711. $185 = $184&255;
  18712. $186 = (($$6631802) - ($$1612))|0;
  18713. $187 = (($106) + ($186)|0);
  18714. $188 = HEAP8[$187>>0]|0;
  18715. $189 = $188&255;
  18716. $190 = (_stbi__paeth($189,0,0)|0);
  18717. $191 = (($190) + ($185))|0;
  18718. $192 = $191&255;
  18719. $193 = (($106) + ($$6631802)|0);
  18720. HEAP8[$193>>0] = $192;
  18721. $194 = (($$6631802) + 1)|0;
  18722. $exitcond881 = ($194|0)==($109|0);
  18723. if ($exitcond881) {
  18724. break;
  18725. } else {
  18726. $$6631802 = $194;
  18727. }
  18728. }
  18729. }
  18730. break;
  18731. }
  18732. default: {
  18733. }
  18734. }
  18735. $195 = (($$1578) + ($109)|0);
  18736. $$11$ph = $195;
  18737. } else {
  18738. if (!($19)) {
  18739. label = 58;
  18740. break;
  18741. }
  18742. $trunc = $$0588&255;
  18743. switch ($trunc<<24>>24) {
  18744. case 0: {
  18745. if ($43) {
  18746. $$9586 = $$1578;
  18747. } else {
  18748. $208 = ($$1612|0)>(0);
  18749. $209 = Math_imul($$6620742, $$1612)|0;
  18750. $$0614796 = $$0614793;$$2579795 = $$1578;$$2599794 = $106;
  18751. while(1) {
  18752. if ($208) {
  18753. $$7632790 = 0;
  18754. while(1) {
  18755. $210 = (($$2579795) + ($$7632790)|0);
  18756. $211 = HEAP8[$210>>0]|0;
  18757. $212 = (($$2599794) + ($$7632790)|0);
  18758. HEAP8[$212>>0] = $211;
  18759. $213 = (($$7632790) + 1)|0;
  18760. $exitcond877 = ($213|0)==($$1612|0);
  18761. if ($exitcond877) {
  18762. break;
  18763. } else {
  18764. $$7632790 = $213;
  18765. }
  18766. }
  18767. }
  18768. $214 = (($$2599794) + ($$1612)|0);
  18769. HEAP8[$214>>0] = -1;
  18770. $215 = (($$2579795) + ($$1612)|0);
  18771. $216 = (($$2599794) + ($15)|0);
  18772. $$0614 = (($$0614796) + -1)|0;
  18773. $217 = ($$0614|0)==(0);
  18774. if ($217) {
  18775. break;
  18776. } else {
  18777. $$0614796 = $$0614;$$2579795 = $215;$$2599794 = $216;
  18778. }
  18779. }
  18780. $scevgep879 = (($$1578) + ($209)|0);
  18781. $$9586 = $scevgep879;
  18782. }
  18783. break;
  18784. }
  18785. case 1: {
  18786. if ($44) {
  18787. $$9586 = $$1578;
  18788. } else {
  18789. $206 = ($$1612|0)>(0);
  18790. $207 = Math_imul($$6620742, $$1612)|0;
  18791. $$1615788 = $$1615785;$$3580787 = $$1578;$$3600786 = $106;
  18792. while(1) {
  18793. if ($206) {
  18794. $$8633782 = 0;
  18795. while(1) {
  18796. $218 = (($$3580787) + ($$8633782)|0);
  18797. $219 = HEAP8[$218>>0]|0;
  18798. $220 = $219&255;
  18799. $221 = (($$8633782) - ($15))|0;
  18800. $222 = (($$3600786) + ($221)|0);
  18801. $223 = HEAP8[$222>>0]|0;
  18802. $224 = $223&255;
  18803. $225 = (($224) + ($220))|0;
  18804. $226 = $225&255;
  18805. $227 = (($$3600786) + ($$8633782)|0);
  18806. HEAP8[$227>>0] = $226;
  18807. $228 = (($$8633782) + 1)|0;
  18808. $exitcond875 = ($228|0)==($$1612|0);
  18809. if ($exitcond875) {
  18810. break;
  18811. } else {
  18812. $$8633782 = $228;
  18813. }
  18814. }
  18815. }
  18816. $229 = (($$3600786) + ($$1612)|0);
  18817. HEAP8[$229>>0] = -1;
  18818. $230 = (($$3580787) + ($$1612)|0);
  18819. $231 = (($$3600786) + ($15)|0);
  18820. $$1615 = (($$1615788) + -1)|0;
  18821. $232 = ($$1615|0)==(0);
  18822. if ($232) {
  18823. break;
  18824. } else {
  18825. $$1615788 = $$1615;$$3580787 = $230;$$3600786 = $231;
  18826. }
  18827. }
  18828. $scevgep876 = (($$1578) + ($207)|0);
  18829. $$9586 = $scevgep876;
  18830. }
  18831. break;
  18832. }
  18833. case 2: {
  18834. if ($45) {
  18835. $$9586 = $$1578;
  18836. } else {
  18837. $204 = ($$1612|0)>(0);
  18838. $205 = Math_imul($$6620742, $$1612)|0;
  18839. $$2616780 = $$2616776;$$3592778 = $107;$$4581779 = $$1578;$$4601777 = $106;
  18840. while(1) {
  18841. if ($204) {
  18842. $$9634773 = 0;
  18843. while(1) {
  18844. $233 = (($$4581779) + ($$9634773)|0);
  18845. $234 = HEAP8[$233>>0]|0;
  18846. $235 = $234&255;
  18847. $236 = (($$3592778) + ($$9634773)|0);
  18848. $237 = HEAP8[$236>>0]|0;
  18849. $238 = $237&255;
  18850. $239 = (($238) + ($235))|0;
  18851. $240 = $239&255;
  18852. $241 = (($$4601777) + ($$9634773)|0);
  18853. HEAP8[$241>>0] = $240;
  18854. $242 = (($$9634773) + 1)|0;
  18855. $exitcond873 = ($242|0)==($$1612|0);
  18856. if ($exitcond873) {
  18857. break;
  18858. } else {
  18859. $$9634773 = $242;
  18860. }
  18861. }
  18862. }
  18863. $243 = (($$4601777) + ($$1612)|0);
  18864. HEAP8[$243>>0] = -1;
  18865. $244 = (($$4581779) + ($$1612)|0);
  18866. $245 = (($$4601777) + ($15)|0);
  18867. $246 = (($$3592778) + ($15)|0);
  18868. $$2616 = (($$2616780) + -1)|0;
  18869. $247 = ($$2616|0)==(0);
  18870. if ($247) {
  18871. break;
  18872. } else {
  18873. $$2616780 = $$2616;$$3592778 = $246;$$4581779 = $244;$$4601777 = $245;
  18874. }
  18875. }
  18876. $scevgep874 = (($$1578) + ($205)|0);
  18877. $$9586 = $scevgep874;
  18878. }
  18879. break;
  18880. }
  18881. case 3: {
  18882. if ($46) {
  18883. $$9586 = $$1578;
  18884. } else {
  18885. $202 = ($$1612|0)>(0);
  18886. $203 = Math_imul($$6620742, $$1612)|0;
  18887. $$3617771 = $$3617767;$$4593769 = $107;$$5582770 = $$1578;$$5602768 = $106;
  18888. while(1) {
  18889. if ($202) {
  18890. $$10635764 = 0;
  18891. while(1) {
  18892. $248 = (($$5582770) + ($$10635764)|0);
  18893. $249 = HEAP8[$248>>0]|0;
  18894. $250 = $249&255;
  18895. $251 = (($$4593769) + ($$10635764)|0);
  18896. $252 = HEAP8[$251>>0]|0;
  18897. $253 = $252&255;
  18898. $254 = (($$10635764) - ($15))|0;
  18899. $255 = (($$5602768) + ($254)|0);
  18900. $256 = HEAP8[$255>>0]|0;
  18901. $257 = $256&255;
  18902. $258 = (($257) + ($253))|0;
  18903. $259 = $258 >>> 1;
  18904. $260 = (($259) + ($250))|0;
  18905. $261 = $260&255;
  18906. $262 = (($$5602768) + ($$10635764)|0);
  18907. HEAP8[$262>>0] = $261;
  18908. $263 = (($$10635764) + 1)|0;
  18909. $exitcond871 = ($263|0)==($$1612|0);
  18910. if ($exitcond871) {
  18911. break;
  18912. } else {
  18913. $$10635764 = $263;
  18914. }
  18915. }
  18916. }
  18917. $264 = (($$5602768) + ($$1612)|0);
  18918. HEAP8[$264>>0] = -1;
  18919. $265 = (($$5582770) + ($$1612)|0);
  18920. $266 = (($$5602768) + ($15)|0);
  18921. $267 = (($$4593769) + ($15)|0);
  18922. $$3617 = (($$3617771) + -1)|0;
  18923. $268 = ($$3617|0)==(0);
  18924. if ($268) {
  18925. break;
  18926. } else {
  18927. $$3617771 = $$3617;$$4593769 = $267;$$5582770 = $265;$$5602768 = $266;
  18928. }
  18929. }
  18930. $scevgep872 = (($$1578) + ($203)|0);
  18931. $$9586 = $scevgep872;
  18932. }
  18933. break;
  18934. }
  18935. case 4: {
  18936. if ($47) {
  18937. $$9586 = $$1578;
  18938. } else {
  18939. $200 = ($$1612|0)>(0);
  18940. $201 = Math_imul($$6620742, $$1612)|0;
  18941. $$4618762 = $$4618758;$$5594760 = $107;$$6583761 = $$1578;$$6603759 = $106;
  18942. while(1) {
  18943. if ($200) {
  18944. $$11636755 = 0;
  18945. while(1) {
  18946. $269 = (($$6583761) + ($$11636755)|0);
  18947. $270 = HEAP8[$269>>0]|0;
  18948. $271 = $270&255;
  18949. $272 = (($$11636755) - ($15))|0;
  18950. $273 = (($$6603759) + ($272)|0);
  18951. $274 = HEAP8[$273>>0]|0;
  18952. $275 = $274&255;
  18953. $276 = (($$5594760) + ($$11636755)|0);
  18954. $277 = HEAP8[$276>>0]|0;
  18955. $278 = $277&255;
  18956. $279 = (($$5594760) + ($272)|0);
  18957. $280 = HEAP8[$279>>0]|0;
  18958. $281 = $280&255;
  18959. $282 = (_stbi__paeth($275,$278,$281)|0);
  18960. $283 = (($282) + ($271))|0;
  18961. $284 = $283&255;
  18962. $285 = (($$6603759) + ($$11636755)|0);
  18963. HEAP8[$285>>0] = $284;
  18964. $286 = (($$11636755) + 1)|0;
  18965. $exitcond869 = ($286|0)==($$1612|0);
  18966. if ($exitcond869) {
  18967. break;
  18968. } else {
  18969. $$11636755 = $286;
  18970. }
  18971. }
  18972. }
  18973. $287 = (($$6603759) + ($$1612)|0);
  18974. HEAP8[$287>>0] = -1;
  18975. $288 = (($$6583761) + ($$1612)|0);
  18976. $289 = (($$6603759) + ($15)|0);
  18977. $290 = (($$5594760) + ($15)|0);
  18978. $$4618 = (($$4618762) + -1)|0;
  18979. $291 = ($$4618|0)==(0);
  18980. if ($291) {
  18981. break;
  18982. } else {
  18983. $$4618762 = $$4618;$$5594760 = $290;$$6583761 = $288;$$6603759 = $289;
  18984. }
  18985. }
  18986. $scevgep870 = (($$1578) + ($201)|0);
  18987. $$9586 = $scevgep870;
  18988. }
  18989. break;
  18990. }
  18991. case 5: {
  18992. if ($48) {
  18993. $$9586 = $$1578;
  18994. } else {
  18995. $198 = ($$1612|0)>(0);
  18996. $199 = Math_imul($$6620742, $$1612)|0;
  18997. $$5619753 = $$5619750;$$7584752 = $$1578;$$7604751 = $106;
  18998. while(1) {
  18999. if ($198) {
  19000. $$12747 = 0;
  19001. while(1) {
  19002. $292 = (($$7584752) + ($$12747)|0);
  19003. $293 = HEAP8[$292>>0]|0;
  19004. $294 = $293&255;
  19005. $295 = (($$12747) - ($15))|0;
  19006. $296 = (($$7604751) + ($295)|0);
  19007. $297 = HEAP8[$296>>0]|0;
  19008. $298 = $297&255;
  19009. $299 = $298 >>> 1;
  19010. $300 = (($299) + ($294))|0;
  19011. $301 = $300&255;
  19012. $302 = (($$7604751) + ($$12747)|0);
  19013. HEAP8[$302>>0] = $301;
  19014. $303 = (($$12747) + 1)|0;
  19015. $exitcond867 = ($303|0)==($$1612|0);
  19016. if ($exitcond867) {
  19017. break;
  19018. } else {
  19019. $$12747 = $303;
  19020. }
  19021. }
  19022. }
  19023. $304 = (($$7604751) + ($$1612)|0);
  19024. HEAP8[$304>>0] = -1;
  19025. $305 = (($$7584752) + ($$1612)|0);
  19026. $306 = (($$7604751) + ($15)|0);
  19027. $$5619 = (($$5619753) + -1)|0;
  19028. $307 = ($$5619|0)==(0);
  19029. if ($307) {
  19030. break;
  19031. } else {
  19032. $$5619753 = $$5619;$$7584752 = $305;$$7604751 = $306;
  19033. }
  19034. }
  19035. $scevgep868 = (($$1578) + ($199)|0);
  19036. $$9586 = $scevgep868;
  19037. }
  19038. break;
  19039. }
  19040. case 6: {
  19041. if ($49) {
  19042. $$9586 = $$1578;
  19043. } else {
  19044. $196 = ($$1612|0)>(0);
  19045. $197 = Math_imul($$6620742, $$1612)|0;
  19046. $$6620745 = $$6620742;$$8585744 = $$1578;$$8605743 = $106;
  19047. while(1) {
  19048. if ($196) {
  19049. $$13739 = 0;
  19050. while(1) {
  19051. $308 = (($$8585744) + ($$13739)|0);
  19052. $309 = HEAP8[$308>>0]|0;
  19053. $310 = $309&255;
  19054. $311 = (($$13739) - ($15))|0;
  19055. $312 = (($$8605743) + ($311)|0);
  19056. $313 = HEAP8[$312>>0]|0;
  19057. $314 = $313&255;
  19058. $315 = (_stbi__paeth($314,0,0)|0);
  19059. $316 = (($315) + ($310))|0;
  19060. $317 = $316&255;
  19061. $318 = (($$8605743) + ($$13739)|0);
  19062. HEAP8[$318>>0] = $317;
  19063. $319 = (($$13739) + 1)|0;
  19064. $exitcond865 = ($319|0)==($$1612|0);
  19065. if ($exitcond865) {
  19066. break;
  19067. } else {
  19068. $$13739 = $319;
  19069. }
  19070. }
  19071. }
  19072. $320 = (($$8605743) + ($$1612)|0);
  19073. HEAP8[$320>>0] = -1;
  19074. $321 = (($$8585744) + ($$1612)|0);
  19075. $322 = (($$8605743) + ($15)|0);
  19076. $$6620 = (($$6620745) + -1)|0;
  19077. $323 = ($$6620|0)==(0);
  19078. if ($323) {
  19079. break;
  19080. } else {
  19081. $$6620745 = $$6620;$$8585744 = $321;$$8605743 = $322;
  19082. }
  19083. }
  19084. $scevgep866 = (($$1578) + ($197)|0);
  19085. $$9586 = $scevgep866;
  19086. }
  19087. break;
  19088. }
  19089. default: {
  19090. $$9586 = $$1578;
  19091. }
  19092. }
  19093. if ($brmerge894) {
  19094. $$11$ph = $$9586;
  19095. } else {
  19096. $324 = HEAP32[$21>>2]|0;
  19097. $325 = (($324) + ($51)|0);
  19098. $326 = (($$1612) + 1)|0;
  19099. $$7621798 = 0;$$9606799 = $325;
  19100. while(1) {
  19101. $327 = (($$9606799) + ($326)|0);
  19102. HEAP8[$327>>0] = -1;
  19103. $328 = (($$7621798) + 1)|0;
  19104. $329 = (($$9606799) + ($15)|0);
  19105. $exitcond880 = ($328|0)==($4|0);
  19106. if ($exitcond880) {
  19107. $$11$ph = $$9586;
  19108. break;
  19109. } else {
  19110. $$7621798 = $328;$$9606799 = $329;
  19111. }
  19112. }
  19113. }
  19114. }
  19115. $330 = (($$0623814) + 1)|0;
  19116. $331 = ($330>>>0)<($5>>>0);
  19117. if ($331) {
  19118. $$0577817 = $$11$ph;$$0608816 = $$1609;$$0611815 = $$1612;$$0623814 = $330;
  19119. } else {
  19120. break L18;
  19121. }
  19122. }
  19123. if ((label|0) == 16) {
  19124. ___assert_fail((10127|0),(9469|0),4315,(10082|0));
  19125. // unreachable;
  19126. }
  19127. else if ((label|0) == 58) {
  19128. ___assert_fail((10153|0),(9469|0),4377,(10082|0));
  19129. // unreachable;
  19130. }
  19131. else if ((label|0) == 105) {
  19132. _stbi__err(10170);
  19133. $$2 = 0;
  19134. return ($$2|0);
  19135. }
  19136. }
  19137. } while(0);
  19138. $332 = ($6|0)<(8);
  19139. if (!($332)) {
  19140. if (!($8)) {
  19141. $$2 = 1;
  19142. return ($$2|0);
  19143. }
  19144. $601 = Math_imul($4, $3)|0;
  19145. $602 = Math_imul($601, $5)|0;
  19146. $603 = ($602|0)==(0);
  19147. if ($603) {
  19148. $$2 = 1;
  19149. return ($$2|0);
  19150. }
  19151. $604 = HEAP32[$21>>2]|0;
  19152. $$0731 = $604;$$8622729 = 0;
  19153. while(1) {
  19154. $605 = HEAP8[$$0731>>0]|0;
  19155. $606 = $605&255;
  19156. $607 = $606 << 8;
  19157. $608 = ((($$0731)) + 1|0);
  19158. $609 = HEAP8[$608>>0]|0;
  19159. $610 = $609&255;
  19160. $611 = $607 | $610;
  19161. $612 = $611&65535;
  19162. HEAP16[$$0731>>1] = $612;
  19163. $613 = (($$8622729) + 1)|0;
  19164. $614 = ((($$0731)) + 2|0);
  19165. $exitcond = ($613|0)==($602|0);
  19166. if ($exitcond) {
  19167. $$2 = 1;
  19168. break;
  19169. } else {
  19170. $$0731 = $614;$$8622729 = $613;
  19171. }
  19172. }
  19173. return ($$2|0);
  19174. }
  19175. $333 = ($5|0)==(0);
  19176. if ($333) {
  19177. $$2 = 1;
  19178. return ($$2|0);
  19179. }
  19180. $334 = (0 - ($26))|0;
  19181. $335 = ($7|0)==(0);
  19182. $336 = (9866 + ($6)|0);
  19183. $$0568724 = (($4) + -1)|0;
  19184. $337 = ($$0568724|0)>(-1);
  19185. $$1721 = (($4) + -1)|0;
  19186. $338 = ($$1721|0)>(-1);
  19187. $339 = ($23|0)>(1);
  19188. $340 = ($23|0)>(3);
  19189. $341 = ($23|0)>(7);
  19190. $342 = (($23) + -8)|0;
  19191. $343 = $342 >>> 3;
  19192. $344 = $343 << 3;
  19193. $345 = (($344) + 8)|0;
  19194. $346 = (($342) - ($344))|0;
  19195. $347 = (($343) + ($11))|0;
  19196. $348 = (($347) + 1)|0;
  19197. $349 = (($348) - ($26))|0;
  19198. $350 = (($23) + -4)|0;
  19199. $351 = $350 >>> 2;
  19200. $352 = $351 << 2;
  19201. $353 = (($352) + 4)|0;
  19202. $354 = (($350) - ($352))|0;
  19203. $355 = (($351) + ($11))|0;
  19204. $356 = (($355) + 1)|0;
  19205. $357 = (($356) - ($26))|0;
  19206. $358 = (($23) + -2)|0;
  19207. $359 = $358 >>> 1;
  19208. $360 = $359 << 1;
  19209. $361 = (($360) + 2)|0;
  19210. $362 = (($358) - ($360))|0;
  19211. $363 = (($359) + ($11))|0;
  19212. $364 = (($363) + 1)|0;
  19213. $365 = (($364) - ($26))|0;
  19214. $$1624727 = 0;$indvars$iv = $345;$indvars$iv848 = $349;$indvars$iv851 = $353;$indvars$iv854 = $357;$indvars$iv857 = $361;$indvars$iv860 = $365;
  19215. L174: while(1) {
  19216. $366 = HEAP32[$21>>2]|0;
  19217. $367 = Math_imul($$1624727, $12)|0;
  19218. $368 = (($366) + ($367)|0);
  19219. $369 = (($368) + ($11)|0);
  19220. $370 = (($369) + ($334)|0);
  19221. if ($335) {
  19222. $371 = HEAP8[$336>>0]|0;
  19223. $372 = $371&255;
  19224. $377 = $372;
  19225. } else {
  19226. $377 = 1;
  19227. }
  19228. switch ($6|0) {
  19229. case 4: {
  19230. if ($339) {
  19231. $scevgep859 = (($366) + ($indvars$iv857)|0);
  19232. $$0571715 = $370;$$0574714 = $368;$$14713 = $23;
  19233. while(1) {
  19234. $373 = HEAP8[$$0571715>>0]|0;
  19235. $374 = $373&255;
  19236. $375 = $374 >>> 4;
  19237. $376 = Math_imul($375, $377)|0;
  19238. $378 = $376&255;
  19239. $379 = ((($$0574714)) + 1|0);
  19240. HEAP8[$$0574714>>0] = $378;
  19241. $380 = HEAP8[$$0571715>>0]|0;
  19242. $381 = $380 & 15;
  19243. $382 = $381&255;
  19244. $383 = Math_imul($382, $377)|0;
  19245. $384 = $383&255;
  19246. $385 = ((($$0574714)) + 2|0);
  19247. HEAP8[$379>>0] = $384;
  19248. $386 = (($$14713) + -2)|0;
  19249. $387 = ((($$0571715)) + 1|0);
  19250. $388 = ($386|0)>(1);
  19251. if ($388) {
  19252. $$0571715 = $387;$$0574714 = $385;$$14713 = $386;
  19253. } else {
  19254. break;
  19255. }
  19256. }
  19257. $scevgep862 = (($366) + ($indvars$iv860)|0);
  19258. $$0571$lcssa = $scevgep862;$$0574$lcssa = $scevgep859;$$14$lcssa = $362;
  19259. } else {
  19260. $$0571$lcssa = $370;$$0574$lcssa = $368;$$14$lcssa = $23;
  19261. }
  19262. $389 = ($$14$lcssa|0)==(1);
  19263. if ($389) {
  19264. $390 = HEAP8[$$0571$lcssa>>0]|0;
  19265. $391 = $390&255;
  19266. $392 = $391 >>> 4;
  19267. $393 = Math_imul($392, $377)|0;
  19268. $394 = $393&255;
  19269. HEAP8[$$0574$lcssa>>0] = $394;
  19270. }
  19271. break;
  19272. }
  19273. case 2: {
  19274. if ($340) {
  19275. $scevgep853 = (($366) + ($indvars$iv851)|0);
  19276. $$15705 = $23;$$1572707 = $370;$$1575706 = $368;
  19277. while(1) {
  19278. $395 = HEAP8[$$1572707>>0]|0;
  19279. $396 = $395&255;
  19280. $397 = $396 >>> 6;
  19281. $398 = Math_imul($397, $377)|0;
  19282. $399 = $398&255;
  19283. $400 = ((($$1575706)) + 1|0);
  19284. HEAP8[$$1575706>>0] = $399;
  19285. $401 = HEAP8[$$1572707>>0]|0;
  19286. $402 = $401&255;
  19287. $403 = $402 >>> 4;
  19288. $404 = $403 & 3;
  19289. $405 = Math_imul($404, $377)|0;
  19290. $406 = $405&255;
  19291. $407 = ((($$1575706)) + 2|0);
  19292. HEAP8[$400>>0] = $406;
  19293. $408 = HEAP8[$$1572707>>0]|0;
  19294. $409 = $408&255;
  19295. $410 = $409 >>> 2;
  19296. $411 = $410 & 3;
  19297. $412 = Math_imul($411, $377)|0;
  19298. $413 = $412&255;
  19299. $414 = ((($$1575706)) + 3|0);
  19300. HEAP8[$407>>0] = $413;
  19301. $415 = HEAP8[$$1572707>>0]|0;
  19302. $416 = $415 & 3;
  19303. $417 = $416&255;
  19304. $418 = Math_imul($417, $377)|0;
  19305. $419 = $418&255;
  19306. $420 = ((($$1575706)) + 4|0);
  19307. HEAP8[$414>>0] = $419;
  19308. $421 = (($$15705) + -4)|0;
  19309. $422 = ((($$1572707)) + 1|0);
  19310. $423 = ($421|0)>(3);
  19311. if ($423) {
  19312. $$15705 = $421;$$1572707 = $422;$$1575706 = $420;
  19313. } else {
  19314. break;
  19315. }
  19316. }
  19317. $scevgep856 = (($366) + ($indvars$iv854)|0);
  19318. $$15$lcssa = $354;$$1572$lcssa = $scevgep856;$$1575$lcssa = $scevgep853;
  19319. } else {
  19320. $$15$lcssa = $23;$$1572$lcssa = $370;$$1575$lcssa = $368;
  19321. }
  19322. $424 = ($$15$lcssa|0)>(0);
  19323. if ($424) {
  19324. $425 = HEAP8[$$1572$lcssa>>0]|0;
  19325. $426 = $425&255;
  19326. $427 = $426 >>> 6;
  19327. $428 = Math_imul($427, $377)|0;
  19328. $429 = $428&255;
  19329. HEAP8[$$1575$lcssa>>0] = $429;
  19330. $430 = ($$15$lcssa|0)==(1);
  19331. if (!($430)) {
  19332. $431 = ((($$1575$lcssa)) + 1|0);
  19333. $432 = HEAP8[$$1572$lcssa>>0]|0;
  19334. $433 = $432&255;
  19335. $434 = $433 >>> 4;
  19336. $435 = $434 & 3;
  19337. $436 = Math_imul($435, $377)|0;
  19338. $437 = $436&255;
  19339. HEAP8[$431>>0] = $437;
  19340. $438 = ($$15$lcssa|0)>(2);
  19341. if ($438) {
  19342. $439 = ((($$1575$lcssa)) + 2|0);
  19343. $440 = HEAP8[$$1572$lcssa>>0]|0;
  19344. $441 = $440&255;
  19345. $442 = $441 >>> 2;
  19346. $443 = $442 & 3;
  19347. $444 = Math_imul($443, $377)|0;
  19348. $445 = $444&255;
  19349. HEAP8[$439>>0] = $445;
  19350. }
  19351. }
  19352. }
  19353. break;
  19354. }
  19355. case 1: {
  19356. if ($341) {
  19357. $scevgep = (($366) + ($indvars$iv)|0);
  19358. $$16700 = $23;$$2573702 = $370;$$4701 = $368;
  19359. while(1) {
  19360. $446 = HEAP8[$$2573702>>0]|0;
  19361. $447 = $446&255;
  19362. $448 = $447 >>> 7;
  19363. $449 = (0 - ($448))|0;
  19364. $450 = $377 & $449;
  19365. $451 = $450&255;
  19366. $452 = ((($$4701)) + 1|0);
  19367. HEAP8[$$4701>>0] = $451;
  19368. $453 = HEAP8[$$2573702>>0]|0;
  19369. $454 = $453&255;
  19370. $455 = $454 >>> 6;
  19371. $456 = $455 & 1;
  19372. $457 = (0 - ($456))|0;
  19373. $458 = $377 & $457;
  19374. $459 = $458&255;
  19375. $460 = ((($$4701)) + 2|0);
  19376. HEAP8[$452>>0] = $459;
  19377. $461 = HEAP8[$$2573702>>0]|0;
  19378. $462 = $461&255;
  19379. $463 = $462 >>> 5;
  19380. $464 = $463 & 1;
  19381. $465 = (0 - ($464))|0;
  19382. $466 = $377 & $465;
  19383. $467 = $466&255;
  19384. $468 = ((($$4701)) + 3|0);
  19385. HEAP8[$460>>0] = $467;
  19386. $469 = HEAP8[$$2573702>>0]|0;
  19387. $470 = $469&255;
  19388. $471 = $470 >>> 4;
  19389. $472 = $471 & 1;
  19390. $473 = (0 - ($472))|0;
  19391. $474 = $377 & $473;
  19392. $475 = $474&255;
  19393. $476 = ((($$4701)) + 4|0);
  19394. HEAP8[$468>>0] = $475;
  19395. $477 = HEAP8[$$2573702>>0]|0;
  19396. $478 = $477&255;
  19397. $479 = $478 >>> 3;
  19398. $480 = $479 & 1;
  19399. $481 = (0 - ($480))|0;
  19400. $482 = $377 & $481;
  19401. $483 = $482&255;
  19402. $484 = ((($$4701)) + 5|0);
  19403. HEAP8[$476>>0] = $483;
  19404. $485 = HEAP8[$$2573702>>0]|0;
  19405. $486 = $485&255;
  19406. $487 = $486 >>> 2;
  19407. $488 = $487 & 1;
  19408. $489 = (0 - ($488))|0;
  19409. $490 = $377 & $489;
  19410. $491 = $490&255;
  19411. $492 = ((($$4701)) + 6|0);
  19412. HEAP8[$484>>0] = $491;
  19413. $493 = HEAP8[$$2573702>>0]|0;
  19414. $494 = $493&255;
  19415. $495 = $494 >>> 1;
  19416. $496 = $495 & 1;
  19417. $497 = (0 - ($496))|0;
  19418. $498 = $377 & $497;
  19419. $499 = $498&255;
  19420. $500 = ((($$4701)) + 7|0);
  19421. HEAP8[$492>>0] = $499;
  19422. $501 = HEAP8[$$2573702>>0]|0;
  19423. $502 = $501 & 1;
  19424. $503 = $502&255;
  19425. $504 = (0 - ($503))|0;
  19426. $505 = $377 & $504;
  19427. $506 = $505&255;
  19428. $507 = ((($$4701)) + 8|0);
  19429. HEAP8[$500>>0] = $506;
  19430. $508 = (($$16700) + -8)|0;
  19431. $509 = ((($$2573702)) + 1|0);
  19432. $510 = ($508|0)>(7);
  19433. if ($510) {
  19434. $$16700 = $508;$$2573702 = $509;$$4701 = $507;
  19435. } else {
  19436. break;
  19437. }
  19438. }
  19439. $scevgep850 = (($366) + ($indvars$iv848)|0);
  19440. $$16$lcssa = $346;$$2573$lcssa = $scevgep850;$$4$lcssa = $scevgep;
  19441. } else {
  19442. $$16$lcssa = $23;$$2573$lcssa = $370;$$4$lcssa = $368;
  19443. }
  19444. $511 = ($$16$lcssa|0)>(0);
  19445. if ($511) {
  19446. $512 = HEAP8[$$2573$lcssa>>0]|0;
  19447. $513 = $512&255;
  19448. $514 = $513 >>> 7;
  19449. $515 = (0 - ($514))|0;
  19450. $516 = $377 & $515;
  19451. $517 = $516&255;
  19452. HEAP8[$$4$lcssa>>0] = $517;
  19453. $518 = ($$16$lcssa|0)==(1);
  19454. if (!($518)) {
  19455. $519 = ((($$4$lcssa)) + 1|0);
  19456. $520 = HEAP8[$$2573$lcssa>>0]|0;
  19457. $521 = $520&255;
  19458. $522 = $521 >>> 6;
  19459. $523 = $522 & 1;
  19460. $524 = (0 - ($523))|0;
  19461. $525 = $377 & $524;
  19462. $526 = $525&255;
  19463. HEAP8[$519>>0] = $526;
  19464. $527 = ($$16$lcssa|0)>(2);
  19465. if ($527) {
  19466. $528 = ((($$4$lcssa)) + 2|0);
  19467. $529 = HEAP8[$$2573$lcssa>>0]|0;
  19468. $530 = $529&255;
  19469. $531 = $530 >>> 5;
  19470. $532 = $531 & 1;
  19471. $533 = (0 - ($532))|0;
  19472. $534 = $377 & $533;
  19473. $535 = $534&255;
  19474. HEAP8[$528>>0] = $535;
  19475. $536 = ($$16$lcssa|0)==(3);
  19476. if (!($536)) {
  19477. $537 = ((($$4$lcssa)) + 3|0);
  19478. $538 = HEAP8[$$2573$lcssa>>0]|0;
  19479. $539 = $538&255;
  19480. $540 = $539 >>> 4;
  19481. $541 = $540 & 1;
  19482. $542 = (0 - ($541))|0;
  19483. $543 = $377 & $542;
  19484. $544 = $543&255;
  19485. HEAP8[$537>>0] = $544;
  19486. $545 = ($$16$lcssa|0)>(4);
  19487. if ($545) {
  19488. $546 = ((($$4$lcssa)) + 4|0);
  19489. $547 = HEAP8[$$2573$lcssa>>0]|0;
  19490. $548 = $547&255;
  19491. $549 = $548 >>> 3;
  19492. $550 = $549 & 1;
  19493. $551 = (0 - ($550))|0;
  19494. $552 = $377 & $551;
  19495. $553 = $552&255;
  19496. HEAP8[$546>>0] = $553;
  19497. $554 = ($$16$lcssa|0)==(5);
  19498. if (!($554)) {
  19499. $555 = ((($$4$lcssa)) + 5|0);
  19500. $556 = HEAP8[$$2573$lcssa>>0]|0;
  19501. $557 = $556&255;
  19502. $558 = $557 >>> 2;
  19503. $559 = $558 & 1;
  19504. $560 = (0 - ($559))|0;
  19505. $561 = $377 & $560;
  19506. $562 = $561&255;
  19507. HEAP8[$555>>0] = $562;
  19508. $563 = ($$16$lcssa|0)>(6);
  19509. if ($563) {
  19510. $564 = ((($$4$lcssa)) + 6|0);
  19511. $565 = HEAP8[$$2573$lcssa>>0]|0;
  19512. $566 = $565&255;
  19513. $567 = $566 >>> 1;
  19514. $568 = $567 & 1;
  19515. $569 = (0 - ($568))|0;
  19516. $570 = $377 & $569;
  19517. $571 = $570&255;
  19518. HEAP8[$564>>0] = $571;
  19519. }
  19520. }
  19521. }
  19522. }
  19523. }
  19524. }
  19525. }
  19526. break;
  19527. }
  19528. default: {
  19529. }
  19530. }
  19531. L213: do {
  19532. if (!($17)) {
  19533. $572 = HEAP32[$21>>2]|0;
  19534. $573 = (($572) + ($367)|0);
  19535. switch ($14|0) {
  19536. case 1: {
  19537. if ($337) {
  19538. $$0568725 = $$0568724;
  19539. } else {
  19540. break L213;
  19541. }
  19542. while(1) {
  19543. $574 = $$0568725 << 1;
  19544. $575 = $574 | 1;
  19545. $576 = (($573) + ($575)|0);
  19546. HEAP8[$576>>0] = -1;
  19547. $577 = (($573) + ($$0568725)|0);
  19548. $578 = HEAP8[$577>>0]|0;
  19549. $579 = (($573) + ($574)|0);
  19550. HEAP8[$579>>0] = $578;
  19551. $$0568 = (($$0568725) + -1)|0;
  19552. $580 = ($$0568|0)>(-1);
  19553. if ($580) {
  19554. $$0568725 = $$0568;
  19555. } else {
  19556. break;
  19557. }
  19558. }
  19559. break;
  19560. }
  19561. case 3: {
  19562. if ($338) {
  19563. $$1722 = $$1721;
  19564. } else {
  19565. break L213;
  19566. }
  19567. while(1) {
  19568. $581 = $$1722 << 2;
  19569. $582 = $581 | 3;
  19570. $583 = (($573) + ($582)|0);
  19571. HEAP8[$583>>0] = -1;
  19572. $584 = ($$1722*3)|0;
  19573. $585 = (($584) + 2)|0;
  19574. $586 = (($573) + ($585)|0);
  19575. $587 = HEAP8[$586>>0]|0;
  19576. $588 = $581 | 2;
  19577. $589 = (($573) + ($588)|0);
  19578. HEAP8[$589>>0] = $587;
  19579. $590 = (($584) + 1)|0;
  19580. $591 = (($573) + ($590)|0);
  19581. $592 = HEAP8[$591>>0]|0;
  19582. $593 = $581 | 1;
  19583. $594 = (($573) + ($593)|0);
  19584. HEAP8[$594>>0] = $592;
  19585. $595 = (($573) + ($584)|0);
  19586. $596 = HEAP8[$595>>0]|0;
  19587. $597 = (($573) + ($581)|0);
  19588. HEAP8[$597>>0] = $596;
  19589. $$1 = (($$1722) + -1)|0;
  19590. $598 = ($$1|0)>(-1);
  19591. if ($598) {
  19592. $$1722 = $$1;
  19593. } else {
  19594. break;
  19595. }
  19596. }
  19597. break;
  19598. }
  19599. default: {
  19600. label = 144;
  19601. break L174;
  19602. }
  19603. }
  19604. }
  19605. } while(0);
  19606. $599 = (($$1624727) + 1)|0;
  19607. $600 = ($599>>>0)<($5>>>0);
  19608. $indvars$iv$next = (($indvars$iv) + ($12))|0;
  19609. $indvars$iv$next849 = (($indvars$iv848) + ($12))|0;
  19610. $indvars$iv$next852 = (($indvars$iv851) + ($12))|0;
  19611. $indvars$iv$next855 = (($indvars$iv854) + ($12))|0;
  19612. $indvars$iv$next858 = (($indvars$iv857) + ($12))|0;
  19613. $indvars$iv$next861 = (($indvars$iv860) + ($12))|0;
  19614. if ($600) {
  19615. $$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;
  19616. } else {
  19617. $$2 = 1;
  19618. label = 151;
  19619. break;
  19620. }
  19621. }
  19622. if ((label|0) == 144) {
  19623. ___assert_fail((10185|0),(9469|0),4466,(10082|0));
  19624. // unreachable;
  19625. }
  19626. else if ((label|0) == 151) {
  19627. return ($$2|0);
  19628. }
  19629. return (0)|0;
  19630. }
  19631. function _stbi__paeth($0,$1,$2) {
  19632. $0 = $0|0;
  19633. $1 = $1|0;
  19634. $2 = $2|0;
  19635. 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;
  19636. var label = 0, sp = 0;
  19637. sp = STACKTOP;
  19638. $3 = (($1) + ($0))|0;
  19639. $4 = (($3) - ($2))|0;
  19640. $5 = (($4) - ($0))|0;
  19641. $ispos = ($5|0)>(-1);
  19642. $neg = (0 - ($5))|0;
  19643. $6 = $ispos ? $5 : $neg;
  19644. $7 = (($4) - ($1))|0;
  19645. $ispos26 = ($7|0)>(-1);
  19646. $neg27 = (0 - ($7))|0;
  19647. $8 = $ispos26 ? $7 : $neg27;
  19648. $9 = (($4) - ($2))|0;
  19649. $ispos28 = ($9|0)>(-1);
  19650. $neg29 = (0 - ($9))|0;
  19651. $10 = $ispos28 ? $9 : $neg29;
  19652. $11 = ($6|0)>($8|0);
  19653. $12 = ($6|0)>($10|0);
  19654. $or$cond = $11 | $12;
  19655. $13 = ($8|0)>($10|0);
  19656. $$ = $13 ? $2 : $1;
  19657. $$0 = $or$cond ? $$ : $0;
  19658. return ($$0|0);
  19659. }
  19660. function _stbi__do_zlib($0,$1,$2,$3,$4) {
  19661. $0 = $0|0;
  19662. $1 = $1|0;
  19663. $2 = $2|0;
  19664. $3 = $3|0;
  19665. $4 = $4|0;
  19666. var $10 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  19667. sp = STACKTOP;
  19668. $5 = ((($0)) + 20|0);
  19669. HEAP32[$5>>2] = $1;
  19670. $6 = ((($0)) + 16|0);
  19671. HEAP32[$6>>2] = $1;
  19672. $7 = (($1) + ($2)|0);
  19673. $8 = ((($0)) + 24|0);
  19674. HEAP32[$8>>2] = $7;
  19675. $9 = ((($0)) + 28|0);
  19676. HEAP32[$9>>2] = $3;
  19677. $10 = (_stbi__parse_zlib($0,$4)|0);
  19678. return ($10|0);
  19679. }
  19680. function _stbi__parse_zlib($0,$1) {
  19681. $0 = $0|0;
  19682. $1 = $1|0;
  19683. 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;
  19684. var $9 = 0, label = 0, sp = 0;
  19685. sp = STACKTOP;
  19686. $2 = ($1|0)==(0);
  19687. if (!($2)) {
  19688. $3 = (_stbi__parse_zlib_header($0)|0);
  19689. $4 = ($3|0)==(0);
  19690. if ($4) {
  19691. $$0 = 0;
  19692. return ($$0|0);
  19693. }
  19694. }
  19695. $5 = ((($0)) + 8|0);
  19696. HEAP32[$5>>2] = 0;
  19697. $6 = ((($0)) + 12|0);
  19698. HEAP32[$6>>2] = 0;
  19699. $7 = ((($0)) + 32|0);
  19700. $8 = ((($0)) + 2052|0);
  19701. L5: while(1) {
  19702. $9 = (_stbi__zreceive($0,1)|0);
  19703. $10 = (_stbi__zreceive($0,2)|0);
  19704. switch ($10|0) {
  19705. case 3: {
  19706. $$0 = 0;
  19707. label = 11;
  19708. break L5;
  19709. break;
  19710. }
  19711. case 0: {
  19712. $11 = (_stbi__parse_uncompressed_block($0)|0);
  19713. $12 = ($11|0)==(0);
  19714. if ($12) {
  19715. $$0 = 0;
  19716. label = 11;
  19717. break L5;
  19718. }
  19719. break;
  19720. }
  19721. case 1: {
  19722. $13 = (_stbi__zbuild_huffman($7,10196,288)|0);
  19723. $14 = ($13|0)==(0);
  19724. if ($14) {
  19725. $$0 = 0;
  19726. label = 11;
  19727. break L5;
  19728. }
  19729. $15 = (_stbi__zbuild_huffman($8,10484,32)|0);
  19730. $16 = ($15|0)==(0);
  19731. if ($16) {
  19732. $$0 = 0;
  19733. label = 11;
  19734. break L5;
  19735. } else {
  19736. label = 9;
  19737. }
  19738. break;
  19739. }
  19740. default: {
  19741. $17 = (_stbi__compute_huffman_codes($0)|0);
  19742. $18 = ($17|0)==(0);
  19743. if ($18) {
  19744. $$0 = 0;
  19745. label = 11;
  19746. break L5;
  19747. } else {
  19748. label = 9;
  19749. }
  19750. }
  19751. }
  19752. if ((label|0) == 9) {
  19753. label = 0;
  19754. $19 = (_stbi__parse_huffman_block($0)|0);
  19755. $20 = ($19|0)==(0);
  19756. if ($20) {
  19757. $$0 = 0;
  19758. label = 11;
  19759. break;
  19760. }
  19761. }
  19762. $21 = ($9|0)==(0);
  19763. if (!($21)) {
  19764. $$0 = 1;
  19765. label = 11;
  19766. break;
  19767. }
  19768. }
  19769. if ((label|0) == 11) {
  19770. return ($$0|0);
  19771. }
  19772. return (0)|0;
  19773. }
  19774. function _stbi__parse_zlib_header($0) {
  19775. $0 = $0|0;
  19776. 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;
  19777. sp = STACKTOP;
  19778. $1 = (_stbi__zget8($0)|0);
  19779. $2 = $1&255;
  19780. $3 = $2 & 15;
  19781. $4 = (_stbi__zget8($0)|0);
  19782. $5 = $4&255;
  19783. $6 = $2 << 8;
  19784. $7 = $6 | $5;
  19785. $8 = (($7>>>0) % 31)&-1;
  19786. $9 = ($8|0)==(0);
  19787. if (!($9)) {
  19788. _stbi__err(10831);
  19789. $$0 = 0;
  19790. return ($$0|0);
  19791. }
  19792. $10 = $5 & 32;
  19793. $11 = ($10|0)==(0);
  19794. if (!($11)) {
  19795. _stbi__err(10847);
  19796. $$0 = 0;
  19797. return ($$0|0);
  19798. }
  19799. $12 = ($3|0)==(8);
  19800. if ($12) {
  19801. $$0 = 1;
  19802. return ($$0|0);
  19803. }
  19804. _stbi__err(10862);
  19805. $$0 = 0;
  19806. return ($$0|0);
  19807. }
  19808. function _stbi__zreceive($0,$1) {
  19809. $0 = $0|0;
  19810. $1 = $1|0;
  19811. 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;
  19812. sp = STACKTOP;
  19813. $2 = ((($0)) + 8|0);
  19814. $3 = HEAP32[$2>>2]|0;
  19815. $4 = ($3|0)<($1|0);
  19816. if ($4) {
  19817. _stbi__fill_bits($0);
  19818. }
  19819. $5 = ((($0)) + 12|0);
  19820. $6 = HEAP32[$5>>2]|0;
  19821. $7 = 1 << $1;
  19822. $8 = (($7) + -1)|0;
  19823. $9 = $6 & $8;
  19824. $10 = $6 >>> $1;
  19825. HEAP32[$5>>2] = $10;
  19826. $11 = HEAP32[$2>>2]|0;
  19827. $12 = (($11) - ($1))|0;
  19828. HEAP32[$2>>2] = $12;
  19829. return ($9|0);
  19830. }
  19831. function _stbi__parse_uncompressed_block($0) {
  19832. $0 = $0|0;
  19833. 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;
  19834. 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;
  19835. 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;
  19836. 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;
  19837. sp = STACKTOP;
  19838. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  19839. $1 = sp;
  19840. $2 = ((($0)) + 8|0);
  19841. $3 = HEAP32[$2>>2]|0;
  19842. $4 = $3 & 7;
  19843. $5 = ($4|0)==(0);
  19844. if ($5) {
  19845. $$ph = $3;
  19846. } else {
  19847. (_stbi__zreceive($0,$4)|0);
  19848. $$pr = HEAP32[$2>>2]|0;
  19849. $$ph = $$pr;
  19850. }
  19851. $6 = ($$ph|0)>(0);
  19852. if ($6) {
  19853. $7 = ((($0)) + 12|0);
  19854. $$promoted = HEAP32[$7>>2]|0;
  19855. $8 = $$ph ^ -1;
  19856. $9 = ($8|0)>(-9);
  19857. $smax = $9 ? $8 : -9;
  19858. $10 = (($$ph) + ($smax))|0;
  19859. $11 = (($10) + 8)|0;
  19860. $12 = $11 >>> 3;
  19861. $13 = (($12) + 1)|0;
  19862. $14 = $12 << 3;
  19863. $$037 = 0;$16 = $$promoted;
  19864. while(1) {
  19865. $15 = $16&255;
  19866. $17 = (($$037) + 1)|0;
  19867. $18 = (($1) + ($$037)|0);
  19868. HEAP8[$18>>0] = $15;
  19869. $19 = $16 >>> 8;
  19870. $exitcond47 = ($17|0)==($13|0);
  19871. if ($exitcond47) {
  19872. break;
  19873. } else {
  19874. $$037 = $17;$16 = $19;
  19875. }
  19876. }
  19877. $20 = (($$ph) + -8)|0;
  19878. $21 = (($20) - ($14))|0;
  19879. HEAP32[$7>>2] = $19;
  19880. HEAP32[$2>>2] = $21;
  19881. $$0$lcssa = $13;$$lcssa = $21;
  19882. } else {
  19883. $$0$lcssa = 0;$$lcssa = $$ph;
  19884. }
  19885. $22 = ($$lcssa|0)==(0);
  19886. if (!($22)) {
  19887. ___assert_fail((10753|0),(9469|0),4033,(10770|0));
  19888. // unreachable;
  19889. }
  19890. $23 = ($$0$lcssa|0)<(4);
  19891. if ($23) {
  19892. $$136 = $$0$lcssa;
  19893. while(1) {
  19894. $24 = (_stbi__zget8($0)|0);
  19895. $25 = (($$136) + 1)|0;
  19896. $26 = (($1) + ($$136)|0);
  19897. HEAP8[$26>>0] = $24;
  19898. $exitcond = ($25|0)==(4);
  19899. if ($exitcond) {
  19900. break;
  19901. } else {
  19902. $$136 = $25;
  19903. }
  19904. }
  19905. }
  19906. $27 = ((($1)) + 1|0);
  19907. $28 = HEAP8[$27>>0]|0;
  19908. $29 = $28&255;
  19909. $30 = $29 << 8;
  19910. $31 = HEAP8[$1>>0]|0;
  19911. $32 = $31&255;
  19912. $33 = $30 | $32;
  19913. $34 = ((($1)) + 3|0);
  19914. $35 = HEAP8[$34>>0]|0;
  19915. $36 = $35&255;
  19916. $37 = $36 << 8;
  19917. $38 = ((($1)) + 2|0);
  19918. $39 = HEAP8[$38>>0]|0;
  19919. $40 = $39&255;
  19920. $41 = $37 | $40;
  19921. $42 = $33 ^ 65535;
  19922. $43 = ($41|0)==($42|0);
  19923. if (!($43)) {
  19924. _stbi__err(10801);
  19925. $$034 = 0;
  19926. STACKTOP = sp;return ($$034|0);
  19927. }
  19928. $44 = HEAP32[$0>>2]|0;
  19929. $45 = (($44) + ($33)|0);
  19930. $46 = ((($0)) + 4|0);
  19931. $47 = HEAP32[$46>>2]|0;
  19932. $48 = ($45>>>0)>($47>>>0);
  19933. if ($48) {
  19934. _stbi__err(10814);
  19935. $$034 = 0;
  19936. STACKTOP = sp;return ($$034|0);
  19937. }
  19938. $49 = ((($0)) + 16|0);
  19939. $50 = HEAP32[$49>>2]|0;
  19940. $51 = (($50) + ($33)|0);
  19941. $52 = ((($0)) + 24|0);
  19942. $53 = HEAP32[$52>>2]|0;
  19943. $54 = ($51>>>0)>($53>>>0);
  19944. if ($54) {
  19945. $55 = (_stbi__zexpand($0,$50,$33)|0);
  19946. $56 = ($55|0)==(0);
  19947. if ($56) {
  19948. $$034 = 0;
  19949. STACKTOP = sp;return ($$034|0);
  19950. }
  19951. }
  19952. $57 = HEAP32[$49>>2]|0;
  19953. $58 = HEAP32[$0>>2]|0;
  19954. _memcpy(($57|0),($58|0),($33|0))|0;
  19955. $59 = HEAP32[$0>>2]|0;
  19956. $60 = (($59) + ($33)|0);
  19957. HEAP32[$0>>2] = $60;
  19958. $61 = HEAP32[$49>>2]|0;
  19959. $62 = (($61) + ($33)|0);
  19960. HEAP32[$49>>2] = $62;
  19961. $$034 = 1;
  19962. STACKTOP = sp;return ($$034|0);
  19963. }
  19964. function _stbi__zbuild_huffman($0,$1,$2) {
  19965. $0 = $0|0;
  19966. $1 = $1|0;
  19967. $2 = $2|0;
  19968. 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;
  19969. 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;
  19970. 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;
  19971. 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;
  19972. 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;
  19973. 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;
  19974. sp = STACKTOP;
  19975. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  19976. $3 = sp + 72|0;
  19977. $4 = sp;
  19978. dest=$4; stop=dest+68|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  19979. _memset(($0|0),0,1024)|0;
  19980. $5 = ($2|0)>(0);
  19981. if ($5) {
  19982. $$07688 = 0;
  19983. while(1) {
  19984. $6 = (($1) + ($$07688)|0);
  19985. $7 = HEAP8[$6>>0]|0;
  19986. $8 = $7&255;
  19987. $9 = (($4) + ($8<<2)|0);
  19988. $10 = HEAP32[$9>>2]|0;
  19989. $11 = (($10) + 1)|0;
  19990. HEAP32[$9>>2] = $11;
  19991. $12 = (($$07688) + 1)|0;
  19992. $exitcond91 = ($12|0)==($2|0);
  19993. if ($exitcond91) {
  19994. break;
  19995. } else {
  19996. $$07688 = $12;
  19997. }
  19998. }
  19999. }
  20000. HEAP32[$4>>2] = 0;
  20001. $16 = ((($4)) + 4|0);
  20002. $17 = HEAP32[$16>>2]|0;
  20003. $18 = ($17|0)>(2);
  20004. if (!($18)) {
  20005. $13 = ((($4)) + 8|0);
  20006. $14 = HEAP32[$13>>2]|0;
  20007. $15 = ($14|0)>(4);
  20008. if (!($15)) {
  20009. $69 = ((($4)) + 12|0);
  20010. $70 = HEAP32[$69>>2]|0;
  20011. $71 = ($70|0)>(8);
  20012. if (!($71)) {
  20013. $72 = ((($4)) + 16|0);
  20014. $73 = HEAP32[$72>>2]|0;
  20015. $74 = ($73|0)>(16);
  20016. if (!($74)) {
  20017. $75 = ((($4)) + 20|0);
  20018. $76 = HEAP32[$75>>2]|0;
  20019. $77 = ($76|0)>(32);
  20020. if (!($77)) {
  20021. $78 = ((($4)) + 24|0);
  20022. $79 = HEAP32[$78>>2]|0;
  20023. $80 = ($79|0)>(64);
  20024. if (!($80)) {
  20025. $81 = ((($4)) + 28|0);
  20026. $82 = HEAP32[$81>>2]|0;
  20027. $83 = ($82|0)>(128);
  20028. if (!($83)) {
  20029. $84 = ((($4)) + 32|0);
  20030. $85 = HEAP32[$84>>2]|0;
  20031. $86 = ($85|0)>(256);
  20032. if (!($86)) {
  20033. $87 = ((($4)) + 36|0);
  20034. $88 = HEAP32[$87>>2]|0;
  20035. $89 = ($88|0)>(512);
  20036. if (!($89)) {
  20037. $90 = ((($4)) + 40|0);
  20038. $91 = HEAP32[$90>>2]|0;
  20039. $92 = ($91|0)>(1024);
  20040. if (!($92)) {
  20041. $93 = ((($4)) + 44|0);
  20042. $94 = HEAP32[$93>>2]|0;
  20043. $95 = ($94|0)>(2048);
  20044. if (!($95)) {
  20045. $96 = ((($4)) + 48|0);
  20046. $97 = HEAP32[$96>>2]|0;
  20047. $98 = ($97|0)>(4096);
  20048. if (!($98)) {
  20049. $99 = ((($4)) + 52|0);
  20050. $100 = HEAP32[$99>>2]|0;
  20051. $101 = ($100|0)>(8192);
  20052. if (!($101)) {
  20053. $102 = ((($4)) + 56|0);
  20054. $103 = HEAP32[$102>>2]|0;
  20055. $104 = ($103|0)>(16384);
  20056. if (!($104)) {
  20057. $105 = ((($4)) + 60|0);
  20058. $106 = HEAP32[$105>>2]|0;
  20059. $107 = ($106|0)>(32768);
  20060. if (!($107)) {
  20061. $$07785 = 0;$$07884 = 0;$$286 = 1;
  20062. while(1) {
  20063. $19 = (($3) + ($$286<<2)|0);
  20064. HEAP32[$19>>2] = $$07884;
  20065. $20 = $$07884&65535;
  20066. $21 = (((($0)) + 1024|0) + ($$286<<1)|0);
  20067. HEAP16[$21>>1] = $20;
  20068. $22 = $$07785&65535;
  20069. $23 = (((($0)) + 1124|0) + ($$286<<1)|0);
  20070. HEAP16[$23>>1] = $22;
  20071. $24 = (($4) + ($$286<<2)|0);
  20072. $25 = HEAP32[$24>>2]|0;
  20073. $26 = (($25) + ($$07884))|0;
  20074. $27 = ($25|0)!=(0);
  20075. $28 = 1 << $$286;
  20076. $29 = ($26|0)>($28|0);
  20077. $or$cond = $27 & $29;
  20078. if ($or$cond) {
  20079. label = 7;
  20080. break;
  20081. }
  20082. $30 = (16 - ($$286))|0;
  20083. $31 = $26 << $30;
  20084. $32 = (((($0)) + 1056|0) + ($$286<<2)|0);
  20085. HEAP32[$32>>2] = $31;
  20086. $33 = $26 << 1;
  20087. $34 = (($25) + ($$07785))|0;
  20088. $35 = (($$286) + 1)|0;
  20089. $36 = ($35|0)<(16);
  20090. if ($36) {
  20091. $$07785 = $34;$$07884 = $33;$$286 = $35;
  20092. } else {
  20093. break;
  20094. }
  20095. }
  20096. if ((label|0) == 7) {
  20097. _stbi__err(10691);
  20098. $$075 = 0;
  20099. STACKTOP = sp;return ($$075|0);
  20100. }
  20101. $37 = ((($0)) + 1120|0);
  20102. HEAP32[$37>>2] = 65536;
  20103. $38 = ($2|0)>(0);
  20104. if ($38) {
  20105. $$382 = 0;
  20106. } else {
  20107. $$075 = 1;
  20108. STACKTOP = sp;return ($$075|0);
  20109. }
  20110. while(1) {
  20111. $39 = (($1) + ($$382)|0);
  20112. $40 = HEAP8[$39>>0]|0;
  20113. $41 = $40&255;
  20114. $42 = ($40<<24>>24)==(0);
  20115. if (!($42)) {
  20116. $43 = (($3) + ($41<<2)|0);
  20117. $44 = HEAP32[$43>>2]|0;
  20118. $45 = (((($0)) + 1024|0) + ($41<<1)|0);
  20119. $46 = HEAP16[$45>>1]|0;
  20120. $47 = $46&65535;
  20121. $48 = (($44) - ($47))|0;
  20122. $49 = (((($0)) + 1124|0) + ($41<<1)|0);
  20123. $50 = HEAP16[$49>>1]|0;
  20124. $51 = $50&65535;
  20125. $52 = (($48) + ($51))|0;
  20126. $53 = $41 << 9;
  20127. $54 = $53 | $$382;
  20128. $55 = $54&65535;
  20129. $56 = (((($0)) + 1156|0) + ($52)|0);
  20130. HEAP8[$56>>0] = $40;
  20131. $57 = $$382&65535;
  20132. $58 = (((($0)) + 1444|0) + ($52<<1)|0);
  20133. HEAP16[$58>>1] = $57;
  20134. $59 = ($40&255)<(10);
  20135. do {
  20136. if ($59) {
  20137. $60 = (_stbi__bit_reverse($44,$41)|0);
  20138. $61 = ($60|0)<(512);
  20139. if (!($61)) {
  20140. break;
  20141. }
  20142. $62 = 1 << $41;
  20143. $$081 = $60;
  20144. while(1) {
  20145. $63 = (($0) + ($$081<<1)|0);
  20146. HEAP16[$63>>1] = $55;
  20147. $64 = (($$081) + ($62))|0;
  20148. $65 = ($64|0)<(512);
  20149. if ($65) {
  20150. $$081 = $64;
  20151. } else {
  20152. break;
  20153. }
  20154. }
  20155. }
  20156. } while(0);
  20157. $66 = HEAP32[$43>>2]|0;
  20158. $67 = (($66) + 1)|0;
  20159. HEAP32[$43>>2] = $67;
  20160. }
  20161. $68 = (($$382) + 1)|0;
  20162. $exitcond = ($68|0)==($2|0);
  20163. if ($exitcond) {
  20164. $$075 = 1;
  20165. break;
  20166. } else {
  20167. $$382 = $68;
  20168. }
  20169. }
  20170. STACKTOP = sp;return ($$075|0);
  20171. }
  20172. }
  20173. }
  20174. }
  20175. }
  20176. }
  20177. }
  20178. }
  20179. }
  20180. }
  20181. }
  20182. }
  20183. }
  20184. }
  20185. }
  20186. _stbi__err(10743);
  20187. $$075 = 0;
  20188. STACKTOP = sp;return ($$075|0);
  20189. }
  20190. function _stbi__compute_huffman_codes($0) {
  20191. $0 = $0|0;
  20192. 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;
  20193. 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;
  20194. 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;
  20195. var label = 0, sp = 0, stop = 0;
  20196. sp = STACKTOP;
  20197. STACKTOP = STACKTOP + 2496|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(2496|0);
  20198. $1 = sp;
  20199. $2 = sp + 2039|0;
  20200. $3 = sp + 2020|0;
  20201. $4 = (_stbi__zreceive($0,5)|0);
  20202. $5 = (($4) + 257)|0;
  20203. $6 = (_stbi__zreceive($0,5)|0);
  20204. $7 = (($6) + 1)|0;
  20205. $8 = (_stbi__zreceive($0,4)|0);
  20206. $9 = (($8) + 4)|0;
  20207. $10 = (($7) + ($5))|0;
  20208. dest=$3; stop=dest+19|0; do { HEAP8[dest>>0]=0|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  20209. $11 = ($9|0)>(0);
  20210. if ($11) {
  20211. $$06579 = 0;
  20212. while(1) {
  20213. $12 = (_stbi__zreceive($0,3)|0);
  20214. $13 = $12&255;
  20215. $14 = (11528 + ($$06579)|0);
  20216. $15 = HEAP8[$14>>0]|0;
  20217. $16 = $15&255;
  20218. $17 = (($3) + ($16)|0);
  20219. HEAP8[$17>>0] = $13;
  20220. $18 = (($$06579) + 1)|0;
  20221. $exitcond = ($18|0)==($9|0);
  20222. if ($exitcond) {
  20223. break;
  20224. } else {
  20225. $$06579 = $18;
  20226. }
  20227. }
  20228. }
  20229. $19 = (_stbi__zbuild_huffman($1,$3,19)|0);
  20230. $20 = ($19|0)==(0);
  20231. if ($20) {
  20232. $$4 = 0;
  20233. STACKTOP = sp;return ($$4|0);
  20234. }
  20235. $21 = ($10|0)>(0);
  20236. L8: do {
  20237. if ($21) {
  20238. $$06678 = 0;
  20239. L9: while(1) {
  20240. $22 = (_stbi__zhuffman_decode($0,$1)|0);
  20241. $23 = ($22>>>0)>(18);
  20242. if ($23) {
  20243. label = 6;
  20244. break;
  20245. }
  20246. $24 = ($22|0)<(16);
  20247. if ($24) {
  20248. $25 = $22&255;
  20249. $26 = (($$06678) + 1)|0;
  20250. $27 = (($2) + ($$06678)|0);
  20251. HEAP8[$27>>0] = $25;
  20252. $$066$be = $26;
  20253. } else {
  20254. switch ($22|0) {
  20255. case 16: {
  20256. $28 = (_stbi__zreceive($0,2)|0);
  20257. $29 = ($$06678|0)==(0);
  20258. if ($29) {
  20259. label = 11;
  20260. break L9;
  20261. }
  20262. $30 = (($28) + 3)|0;
  20263. $31 = (($$06678) + -1)|0;
  20264. $32 = (($2) + ($31)|0);
  20265. $33 = HEAP8[$32>>0]|0;
  20266. $$0 = $33;$$061 = $30;
  20267. break;
  20268. }
  20269. case 17: {
  20270. $34 = (_stbi__zreceive($0,3)|0);
  20271. $35 = (($34) + 3)|0;
  20272. $$0 = 0;$$061 = $35;
  20273. break;
  20274. }
  20275. case 18: {
  20276. $36 = (_stbi__zreceive($0,7)|0);
  20277. $37 = (($36) + 11)|0;
  20278. $$0 = 0;$$061 = $37;
  20279. break;
  20280. }
  20281. default: {
  20282. label = 14;
  20283. break L9;
  20284. }
  20285. }
  20286. $38 = (($10) - ($$06678))|0;
  20287. $39 = ($38|0)<($$061|0);
  20288. if ($39) {
  20289. label = 17;
  20290. break;
  20291. }
  20292. $40 = (($2) + ($$06678)|0);
  20293. _memset(($40|0),($$0|0),($$061|0))|0;
  20294. $41 = (($$061) + ($$06678))|0;
  20295. $$066$be = $41;
  20296. }
  20297. $42 = ($10|0)>($$066$be|0);
  20298. if ($42) {
  20299. $$06678 = $$066$be;
  20300. } else {
  20301. $$066$lcssa = $$066$be;
  20302. break L8;
  20303. }
  20304. }
  20305. if ((label|0) == 6) {
  20306. _stbi__err(10691);
  20307. $$4 = 0;
  20308. STACKTOP = sp;return ($$4|0);
  20309. }
  20310. else if ((label|0) == 11) {
  20311. _stbi__err(10691);
  20312. $$4 = 0;
  20313. STACKTOP = sp;return ($$4|0);
  20314. }
  20315. else if ((label|0) == 14) {
  20316. ___assert_fail((10707|0),(9469|0),4006,(10715|0));
  20317. // unreachable;
  20318. }
  20319. else if ((label|0) == 17) {
  20320. _stbi__err(10691);
  20321. $$4 = 0;
  20322. STACKTOP = sp;return ($$4|0);
  20323. }
  20324. } else {
  20325. $$066$lcssa = 0;
  20326. }
  20327. } while(0);
  20328. $43 = ($10|0)==($$066$lcssa|0);
  20329. if (!($43)) {
  20330. _stbi__err(10691);
  20331. $$4 = 0;
  20332. STACKTOP = sp;return ($$4|0);
  20333. }
  20334. $44 = ((($0)) + 32|0);
  20335. $45 = (_stbi__zbuild_huffman($44,$2,$5)|0);
  20336. $46 = ($45|0)==(0);
  20337. if ($46) {
  20338. $$4 = 0;
  20339. STACKTOP = sp;return ($$4|0);
  20340. }
  20341. $47 = ((($0)) + 2052|0);
  20342. $48 = (($2) + ($5)|0);
  20343. $49 = (_stbi__zbuild_huffman($47,$48,$7)|0);
  20344. $not$ = ($49|0)!=(0);
  20345. $$ = $not$&1;
  20346. $$4 = $$;
  20347. STACKTOP = sp;return ($$4|0);
  20348. }
  20349. function _stbi__parse_huffman_block($0) {
  20350. $0 = $0|0;
  20351. 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;
  20352. 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;
  20353. 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;
  20354. var $56 = 0, $57 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $scevgep = 0, $scevgep92 = 0, label = 0, sp = 0;
  20355. sp = STACKTOP;
  20356. $1 = ((($0)) + 16|0);
  20357. $2 = HEAP32[$1>>2]|0;
  20358. $3 = ((($0)) + 32|0);
  20359. $4 = ((($0)) + 24|0);
  20360. $5 = ((($0)) + 2052|0);
  20361. $6 = ((($0)) + 20|0);
  20362. $7 = ((($0)) + 24|0);
  20363. $$070 = $2;
  20364. while(1) {
  20365. $10 = (_stbi__zhuffman_decode($0,$3)|0);
  20366. $11 = ($10|0)<(256);
  20367. if ($11) {
  20368. $12 = ($10|0)<(0);
  20369. if ($12) {
  20370. label = 6;
  20371. break;
  20372. }
  20373. $13 = HEAP32[$4>>2]|0;
  20374. $14 = ($$070>>>0)<($13>>>0);
  20375. if ($14) {
  20376. $$171 = $$070;
  20377. } else {
  20378. $15 = (_stbi__zexpand($0,$$070,1)|0);
  20379. $16 = ($15|0)==(0);
  20380. if ($16) {
  20381. $$3$ph = 0;
  20382. label = 28;
  20383. break;
  20384. }
  20385. $17 = HEAP32[$1>>2]|0;
  20386. $$171 = $17;
  20387. }
  20388. $18 = $10&255;
  20389. $19 = ((($$171)) + 1|0);
  20390. HEAP8[$$171>>0] = $18;
  20391. $$070 = $19;
  20392. continue;
  20393. }
  20394. $20 = ($10|0)==(256);
  20395. if ($20) {
  20396. label = 12;
  20397. break;
  20398. }
  20399. $21 = (($10) + -257)|0;
  20400. $22 = (3240 + ($21<<2)|0);
  20401. $23 = HEAP32[$22>>2]|0;
  20402. $24 = (($10) + -265)|0;
  20403. $25 = ($24>>>0)<(20);
  20404. if ($25) {
  20405. $26 = (3116 + ($21<<2)|0);
  20406. $27 = HEAP32[$26>>2]|0;
  20407. $28 = (_stbi__zreceive($0,$27)|0);
  20408. $29 = (($28) + ($23))|0;
  20409. $$064 = $29;
  20410. } else {
  20411. $$064 = $23;
  20412. }
  20413. $30 = (_stbi__zhuffman_decode($0,$5)|0);
  20414. $31 = ($30|0)<(0);
  20415. if ($31) {
  20416. label = 16;
  20417. break;
  20418. }
  20419. $32 = (3492 + ($30<<2)|0);
  20420. $33 = HEAP32[$32>>2]|0;
  20421. $34 = (($30) + -4)|0;
  20422. $35 = ($34>>>0)<(26);
  20423. if ($35) {
  20424. $36 = (3364 + ($30<<2)|0);
  20425. $37 = HEAP32[$36>>2]|0;
  20426. $38 = (_stbi__zreceive($0,$37)|0);
  20427. $39 = (($38) + ($33))|0;
  20428. $$063 = $39;
  20429. } else {
  20430. $$063 = $33;
  20431. }
  20432. $40 = HEAP32[$6>>2]|0;
  20433. $41 = $$070;
  20434. $42 = (($41) - ($40))|0;
  20435. $43 = ($42|0)<($$063|0);
  20436. if ($43) {
  20437. label = 20;
  20438. break;
  20439. }
  20440. $44 = (($$070) + ($$064)|0);
  20441. $45 = HEAP32[$7>>2]|0;
  20442. $46 = ($44>>>0)>($45>>>0);
  20443. if ($46) {
  20444. $47 = (_stbi__zexpand($0,$$070,$$064)|0);
  20445. $48 = ($47|0)==(0);
  20446. if ($48) {
  20447. $$3$ph = 0;
  20448. label = 28;
  20449. break;
  20450. }
  20451. $49 = HEAP32[$1>>2]|0;
  20452. $$272 = $49;
  20453. } else {
  20454. $$272 = $$070;
  20455. }
  20456. $50 = (0 - ($$063))|0;
  20457. $9 = (($$272) + ($50)|0);
  20458. $51 = ($$063|0)==(1);
  20459. $52 = ($$064|0)!=(0);
  20460. if ($51) {
  20461. if (!($52)) {
  20462. $$070 = $$272;
  20463. continue;
  20464. }
  20465. $8 = HEAP8[$9>>0]|0;
  20466. _memset(($$272|0),($8|0),($$064|0))|0;
  20467. $scevgep92 = (($$272) + ($$064)|0);
  20468. $$070 = $scevgep92;
  20469. continue;
  20470. }
  20471. if ($52) {
  20472. $$067 = $9;$$266 = $$064;$$5 = $$272;
  20473. } else {
  20474. $$070 = $$272;
  20475. continue;
  20476. }
  20477. while(1) {
  20478. $53 = ((($$067)) + 1|0);
  20479. $54 = HEAP8[$$067>>0]|0;
  20480. $55 = ((($$5)) + 1|0);
  20481. HEAP8[$$5>>0] = $54;
  20482. $56 = (($$266) + -1)|0;
  20483. $57 = ($56|0)==(0);
  20484. if ($57) {
  20485. break;
  20486. } else {
  20487. $$067 = $53;$$266 = $56;$$5 = $55;
  20488. }
  20489. }
  20490. $scevgep = (($$272) + ($$064)|0);
  20491. $$070 = $scevgep;
  20492. }
  20493. if ((label|0) == 6) {
  20494. _stbi__err(10516);
  20495. $$3$ph = 0;
  20496. return ($$3$ph|0);
  20497. }
  20498. else if ((label|0) == 12) {
  20499. HEAP32[$1>>2] = $$070;
  20500. $$3$ph = 1;
  20501. return ($$3$ph|0);
  20502. }
  20503. else if ((label|0) == 16) {
  20504. _stbi__err(10516);
  20505. $$3$ph = 0;
  20506. return ($$3$ph|0);
  20507. }
  20508. else if ((label|0) == 20) {
  20509. _stbi__err(10533);
  20510. $$3$ph = 0;
  20511. return ($$3$ph|0);
  20512. }
  20513. else if ((label|0) == 28) {
  20514. return ($$3$ph|0);
  20515. }
  20516. return (0)|0;
  20517. }
  20518. function _stbi__zhuffman_decode($0,$1) {
  20519. $0 = $0|0;
  20520. $1 = $1|0;
  20521. 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;
  20522. sp = STACKTOP;
  20523. $2 = ((($0)) + 8|0);
  20524. $3 = HEAP32[$2>>2]|0;
  20525. $4 = ($3|0)<(16);
  20526. if ($4) {
  20527. _stbi__fill_bits($0);
  20528. }
  20529. $5 = ((($0)) + 12|0);
  20530. $6 = HEAP32[$5>>2]|0;
  20531. $7 = $6 & 511;
  20532. $8 = (($1) + ($7<<1)|0);
  20533. $9 = HEAP16[$8>>1]|0;
  20534. $10 = $9&65535;
  20535. $11 = ($9<<16>>16)==(0);
  20536. if ($11) {
  20537. $17 = (_stbi__zhuffman_decode_slowpath($0,$1)|0);
  20538. $$0 = $17;
  20539. return ($$0|0);
  20540. } else {
  20541. $12 = $10 >>> 9;
  20542. $13 = $6 >>> $12;
  20543. HEAP32[$5>>2] = $13;
  20544. $14 = HEAP32[$2>>2]|0;
  20545. $15 = (($14) - ($12))|0;
  20546. HEAP32[$2>>2] = $15;
  20547. $16 = $10 & 511;
  20548. $$0 = $16;
  20549. return ($$0|0);
  20550. }
  20551. return (0)|0;
  20552. }
  20553. function _stbi__zexpand($0,$1,$2) {
  20554. $0 = $0|0;
  20555. $1 = $1|0;
  20556. $2 = $2|0;
  20557. 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;
  20558. var $9 = 0, label = 0, sp = 0;
  20559. sp = STACKTOP;
  20560. $3 = ((($0)) + 16|0);
  20561. HEAP32[$3>>2] = $1;
  20562. $4 = ((($0)) + 28|0);
  20563. $5 = HEAP32[$4>>2]|0;
  20564. $6 = ($5|0)==(0);
  20565. if ($6) {
  20566. _stbi__err(10542);
  20567. $$0 = 0;
  20568. return ($$0|0);
  20569. }
  20570. $7 = ((($0)) + 20|0);
  20571. $8 = HEAP32[$7>>2]|0;
  20572. $9 = $1;
  20573. $10 = $8;
  20574. $11 = (($9) - ($10))|0;
  20575. $12 = ((($0)) + 24|0);
  20576. $13 = HEAP32[$12>>2]|0;
  20577. $14 = (($13) - ($10))|0;
  20578. $15 = (($11) + ($2))|0;
  20579. $$029 = $14;
  20580. while(1) {
  20581. $16 = ($15|0)>($$029|0);
  20582. $17 = $$029 << 1;
  20583. if ($16) {
  20584. $$029 = $17;
  20585. } else {
  20586. break;
  20587. }
  20588. }
  20589. $18 = (_realloc($8,$$029)|0);
  20590. $19 = ($18|0)==(0|0);
  20591. if ($19) {
  20592. _stbi__err(9524);
  20593. $$0 = 0;
  20594. return ($$0|0);
  20595. } else {
  20596. HEAP32[$7>>2] = $18;
  20597. $20 = (($18) + ($11)|0);
  20598. HEAP32[$3>>2] = $20;
  20599. $21 = (($18) + ($$029)|0);
  20600. HEAP32[$12>>2] = $21;
  20601. $$0 = 1;
  20602. return ($$0|0);
  20603. }
  20604. return (0)|0;
  20605. }
  20606. function _stbi__fill_bits($0) {
  20607. $0 = $0|0;
  20608. 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;
  20609. sp = STACKTOP;
  20610. $1 = ((($0)) + 12|0);
  20611. $2 = ((($0)) + 8|0);
  20612. while(1) {
  20613. $3 = HEAP32[$1>>2]|0;
  20614. $4 = HEAP32[$2>>2]|0;
  20615. $5 = 1 << $4;
  20616. $6 = ($3>>>0)<($5>>>0);
  20617. if (!($6)) {
  20618. label = 3;
  20619. break;
  20620. }
  20621. $7 = (_stbi__zget8($0)|0);
  20622. $8 = $7&255;
  20623. $9 = HEAP32[$2>>2]|0;
  20624. $10 = $8 << $9;
  20625. $11 = HEAP32[$1>>2]|0;
  20626. $12 = $11 | $10;
  20627. HEAP32[$1>>2] = $12;
  20628. $13 = (($9) + 8)|0;
  20629. HEAP32[$2>>2] = $13;
  20630. $14 = ($13|0)<(25);
  20631. if (!($14)) {
  20632. label = 5;
  20633. break;
  20634. }
  20635. }
  20636. if ((label|0) == 3) {
  20637. ___assert_fail((10638|0),(9469|0),3848,(10675|0));
  20638. // unreachable;
  20639. }
  20640. else if ((label|0) == 5) {
  20641. return;
  20642. }
  20643. }
  20644. function _stbi__zhuffman_decode_slowpath($0,$1) {
  20645. $0 = $0|0;
  20646. $1 = $1|0;
  20647. 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;
  20648. 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;
  20649. sp = STACKTOP;
  20650. $2 = ((($0)) + 12|0);
  20651. $3 = HEAP32[$2>>2]|0;
  20652. $4 = (_stbi__bit_reverse($3,16)|0);
  20653. $$025 = 10;
  20654. while(1) {
  20655. $5 = (((($1)) + 1056|0) + ($$025<<2)|0);
  20656. $6 = HEAP32[$5>>2]|0;
  20657. $7 = ($4|0)<($6|0);
  20658. $8 = (($$025) + 1)|0;
  20659. if ($7) {
  20660. break;
  20661. } else {
  20662. $$025 = $8;
  20663. }
  20664. }
  20665. $9 = ($$025|0)==(16);
  20666. if ($9) {
  20667. $$0 = -1;
  20668. return ($$0|0);
  20669. }
  20670. $10 = (16 - ($$025))|0;
  20671. $11 = $4 >> $10;
  20672. $12 = (((($1)) + 1024|0) + ($$025<<1)|0);
  20673. $13 = HEAP16[$12>>1]|0;
  20674. $14 = $13&65535;
  20675. $15 = (($11) - ($14))|0;
  20676. $16 = (((($1)) + 1124|0) + ($$025<<1)|0);
  20677. $17 = HEAP16[$16>>1]|0;
  20678. $18 = $17&65535;
  20679. $19 = (($15) + ($18))|0;
  20680. $20 = (((($1)) + 1156|0) + ($19)|0);
  20681. $21 = HEAP8[$20>>0]|0;
  20682. $22 = $21&255;
  20683. $23 = ($22|0)==($$025|0);
  20684. if (!($23)) {
  20685. ___assert_fail((10562|0),(9469|0),3876,(10578|0));
  20686. // unreachable;
  20687. }
  20688. $24 = HEAP32[$2>>2]|0;
  20689. $25 = $24 >>> $$025;
  20690. HEAP32[$2>>2] = $25;
  20691. $26 = ((($0)) + 8|0);
  20692. $27 = HEAP32[$26>>2]|0;
  20693. $28 = (($27) - ($$025))|0;
  20694. HEAP32[$26>>2] = $28;
  20695. $29 = (((($1)) + 1444|0) + ($19<<1)|0);
  20696. $30 = HEAP16[$29>>1]|0;
  20697. $31 = $30&65535;
  20698. $$0 = $31;
  20699. return ($$0|0);
  20700. }
  20701. function _stbi__bit_reverse($0,$1) {
  20702. $0 = $0|0;
  20703. $1 = $1|0;
  20704. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  20705. sp = STACKTOP;
  20706. $2 = ($1|0)<(17);
  20707. if ($2) {
  20708. $3 = (_stbi__bitreverse16($0)|0);
  20709. $4 = (16 - ($1))|0;
  20710. $5 = $3 >> $4;
  20711. return ($5|0);
  20712. } else {
  20713. ___assert_fail((10609|0),(9469|0),3766,(10620|0));
  20714. // unreachable;
  20715. }
  20716. return (0)|0;
  20717. }
  20718. function _stbi__bitreverse16($0) {
  20719. $0 = $0|0;
  20720. 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;
  20721. var sp = 0;
  20722. sp = STACKTOP;
  20723. $1 = $0 >>> 1;
  20724. $2 = $1 & 21845;
  20725. $3 = $0 << 1;
  20726. $4 = $3 & 43690;
  20727. $5 = $2 | $4;
  20728. $6 = $5 >>> 2;
  20729. $7 = $6 & 13107;
  20730. $8 = $5 << 2;
  20731. $9 = $8 & 52428;
  20732. $10 = $7 | $9;
  20733. $11 = $10 >>> 4;
  20734. $12 = $11 & 3855;
  20735. $13 = $10 << 4;
  20736. $14 = $13 & 61680;
  20737. $15 = $12 | $14;
  20738. $16 = $15 >>> 8;
  20739. $17 = $15 << 8;
  20740. $18 = $17 & 65280;
  20741. $19 = $18 | $16;
  20742. return ($19|0);
  20743. }
  20744. function _stbi__zget8($0) {
  20745. $0 = $0|0;
  20746. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  20747. sp = STACKTOP;
  20748. $1 = HEAP32[$0>>2]|0;
  20749. $2 = ((($0)) + 4|0);
  20750. $3 = HEAP32[$2>>2]|0;
  20751. $4 = ($1>>>0)<($3>>>0);
  20752. if (!($4)) {
  20753. $$0 = 0;
  20754. return ($$0|0);
  20755. }
  20756. $5 = ((($1)) + 1|0);
  20757. HEAP32[$0>>2] = $5;
  20758. $6 = HEAP8[$1>>0]|0;
  20759. $$0 = $6;
  20760. return ($$0|0);
  20761. }
  20762. function _stbi__refill_buffer($0) {
  20763. $0 = $0|0;
  20764. 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;
  20765. sp = STACKTOP;
  20766. $1 = ((($0)) + 16|0);
  20767. $2 = HEAP32[$1>>2]|0;
  20768. $3 = ((($0)) + 28|0);
  20769. $4 = HEAP32[$3>>2]|0;
  20770. $5 = ((($0)) + 40|0);
  20771. $6 = ((($0)) + 36|0);
  20772. $7 = HEAP32[$6>>2]|0;
  20773. $8 = (FUNCTION_TABLE_iiii[$2 & 15]($4,$5,$7)|0);
  20774. $9 = ($8|0)==(0);
  20775. if ($9) {
  20776. $10 = ((($0)) + 32|0);
  20777. HEAP32[$10>>2] = 0;
  20778. $11 = ((($0)) + 168|0);
  20779. HEAP32[$11>>2] = $5;
  20780. $12 = ((($0)) + 41|0);
  20781. $13 = ((($0)) + 172|0);
  20782. HEAP32[$13>>2] = $12;
  20783. HEAP8[$5>>0] = 0;
  20784. return;
  20785. } else {
  20786. $14 = ((($0)) + 168|0);
  20787. HEAP32[$14>>2] = $5;
  20788. $15 = (((($0)) + 40|0) + ($8)|0);
  20789. $16 = ((($0)) + 172|0);
  20790. HEAP32[$16>>2] = $15;
  20791. return;
  20792. }
  20793. }
  20794. function _stbi__rewind($0) {
  20795. $0 = $0|0;
  20796. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  20797. sp = STACKTOP;
  20798. $1 = ((($0)) + 176|0);
  20799. $2 = HEAP32[$1>>2]|0;
  20800. $3 = ((($0)) + 168|0);
  20801. HEAP32[$3>>2] = $2;
  20802. $4 = ((($0)) + 180|0);
  20803. $5 = HEAP32[$4>>2]|0;
  20804. $6 = ((($0)) + 172|0);
  20805. HEAP32[$6>>2] = $5;
  20806. return;
  20807. }
  20808. function _stbi__start_callbacks($0,$1,$2) {
  20809. $0 = $0|0;
  20810. $1 = $1|0;
  20811. $2 = $2|0;
  20812. var $10 = 0, $11 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  20813. sp = STACKTOP;
  20814. $3 = ((($0)) + 16|0);
  20815. ;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;
  20816. $4 = ((($0)) + 28|0);
  20817. HEAP32[$4>>2] = $2;
  20818. $5 = ((($0)) + 36|0);
  20819. HEAP32[$5>>2] = 128;
  20820. $6 = ((($0)) + 32|0);
  20821. HEAP32[$6>>2] = 1;
  20822. $7 = ((($0)) + 40|0);
  20823. $8 = ((($0)) + 176|0);
  20824. HEAP32[$8>>2] = $7;
  20825. _stbi__refill_buffer($0);
  20826. $9 = ((($0)) + 172|0);
  20827. $10 = HEAP32[$9>>2]|0;
  20828. $11 = ((($0)) + 180|0);
  20829. HEAP32[$11>>2] = $10;
  20830. return;
  20831. }
  20832. function _stbi__stdio_read($0,$1,$2) {
  20833. $0 = $0|0;
  20834. $1 = $1|0;
  20835. $2 = $2|0;
  20836. var $3 = 0, label = 0, sp = 0;
  20837. sp = STACKTOP;
  20838. $3 = (_fread($1,1,$2,$0)|0);
  20839. return ($3|0);
  20840. }
  20841. function _stbi__stdio_skip($0,$1) {
  20842. $0 = $0|0;
  20843. $1 = $1|0;
  20844. var label = 0, sp = 0;
  20845. sp = STACKTOP;
  20846. (_fseek($0,$1,1)|0);
  20847. return;
  20848. }
  20849. function _stbi__stdio_eof($0) {
  20850. $0 = $0|0;
  20851. var $1 = 0, label = 0, sp = 0;
  20852. sp = STACKTOP;
  20853. $1 = (_feof($0)|0);
  20854. return ($1|0);
  20855. }
  20856. function _LoadImage($0,$1) {
  20857. $0 = $0|0;
  20858. $1 = $1|0;
  20859. 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;
  20860. 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;
  20861. 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;
  20862. var $vararg_buffer1 = 0, $vararg_buffer4 = 0, $vararg_buffer9 = 0, $vararg_ptr7 = 0, $vararg_ptr8 = 0, label = 0, sp = 0;
  20863. sp = STACKTOP;
  20864. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  20865. $vararg_buffer9 = sp + 32|0;
  20866. $vararg_buffer4 = sp + 16|0;
  20867. $vararg_buffer1 = sp + 8|0;
  20868. $vararg_buffer = sp;
  20869. $2 = sp + 48|0;
  20870. $3 = sp + 44|0;
  20871. $4 = sp + 40|0;
  20872. $5 = sp + 36|0;
  20873. $6 = (_IsFileExtension($1,11715)|0);
  20874. $7 = ($6|0)==(0);
  20875. do {
  20876. if ($7) {
  20877. $19 = (_IsFileExtension($1,10937)|0);
  20878. $20 = ($19|0)==(0);
  20879. if ($20) {
  20880. HEAP32[$vararg_buffer1>>2] = $1;
  20881. _TraceLog(2,10942,$vararg_buffer1);
  20882. $$sroa$10$141 = 0;$$sroa$13$147 = 0;$$sroa$15$249 = 0;$$sroa$7$143 = 0;
  20883. break;
  20884. }
  20885. HEAP32[$3>>2] = 0;
  20886. HEAP32[$4>>2] = 0;
  20887. HEAP32[$5>>2] = 0;
  20888. $21 = (_fopen($1,12388)|0);
  20889. $22 = (_stbi_load_from_file($21,$3,$4,$5,0)|0);
  20890. (_fclose($21)|0);
  20891. $23 = HEAP32[$3>>2]|0;
  20892. $24 = HEAP32[$4>>2]|0;
  20893. $25 = HEAP32[$5>>2]|0;
  20894. switch ($25|0) {
  20895. case 1: {
  20896. $$sink = 1;
  20897. label = 11;
  20898. break;
  20899. }
  20900. case 2: {
  20901. $$sink = 2;
  20902. label = 11;
  20903. break;
  20904. }
  20905. case 3: {
  20906. $$sink = 4;
  20907. label = 11;
  20908. break;
  20909. }
  20910. case 4: {
  20911. $$sink = 7;
  20912. label = 11;
  20913. break;
  20914. }
  20915. default: {
  20916. $$sroa$15$1 = 0;
  20917. }
  20918. }
  20919. if ((label|0) == 11) {
  20920. $$sroa$15$1 = $$sink;
  20921. }
  20922. $$sroa$0$1 = $22;$$sroa$10$1 = $24;$$sroa$13$1 = 1;$$sroa$15$2 = $$sroa$15$1;$$sroa$7$1 = $23;
  20923. label = 14;
  20924. } else {
  20925. $8 = (_LoadResource($1,0)|0);
  20926. $9 = HEAP32[$8>>2]|0;
  20927. $10 = ($9|0)==(1);
  20928. if ($10) {
  20929. $11 = ((($8)) + 20|0);
  20930. $12 = HEAP32[$11>>2]|0;
  20931. $13 = ((($8)) + 4|0);
  20932. $14 = HEAP32[$13>>2]|0;
  20933. $15 = ((($8)) + 8|0);
  20934. $16 = HEAP32[$15>>2]|0;
  20935. $17 = ((($8)) + 12|0);
  20936. $18 = HEAP32[$17>>2]|0;
  20937. _LoadImagePro($2,$12,$14,$16,$18);
  20938. $$sroa$0$0$copyload = HEAP32[$2>>2]|0;
  20939. $$sroa$7$0$$sroa_idx15 = ((($2)) + 4|0);
  20940. $$sroa$7$0$copyload = HEAP32[$$sroa$7$0$$sroa_idx15>>2]|0;
  20941. $$sroa$10$0$$sroa_idx19 = ((($2)) + 8|0);
  20942. $$sroa$10$0$copyload = HEAP32[$$sroa$10$0$$sroa_idx19>>2]|0;
  20943. $$sroa$13$0$$sroa_idx23 = ((($2)) + 12|0);
  20944. $$sroa$13$0$copyload = HEAP32[$$sroa$13$0$$sroa_idx23>>2]|0;
  20945. $$sroa$15$0$$sroa_idx27 = ((($2)) + 16|0);
  20946. $$sroa$15$0$copyload = HEAP32[$$sroa$15$0$$sroa_idx27>>2]|0;
  20947. $$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;
  20948. } else {
  20949. HEAP32[$vararg_buffer>>2] = $1;
  20950. _TraceLog(2,10890,$vararg_buffer);
  20951. $$sroa$0$0 = 0;$$sroa$10$0 = 0;$$sroa$13$0 = 0;$$sroa$15$0 = 0;$$sroa$7$0 = 0;
  20952. }
  20953. _UnloadResource($8);
  20954. $$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;
  20955. label = 14;
  20956. }
  20957. } while(0);
  20958. if ((label|0) == 14) {
  20959. $26 = ($$sroa$0$1|0)==(0|0);
  20960. if ($26) {
  20961. $$sroa$10$141 = $$sroa$10$1;$$sroa$13$147 = $$sroa$13$1;$$sroa$15$249 = $$sroa$15$2;$$sroa$7$143 = $$sroa$7$1;
  20962. } else {
  20963. HEAP32[$vararg_buffer4>>2] = $1;
  20964. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  20965. HEAP32[$vararg_ptr7>>2] = $$sroa$7$1;
  20966. $vararg_ptr8 = ((($vararg_buffer4)) + 8|0);
  20967. HEAP32[$vararg_ptr8>>2] = $$sroa$10$1;
  20968. _TraceLog(0,10978,$vararg_buffer4);
  20969. $$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;
  20970. HEAP32[$0>>2] = $$sroa$0$144;
  20971. $$sroa$7$0$$sroa_idx16 = ((($0)) + 4|0);
  20972. HEAP32[$$sroa$7$0$$sroa_idx16>>2] = $$sroa$7$142;
  20973. $$sroa$10$0$$sroa_idx20 = ((($0)) + 8|0);
  20974. HEAP32[$$sroa$10$0$$sroa_idx20>>2] = $$sroa$10$140;
  20975. $$sroa$13$0$$sroa_idx24 = ((($0)) + 12|0);
  20976. HEAP32[$$sroa$13$0$$sroa_idx24>>2] = $$sroa$13$146;
  20977. $$sroa$15$0$$sroa_idx28 = ((($0)) + 16|0);
  20978. HEAP32[$$sroa$15$0$$sroa_idx28>>2] = $$sroa$15$248;
  20979. STACKTOP = sp;return;
  20980. }
  20981. }
  20982. HEAP32[$vararg_buffer9>>2] = $1;
  20983. _TraceLog(2,11017,$vararg_buffer9);
  20984. $$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;
  20985. HEAP32[$0>>2] = $$sroa$0$144;
  20986. $$sroa$7$0$$sroa_idx16 = ((($0)) + 4|0);
  20987. HEAP32[$$sroa$7$0$$sroa_idx16>>2] = $$sroa$7$142;
  20988. $$sroa$10$0$$sroa_idx20 = ((($0)) + 8|0);
  20989. HEAP32[$$sroa$10$0$$sroa_idx20>>2] = $$sroa$10$140;
  20990. $$sroa$13$0$$sroa_idx24 = ((($0)) + 12|0);
  20991. HEAP32[$$sroa$13$0$$sroa_idx24>>2] = $$sroa$13$146;
  20992. $$sroa$15$0$$sroa_idx28 = ((($0)) + 16|0);
  20993. HEAP32[$$sroa$15$0$$sroa_idx28>>2] = $$sroa$15$248;
  20994. STACKTOP = sp;return;
  20995. }
  20996. function _LoadResource($0,$1) {
  20997. $0 = $0|0;
  20998. $1 = $1|0;
  20999. 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;
  21000. 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;
  21001. 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;
  21002. 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;
  21003. 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;
  21004. sp = STACKTOP;
  21005. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  21006. $vararg_buffer8 = sp + 24|0;
  21007. $vararg_buffer4 = sp + 16|0;
  21008. $vararg_buffer1 = sp + 8|0;
  21009. $vararg_buffer = sp;
  21010. $2 = sp + 64|0;
  21011. $3 = sp + 32|0;
  21012. $4 = (_fopen($0,12388)|0);
  21013. $5 = ($4|0)==(0|0);
  21014. if ($5) {
  21015. HEAP32[$vararg_buffer>>2] = $0;
  21016. _TraceLog(2,11076,$vararg_buffer);
  21017. $$2 = 0;
  21018. STACKTOP = sp;return ($$2|0);
  21019. }
  21020. (_fread($2,1,1,$4)|0);
  21021. $6 = ((($2)) + 1|0);
  21022. (_fread($6,1,1,$4)|0);
  21023. $7 = ((($2)) + 2|0);
  21024. (_fread($7,1,1,$4)|0);
  21025. $8 = ((($2)) + 3|0);
  21026. (_fread($8,1,1,$4)|0);
  21027. $9 = ((($2)) + 4|0);
  21028. (_fread($9,2,1,$4)|0);
  21029. $10 = ((($2)) + 6|0);
  21030. (_fread($10,2,1,$4)|0);
  21031. $11 = HEAP8[$2>>0]|0;
  21032. $12 = ($11<<24>>24)==(114);
  21033. $13 = HEAP8[$6>>0]|0;
  21034. $14 = ($13<<24>>24)==(82);
  21035. $or$cond = $12 | $14;
  21036. $15 = HEAP8[$7>>0]|0;
  21037. $16 = ($15<<24>>24)==(69);
  21038. $or$cond60 = $or$cond | $16;
  21039. $17 = HEAP8[$8>>0]|0;
  21040. $18 = ($17<<24>>24)==(83);
  21041. $or$cond62 = $or$cond60 | $18;
  21042. if ($or$cond62) {
  21043. $19 = HEAP16[$10>>1]|0;
  21044. $20 = ($19<<16>>16)==(0);
  21045. if ($20) {
  21046. $$0$lcssa = 0;
  21047. } else {
  21048. $21 = ((($3)) + 7|0);
  21049. $22 = HEAP16[$10>>1]|0;
  21050. $23 = $22&65535;
  21051. $24 = ((($3)) + 8|0);
  21052. $25 = ((($3)) + 4|0);
  21053. $26 = ((($3)) + 16|0);
  21054. $27 = ((($3)) + 20|0);
  21055. $28 = ((($3)) + 24|0);
  21056. $29 = ((($3)) + 28|0);
  21057. $30 = ((($3)) + 8|0);
  21058. $31 = ((($3)) + 5|0);
  21059. $32 = ((($3)) + 12|0);
  21060. $$05665 = 0;
  21061. while(1) {
  21062. (_fread($3,32,1,$4)|0);
  21063. $36 = HEAP8[$21>>0]|0;
  21064. $37 = $36&255;
  21065. $38 = ($37*24)|0;
  21066. $39 = (_malloc($38)|0);
  21067. $40 = HEAP32[$3>>2]|0;
  21068. $41 = ($40|0)==($1|0);
  21069. if ($41) {
  21070. $42 = HEAP8[$21>>0]|0;
  21071. $43 = ($42<<24>>24)==(0);
  21072. if (!($43)) {
  21073. $$05764 = 0;
  21074. while(1) {
  21075. $44 = HEAP8[$25>>0]|0;
  21076. $45 = $44&255;
  21077. $46 = (($39) + (($$05764*24)|0)|0);
  21078. HEAP32[$46>>2] = $45;
  21079. $47 = HEAP32[$26>>2]|0;
  21080. $48 = (((($39) + (($$05764*24)|0)|0)) + 4|0);
  21081. HEAP32[$48>>2] = $47;
  21082. $49 = HEAP32[$27>>2]|0;
  21083. $50 = (((($39) + (($$05764*24)|0)|0)) + 8|0);
  21084. HEAP32[$50>>2] = $49;
  21085. $51 = HEAP32[$28>>2]|0;
  21086. $52 = (((($39) + (($$05764*24)|0)|0)) + 12|0);
  21087. HEAP32[$52>>2] = $51;
  21088. $53 = HEAP32[$29>>2]|0;
  21089. $54 = (((($39) + (($$05764*24)|0)|0)) + 16|0);
  21090. HEAP32[$54>>2] = $53;
  21091. $55 = HEAP32[$30>>2]|0;
  21092. $56 = (_malloc($55)|0);
  21093. (_fread($56,$55,1,$4)|0);
  21094. $57 = HEAP8[$31>>0]|0;
  21095. $58 = ($57<<24>>24)==(1);
  21096. if ($58) {
  21097. $59 = HEAP32[$30>>2]|0;
  21098. $60 = HEAP32[$32>>2]|0;
  21099. $61 = (_DecompressData($56,$59,$60)|0);
  21100. $62 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  21101. HEAP32[$62>>2] = $61;
  21102. _free($56);
  21103. } else {
  21104. $63 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  21105. HEAP32[$63>>2] = $56;
  21106. }
  21107. $64 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  21108. $65 = HEAP32[$64>>2]|0;
  21109. $66 = ($65|0)==(0|0);
  21110. if (!($66)) {
  21111. $67 = HEAP32[$3>>2]|0;
  21112. HEAP32[$vararg_buffer4>>2] = $0;
  21113. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  21114. HEAP32[$vararg_ptr7>>2] = $67;
  21115. _TraceLog(0,11173,$vararg_buffer4);
  21116. }
  21117. (_fread($3,32,1,$4)|0);
  21118. $68 = (($$05764) + 1)|0;
  21119. $69 = HEAP8[$21>>0]|0;
  21120. $70 = $69&255;
  21121. $71 = ($68|0)<($70|0);
  21122. if ($71) {
  21123. $$05764 = $68;
  21124. } else {
  21125. break;
  21126. }
  21127. }
  21128. }
  21129. } else {
  21130. $72 = HEAP32[$24>>2]|0;
  21131. (_fseek($4,$72,1)|0);
  21132. }
  21133. $73 = (($$05665) + 1)|0;
  21134. $74 = ($73|0)<($23|0);
  21135. if ($74) {
  21136. $$05665 = $73;
  21137. } else {
  21138. $$0$lcssa = $39;
  21139. break;
  21140. }
  21141. }
  21142. }
  21143. $33 = ((($$0$lcssa)) + 20|0);
  21144. $34 = HEAP32[$33>>2]|0;
  21145. $35 = ($34|0)==(0|0);
  21146. if ($35) {
  21147. HEAP32[$vararg_buffer8>>2] = $0;
  21148. $vararg_ptr11 = ((($vararg_buffer8)) + 4|0);
  21149. HEAP32[$vararg_ptr11>>2] = $1;
  21150. _TraceLog(2,11219,$vararg_buffer8);
  21151. $$1 = $$0$lcssa;
  21152. } else {
  21153. $$1 = $$0$lcssa;
  21154. }
  21155. } else {
  21156. HEAP32[$vararg_buffer1>>2] = $0;
  21157. _TraceLog(2,11127,$vararg_buffer1);
  21158. $$1 = 0;
  21159. }
  21160. (_fclose($4)|0);
  21161. $$2 = $$1;
  21162. STACKTOP = sp;return ($$2|0);
  21163. }
  21164. function _LoadImagePro($0,$1,$2,$3,$4) {
  21165. $0 = $0|0;
  21166. $1 = $1|0;
  21167. $2 = $2|0;
  21168. $3 = $3|0;
  21169. $4 = $4|0;
  21170. var $$byval_copy = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  21171. sp = STACKTOP;
  21172. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  21173. $$byval_copy = sp + 20|0;
  21174. $5 = sp;
  21175. HEAP32[$5>>2] = $1;
  21176. $6 = ((($5)) + 4|0);
  21177. HEAP32[$6>>2] = $2;
  21178. $7 = ((($5)) + 8|0);
  21179. HEAP32[$7>>2] = $3;
  21180. $8 = ((($5)) + 12|0);
  21181. HEAP32[$8>>2] = 1;
  21182. $9 = ((($5)) + 16|0);
  21183. HEAP32[$9>>2] = $4;
  21184. ;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;
  21185. _ImageCopy($0,$$byval_copy);
  21186. STACKTOP = sp;return;
  21187. }
  21188. function _UnloadResource($0) {
  21189. $0 = $0|0;
  21190. var $1 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  21191. sp = STACKTOP;
  21192. $1 = ((($0)) + 20|0);
  21193. $2 = HEAP32[$1>>2]|0;
  21194. $3 = ($2|0)==(0|0);
  21195. if ($3) {
  21196. return;
  21197. }
  21198. _free($2);
  21199. return;
  21200. }
  21201. function _ImageCopy($0,$1) {
  21202. $0 = $0|0;
  21203. $1 = $1|0;
  21204. 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;
  21205. 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;
  21206. sp = STACKTOP;
  21207. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  21208. $vararg_buffer = sp;
  21209. $2 = ((($1)) + 4|0);
  21210. $3 = HEAP32[$2>>2]|0;
  21211. $4 = ((($1)) + 8|0);
  21212. $5 = HEAP32[$4>>2]|0;
  21213. $6 = Math_imul($5, $3)|0;
  21214. $7 = ((($1)) + 16|0);
  21215. $8 = HEAP32[$7>>2]|0;
  21216. switch ($8|0) {
  21217. case 17: case 14: case 11: case 10: case 1: {
  21218. $$0 = $6;
  21219. break;
  21220. }
  21221. case 6: case 5: case 3: case 2: {
  21222. $9 = $6 << 1;
  21223. $$0 = $9;
  21224. break;
  21225. }
  21226. case 4: {
  21227. $10 = ($6*3)|0;
  21228. $$0 = $10;
  21229. break;
  21230. }
  21231. case 7: {
  21232. $11 = $6 << 2;
  21233. $$0 = $11;
  21234. break;
  21235. }
  21236. case 16: case 15: case 13: case 12: case 9: case 8: {
  21237. $12 = (($6|0) / 2)&-1;
  21238. $$0 = $12;
  21239. break;
  21240. }
  21241. case 18: {
  21242. $13 = (($6|0) / 4)&-1;
  21243. $$0 = $13;
  21244. break;
  21245. }
  21246. default: {
  21247. _TraceLog(2,11048,$vararg_buffer);
  21248. $$0 = $6;
  21249. }
  21250. }
  21251. $14 = (_malloc($$0)|0);
  21252. $15 = ($14|0)==(0|0);
  21253. if ($15) {
  21254. $$sroa$6$0 = 0;$$sroa$7$0 = 0;$$sroa$8$0 = 0;$$sroa$9$0 = 0;
  21255. } else {
  21256. $16 = HEAP32[$1>>2]|0;
  21257. _memcpy(($14|0),($16|0),($$0|0))|0;
  21258. $17 = HEAP32[$2>>2]|0;
  21259. $18 = HEAP32[$4>>2]|0;
  21260. $19 = ((($1)) + 12|0);
  21261. $20 = HEAP32[$19>>2]|0;
  21262. $21 = HEAP32[$7>>2]|0;
  21263. $$sroa$6$0 = $17;$$sroa$7$0 = $18;$$sroa$8$0 = $20;$$sroa$9$0 = $21;
  21264. }
  21265. HEAP32[$0>>2] = $14;
  21266. $$sroa$6$0$$sroa_idx10 = ((($0)) + 4|0);
  21267. HEAP32[$$sroa$6$0$$sroa_idx10>>2] = $$sroa$6$0;
  21268. $$sroa$7$0$$sroa_idx12 = ((($0)) + 8|0);
  21269. HEAP32[$$sroa$7$0$$sroa_idx12>>2] = $$sroa$7$0;
  21270. $$sroa$8$0$$sroa_idx14 = ((($0)) + 12|0);
  21271. HEAP32[$$sroa$8$0$$sroa_idx14>>2] = $$sroa$8$0;
  21272. $$sroa$9$0$$sroa_idx16 = ((($0)) + 16|0);
  21273. HEAP32[$$sroa$9$0$$sroa_idx16>>2] = $$sroa$9$0;
  21274. STACKTOP = sp;return;
  21275. }
  21276. function _DecompressData($0,$1,$2) {
  21277. $0 = $0|0;
  21278. $1 = $1|0;
  21279. $2 = $2|0;
  21280. 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;
  21281. sp = STACKTOP;
  21282. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  21283. $vararg_buffer10 = sp + 40|0;
  21284. $vararg_buffer7 = sp + 32|0;
  21285. $vararg_buffer5 = sp + 24|0;
  21286. $vararg_buffer3 = sp + 16|0;
  21287. $vararg_buffer1 = sp + 8|0;
  21288. $vararg_buffer = sp;
  21289. $3 = (_malloc($2)|0);
  21290. $4 = ($3|0)==(0|0);
  21291. if ($4) {
  21292. _TraceLog(2,11269,$vararg_buffer);
  21293. STACKTOP = sp;return ($3|0);
  21294. }
  21295. $5 = (_tinfl_decompress_mem_to_mem($3,$2,$0,$1,1)|0);
  21296. $6 = ($5|0)==(-1);
  21297. if ($6) {
  21298. _TraceLog(2,11308,$vararg_buffer1);
  21299. _free($3);
  21300. }
  21301. $7 = ($5|0)==($2|0);
  21302. if (!($7)) {
  21303. _TraceLog(2,11334,$vararg_buffer3);
  21304. HEAP32[$vararg_buffer5>>2] = $2;
  21305. _TraceLog(2,11397,$vararg_buffer5);
  21306. HEAP32[$vararg_buffer7>>2] = $5;
  21307. _TraceLog(2,11432,$vararg_buffer7);
  21308. }
  21309. HEAP32[$vararg_buffer10>>2] = $1;
  21310. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  21311. HEAP32[$vararg_ptr13>>2] = $5;
  21312. _TraceLog(0,11467,$vararg_buffer10);
  21313. STACKTOP = sp;return ($3|0);
  21314. }
  21315. function _tinfl_decompress_mem_to_mem($0,$1,$2,$3,$4) {
  21316. $0 = $0|0;
  21317. $1 = $1|0;
  21318. $2 = $2|0;
  21319. $3 = $3|0;
  21320. $4 = $4|0;
  21321. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  21322. sp = STACKTOP;
  21323. STACKTOP = STACKTOP + 11008|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(11008|0);
  21324. $5 = sp + 11000|0;
  21325. $6 = sp;
  21326. $7 = sp + 8|0;
  21327. HEAP32[$5>>2] = $1;
  21328. HEAP32[$6>>2] = $3;
  21329. HEAP32[$7>>2] = 0;
  21330. $8 = $4 & -7;
  21331. $9 = $8 | 4;
  21332. $10 = (_tinfl_decompress($7,$2,$6,$0,$0,$5,$9)|0);
  21333. $11 = ($10|0)!=(0);
  21334. $12 = HEAP32[$5>>2]|0;
  21335. $13 = $11 ? -1 : $12;
  21336. STACKTOP = sp;return ($13|0);
  21337. }
  21338. function _tinfl_decompress($0,$1,$2,$3,$4,$5,$6) {
  21339. $0 = $0|0;
  21340. $1 = $1|0;
  21341. $2 = $2|0;
  21342. $3 = $3|0;
  21343. $4 = $4|0;
  21344. $5 = $5|0;
  21345. $6 = $6|0;
  21346. 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;
  21347. 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;
  21348. 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;
  21349. 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;
  21350. 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;
  21351. 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;
  21352. 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;
  21353. 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;
  21354. 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;
  21355. 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;
  21356. 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;
  21357. 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;
  21358. 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;
  21359. 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;
  21360. 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;
  21361. 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;
  21362. 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;
  21363. 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;
  21364. 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;
  21365. 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;
  21366. 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;
  21367. 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;
  21368. 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;
  21369. 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;
  21370. 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;
  21371. 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;
  21372. 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;
  21373. 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;
  21374. 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;
  21375. 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;
  21376. 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;
  21377. 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;
  21378. 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;
  21379. 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;
  21380. 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;
  21381. 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;
  21382. 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;
  21383. 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;
  21384. 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;
  21385. 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;
  21386. 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;
  21387. 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;
  21388. 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;
  21389. 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;
  21390. 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;
  21391. 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;
  21392. 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;
  21393. 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;
  21394. 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;
  21395. 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;
  21396. 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;
  21397. 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;
  21398. 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;
  21399. 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;
  21400. 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;
  21401. 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;
  21402. 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;
  21403. 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;
  21404. 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;
  21405. 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;
  21406. 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;
  21407. 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;
  21408. 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;
  21409. 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;
  21410. 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;
  21411. 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;
  21412. 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;
  21413. 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;
  21414. 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;
  21415. 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;
  21416. 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;
  21417. 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;
  21418. 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;
  21419. 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;
  21420. 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;
  21421. 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;
  21422. 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;
  21423. 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;
  21424. 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;
  21425. 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;
  21426. 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;
  21427. 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;
  21428. 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;
  21429. 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;
  21430. 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;
  21431. 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;
  21432. 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;
  21433. 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;
  21434. 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;
  21435. 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;
  21436. 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;
  21437. 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;
  21438. 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;
  21439. 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;
  21440. 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;
  21441. 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;
  21442. 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;
  21443. sp = STACKTOP;
  21444. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  21445. $7 = sp + 64|0;
  21446. $8 = sp;
  21447. $9 = HEAP32[$2>>2]|0;
  21448. $10 = (($1) + ($9)|0);
  21449. $11 = HEAP32[$5>>2]|0;
  21450. $12 = (($4) + ($11)|0);
  21451. $13 = $6 & 4;
  21452. $14 = ($13|0)!=(0);
  21453. $15 = $4;
  21454. $16 = $3;
  21455. $17 = $16 ^ -1;
  21456. $18 = (($15) + ($17))|0;
  21457. $19 = (($18) + ($11))|0;
  21458. $$1753 = $14 ? -1 : $19;
  21459. $20 = (($$1753) + 1)|0;
  21460. $21 = $20 & $$1753;
  21461. $22 = ($21|0)!=(0);
  21462. $23 = ($4>>>0)<($3>>>0);
  21463. $or$cond1702 = $23 | $22;
  21464. if ($or$cond1702) {
  21465. HEAP32[$5>>2] = 0;
  21466. HEAP32[$2>>2] = 0;
  21467. $$0951 = -3;
  21468. STACKTOP = sp;return ($$0951|0);
  21469. }
  21470. $24 = ((($0)) + 4|0);
  21471. $25 = HEAP32[$24>>2]|0;
  21472. $26 = ((($0)) + 56|0);
  21473. $27 = HEAP32[$26>>2]|0;
  21474. $28 = ((($0)) + 32|0);
  21475. $29 = HEAP32[$28>>2]|0;
  21476. $30 = ((($0)) + 36|0);
  21477. $31 = HEAP32[$30>>2]|0;
  21478. $32 = ((($0)) + 40|0);
  21479. $33 = HEAP32[$32>>2]|0;
  21480. $34 = ((($0)) + 60|0);
  21481. $35 = HEAP32[$34>>2]|0;
  21482. $36 = HEAP32[$0>>2]|0;
  21483. L5: do {
  21484. switch ($36|0) {
  21485. case 0: {
  21486. $37 = ((($0)) + 12|0);
  21487. HEAP32[$37>>2] = 0;
  21488. $38 = ((($0)) + 8|0);
  21489. HEAP32[$38>>2] = 0;
  21490. $39 = ((($0)) + 28|0);
  21491. HEAP32[$39>>2] = 1;
  21492. $40 = ((($0)) + 16|0);
  21493. HEAP32[$40>>2] = 1;
  21494. $41 = $6 & 1;
  21495. $42 = ($41|0)==(0);
  21496. if ($42) {
  21497. $$01416 = $35;$$01607 = $4;$$41511 = $1;$$5 = 0;$$51102 = 0;$$51208 = 0;$$51314 = 0;$$5996 = 0;
  21498. label = 14;
  21499. } else {
  21500. $43 = ($9|0)<(1);
  21501. if ($43) {
  21502. $$01097 = 0;$$01203 = 0;$$01309 = 0;$$0987 = 0;$$0991 = 0;
  21503. label = 6;
  21504. } else {
  21505. $$11098$ph = 0;$$11204$ph = 0;$$11310$ph = 0;$$1988$ph = 0;$$1992$ph = 0;
  21506. label = 8;
  21507. }
  21508. }
  21509. break;
  21510. }
  21511. case 1: {
  21512. $46 = ($9|0)>(0);
  21513. if ($46) {
  21514. $$11098$ph = $31;$$11204$ph = $33;$$11310$ph = $27;$$1988$ph = $25;$$1992$ph = $29;
  21515. label = 8;
  21516. } else {
  21517. $$01097 = $31;$$01203 = $33;$$01309 = $27;$$0987 = $25;$$0991 = $29;
  21518. label = 6;
  21519. }
  21520. break;
  21521. }
  21522. case 2: {
  21523. $53 = ($9|0)>(0);
  21524. if ($53) {
  21525. $$31206$ph = $33;$$31312$ph = $27;$$3990$ph = $25;$$3994$ph = $29;$$sink1705 = $1;
  21526. label = 12;
  21527. } else {
  21528. $$11508 = $1;$$21099 = $31;$$21205 = $33;$$21311 = $27;$$2989 = $25;$$2993 = $29;
  21529. label = 10;
  21530. }
  21531. break;
  21532. }
  21533. case 36: {
  21534. $$0960 = -1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 36;
  21535. label = 243;
  21536. break;
  21537. }
  21538. case 3: {
  21539. $75 = ($9|0)>(0);
  21540. if ($75) {
  21541. $$31419$ph = $35;$$31610$ph = $4;$$8$ph = $25;$$81105$ph = $31;$$81211$ph = $33;$$81317$ph = $27;$$8999$ph = $29;$$sink1710 = $1;
  21542. label = 18;
  21543. } else {
  21544. $$21418 = $35;$$21609 = $4;$$61513 = $1;$$7 = $25;$$71104 = $31;$$71210 = $33;$$71316 = $27;$$7998 = $29;
  21545. label = 16;
  21546. }
  21547. break;
  21548. }
  21549. case 5: {
  21550. $90 = ($9|0)>(0);
  21551. if ($90) {
  21552. $91 = ((($1)) + 1|0);
  21553. $92 = HEAP8[$1>>0]|0;
  21554. $93 = $92&255;
  21555. $$01412 = $93;$$111518 = $91;
  21556. } else {
  21557. $88 = $6 & 2;
  21558. $89 = ($88|0)==(0);
  21559. if ($89) {
  21560. $$01412 = 0;$$111518 = $1;
  21561. } else {
  21562. $$0960 = 1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 5;
  21563. label = 243;
  21564. break L5;
  21565. }
  21566. }
  21567. $94 = $$01412 << $25;
  21568. $95 = $94 | $27;
  21569. $96 = (($25) + 8)|0;
  21570. $$121519 = $$111518;$$13 = $96;$$131004 = $29;$$131216 = $33;$$131322 = $95;$$81424 = $35;$$81615 = $4;
  21571. label = 25;
  21572. break;
  21573. }
  21574. case 6: {
  21575. $106 = ($9|0)>(0);
  21576. if ($106) {
  21577. $$121428$ph = $35;$$121619$ph = $4;$$161113$ph = $31;$$17$ph = $25;$$171008$ph = $29;$$171220$ph = $33;$$171326$ph = $27;$$sink1713 = $1;
  21578. label = 32;
  21579. } else {
  21580. $$111427 = $35;$$111618 = $4;$$151112 = $31;$$151522 = $1;$$16 = $25;$$161007 = $29;$$161219 = $33;$$161325 = $27;
  21581. label = 30;
  21582. }
  21583. break;
  21584. }
  21585. case 7: {
  21586. $120 = ($9|0)>(0);
  21587. if ($120) {
  21588. $121 = ((($1)) + 1|0);
  21589. $122 = HEAP8[$1>>0]|0;
  21590. $$151431 = $35;$$151622 = $4;$$191116 = $31;$$191526 = $121;$$20 = $25;$$201011 = $29;$$201223 = $33;$$201329 = $27;$$sink12 = $122;
  21591. label = 39;
  21592. } else {
  21593. $$141430 = $35;$$141621 = $4;$$181115 = $31;$$181525 = $1;$$19 = $25;$$191010 = $29;$$191222 = $33;$$191328 = $27;
  21594. label = 36;
  21595. }
  21596. break;
  21597. }
  21598. case 39: {
  21599. $$171433 = $35;$$171624 = $4;$$211118 = $31;$$211528 = $1;$$22 = $25;$$221013 = $29;$$221225 = $33;$$221331 = $27;
  21600. label = 43;
  21601. break;
  21602. }
  21603. case 51: {
  21604. $152 = ($9|0)>(0);
  21605. if ($152) {
  21606. $$211437$ph = $35;$$211628$ph = $4;$$251122$ph = $31;$$26$ph = $25;$$261017$ph = $29;$$261229$ph = $33;$$261335$ph = $27;$$sink1716 = $1;
  21607. label = 49;
  21608. } else {
  21609. $$201436 = $35;$$201627 = $4;$$241121 = $31;$$241531 = $1;$$25 = $25;$$251016 = $29;$$251228 = $33;$$251334 = $27;
  21610. label = 47;
  21611. }
  21612. break;
  21613. }
  21614. case 52: {
  21615. $$231439 = $35;$$231630 = $4;$$271018 = $29;$$271124 = $31;$$271534 = $1;$$28 = $25;$$281231 = $33;$$281337 = $27;
  21616. label = 52;
  21617. break;
  21618. }
  21619. case 9: {
  21620. $$251441 = $35;$$251632 = $4;$$291020 = $29;$$291126 = $31;$$291536 = $1;$$30 = $25;$$301233 = $33;$$301339 = $27;
  21621. label = 55;
  21622. break;
  21623. }
  21624. case 38: {
  21625. $$261442 = $35;$$261633 = $4;$$301021 = $29;$$301127 = $31;$$301537 = $1;$$31 = $25;$$311234 = $33;$$311340 = $27;
  21626. label = 56;
  21627. break;
  21628. }
  21629. case 40: {
  21630. $$271443 = $35;$$271634 = $4;$$311022 = $29;$$311128 = $31;$$311538 = $1;$$32 = $25;$$321235 = $33;$$321341 = $27;
  21631. label = 58;
  21632. break;
  21633. }
  21634. case 10: {
  21635. $$281444 = $35;$$281635 = $4;$$321023 = $29;$$321129 = $31;$$321539 = $1;$$33 = $25;$$331236 = $33;$$331342 = $27;
  21636. label = 60;
  21637. break;
  21638. }
  21639. case 11: {
  21640. $193 = ($9|0)>(0);
  21641. if ($193) {
  21642. $$321448$ph = $35;$$321639$ph = $4;$$361027$ph = $29;$$361133$ph = $31;$$37$ph = $25;$$371240$ph = $33;$$371346$ph = $27;$$sink1719 = $1;
  21643. label = 66;
  21644. } else {
  21645. $$311447 = $35;$$311638 = $4;$$351026 = $29;$$351132 = $31;$$351542 = $1;$$36 = $25;$$361239 = $33;$$361345 = $27;
  21646. label = 64;
  21647. }
  21648. break;
  21649. }
  21650. case 14: {
  21651. $224 = ($9|0)>(0);
  21652. if ($224) {
  21653. $$371453$ph = $35;$$371644$ph = $4;$$411032$ph = $29;$$411138$ph = $31;$$42$ph = $25;$$421245$ph = $33;$$421351$ph = $27;$$sink1722 = $1;
  21654. label = 75;
  21655. } else {
  21656. $$361452 = $35;$$361643 = $4;$$401031 = $29;$$401137 = $31;$$401547 = $1;$$41 = $25;$$411244 = $33;$$411350 = $27;
  21657. label = 73;
  21658. }
  21659. break;
  21660. }
  21661. case 35: {
  21662. $$401456 = $35;$$401647 = $4;$$441035 = $29;$$441141 = $31;$$441551 = $1;$$45 = $25;$$451248 = $33;$$451354 = $27;
  21663. label = 86;
  21664. break;
  21665. }
  21666. case 16: {
  21667. $452 = ($9|0)>(0);
  21668. if ($452) {
  21669. $$441460$ph = $35;$$441651$ph = $4;$$481039$ph = $29;$$481145$ph = $31;$$49$ph = $25;$$491252$ph = $33;$$491358$ph = $27;$$sink1729 = $1;
  21670. label = 116;
  21671. } else {
  21672. $$431459 = $35;$$431650 = $4;$$471038 = $29;$$471144 = $31;$$471554 = $1;$$48 = $25;$$481251 = $33;$$481357 = $27;
  21673. label = 114;
  21674. }
  21675. break;
  21676. }
  21677. case 17: {
  21678. $$461462 = $35;$$461653 = $4;$$491040 = $29;$$501147 = $31;$$501557 = $1;$$51 = $25;$$511254 = $33;$$511360 = $27;
  21679. label = 125;
  21680. break;
  21681. }
  21682. case 18: {
  21683. $503 = ($9|0)>(0);
  21684. if ($503) {
  21685. $$491465$ph = $35;$$491656$ph = $4;$$521043$ph = $29;$$531150$ph = $31;$$54$ph = $25;$$541257$ph = $33;$$541363$ph = $27;$$sink1732 = $1;
  21686. label = 130;
  21687. } else {
  21688. $$481464 = $35;$$481655 = $4;$$511042 = $29;$$521149 = $31;$$521559 = $1;$$53 = $25;$$531256 = $33;$$531362 = $27;
  21689. label = 128;
  21690. }
  21691. break;
  21692. }
  21693. case 21: {
  21694. $$511467 = $35;$$511658 = $4;$$541045 = $29;$$551152 = $31;$$551562 = $1;$$56 = $25;$$561259 = $33;$$561365 = $27;
  21695. label = 136;
  21696. break;
  21697. }
  21698. case 23: {
  21699. $572 = ($9|0)>(0);
  21700. if ($572) {
  21701. $$571473$ph = $35;$$571664$ph = $4;$$601051$ph = $29;$$611158$ph = $31;$$62$ph = $25;$$621265$ph = $33;$$621371$ph = $27;$$sink1736 = $1;
  21702. label = 153;
  21703. } else {
  21704. $$561472 = $35;$$561663 = $4;$$591050 = $29;$$601157 = $31;$$601567 = $1;$$61 = $25;$$611264 = $33;$$611370 = $27;
  21705. label = 151;
  21706. }
  21707. break;
  21708. }
  21709. case 24: {
  21710. $$591475 = $35;$$591666 = $4;$$621053 = $29;$$621159 = $31;$$631570 = $1;$$64 = $25;$$641267 = $33;$$641373 = $27;
  21711. label = 160;
  21712. break;
  21713. }
  21714. case 25: {
  21715. $696 = ($9|0)>(0);
  21716. if ($696) {
  21717. $$631479$ph = $35;$$641671$ph = $4;$$661057$ph = $29;$$671164$ph = $31;$$681271$ph = $33;$$71$ph = $25;$$711380$ph = $27;$$sink1739 = $1;
  21718. label = 182;
  21719. } else {
  21720. $$621478 = $35;$$631670 = $4;$$651056 = $29;$$661163 = $31;$$671270 = $33;$$691576 = $1;$$70 = $25;$$701379 = $27;
  21721. label = 180;
  21722. }
  21723. break;
  21724. }
  21725. case 26: {
  21726. $737 = ($9|0)>(0);
  21727. if ($737) {
  21728. $$681484$ph = $35;$$691676$ph = $4;$$711062$ph = $29;$$721169$ph = $31;$$731276$ph = $33;$$76$ph = $25;$$761385$ph = $27;$$sink1743 = $1;
  21729. label = 195;
  21730. } else {
  21731. $$671483 = $35;$$681675 = $4;$$701061 = $29;$$711168 = $31;$$721275 = $33;$$741581 = $1;$$75 = $25;$$751384 = $27;
  21732. label = 193;
  21733. }
  21734. break;
  21735. }
  21736. case 27: {
  21737. $784 = ($9|0)>(0);
  21738. if ($784) {
  21739. $$721488$ph = $35;$$731680$ph = $4;$$741065$ph = $29;$$761173$ph = $31;$$761279$ph = $33;$$80$ph = $25;$$801389$ph = $27;$$sink1746 = $1;
  21740. label = 206;
  21741. } else {
  21742. $$711487 = $35;$$721679 = $4;$$731064 = $29;$$751172 = $31;$$751278 = $33;$$781585 = $1;$$79 = $25;$$791388 = $27;
  21743. label = 204;
  21744. }
  21745. break;
  21746. }
  21747. case 37: {
  21748. $$731489 = $35;$$761683 = $4;$$771068 = $29;$$791176 = $31;$$791282 = $33;$$821589 = $1;$$83 = $25;$$831392 = $27;
  21749. label = 210;
  21750. break;
  21751. }
  21752. case 53: {
  21753. $$751491 = $35;$$781685 = $4;$$791070 = $29;$$811178 = $31;$$811284 = $33;$$841591 = $1;$$85 = $25;$$851394 = $27;
  21754. label = 213;
  21755. break;
  21756. }
  21757. case 32: {
  21758. $842 = ($9|0)>(0);
  21759. if ($842) {
  21760. $843 = ((($1)) + 1|0);
  21761. $844 = HEAP8[$1>>0]|0;
  21762. $845 = $844&255;
  21763. $$0949 = $845;$$881595 = $843;
  21764. } else {
  21765. $840 = $6 & 2;
  21766. $841 = ($840|0)==(0);
  21767. if ($841) {
  21768. $$0949 = 0;$$881595 = $1;
  21769. } else {
  21770. $$0960 = 1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 32;
  21771. label = 243;
  21772. break L5;
  21773. }
  21774. }
  21775. $846 = $$0949 << $25;
  21776. $847 = $846 | $27;
  21777. $848 = (($25) + 8)|0;
  21778. $$801496 = $35;$$841075 = $29;$$841691 = $4;$$861289 = $33;$$891596 = $$881595;$$90 = $848;$$901399 = $847;
  21779. label = 226;
  21780. break;
  21781. }
  21782. case 41: {
  21783. $858 = ($9|0)>(0);
  21784. if ($858) {
  21785. $$841500$ph = $35;$$881079$ph = $29;$$881695$ph = $4;$$901187$ph = $31;$$901293$ph = $33;$$94$ph = $25;$$941403$ph = $27;$$sink1750 = $1;
  21786. label = 233;
  21787. } else {
  21788. $$831499 = $35;$$871078 = $29;$$871694 = $4;$$891186 = $31;$$891292 = $33;$$921599 = $1;$$93 = $25;$$931402 = $27;
  21789. label = 231;
  21790. }
  21791. break;
  21792. }
  21793. case 42: {
  21794. $871 = ($9|0)>(0);
  21795. if ($871) {
  21796. $872 = ((($1)) + 1|0);
  21797. $873 = HEAP8[$1>>0]|0;
  21798. $874 = $873&255;
  21799. $$0948 = $874;$$871503 = $35;$$911082 = $29;$$911698 = $4;$$931190 = $31;$$931296 = $33;$$961603 = $872;$$97 = $25;$$971406 = $27;
  21800. label = 241;
  21801. } else {
  21802. $$861502 = $35;$$901081 = $29;$$901697 = $4;$$921189 = $31;$$921295 = $33;$$951602 = $1;$$96 = $25;$$961405 = $27;
  21803. label = 237;
  21804. }
  21805. break;
  21806. }
  21807. case 34: {
  21808. $$881504 = $35;$$921083 = $29;$$921699 = $4;$$941191 = $31;$$941297 = $33;$$971604 = $1;$$98 = $25;$$981407 = $27;
  21809. label = 242;
  21810. break;
  21811. }
  21812. default: {
  21813. $$100 = $25;$$1001409 = $27;$$1961 = -1;$$901506 = $35;$$941085 = $29;$$941701 = $4;$$961193 = $31;$$961299 = $33;$$991606 = $1;
  21814. label = 244;
  21815. }
  21816. }
  21817. } while(0);
  21818. if ((label|0) == 6) {
  21819. $44 = $6 & 2;
  21820. $45 = ($44|0)==(0);
  21821. if ($45) {
  21822. $$01507 = $1;$$11098 = $$01097;$$11204 = $$01203;$$11310 = $$01309;$$1988 = $$0987;$$1992 = $$0991;$$sink3$shrunk = 0;
  21823. label = 9;
  21824. } else {
  21825. $$0960 = 1;$$891505 = $35;$$931084 = $$0991;$$931700 = $4;$$951192 = $$01097;$$951298 = $$01203;$$981605 = $1;$$99 = $$0987;$$991408 = $$01309;$$sink30 = 1;
  21826. label = 243;
  21827. }
  21828. }
  21829. else if ((label|0) == 8) {
  21830. $47 = ((($1)) + 1|0);
  21831. $48 = HEAP8[$1>>0]|0;
  21832. $$01507 = $47;$$11098 = $$11098$ph;$$11204 = $$11204$ph;$$11310 = $$11310$ph;$$1988 = $$1988$ph;$$1992 = $$1992$ph;$$sink3$shrunk = $48;
  21833. label = 9;
  21834. }
  21835. if ((label|0) == 9) {
  21836. $$sink3 = $$sink3$shrunk&255;
  21837. $49 = ((($0)) + 8|0);
  21838. HEAP32[$49>>2] = $$sink3;
  21839. $50 = ($$01507>>>0)<($10>>>0);
  21840. if ($50) {
  21841. $$31206$ph = $$11204;$$31312$ph = $$11310;$$3990$ph = $$1988;$$3994$ph = $$1992;$$sink1705 = $$01507;
  21842. label = 12;
  21843. } else {
  21844. $$11508 = $$01507;$$21099 = $$11098;$$21205 = $$11204;$$21311 = $$11310;$$2989 = $$1988;$$2993 = $$1992;
  21845. label = 10;
  21846. }
  21847. }
  21848. if ((label|0) == 10) {
  21849. $51 = $6 & 2;
  21850. $52 = ($51|0)==(0);
  21851. if ($52) {
  21852. $$21509 = $$11508;$$31206 = $$21205;$$31312 = $$21311;$$3990 = $$2989;$$3994 = $$2993;$$sink9$shrunk = 0;
  21853. label = 13;
  21854. } else {
  21855. $$0960 = 1;$$891505 = $35;$$931084 = $$2993;$$931700 = $4;$$951192 = $$21099;$$951298 = $$21205;$$981605 = $$11508;$$99 = $$2989;$$991408 = $$21311;$$sink30 = 2;
  21856. label = 243;
  21857. }
  21858. }
  21859. else if ((label|0) == 12) {
  21860. $54 = ((($$sink1705)) + 1|0);
  21861. $55 = HEAP8[$$sink1705>>0]|0;
  21862. $$21509 = $54;$$31206 = $$31206$ph;$$31312 = $$31312$ph;$$3990 = $$3990$ph;$$3994 = $$3994$ph;$$sink9$shrunk = $55;
  21863. label = 13;
  21864. }
  21865. if ((label|0) == 13) {
  21866. $$sink9 = $$sink9$shrunk&255;
  21867. $56 = ((($0)) + 12|0);
  21868. HEAP32[$56>>2] = $$sink9;
  21869. $57 = ((($0)) + 8|0);
  21870. $58 = HEAP32[$57>>2]|0;
  21871. $59 = $58 << 8;
  21872. $60 = $59 | $$sink9;
  21873. $61 = (($60>>>0) % 31)&-1;
  21874. $62 = $$sink9 & 32;
  21875. $63 = $61 | $62;
  21876. $64 = $58 & 15;
  21877. $65 = ($64|0)!=(8);
  21878. $not$ = ($63|0)!=(0);
  21879. $$1754 = $65 | $not$;
  21880. $66 = $58 >>> 4;
  21881. $67 = 256 << $66;
  21882. $68 = ($67>>>0)>(32768);
  21883. $69 = ($20>>>0)<($67>>>0);
  21884. $$ = $68 | $69;
  21885. $not$1755 = $14 ^ 1;
  21886. $70 = $$ & $not$1755;
  21887. $$31100$v = $70 | $$1754;
  21888. if ($$31100$v) {
  21889. $$0960 = -1;$$891505 = $35;$$931084 = $$3994;$$931700 = $4;$$951192 = 1;$$951298 = $$31206;$$981605 = $$21509;$$99 = $$3990;$$991408 = $$31312;$$sink30 = 36;
  21890. label = 243;
  21891. } else {
  21892. $$01416 = $35;$$01607 = $4;$$41511 = $$21509;$$5 = $$3990;$$51102 = 0;$$51208 = $$31206;$$51314 = $$31312;$$5996 = $$3994;
  21893. label = 14;
  21894. }
  21895. }
  21896. L46: while(1) {
  21897. switch (label|0) {
  21898. case 14: {
  21899. label = 0;
  21900. $71 = ($$5>>>0)<(3);
  21901. if ($71) {
  21902. $$11417 = $$01416;$$11608 = $$01607;$$51512 = $$41511;$$6 = $$5;$$61103 = $$51102;$$61209 = $$51208;$$61315 = $$51314;$$6997 = $$5996;
  21903. label = 15;
  21904. } else {
  21905. $$41420 = $$01416;$$41611 = $$01607;$$81515 = $$41511;$$9 = $$5;$$91000 = $$5996;$$91106 = $$51102;$$91212 = $$51208;$$91318 = $$51314;
  21906. label = 20;
  21907. }
  21908. break;
  21909. }
  21910. case 16: {
  21911. label = 0;
  21912. $73 = $6 & 2;
  21913. $74 = ($73|0)==(0);
  21914. if ($74) {
  21915. $$01413$shrunk = 0;$$31419 = $$21418;$$31610 = $$21609;$$71514 = $$61513;$$8 = $$7;$$81105 = $$71104;$$81211 = $$71210;$$81317 = $$71316;$$8999 = $$7998;
  21916. label = 19;
  21917. } else {
  21918. $$0960 = 1;$$891505 = $$21418;$$931084 = $$7998;$$931700 = $$21609;$$951192 = $$71104;$$951298 = $$71210;$$981605 = $$61513;$$99 = $$7;$$991408 = $$71316;$$sink30 = 3;
  21919. label = 243;
  21920. continue L46;
  21921. }
  21922. break;
  21923. }
  21924. case 18: {
  21925. label = 0;
  21926. $76 = ((($$sink1710)) + 1|0);
  21927. $77 = HEAP8[$$sink1710>>0]|0;
  21928. $$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;
  21929. label = 19;
  21930. break;
  21931. }
  21932. case 25: {
  21933. label = 0;
  21934. $97 = $$13 & 7;
  21935. $98 = $$131322 >>> $97;
  21936. $99 = (($$13) - ($97))|0;
  21937. $$131110 = 0;$$131520 = $$121519;$$14 = $99;$$141005 = $$131004;$$141217 = $$131216;$$141323 = $98;$$91425 = $$81424;$$91616 = $$81615;
  21938. label = 26;
  21939. break;
  21940. }
  21941. case 30: {
  21942. label = 0;
  21943. $104 = $6 & 2;
  21944. $105 = ($104|0)==(0);
  21945. if ($105) {
  21946. $$01411$shrunk = 0;$$121428 = $$111427;$$121619 = $$111618;$$161113 = $$151112;$$161523 = $$151522;$$17 = $$16;$$171008 = $$161007;$$171220 = $$161219;$$171326 = $$161325;
  21947. label = 33;
  21948. } else {
  21949. $$0960 = 1;$$891505 = $$111427;$$931084 = $$161007;$$931700 = $$111618;$$951192 = $$151112;$$951298 = $$161219;$$981605 = $$151522;$$99 = $$16;$$991408 = $$161325;$$sink30 = 6;
  21950. label = 243;
  21951. continue L46;
  21952. }
  21953. break;
  21954. }
  21955. case 32: {
  21956. label = 0;
  21957. $107 = ((($$sink1713)) + 1|0);
  21958. $108 = HEAP8[$$sink1713>>0]|0;
  21959. $$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;
  21960. label = 33;
  21961. break;
  21962. }
  21963. case 36: {
  21964. label = 0;
  21965. $118 = $6 & 2;
  21966. $119 = ($118|0)==(0);
  21967. if ($119) {
  21968. $$151431 = $$141430;$$151622 = $$141621;$$191116 = $$181115;$$191526 = $$181525;$$20 = $$19;$$201011 = $$191010;$$201223 = $$191222;$$201329 = $$191328;$$sink12 = 0;
  21969. label = 39;
  21970. continue L46;
  21971. } else {
  21972. $$0960 = 1;$$891505 = $$141430;$$931084 = $$191010;$$931700 = $$141621;$$951192 = $$181115;$$951298 = $$191222;$$981605 = $$181525;$$99 = $$19;$$991408 = $$191328;$$sink30 = 7;
  21973. label = 243;
  21974. continue L46;
  21975. }
  21976. break;
  21977. }
  21978. case 39: {
  21979. label = 0;
  21980. $$sink13 = (((($0)) + 10528|0) + ($$191116)|0);
  21981. HEAP8[$$sink13>>0] = $$sink12;
  21982. $$161432 = $$151431;$$161623 = $$151622;$$201117 = $$191116;$$201527 = $$191526;$$21 = $$20;$$211012 = $$201011;$$211224 = $$201223;$$211330 = $$201329;
  21983. label = 41;
  21984. break;
  21985. }
  21986. case 43: {
  21987. label = 0;
  21988. $$0960 = -1;$$891505 = $$171433;$$931084 = $$221013;$$931700 = $$171624;$$951192 = $$211118;$$951298 = $$221225;$$981605 = $$211528;$$99 = $$22;$$991408 = $$221331;$$sink30 = 39;
  21989. label = 243;
  21990. continue L46;
  21991. break;
  21992. }
  21993. case 47: {
  21994. label = 0;
  21995. $150 = $6 & 2;
  21996. $151 = ($150|0)==(0);
  21997. if ($151) {
  21998. $$01410$shrunk = 0;$$211437 = $$201436;$$211628 = $$201627;$$251122 = $$241121;$$251532 = $$241531;$$26 = $$25;$$261017 = $$251016;$$261229 = $$251228;$$261335 = $$251334;
  21999. label = 50;
  22000. } else {
  22001. $$0960 = 1;$$891505 = $$201436;$$931084 = $$251016;$$931700 = $$201627;$$951192 = $$241121;$$951298 = $$251228;$$981605 = $$241531;$$99 = $$25;$$991408 = $$251334;$$sink30 = 51;
  22002. label = 243;
  22003. continue L46;
  22004. }
  22005. break;
  22006. }
  22007. case 49: {
  22008. label = 0;
  22009. $153 = ((($$sink1716)) + 1|0);
  22010. $154 = HEAP8[$$sink1716>>0]|0;
  22011. $$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;
  22012. label = 50;
  22013. break;
  22014. }
  22015. case 52: {
  22016. label = 0;
  22017. $162 = ($$231630>>>0)<($12>>>0);
  22018. if (!($162)) {
  22019. $$0960 = 2;$$891505 = $$231439;$$931084 = $$271018;$$931700 = $$231630;$$951192 = $$271124;$$951298 = $$281231;$$981605 = $$271534;$$99 = $$28;$$991408 = $$281337;$$sink30 = 52;
  22020. label = 243;
  22021. continue L46;
  22022. }
  22023. $163 = $$271018&255;
  22024. $164 = ((($$231630)) + 1|0);
  22025. HEAP8[$$231630>>0] = $163;
  22026. $165 = (($$271124) + -1)|0;
  22027. $$181434 = $$231439;$$181625 = $164;$$221119 = $165;$$221529 = $$271534;$$23 = $$28;$$231014 = $$271018;$$231226 = $$281231;$$231332 = $$281337;
  22028. label = 44;
  22029. break;
  22030. }
  22031. case 55: {
  22032. label = 0;
  22033. $167 = ($$251632>>>0)<($12>>>0);
  22034. if ($167) {
  22035. $$261442 = $$251441;$$261633 = $$251632;$$301021 = $$291020;$$301127 = $$291126;$$301537 = $$291536;$$31 = $$30;$$311234 = $$301233;$$311340 = $$301339;
  22036. label = 56;
  22037. continue L46;
  22038. } else {
  22039. $$0960 = 2;$$891505 = $$251441;$$931084 = $$291020;$$931700 = $$251632;$$951192 = $$291126;$$951298 = $$301233;$$981605 = $$291536;$$99 = $$30;$$991408 = $$301339;$$sink30 = 9;
  22040. label = 243;
  22041. continue L46;
  22042. }
  22043. break;
  22044. }
  22045. case 56: {
  22046. label = 0;
  22047. $168 = ($$301537>>>0)<($10>>>0);
  22048. if ($168) {
  22049. $171 = $12;
  22050. $172 = $$261633;
  22051. $173 = (($171) - ($172))|0;
  22052. $174 = $10;
  22053. $175 = $$301537;
  22054. $176 = (($174) - ($175))|0;
  22055. $177 = ($173>>>0)<($176>>>0);
  22056. $$sink17 = $177 ? $12 : $10;
  22057. $$sink16 = $177 ? $$261633 : $$301537;
  22058. $178 = $$sink17;
  22059. $179 = $$sink16;
  22060. $180 = (($178) - ($179))|0;
  22061. $181 = ($180>>>0)<($$301127>>>0);
  22062. $$$301127 = $181 ? $180 : $$301127;
  22063. _memcpy(($$261633|0),($$301537|0),($$$301127|0))|0;
  22064. $182 = (($$301537) + ($$$301127)|0);
  22065. $183 = (($$261633) + ($$$301127)|0);
  22066. $184 = (($$301127) - ($$$301127))|0;
  22067. $$241440 = $$261442;$$241631 = $183;$$281019 = $$301021;$$281125 = $184;$$281535 = $182;$$29 = $$31;$$291232 = $$311234;$$291338 = $$311340;
  22068. label = 54;
  22069. break;
  22070. } else {
  22071. $169 = $6 & 2;
  22072. $170 = ($169|0)==(0);
  22073. if ($170) {
  22074. $$271443 = $$261442;$$271634 = $$261633;$$311022 = $$301021;$$311128 = $$301127;$$311538 = $$301537;$$32 = $$31;$$321235 = $$311234;$$321341 = $$311340;
  22075. label = 58;
  22076. continue L46;
  22077. } else {
  22078. $$0960 = 1;$$891505 = $$261442;$$931084 = $$301021;$$931700 = $$261633;$$951192 = $$301127;$$951298 = $$311234;$$981605 = $$301537;$$99 = $$31;$$991408 = $$311340;$$sink30 = 38;
  22079. label = 243;
  22080. continue L46;
  22081. }
  22082. }
  22083. break;
  22084. }
  22085. case 58: {
  22086. label = 0;
  22087. $$0960 = -1;$$891505 = $$271443;$$931084 = $$311022;$$931700 = $$271634;$$951192 = $$311128;$$951298 = $$321235;$$981605 = $$311538;$$99 = $$32;$$991408 = $$321341;$$sink30 = 40;
  22088. label = 243;
  22089. continue L46;
  22090. break;
  22091. }
  22092. case 60: {
  22093. label = 0;
  22094. $$0960 = -1;$$891505 = $$281444;$$931084 = $$321023;$$931700 = $$281635;$$951192 = $$321129;$$951298 = $$331236;$$981605 = $$321539;$$99 = $$33;$$991408 = $$331342;$$sink30 = 10;
  22095. label = 243;
  22096. continue L46;
  22097. break;
  22098. }
  22099. case 64: {
  22100. label = 0;
  22101. $191 = $6 & 2;
  22102. $192 = ($191|0)==(0);
  22103. if ($192) {
  22104. $$01300$shrunk = 0;$$321448 = $$311447;$$321639 = $$311638;$$361027 = $$351026;$$361133 = $$351132;$$361543 = $$351542;$$37 = $$36;$$371240 = $$361239;$$371346 = $$361345;
  22105. label = 67;
  22106. } else {
  22107. $$0960 = 1;$$891505 = $$311447;$$931084 = $$351026;$$931700 = $$311638;$$951192 = $$351132;$$951298 = $$361239;$$981605 = $$351542;$$99 = $$36;$$991408 = $$361345;$$sink30 = 11;
  22108. label = 243;
  22109. continue L46;
  22110. }
  22111. break;
  22112. }
  22113. case 66: {
  22114. label = 0;
  22115. $194 = ((($$sink1719)) + 1|0);
  22116. $195 = HEAP8[$$sink1719>>0]|0;
  22117. $$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;
  22118. label = 67;
  22119. break;
  22120. }
  22121. case 73: {
  22122. label = 0;
  22123. $222 = $6 & 2;
  22124. $223 = ($222|0)==(0);
  22125. if ($223) {
  22126. $$01202$shrunk = 0;$$371453 = $$361452;$$371644 = $$361643;$$411032 = $$401031;$$411138 = $$401137;$$411548 = $$401547;$$42 = $$41;$$421245 = $$411244;$$421351 = $$411350;
  22127. label = 76;
  22128. } else {
  22129. $$0960 = 1;$$891505 = $$361452;$$931084 = $$401031;$$931700 = $$361643;$$951192 = $$401137;$$951298 = $$411244;$$981605 = $$401547;$$99 = $$41;$$991408 = $$411350;$$sink30 = 14;
  22130. label = 243;
  22131. continue L46;
  22132. }
  22133. break;
  22134. }
  22135. case 75: {
  22136. label = 0;
  22137. $225 = ((($$sink1722)) + 1|0);
  22138. $226 = HEAP8[$$sink1722>>0]|0;
  22139. $$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;
  22140. label = 76;
  22141. break;
  22142. }
  22143. case 86: {
  22144. label = 0;
  22145. $$0960 = -1;$$891505 = $$401456;$$931084 = $$441035;$$931700 = $$401647;$$951192 = $$441141;$$951298 = $$451248;$$981605 = $$441551;$$99 = $$45;$$991408 = $$451354;$$sink30 = 35;
  22146. label = 243;
  22147. continue L46;
  22148. break;
  22149. }
  22150. case 114: {
  22151. label = 0;
  22152. $450 = $6 & 2;
  22153. $451 = ($450|0)==(0);
  22154. if ($451) {
  22155. $$0980$shrunk = 0;$$441460 = $$431459;$$441651 = $$431650;$$481039 = $$471038;$$481145 = $$471144;$$481555 = $$471554;$$49 = $$48;$$491252 = $$481251;$$491358 = $$481357;
  22156. label = 117;
  22157. } else {
  22158. $$0960 = 1;$$891505 = $$431459;$$931084 = $$471038;$$931700 = $$431650;$$951192 = $$471144;$$951298 = $$481251;$$981605 = $$471554;$$99 = $$48;$$991408 = $$481357;$$sink30 = 16;
  22159. label = 243;
  22160. continue L46;
  22161. }
  22162. break;
  22163. }
  22164. case 116: {
  22165. label = 0;
  22166. $453 = ((($$sink1729)) + 1|0);
  22167. $454 = HEAP8[$$sink1729>>0]|0;
  22168. $$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;
  22169. label = 117;
  22170. break;
  22171. }
  22172. case 125: {
  22173. label = 0;
  22174. $$0960 = -1;$$891505 = $$461462;$$931084 = $$491040;$$931700 = $$461653;$$951192 = $$501147;$$951298 = $$511254;$$981605 = $$501557;$$99 = $$51;$$991408 = $$511360;$$sink30 = 17;
  22175. label = 243;
  22176. continue L46;
  22177. break;
  22178. }
  22179. case 128: {
  22180. label = 0;
  22181. $501 = $6 & 2;
  22182. $502 = ($501|0)==(0);
  22183. if ($502) {
  22184. $$0979$shrunk = 0;$$491465 = $$481464;$$491656 = $$481655;$$521043 = $$511042;$$531150 = $$521149;$$531560 = $$521559;$$54 = $$53;$$541257 = $$531256;$$541363 = $$531362;
  22185. label = 131;
  22186. } else {
  22187. $$0960 = 1;$$891505 = $$481464;$$931084 = $$511042;$$931700 = $$481655;$$951192 = $$521149;$$951298 = $$531256;$$981605 = $$521559;$$99 = $$53;$$991408 = $$531362;$$sink30 = 18;
  22188. label = 243;
  22189. continue L46;
  22190. }
  22191. break;
  22192. }
  22193. case 130: {
  22194. label = 0;
  22195. $504 = ((($$sink1732)) + 1|0);
  22196. $505 = HEAP8[$$sink1732>>0]|0;
  22197. $$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;
  22198. label = 131;
  22199. break;
  22200. }
  22201. case 136: {
  22202. label = 0;
  22203. $$0960 = -1;$$891505 = $$511467;$$931084 = $$541045;$$931700 = $$511658;$$951192 = $$551152;$$951298 = $$561259;$$981605 = $$551562;$$99 = $$56;$$991408 = $$561365;$$sink30 = 21;
  22204. label = 243;
  22205. continue L46;
  22206. break;
  22207. }
  22208. case 151: {
  22209. label = 0;
  22210. $570 = $6 & 2;
  22211. $571 = ($570|0)==(0);
  22212. if ($571) {
  22213. $$0971$shrunk = 0;$$571473 = $$561472;$$571664 = $$561663;$$601051 = $$591050;$$611158 = $$601157;$$611568 = $$601567;$$62 = $$61;$$621265 = $$611264;$$621371 = $$611370;
  22214. label = 154;
  22215. } else {
  22216. $$0960 = 1;$$891505 = $$561472;$$931084 = $$591050;$$931700 = $$561663;$$951192 = $$601157;$$951298 = $$611264;$$981605 = $$601567;$$99 = $$61;$$991408 = $$611370;$$sink30 = 23;
  22217. label = 243;
  22218. continue L46;
  22219. }
  22220. break;
  22221. }
  22222. case 153: {
  22223. label = 0;
  22224. $573 = ((($$sink1736)) + 1|0);
  22225. $574 = HEAP8[$$sink1736>>0]|0;
  22226. $$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;
  22227. label = 154;
  22228. break;
  22229. }
  22230. case 160: {
  22231. label = 0;
  22232. $610 = ($$591666>>>0)<($12>>>0);
  22233. if (!($610)) {
  22234. $$0960 = 2;$$891505 = $$591475;$$931084 = $$621053;$$931700 = $$591666;$$951192 = $$621159;$$951298 = $$641267;$$981605 = $$631570;$$99 = $$64;$$991408 = $$641373;$$sink30 = 24;
  22235. label = 243;
  22236. continue L46;
  22237. }
  22238. $611 = $$621159&255;
  22239. $612 = ((($$591666)) + 1|0);
  22240. HEAP8[$$591666>>0] = $611;
  22241. $$541470$ph = $$591475;$$541661$ph = $612;$$571048$ph = $$621053;$$581155$ph = $$621159;$$581565$ph = $$631570;$$59$ph = $$64;$$591262$ph = $$641267;$$591368$ph = $$641373;
  22242. label = 140;
  22243. break;
  22244. }
  22245. case 180: {
  22246. label = 0;
  22247. $694 = $6 & 2;
  22248. $695 = ($694|0)==(0);
  22249. if ($695) {
  22250. $$0959$shrunk = 0;$$631479 = $$621478;$$641671 = $$631670;$$661057 = $$651056;$$671164 = $$661163;$$681271 = $$671270;$$701577 = $$691576;$$71 = $$70;$$711380 = $$701379;
  22251. label = 183;
  22252. } else {
  22253. $$0960 = 1;$$891505 = $$621478;$$931084 = $$651056;$$931700 = $$631670;$$951192 = $$661163;$$951298 = $$671270;$$981605 = $$691576;$$99 = $$70;$$991408 = $$701379;$$sink30 = 25;
  22254. label = 243;
  22255. continue L46;
  22256. }
  22257. break;
  22258. }
  22259. case 182: {
  22260. label = 0;
  22261. $697 = ((($$sink1739)) + 1|0);
  22262. $698 = HEAP8[$$sink1739>>0]|0;
  22263. $$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;
  22264. label = 183;
  22265. break;
  22266. }
  22267. case 193: {
  22268. label = 0;
  22269. $735 = $6 & 2;
  22270. $736 = ($735|0)==(0);
  22271. if ($736) {
  22272. $$0952$shrunk = 0;$$681484 = $$671483;$$691676 = $$681675;$$711062 = $$701061;$$721169 = $$711168;$$731276 = $$721275;$$751582 = $$741581;$$76 = $$75;$$761385 = $$751384;
  22273. label = 196;
  22274. } else {
  22275. $$0960 = 1;$$891505 = $$671483;$$931084 = $$701061;$$931700 = $$681675;$$951192 = $$711168;$$951298 = $$721275;$$981605 = $$741581;$$99 = $$75;$$991408 = $$751384;$$sink30 = 26;
  22276. label = 243;
  22277. continue L46;
  22278. }
  22279. break;
  22280. }
  22281. case 195: {
  22282. label = 0;
  22283. $738 = ((($$sink1743)) + 1|0);
  22284. $739 = HEAP8[$$sink1743>>0]|0;
  22285. $$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;
  22286. label = 196;
  22287. break;
  22288. }
  22289. case 204: {
  22290. label = 0;
  22291. $782 = $6 & 2;
  22292. $783 = ($782|0)==(0);
  22293. if ($783) {
  22294. $$0950$shrunk = 0;$$721488 = $$711487;$$731680 = $$721679;$$741065 = $$731064;$$761173 = $$751172;$$761279 = $$751278;$$791586 = $$781585;$$80 = $$79;$$801389 = $$791388;
  22295. label = 207;
  22296. } else {
  22297. $$0960 = 1;$$891505 = $$711487;$$931084 = $$731064;$$931700 = $$721679;$$951192 = $$751172;$$951298 = $$751278;$$981605 = $$781585;$$99 = $$79;$$991408 = $$791388;$$sink30 = 27;
  22298. label = 243;
  22299. continue L46;
  22300. }
  22301. break;
  22302. }
  22303. case 206: {
  22304. label = 0;
  22305. $785 = ((($$sink1746)) + 1|0);
  22306. $786 = HEAP8[$$sink1746>>0]|0;
  22307. $$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;
  22308. label = 207;
  22309. break;
  22310. }
  22311. case 210: {
  22312. label = 0;
  22313. $$0960 = -1;$$891505 = $$731489;$$931084 = $$771068;$$931700 = $$761683;$$951192 = $$791176;$$951298 = $$791282;$$981605 = $$821589;$$99 = $$83;$$991408 = $$831392;$$sink30 = 37;
  22314. label = 243;
  22315. continue L46;
  22316. break;
  22317. }
  22318. case 213: {
  22319. label = 0;
  22320. $809 = ($$781685>>>0)<($12>>>0);
  22321. if (!($809)) {
  22322. $$0960 = 2;$$891505 = $$751491;$$931084 = $$791070;$$931700 = $$781685;$$951192 = $$811178;$$951298 = $$811284;$$981605 = $$841591;$$99 = $$85;$$991408 = $$851394;$$sink30 = 53;
  22323. label = 243;
  22324. continue L46;
  22325. }
  22326. $810 = (($$751491) + 1)|0;
  22327. $811 = (($$751491) - ($$791070))|0;
  22328. $812 = $811 & $$1753;
  22329. $813 = (($3) + ($812)|0);
  22330. $814 = HEAP8[$813>>0]|0;
  22331. $815 = ((($$781685)) + 1|0);
  22332. HEAP8[$$781685>>0] = $814;
  22333. $$741490 = $810;$$771684 = $815;$$781069 = $$791070;$$801177 = $$811178;$$801283 = $$811284;$$831590 = $$841591;$$84 = $$85;$$841393 = $$851394;
  22334. label = 212;
  22335. break;
  22336. }
  22337. case 226: {
  22338. label = 0;
  22339. $849 = $$90 & 7;
  22340. $850 = $$901399 >>> $849;
  22341. $851 = (($$90) - ($849))|0;
  22342. $$811497 = $$801496;$$851076 = $$841075;$$851692 = $$841691;$$871184 = 0;$$871290 = $$861289;$$901597 = $$891596;$$91 = $851;$$911400 = $850;
  22343. label = 227;
  22344. break;
  22345. }
  22346. case 231: {
  22347. label = 0;
  22348. $856 = $6 & 2;
  22349. $857 = ($856|0)==(0);
  22350. if ($857) {
  22351. $$0947$shrunk = 0;$$841500 = $$831499;$$881079 = $$871078;$$881695 = $$871694;$$901187 = $$891186;$$901293 = $$891292;$$931600 = $$921599;$$94 = $$93;$$941403 = $$931402;
  22352. label = 234;
  22353. } else {
  22354. $$0960 = 1;$$891505 = $$831499;$$931084 = $$871078;$$931700 = $$871694;$$951192 = $$891186;$$951298 = $$891292;$$981605 = $$921599;$$99 = $$93;$$991408 = $$931402;$$sink30 = 41;
  22355. label = 243;
  22356. continue L46;
  22357. }
  22358. break;
  22359. }
  22360. case 233: {
  22361. label = 0;
  22362. $859 = ((($$sink1750)) + 1|0);
  22363. $860 = HEAP8[$$sink1750>>0]|0;
  22364. $$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;
  22365. label = 234;
  22366. break;
  22367. }
  22368. case 237: {
  22369. label = 0;
  22370. $869 = $6 & 2;
  22371. $870 = ($869|0)==(0);
  22372. if ($870) {
  22373. $$0948 = 0;$$871503 = $$861502;$$911082 = $$901081;$$911698 = $$901697;$$931190 = $$921189;$$931296 = $$921295;$$961603 = $$951602;$$97 = $$96;$$971406 = $$961405;
  22374. label = 241;
  22375. continue L46;
  22376. } else {
  22377. $$0960 = 1;$$891505 = $$861502;$$931084 = $$901081;$$931700 = $$901697;$$951192 = $$921189;$$951298 = $$921295;$$981605 = $$951602;$$99 = $$96;$$991408 = $$961405;$$sink30 = 42;
  22378. label = 243;
  22379. continue L46;
  22380. }
  22381. break;
  22382. }
  22383. case 241: {
  22384. label = 0;
  22385. $878 = ((($0)) + 16|0);
  22386. $879 = HEAP32[$878>>2]|0;
  22387. $880 = $879 << 8;
  22388. $881 = $880 | $$0948;
  22389. HEAP32[$878>>2] = $881;
  22390. $882 = (($$931190) + 1)|0;
  22391. $$811497 = $$871503;$$851076 = $$911082;$$851692 = $$911698;$$871184 = $882;$$871290 = $$931296;$$901597 = $$961603;$$91 = $$97;$$911400 = $$971406;
  22392. label = 227;
  22393. break;
  22394. }
  22395. case 242: {
  22396. label = 0;
  22397. $$0960 = 0;$$891505 = $$881504;$$931084 = $$921083;$$931700 = $$921699;$$951192 = $$941191;$$951298 = $$941297;$$981605 = $$971604;$$99 = $$98;$$991408 = $$981407;$$sink30 = 34;
  22398. label = 243;
  22399. continue L46;
  22400. break;
  22401. }
  22402. case 243: {
  22403. label = 0;
  22404. HEAP32[$0>>2] = $$sink30;
  22405. $$100 = $$99;$$1001409 = $$991408;$$1961 = $$0960;$$901506 = $$891505;$$941085 = $$931084;$$941701 = $$931700;$$961193 = $$951192;$$961299 = $$951298;$$991606 = $$981605;
  22406. label = 244;
  22407. continue L46;
  22408. break;
  22409. }
  22410. case 244: {
  22411. label = 0;
  22412. HEAP32[$24>>2] = $$100;
  22413. HEAP32[$26>>2] = $$1001409;
  22414. HEAP32[$28>>2] = $$941085;
  22415. HEAP32[$30>>2] = $$961193;
  22416. HEAP32[$32>>2] = $$961299;
  22417. HEAP32[$34>>2] = $$901506;
  22418. $883 = $$991606;
  22419. $884 = $1;
  22420. $885 = (($883) - ($884))|0;
  22421. HEAP32[$2>>2] = $885;
  22422. $886 = $$941701;
  22423. $887 = $4;
  22424. $888 = (($886) - ($887))|0;
  22425. HEAP32[$5>>2] = $888;
  22426. $889 = $6 & 9;
  22427. $890 = ($889|0)!=(0);
  22428. $891 = ($$1961|0)>(-1);
  22429. $or$cond29 = $890 & $891;
  22430. if ($or$cond29) {
  22431. break L46;
  22432. } else {
  22433. $$0951 = $$1961;
  22434. label = 258;
  22435. break L46;
  22436. }
  22437. break;
  22438. }
  22439. }
  22440. switch (label|0) {
  22441. case 19: {
  22442. label = 0;
  22443. $$01413 = $$01413$shrunk&255;
  22444. $78 = $$01413 << $$8;
  22445. $79 = $78 | $$81317;
  22446. $80 = (($$8) + 8)|0;
  22447. $81 = ($80>>>0)<(3);
  22448. if ($81) {
  22449. $$11417 = $$31419;$$11608 = $$31610;$$51512 = $$71514;$$6 = $80;$$61103 = $$81105;$$61209 = $$81211;$$61315 = $79;$$6997 = $$8999;
  22450. label = 15;
  22451. } else {
  22452. $$41420 = $$31419;$$41611 = $$31610;$$81515 = $$71514;$$9 = $80;$$91000 = $$8999;$$91106 = $$81105;$$91212 = $$81211;$$91318 = $79;
  22453. label = 20;
  22454. }
  22455. break;
  22456. }
  22457. case 33: {
  22458. label = 0;
  22459. $$01411 = $$01411$shrunk&255;
  22460. $109 = $$01411 << $$17;
  22461. $110 = $109 | $$171326;
  22462. $111 = (($$17) + 8)|0;
  22463. $112 = ($$17>>>0)>(4294967287);
  22464. if ($112) {
  22465. $$101426 = $$121428;$$101617 = $$121619;$$141111 = $$161113;$$141521 = $$161523;$$15 = $111;$$151006 = $$171008;$$151218 = $$171220;$$151324 = $110;
  22466. label = 29;
  22467. } else {
  22468. $$131429 = $$121428;$$131620 = $$121619;$$171114 = $$161113;$$171524 = $$161523;$$18 = $111;$$181009 = $$171008;$$181221 = $$171220;$$181327 = $110;
  22469. label = 34;
  22470. }
  22471. break;
  22472. }
  22473. case 50: {
  22474. label = 0;
  22475. $$01410 = $$01410$shrunk&255;
  22476. $155 = $$01410 << $$26;
  22477. $156 = $155 | $$261335;
  22478. $157 = (($$26) + 8)|0;
  22479. $158 = ($$26>>>0)>(4294967287);
  22480. if ($158) {
  22481. $$191435 = $$211437;$$191626 = $$211628;$$231120 = $$251122;$$231530 = $$251532;$$24 = $157;$$241015 = $$261017;$$241227 = $$261229;$$241333 = $156;
  22482. label = 46;
  22483. } else {
  22484. $$221438 = $$211437;$$221629 = $$211628;$$261123 = $$251122;$$261533 = $$251532;$$27 = $157;$$271230 = $$261229;$$271336 = $156;
  22485. label = 51;
  22486. }
  22487. break;
  22488. }
  22489. case 67: {
  22490. label = 0;
  22491. $$01300 = $$01300$shrunk&255;
  22492. $196 = $$01300 << $$37;
  22493. $197 = $196 | $$371346;
  22494. $198 = (($$37) + 8)|0;
  22495. $199 = (11524 + ($$361133)|0);
  22496. $200 = HEAP8[$199>>0]|0;
  22497. $201 = $200 << 24 >> 24;
  22498. $202 = ($198>>>0)<($201>>>0);
  22499. if ($202) {
  22500. $$301446 = $$321448;$$301637 = $$321639;$$341025 = $$361027;$$341131 = $$361133;$$341541 = $$361543;$$35 = $198;$$351238 = $$371240;$$351344 = $197;
  22501. label = 63;
  22502. } else {
  22503. $$331449 = $$321448;$$331640 = $$321639;$$371028 = $$361027;$$371134 = $$361133;$$371544 = $$361543;$$38 = $198;$$381241 = $$371240;$$381347 = $197;
  22504. label = 68;
  22505. }
  22506. break;
  22507. }
  22508. case 76: {
  22509. label = 0;
  22510. $$01202 = $$01202$shrunk&255;
  22511. $227 = $$01202 << $$42;
  22512. $228 = $227 | $$421351;
  22513. $229 = (($$42) + 8)|0;
  22514. $230 = ($229>>>0)<(3);
  22515. if ($230) {
  22516. $$351451 = $$371453;$$351642 = $$371644;$$391030 = $$411032;$$391136 = $$411138;$$391546 = $$411548;$$40 = $229;$$401243 = $$421245;$$401349 = $228;
  22517. label = 72;
  22518. } else {
  22519. $$381454 = $$371453;$$381645 = $$371644;$$421033 = $$411032;$$421139 = $$411138;$$421549 = $$411548;$$43 = $229;$$431246 = $$421245;$$431352 = $228;
  22520. label = 77;
  22521. }
  22522. break;
  22523. }
  22524. case 117: {
  22525. label = 0;
  22526. $$0980 = $$0980$shrunk&255;
  22527. $455 = $$0980 << $$49;
  22528. $456 = $455 | $$491358;
  22529. $457 = (($$49) + 8)|0;
  22530. $458 = ($457>>>0)<(15);
  22531. if ($458) {
  22532. $$421458 = $$441460;$$421649 = $$441651;$$461037 = $$481039;$$461143 = $$481145;$$461553 = $$481555;$$47 = $457;$$471250 = $$491252;$$471356 = $456;
  22533. label = 108;
  22534. } else {
  22535. $$451461 = $$441460;$$451652 = $$441651;$$491146 = $$481145;$$491556 = $$481555;$$50 = $457;$$501253 = $$491252;$$501359 = $456;
  22536. label = 119;
  22537. }
  22538. break;
  22539. }
  22540. case 131: {
  22541. label = 0;
  22542. $$0979 = $$0979$shrunk&255;
  22543. $506 = $$0979 << $$54;
  22544. $507 = $506 | $$541363;
  22545. $508 = (($$54) + 8)|0;
  22546. $509 = ($508>>>0)<($$541257>>>0);
  22547. if ($509) {
  22548. $$471463 = $$491465;$$471654 = $$491656;$$501041 = $$521043;$$511148 = $$531150;$$511558 = $$531560;$$52 = $508;$$521255 = $$541257;$$521361 = $507;
  22549. label = 127;
  22550. } else {
  22551. $$501466 = $$491465;$$501657 = $$491656;$$531044 = $$521043;$$541151 = $$531150;$$541561 = $$531560;$$55 = $508;$$551258 = $$541257;$$551364 = $507;
  22552. label = 132;
  22553. }
  22554. break;
  22555. }
  22556. case 154: {
  22557. label = 0;
  22558. $$0971 = $$0971$shrunk&255;
  22559. $575 = $$0971 << $$62;
  22560. $576 = $575 | $$621371;
  22561. $577 = (($$62) + 8)|0;
  22562. $578 = ($577>>>0)<(15);
  22563. if ($578) {
  22564. $$551471 = $$571473;$$551662 = $$571664;$$581049 = $$601051;$$591156 = $$611158;$$591566 = $$611568;$$60 = $577;$$601263 = $$621265;$$601369 = $576;
  22565. label = 145;
  22566. } else {
  22567. $$581474 = $$571473;$$581665 = $$571664;$$611052 = $$601051;$$621569 = $$611568;$$63 = $577;$$631266 = $$621265;$$631372 = $576;
  22568. label = 156;
  22569. }
  22570. break;
  22571. }
  22572. case 183: {
  22573. label = 0;
  22574. $$0959 = $$0959$shrunk&255;
  22575. $699 = $$0959 << $$71;
  22576. $700 = $699 | $$711380;
  22577. $701 = (($$71) + 8)|0;
  22578. $702 = ($701>>>0)<($$681271>>>0);
  22579. if ($702) {
  22580. $$611477 = $$631479;$$621669 = $$641671;$$641055 = $$661057;$$651162 = $$671164;$$661269 = $$681271;$$681575 = $$701577;$$69 = $701;$$691378 = $700;
  22581. label = 179;
  22582. } else {
  22583. $$641480 = $$631479;$$651672 = $$641671;$$671058 = $$661057;$$681165 = $$671164;$$691272 = $$681271;$$711578 = $$701577;$$72 = $701;$$721381 = $700;
  22584. label = 184;
  22585. }
  22586. break;
  22587. }
  22588. case 196: {
  22589. label = 0;
  22590. $$0952 = $$0952$shrunk&255;
  22591. $740 = $$0952 << $$76;
  22592. $741 = $740 | $$761385;
  22593. $742 = (($$76) + 8)|0;
  22594. $743 = ($742>>>0)<(15);
  22595. if ($743) {
  22596. $$661482 = $$681484;$$671674 = $$691676;$$691060 = $$711062;$$701167 = $$721169;$$711274 = $$731276;$$731580 = $$751582;$$74 = $742;$$741383 = $741;
  22597. label = 187;
  22598. } else {
  22599. $$691485 = $$681484;$$701677 = $$691676;$$731170 = $$721169;$$761583 = $$751582;$$77 = $742;$$771386 = $741;
  22600. label = 198;
  22601. }
  22602. break;
  22603. }
  22604. case 207: {
  22605. label = 0;
  22606. $$0950 = $$0950$shrunk&255;
  22607. $787 = $$0950 << $$80;
  22608. $788 = $787 | $$801389;
  22609. $789 = (($$80) + 8)|0;
  22610. $790 = ($789>>>0)<($$761279>>>0);
  22611. if ($790) {
  22612. $$701486 = $$721488;$$711678 = $$731680;$$721063 = $$741065;$$741171 = $$761173;$$741277 = $$761279;$$771584 = $$791586;$$78 = $789;$$781387 = $788;
  22613. label = 203;
  22614. } else {
  22615. $$741681 = $$731680;$$751066 = $$741065;$$771174 = $$761173;$$771280 = $$761279;$$801587 = $$791586;$$81 = $789;$$811390 = $788;
  22616. label = 208;
  22617. }
  22618. break;
  22619. }
  22620. case 227: {
  22621. label = 0;
  22622. $852 = ($$871184>>>0)<(4);
  22623. if (!($852)) {
  22624. $$881504 = $$811497;$$921083 = $$851076;$$921699 = $$851692;$$941191 = $$871184;$$941297 = $$871290;$$971604 = $$901597;$$98 = $$91;$$981407 = $$911400;
  22625. label = 242;
  22626. continue L46;
  22627. }
  22628. $853 = ($$91|0)==(0);
  22629. if (!($853)) {
  22630. $854 = ($$91>>>0)<(8);
  22631. if ($854) {
  22632. $$821498 = $$811497;$$861077 = $$851076;$$861693 = $$851692;$$881185 = $$871184;$$881291 = $$871290;$$911598 = $$901597;$$92 = $$91;$$921401 = $$911400;
  22633. label = 230;
  22634. break;
  22635. } else {
  22636. $$851501 = $$811497;$$891080 = $$851076;$$891696 = $$851692;$$911188 = $$871184;$$911294 = $$871290;$$941601 = $$901597;$$95 = $$91;$$951404 = $$911400;
  22637. label = 235;
  22638. break;
  22639. }
  22640. }
  22641. $868 = ($$901597>>>0)<($10>>>0);
  22642. if (!($868)) {
  22643. $$861502 = $$811497;$$901081 = $$851076;$$901697 = $$851692;$$921189 = $$871184;$$921295 = $$871290;$$951602 = $$901597;$$96 = 0;$$961405 = $$911400;
  22644. label = 237;
  22645. continue L46;
  22646. }
  22647. $875 = ((($$901597)) + 1|0);
  22648. $876 = HEAP8[$$901597>>0]|0;
  22649. $877 = $876&255;
  22650. $$0948 = $877;$$871503 = $$811497;$$911082 = $$851076;$$911698 = $$851692;$$931190 = $$871184;$$931296 = $$871290;$$961603 = $875;$$97 = 0;$$971406 = $$911400;
  22651. label = 241;
  22652. continue L46;
  22653. break;
  22654. }
  22655. case 234: {
  22656. label = 0;
  22657. $$0947 = $$0947$shrunk&255;
  22658. $861 = $$0947 << $$94;
  22659. $862 = $861 | $$941403;
  22660. $863 = (($$94) + 8)|0;
  22661. $864 = ($$94>>>0)>(4294967287);
  22662. if ($864) {
  22663. $$821498 = $$841500;$$861077 = $$881079;$$861693 = $$881695;$$881185 = $$901187;$$881291 = $$901293;$$911598 = $$931600;$$92 = $863;$$921401 = $862;
  22664. label = 230;
  22665. } else {
  22666. $$851501 = $$841500;$$891080 = $$881079;$$891696 = $$881695;$$911188 = $$901187;$$911294 = $$901293;$$941601 = $$931600;$$95 = $863;$$951404 = $862;
  22667. label = 235;
  22668. }
  22669. break;
  22670. }
  22671. }
  22672. L119: do {
  22673. if ((label|0) == 15) {
  22674. label = 0;
  22675. $72 = ($$51512>>>0)<($10>>>0);
  22676. if ($72) {
  22677. $$31419$ph = $$11417;$$31610$ph = $$11608;$$8$ph = $$6;$$81105$ph = $$61103;$$81211$ph = $$61209;$$81317$ph = $$61315;$$8999$ph = $$6997;$$sink1710 = $$51512;
  22678. label = 18;
  22679. continue L46;
  22680. } else {
  22681. $$21418 = $$11417;$$21609 = $$11608;$$61513 = $$51512;$$7 = $$6;$$71104 = $$61103;$$71210 = $$61209;$$71316 = $$61315;$$7998 = $$6997;
  22682. label = 16;
  22683. continue L46;
  22684. }
  22685. }
  22686. else if ((label|0) == 20) {
  22687. label = 0;
  22688. $82 = $$91318 & 7;
  22689. $83 = ((($0)) + 20|0);
  22690. HEAP32[$83>>2] = $82;
  22691. $84 = $$91318 >>> 3;
  22692. $85 = (($$9) + -3)|0;
  22693. $86 = $82 >>> 1;
  22694. $87 = ((($0)) + 24|0);
  22695. HEAP32[$87>>2] = $86;
  22696. $trunc = $86&255;
  22697. $trunc$clear = $trunc & 3;
  22698. switch ($trunc$clear<<24>>24) {
  22699. case 0: {
  22700. $$121519 = $$81515;$$13 = $85;$$131004 = $$91000;$$131216 = $$91212;$$131322 = $84;$$81424 = $$41420;$$81615 = $$41611;
  22701. label = 25;
  22702. continue L46;
  22703. break;
  22704. }
  22705. case 3: {
  22706. $$281444 = $$41420;$$281635 = $$41611;$$321023 = $$91000;$$321129 = $$91106;$$321539 = $$81515;$$33 = $85;$$331236 = $$91212;$$331342 = $84;
  22707. label = 60;
  22708. continue L46;
  22709. break;
  22710. }
  22711. case 1: {
  22712. break;
  22713. }
  22714. default: {
  22715. $$291445 = $$41420;$$291636 = $$41611;$$331024 = $$91000;$$331130 = 0;$$331540 = $$81515;$$34 = $85;$$341237 = $$91212;$$341343 = $84;
  22716. label = 61;
  22717. break L119;
  22718. }
  22719. }
  22720. $240 = ((($0)) + 44|0);
  22721. HEAP32[$240>>2] = 288;
  22722. $241 = ((($0)) + 48|0);
  22723. HEAP32[$241>>2] = 32;
  22724. $242 = ((($0)) + 3552|0);
  22725. ;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;
  22726. $scevgep19611962 = ((($0)) + 64|0);
  22727. _memset(($scevgep19611962|0),8,144)|0;
  22728. $scevgep1959 = ((($0)) + 208|0);
  22729. dest=$scevgep1959; stop=dest+112|0; do { HEAP8[dest>>0]=9|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  22730. $scevgep1957 = ((($0)) + 320|0);
  22731. dest=$scevgep1957; stop=dest+24|0; do { HEAP8[dest>>0]=7|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  22732. $scevgep1955 = ((($0)) + 344|0);
  22733. $243 = $scevgep1955;
  22734. $244 = $243;
  22735. 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;
  22736. $245 = (($243) + 4)|0;
  22737. $246 = $245;
  22738. 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;
  22739. $$391455 = $$41420;$$391646 = $$41611;$$431034 = $$91000;$$431140 = $$91106;$$431550 = $$81515;$$44 = $85;$$441247 = $$91212;$$441353 = $84;
  22740. label = 80;
  22741. }
  22742. else if ((label|0) == 230) {
  22743. label = 0;
  22744. $855 = ($$911598>>>0)<($10>>>0);
  22745. if ($855) {
  22746. $$841500$ph = $$821498;$$881079$ph = $$861077;$$881695$ph = $$861693;$$901187$ph = $$881185;$$901293$ph = $$881291;$$94$ph = $$92;$$941403$ph = $$921401;$$sink1750 = $$911598;
  22747. label = 233;
  22748. continue L46;
  22749. } else {
  22750. $$831499 = $$821498;$$871078 = $$861077;$$871694 = $$861693;$$891186 = $$881185;$$891292 = $$881291;$$921599 = $$911598;$$93 = $$92;$$931402 = $$921401;
  22751. label = 231;
  22752. continue L46;
  22753. }
  22754. }
  22755. else if ((label|0) == 235) {
  22756. label = 0;
  22757. $865 = $$951404 & 255;
  22758. $866 = $$951404 >>> 8;
  22759. $867 = (($$95) + -8)|0;
  22760. $$0948 = $865;$$871503 = $$851501;$$911082 = $$891080;$$911698 = $$891696;$$931190 = $$911188;$$931296 = $$911294;$$961603 = $$941601;$$97 = $867;$$971406 = $866;
  22761. label = 241;
  22762. continue L46;
  22763. }
  22764. } while(0);
  22765. L125: while(1) {
  22766. L126: switch (label|0) {
  22767. case 26: {
  22768. label = 0;
  22769. $100 = ($$131110>>>0)<(4);
  22770. if (!($100)) {
  22771. $127 = ((($0)) + 10528|0);
  22772. $128 = HEAP8[$127>>0]|0;
  22773. $129 = $128&255;
  22774. $130 = ((($0)) + 10529|0);
  22775. $131 = HEAP8[$130>>0]|0;
  22776. $132 = $131&255;
  22777. $133 = $132 << 8;
  22778. $134 = $133 | $129;
  22779. $135 = ((($0)) + 10530|0);
  22780. $136 = HEAP8[$135>>0]|0;
  22781. $137 = $136&255;
  22782. $138 = ((($0)) + 10531|0);
  22783. $139 = HEAP8[$138>>0]|0;
  22784. $140 = $139&255;
  22785. $141 = $140 << 8;
  22786. $142 = $141 | $137;
  22787. $143 = $142 ^ 65535;
  22788. $144 = ($134|0)==($143|0);
  22789. if ($144) {
  22790. $$181434 = $$91425;$$181625 = $$91616;$$221119 = $134;$$221529 = $$131520;$$23 = $$14;$$231014 = $$141005;$$231226 = $$141217;$$231332 = $$141323;
  22791. label = 44;
  22792. continue L125;
  22793. } else {
  22794. $$171433 = $$91425;$$171624 = $$91616;$$211118 = $134;$$211528 = $$131520;$$22 = $$14;$$221013 = $$141005;$$221225 = $$141217;$$221331 = $$141323;
  22795. label = 43;
  22796. continue L46;
  22797. }
  22798. }
  22799. $101 = ($$14|0)==(0);
  22800. if (!($101)) {
  22801. $102 = ($$14>>>0)<(8);
  22802. if ($102) {
  22803. $$101426 = $$91425;$$101617 = $$91616;$$141111 = $$131110;$$141521 = $$131520;$$15 = $$14;$$151006 = $$141005;$$151218 = $$141217;$$151324 = $$141323;
  22804. label = 29;
  22805. continue L125;
  22806. } else {
  22807. $$131429 = $$91425;$$131620 = $$91616;$$171114 = $$131110;$$171524 = $$131520;$$18 = $$14;$$181009 = $$141005;$$181221 = $$141217;$$181327 = $$141323;
  22808. label = 34;
  22809. continue L125;
  22810. }
  22811. }
  22812. $117 = ($$131520>>>0)<($10>>>0);
  22813. if (!($117)) {
  22814. $$141430 = $$91425;$$141621 = $$91616;$$181115 = $$131110;$$181525 = $$131520;$$19 = 0;$$191010 = $$141005;$$191222 = $$141217;$$191328 = $$141323;
  22815. label = 36;
  22816. continue L46;
  22817. }
  22818. $123 = ((($$131520)) + 1|0);
  22819. $124 = HEAP8[$$131520>>0]|0;
  22820. $125 = (((($0)) + 10528|0) + ($$131110)|0);
  22821. HEAP8[$125>>0] = $124;
  22822. $$161432 = $$91425;$$161623 = $$91616;$$201117 = $$131110;$$201527 = $123;$$21 = 0;$$211012 = $$141005;$$211224 = $$141217;$$211330 = $$141323;
  22823. label = 41;
  22824. continue L125;
  22825. break;
  22826. }
  22827. case 29: {
  22828. label = 0;
  22829. $103 = ($$141521>>>0)<($10>>>0);
  22830. if ($103) {
  22831. $$121428$ph = $$101426;$$121619$ph = $$101617;$$161113$ph = $$141111;$$17$ph = $$15;$$171008$ph = $$151006;$$171220$ph = $$151218;$$171326$ph = $$151324;$$sink1713 = $$141521;
  22832. label = 32;
  22833. continue L46;
  22834. } else {
  22835. $$111427 = $$101426;$$111618 = $$101617;$$151112 = $$141111;$$151522 = $$141521;$$16 = $$15;$$161007 = $$151006;$$161219 = $$151218;$$161325 = $$151324;
  22836. label = 30;
  22837. continue L46;
  22838. }
  22839. break;
  22840. }
  22841. case 34: {
  22842. label = 0;
  22843. $113 = $$181327&255;
  22844. $114 = (((($0)) + 10528|0) + ($$171114)|0);
  22845. HEAP8[$114>>0] = $113;
  22846. $115 = $$181327 >>> 8;
  22847. $116 = (($$18) + -8)|0;
  22848. $$161432 = $$131429;$$161623 = $$131620;$$201117 = $$171114;$$201527 = $$171524;$$21 = $116;$$211012 = $$181009;$$211224 = $$181221;$$211330 = $115;
  22849. label = 41;
  22850. continue L125;
  22851. break;
  22852. }
  22853. case 41: {
  22854. label = 0;
  22855. $126 = (($$201117) + 1)|0;
  22856. $$131110 = $126;$$131520 = $$201527;$$14 = $$21;$$141005 = $$211012;$$141217 = $$211224;$$141323 = $$211330;$$91425 = $$161432;$$91616 = $$161623;
  22857. label = 26;
  22858. continue L125;
  22859. break;
  22860. }
  22861. case 44: {
  22862. label = 0;
  22863. $145 = ($$221119|0)!=(0);
  22864. $146 = ($$23|0)!=(0);
  22865. $147 = $145 & $146;
  22866. if (!($147)) {
  22867. $$241440 = $$181434;$$241631 = $$181625;$$281019 = $$231014;$$281125 = $$221119;$$281535 = $$221529;$$29 = $$23;$$291232 = $$231226;$$291338 = $$231332;
  22868. label = 54;
  22869. continue L125;
  22870. }
  22871. $148 = ($$23>>>0)<(8);
  22872. if ($148) {
  22873. $$191435 = $$181434;$$191626 = $$181625;$$231120 = $$221119;$$231530 = $$221529;$$24 = $$23;$$241015 = $$231014;$$241227 = $$231226;$$241333 = $$231332;
  22874. label = 46;
  22875. continue L125;
  22876. } else {
  22877. $$221438 = $$181434;$$221629 = $$181625;$$261123 = $$221119;$$261533 = $$221529;$$27 = $$23;$$271230 = $$231226;$$271336 = $$231332;
  22878. label = 51;
  22879. continue L125;
  22880. }
  22881. break;
  22882. }
  22883. case 46: {
  22884. label = 0;
  22885. $149 = ($$231530>>>0)<($10>>>0);
  22886. if ($149) {
  22887. $$211437$ph = $$191435;$$211628$ph = $$191626;$$251122$ph = $$231120;$$26$ph = $$24;$$261017$ph = $$241015;$$261229$ph = $$241227;$$261335$ph = $$241333;$$sink1716 = $$231530;
  22888. label = 49;
  22889. continue L46;
  22890. } else {
  22891. $$201436 = $$191435;$$201627 = $$191626;$$241121 = $$231120;$$241531 = $$231530;$$25 = $$24;$$251016 = $$241015;$$251228 = $$241227;$$251334 = $$241333;
  22892. label = 47;
  22893. continue L46;
  22894. }
  22895. break;
  22896. }
  22897. case 51: {
  22898. label = 0;
  22899. $159 = $$271336 & 255;
  22900. $160 = $$271336 >>> 8;
  22901. $161 = (($$27) + -8)|0;
  22902. $$231439 = $$221438;$$231630 = $$221629;$$271018 = $159;$$271124 = $$261123;$$271534 = $$261533;$$28 = $161;$$281231 = $$271230;$$281337 = $160;
  22903. label = 52;
  22904. continue L46;
  22905. break;
  22906. }
  22907. case 54: {
  22908. label = 0;
  22909. $166 = ($$281125|0)==(0);
  22910. if ($166) {
  22911. $$761492 = $$241440;$$801071 = $$281019;$$801687 = $$241631;$$821285 = $$291232;$$831180 = 0;$$851592 = $$281535;$$86 = $$29;$$861395 = $$291338;
  22912. label = 220;
  22913. break L125;
  22914. } else {
  22915. $$251441 = $$241440;$$251632 = $$241631;$$291020 = $$281019;$$291126 = $$281125;$$291536 = $$281535;$$30 = $$29;$$301233 = $$291232;$$301339 = $$291338;
  22916. label = 55;
  22917. continue L46;
  22918. }
  22919. break;
  22920. }
  22921. case 61: {
  22922. label = 0;
  22923. $185 = ($$331130>>>0)<(3);
  22924. if ($185) {
  22925. $186 = (11524 + ($$331130)|0);
  22926. $187 = HEAP8[$186>>0]|0;
  22927. $188 = $187 << 24 >> 24;
  22928. $189 = ($$34>>>0)<($188>>>0);
  22929. if ($189) {
  22930. $$301446 = $$291445;$$301637 = $$291636;$$341025 = $$331024;$$341131 = $$331130;$$341541 = $$331540;$$35 = $$34;$$351238 = $$341237;$$351344 = $$341343;
  22931. label = 63;
  22932. continue L125;
  22933. } else {
  22934. $$331449 = $$291445;$$331640 = $$291636;$$371028 = $$331024;$$371134 = $$331130;$$371544 = $$331540;$$38 = $$34;$$381241 = $$341237;$$381347 = $$341343;
  22935. label = 68;
  22936. continue L125;
  22937. }
  22938. } else {
  22939. $216 = ((($0)) + 7040|0);
  22940. _memset(($216|0),0,288)|0;
  22941. $$341450 = $$291445;$$341641 = $$291636;$$381029 = $$331024;$$381135 = 0;$$381545 = $$331540;$$39 = $$34;$$391242 = $$341237;$$391348 = $$341343;
  22942. label = 70;
  22943. break;
  22944. }
  22945. break;
  22946. }
  22947. case 63: {
  22948. label = 0;
  22949. $190 = ($$341541>>>0)<($10>>>0);
  22950. if ($190) {
  22951. $$321448$ph = $$301446;$$321639$ph = $$301637;$$361027$ph = $$341025;$$361133$ph = $$341131;$$37$ph = $$35;$$371240$ph = $$351238;$$371346$ph = $$351344;$$sink1719 = $$341541;
  22952. label = 66;
  22953. continue L46;
  22954. } else {
  22955. $$311447 = $$301446;$$311638 = $$301637;$$351026 = $$341025;$$351132 = $$341131;$$351542 = $$341541;$$36 = $$35;$$361239 = $$351238;$$361345 = $$351344;
  22956. label = 64;
  22957. continue L46;
  22958. }
  22959. break;
  22960. }
  22961. case 68: {
  22962. label = 0;
  22963. $203 = (11524 + ($$371134)|0);
  22964. $204 = HEAP8[$203>>0]|0;
  22965. $205 = $204 << 24 >> 24;
  22966. $206 = 1 << $205;
  22967. $207 = (($206) + -1)|0;
  22968. $208 = $207 & $$381347;
  22969. $209 = (((($0)) + 44|0) + ($$371134<<2)|0);
  22970. $210 = $$381347 >>> $205;
  22971. $211 = (($$38) - ($205))|0;
  22972. $212 = (3104 + ($$371134<<2)|0);
  22973. $213 = HEAP32[$212>>2]|0;
  22974. $214 = (($208) + ($213))|0;
  22975. HEAP32[$209>>2] = $214;
  22976. $215 = (($$371134) + 1)|0;
  22977. $$291445 = $$331449;$$291636 = $$331640;$$331024 = $$371028;$$331130 = $215;$$331540 = $$371544;$$34 = $211;$$341237 = $$381241;$$341343 = $210;
  22978. label = 61;
  22979. continue L125;
  22980. break;
  22981. }
  22982. case 72: {
  22983. label = 0;
  22984. $221 = ($$391546>>>0)<($10>>>0);
  22985. if ($221) {
  22986. $$371453$ph = $$351451;$$371644$ph = $$351642;$$411032$ph = $$391030;$$411138$ph = $$391136;$$42$ph = $$40;$$421245$ph = $$401243;$$421351$ph = $$401349;$$sink1722 = $$391546;
  22987. label = 75;
  22988. continue L46;
  22989. } else {
  22990. $$361452 = $$351451;$$361643 = $$351642;$$401031 = $$391030;$$401137 = $$391136;$$401547 = $$391546;$$41 = $$40;$$411244 = $$401243;$$411350 = $$401349;
  22991. label = 73;
  22992. continue L46;
  22993. }
  22994. break;
  22995. }
  22996. case 77: {
  22997. label = 0;
  22998. $231 = $$431352 & 7;
  22999. $232 = $$431352 >>> 3;
  23000. $233 = (($$43) + -3)|0;
  23001. $234 = $231&255;
  23002. $235 = (11528 + ($$421139)|0);
  23003. $236 = HEAP8[$235>>0]|0;
  23004. $237 = $236&255;
  23005. $238 = (((($0)) + 7040|0) + ($237)|0);
  23006. HEAP8[$238>>0] = $234;
  23007. $239 = (($$421139) + 1)|0;
  23008. $$341450 = $$381454;$$341641 = $$381645;$$381029 = $$421033;$$381135 = $239;$$381545 = $$421549;$$39 = $233;$$391242 = $$431246;$$391348 = $232;
  23009. label = 70;
  23010. break;
  23011. }
  23012. case 80: {
  23013. label = 0;
  23014. $247 = ((($0)) + 24|0);
  23015. $248 = HEAP32[$247>>2]|0;
  23016. $249 = ($248|0)>(-1);
  23017. if ($249) {
  23018. dest=$8; stop=dest+64|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  23019. $250 = (((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0);
  23020. _memset(($250|0),0,3200)|0;
  23021. $251 = HEAP32[$247>>2]|0;
  23022. $252 = (((($0)) + 44|0) + ($251<<2)|0);
  23023. $253 = HEAP32[$252>>2]|0;
  23024. $254 = ($253|0)==(0);
  23025. if (!($254)) {
  23026. $255 = HEAP32[$247>>2]|0;
  23027. $256 = (((($0)) + 44|0) + ($255<<2)|0);
  23028. $257 = HEAP32[$256>>2]|0;
  23029. $$010951864 = 0;
  23030. while(1) {
  23031. $258 = ((((($0)) + 64|0) + (($248*3488)|0)|0) + ($$010951864)|0);
  23032. $259 = HEAP8[$258>>0]|0;
  23033. $260 = $259&255;
  23034. $261 = (($8) + ($260<<2)|0);
  23035. $262 = HEAP32[$261>>2]|0;
  23036. $263 = (($262) + 1)|0;
  23037. HEAP32[$261>>2] = $263;
  23038. $264 = (($$010951864) + 1)|0;
  23039. $265 = ($264>>>0)<($257>>>0);
  23040. if ($265) {
  23041. $$010951864 = $264;
  23042. } else {
  23043. break;
  23044. }
  23045. }
  23046. }
  23047. $266 = ((($7)) + 4|0);
  23048. HEAP32[$266>>2] = 0;
  23049. HEAP32[$7>>2] = 0;
  23050. $267 = ((($8)) + 4|0);
  23051. $268 = HEAP32[$267>>2]|0;
  23052. $269 = $268 << 1;
  23053. $270 = ((($7)) + 8|0);
  23054. HEAP32[$270>>2] = $269;
  23055. $271 = ((($8)) + 8|0);
  23056. $272 = HEAP32[$271>>2]|0;
  23057. $273 = (($272) + ($268))|0;
  23058. $274 = (($272) + ($269))|0;
  23059. $275 = $274 << 1;
  23060. $276 = ((($7)) + 12|0);
  23061. HEAP32[$276>>2] = $275;
  23062. $277 = ((($8)) + 12|0);
  23063. $278 = HEAP32[$277>>2]|0;
  23064. $279 = (($278) + ($273))|0;
  23065. $280 = (($278) + ($275))|0;
  23066. $281 = $280 << 1;
  23067. $282 = ((($7)) + 16|0);
  23068. HEAP32[$282>>2] = $281;
  23069. $283 = ((($8)) + 16|0);
  23070. $284 = HEAP32[$283>>2]|0;
  23071. $285 = (($284) + ($279))|0;
  23072. $286 = (($284) + ($281))|0;
  23073. $287 = $286 << 1;
  23074. $288 = ((($7)) + 20|0);
  23075. HEAP32[$288>>2] = $287;
  23076. $289 = ((($8)) + 20|0);
  23077. $290 = HEAP32[$289>>2]|0;
  23078. $291 = (($290) + ($285))|0;
  23079. $292 = (($290) + ($287))|0;
  23080. $293 = $292 << 1;
  23081. $294 = ((($7)) + 24|0);
  23082. HEAP32[$294>>2] = $293;
  23083. $295 = ((($8)) + 24|0);
  23084. $296 = HEAP32[$295>>2]|0;
  23085. $297 = (($296) + ($291))|0;
  23086. $298 = (($296) + ($293))|0;
  23087. $299 = $298 << 1;
  23088. $300 = ((($7)) + 28|0);
  23089. HEAP32[$300>>2] = $299;
  23090. $301 = ((($8)) + 28|0);
  23091. $302 = HEAP32[$301>>2]|0;
  23092. $303 = (($302) + ($297))|0;
  23093. $304 = (($302) + ($299))|0;
  23094. $305 = $304 << 1;
  23095. $306 = ((($7)) + 32|0);
  23096. HEAP32[$306>>2] = $305;
  23097. $307 = ((($8)) + 32|0);
  23098. $308 = HEAP32[$307>>2]|0;
  23099. $309 = (($308) + ($303))|0;
  23100. $310 = (($308) + ($305))|0;
  23101. $311 = $310 << 1;
  23102. $312 = ((($7)) + 36|0);
  23103. HEAP32[$312>>2] = $311;
  23104. $313 = ((($8)) + 36|0);
  23105. $314 = HEAP32[$313>>2]|0;
  23106. $315 = (($314) + ($309))|0;
  23107. $316 = (($314) + ($311))|0;
  23108. $317 = $316 << 1;
  23109. $318 = ((($7)) + 40|0);
  23110. HEAP32[$318>>2] = $317;
  23111. $319 = ((($8)) + 40|0);
  23112. $320 = HEAP32[$319>>2]|0;
  23113. $321 = (($320) + ($315))|0;
  23114. $322 = (($320) + ($317))|0;
  23115. $323 = $322 << 1;
  23116. $324 = ((($7)) + 44|0);
  23117. HEAP32[$324>>2] = $323;
  23118. $325 = ((($8)) + 44|0);
  23119. $326 = HEAP32[$325>>2]|0;
  23120. $327 = (($326) + ($321))|0;
  23121. $328 = (($326) + ($323))|0;
  23122. $329 = $328 << 1;
  23123. $330 = ((($7)) + 48|0);
  23124. HEAP32[$330>>2] = $329;
  23125. $331 = ((($8)) + 48|0);
  23126. $332 = HEAP32[$331>>2]|0;
  23127. $333 = (($332) + ($327))|0;
  23128. $334 = (($332) + ($329))|0;
  23129. $335 = $334 << 1;
  23130. $336 = ((($7)) + 52|0);
  23131. HEAP32[$336>>2] = $335;
  23132. $337 = ((($8)) + 52|0);
  23133. $338 = HEAP32[$337>>2]|0;
  23134. $339 = (($338) + ($333))|0;
  23135. $340 = (($338) + ($335))|0;
  23136. $341 = $340 << 1;
  23137. $342 = ((($7)) + 56|0);
  23138. HEAP32[$342>>2] = $341;
  23139. $343 = ((($8)) + 56|0);
  23140. $344 = HEAP32[$343>>2]|0;
  23141. $345 = (($344) + ($339))|0;
  23142. $346 = (($344) + ($341))|0;
  23143. $347 = $346 << 1;
  23144. $348 = ((($7)) + 60|0);
  23145. HEAP32[$348>>2] = $347;
  23146. $349 = ((($8)) + 60|0);
  23147. $350 = HEAP32[$349>>2]|0;
  23148. $351 = (($350) + ($345))|0;
  23149. $352 = (($350) + ($347))|0;
  23150. $353 = $352 << 1;
  23151. $354 = ((($7)) + 64|0);
  23152. HEAP32[$354>>2] = $353;
  23153. $355 = ($353|0)!=(65536);
  23154. $356 = ($351>>>0)>(1);
  23155. $or$cond = $355 & $356;
  23156. if ($or$cond) {
  23157. $$401456 = $$391455;$$401647 = $$391646;$$441035 = $$431034;$$441141 = $$431140;$$441551 = $$431550;$$45 = $$44;$$451248 = $$441247;$$451354 = $$441353;
  23158. label = 86;
  23159. continue L46;
  23160. }
  23161. $357 = HEAP32[$247>>2]|0;
  23162. $358 = (((($0)) + 44|0) + ($357<<2)|0);
  23163. $359 = HEAP32[$358>>2]|0;
  23164. $360 = ($359|0)==(0);
  23165. if ($360) {
  23166. $$lcssa1779 = $357;
  23167. } else {
  23168. $$010911856 = 0;$$011971855 = -1;
  23169. while(1) {
  23170. $361 = ((((($0)) + 64|0) + (($248*3488)|0)|0) + ($$010911856)|0);
  23171. $362 = HEAP8[$361>>0]|0;
  23172. $363 = $362&255;
  23173. $364 = ($362<<24>>24)==(0);
  23174. L142: do {
  23175. if ($364) {
  23176. $$41201 = $$011971855;
  23177. } else {
  23178. $365 = (($7) + ($363<<2)|0);
  23179. $366 = HEAP32[$365>>2]|0;
  23180. $367 = (($366) + 1)|0;
  23181. HEAP32[$365>>2] = $367;
  23182. $$010861840 = $366;$$010871839 = $363;$$010881838 = 0;
  23183. while(1) {
  23184. $368 = $$010881838 << 1;
  23185. $369 = $$010861840 & 1;
  23186. $370 = $369 | $368;
  23187. $371 = (($$010871839) + -1)|0;
  23188. $372 = $$010861840 >>> 1;
  23189. $373 = ($371|0)==(0);
  23190. if ($373) {
  23191. break;
  23192. } else {
  23193. $$010861840 = $372;$$010871839 = $371;$$010881838 = $370;
  23194. }
  23195. }
  23196. $374 = ($362&255)<(11);
  23197. if ($374) {
  23198. $375 = $363 << 9;
  23199. $376 = $375 | $$010911856;
  23200. $377 = $376&65535;
  23201. $378 = ($370>>>0)<(1024);
  23202. if (!($378)) {
  23203. $$41201 = $$011971855;
  23204. break;
  23205. }
  23206. $379 = 1 << $363;
  23207. $$110891852 = $370;
  23208. while(1) {
  23209. $380 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0) + ($$110891852<<1)|0);
  23210. HEAP16[$380>>1] = $377;
  23211. $381 = (($$110891852) + ($379))|0;
  23212. $382 = ($381>>>0)<(1024);
  23213. if ($382) {
  23214. $$110891852 = $381;
  23215. } else {
  23216. $$41201 = $$011971855;
  23217. break L142;
  23218. }
  23219. }
  23220. }
  23221. $383 = $370 & 1023;
  23222. $384 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0) + ($383<<1)|0);
  23223. $385 = HEAP16[$384>>1]|0;
  23224. $386 = $385 << 16 >> 16;
  23225. $387 = ($385<<16>>16)==(0);
  23226. if ($387) {
  23227. $388 = (($$011971855) + -2)|0;
  23228. $389 = $$011971855&65535;
  23229. HEAP16[$384>>1] = $389;
  23230. $$01194 = $$011971855;$$11198 = $388;
  23231. } else {
  23232. $$01194 = $386;$$11198 = $$011971855;
  23233. }
  23234. $390 = $$010881838 >>> 9;
  23235. $391 = ($362&255)>(11);
  23236. $392 = $390 & 1;
  23237. $393 = (($392) - ($$01194))|0;
  23238. $394 = (($393) + -1)|0;
  23239. if ($391) {
  23240. $395 = $390 & 4194303;
  23241. $$010941846 = $363;$$211991845 = $$11198;$397 = $394;$406 = $395;
  23242. while(1) {
  23243. $396 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 2336|0) + ($397<<1)|0);
  23244. $398 = HEAP16[$396>>1]|0;
  23245. $399 = ($398<<16>>16)==(0);
  23246. if ($399) {
  23247. $400 = $$211991845&65535;
  23248. HEAP16[$396>>1] = $400;
  23249. $401 = (($$211991845) + -2)|0;
  23250. $$21196 = $$211991845;$$31200 = $401;
  23251. } else {
  23252. $402 = $398 << 16 >> 16;
  23253. $$21196 = $402;$$31200 = $$211991845;
  23254. }
  23255. $403 = (($$010941846) + -1)|0;
  23256. $404 = ($403>>>0)>(11);
  23257. $405 = $406 >>> 1;
  23258. $407 = $405 & 1;
  23259. $408 = (($407) - ($$21196))|0;
  23260. $409 = (($408) + -1)|0;
  23261. if ($404) {
  23262. $$010941846 = $403;$$211991845 = $$31200;$397 = $409;$406 = $405;
  23263. } else {
  23264. $$21199$lcssa = $$31200;$$lcssa1778 = $409;
  23265. break;
  23266. }
  23267. }
  23268. } else {
  23269. $$21199$lcssa = $$11198;$$lcssa1778 = $394;
  23270. }
  23271. $410 = $$010911856&65535;
  23272. $411 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 2336|0) + ($$lcssa1778<<1)|0);
  23273. HEAP16[$411>>1] = $410;
  23274. $$41201 = $$21199$lcssa;
  23275. }
  23276. } while(0);
  23277. $412 = (($$010911856) + 1)|0;
  23278. $413 = HEAP32[$247>>2]|0;
  23279. $414 = (((($0)) + 44|0) + ($413<<2)|0);
  23280. $415 = HEAP32[$414>>2]|0;
  23281. $416 = ($412>>>0)<($415>>>0);
  23282. if ($416) {
  23283. $$010911856 = $412;$$011971855 = $$41201;
  23284. } else {
  23285. $$lcssa1779 = $413;
  23286. break;
  23287. }
  23288. }
  23289. }
  23290. $417 = ($$lcssa1779|0)==(2);
  23291. if ($417) {
  23292. $$411457 = $$391455;$$411648 = $$391646;$$451036 = $$431034;$$451142 = 0;$$451552 = $$431550;$$46 = $$44;$$461249 = $$441247;$$461355 = $$441353;
  23293. label = 105;
  23294. } else {
  23295. $$521468 = $$391455;$$521659 = $$391646;$$551046 = $$431034;$$561153 = $$431140;$$561563 = $$431550;$$57 = $$44;$$571260 = $$441247;$$571366 = $$441353;
  23296. label = 138;
  23297. }
  23298. } else {
  23299. $$531469 = $$391455;$$531660 = $$391646;$$561047 = $$431034;$$571154 = $$431140;$$571564 = $$431550;$$58 = $$44;$$581261 = $$441247;$$581367 = $$441353;
  23300. label = 139;
  23301. }
  23302. break;
  23303. }
  23304. case 108: {
  23305. label = 0;
  23306. $429 = $$471356 & 1023;
  23307. $430 = (((($0)) + 7328|0) + ($429<<1)|0);
  23308. $431 = HEAP16[$430>>1]|0;
  23309. $432 = $431 << 16 >> 16;
  23310. $433 = ($431<<16>>16)>(-1);
  23311. if ($433) {
  23312. $434 = $432 >> 9;
  23313. $435 = (($434) + -1)|0;
  23314. $436 = ($435>>>0)<($$47>>>0);
  23315. if ($436) {
  23316. $$451461 = $$421458;$$451652 = $$421649;$$491146 = $$461143;$$491556 = $$461553;$$50 = $$47;$$501253 = $$471250;$$501359 = $$471356;
  23317. label = 119;
  23318. continue L125;
  23319. } else {
  23320. label = 113;
  23321. break L125;
  23322. }
  23323. }
  23324. $437 = ($$47>>>0)>(10);
  23325. if ($437) {
  23326. $$0981 = 10;$$0984 = $432;
  23327. } else {
  23328. label = 113;
  23329. break L125;
  23330. }
  23331. while(1) {
  23332. $438 = $$0984 ^ -1;
  23333. $439 = $$471356 >>> $$0981;
  23334. $440 = $439 & 1;
  23335. $441 = (($440) + ($438))|0;
  23336. $442 = (((($0)) + 9376|0) + ($441<<1)|0);
  23337. $443 = HEAP16[$442>>1]|0;
  23338. $444 = ($443<<16>>16)<(0);
  23339. if (!($444)) {
  23340. $$451461 = $$421458;$$451652 = $$421649;$$491146 = $$461143;$$491556 = $$461553;$$50 = $$47;$$501253 = $$471250;$$501359 = $$471356;
  23341. label = 119;
  23342. continue L125;
  23343. }
  23344. $445 = (($$0981) + 1)|0;
  23345. $446 = $443 << 16 >> 16;
  23346. $447 = (($$0981) + 2)|0;
  23347. $448 = ($$47>>>0)<($447>>>0);
  23348. if ($448) {
  23349. label = 113;
  23350. break L125;
  23351. } else {
  23352. $$0981 = $445;$$0984 = $446;
  23353. }
  23354. }
  23355. break;
  23356. }
  23357. case 119: {
  23358. label = 0;
  23359. $471 = $$501359 & 1023;
  23360. $472 = (((($0)) + 7328|0) + ($471<<1)|0);
  23361. $473 = HEAP16[$472>>1]|0;
  23362. $474 = $473 << 16 >> 16;
  23363. $475 = ($473<<16>>16)>(-1);
  23364. if ($475) {
  23365. $476 = $474 >> 9;
  23366. $477 = $474 & 511;
  23367. $$2983 = $476;$$2986 = $477;
  23368. } else {
  23369. $$1982 = 10;$$1985 = $474;
  23370. while(1) {
  23371. $478 = $$1985 ^ -1;
  23372. $479 = (($$1982) + 1)|0;
  23373. $480 = $$501359 >>> $$1982;
  23374. $481 = $480 & 1;
  23375. $482 = (($481) + ($478))|0;
  23376. $483 = (((($0)) + 9376|0) + ($482<<1)|0);
  23377. $484 = HEAP16[$483>>1]|0;
  23378. $485 = $484 << 16 >> 16;
  23379. $486 = ($484<<16>>16)<(0);
  23380. if ($486) {
  23381. $$1982 = $479;$$1985 = $485;
  23382. } else {
  23383. $$2983 = $479;$$2986 = $485;
  23384. break;
  23385. }
  23386. }
  23387. }
  23388. $487 = $$501359 >>> $$2983;
  23389. $488 = (($$50) - ($$2983))|0;
  23390. $489 = ($$2986>>>0)<(16);
  23391. if ($489) {
  23392. $490 = $$2986&255;
  23393. $491 = (($$491146) + 1)|0;
  23394. $492 = (((($0)) + 10532|0) + ($$491146)|0);
  23395. HEAP8[$492>>0] = $490;
  23396. $$411457 = $$451461;$$411648 = $$451652;$$451036 = $$2986;$$451142 = $491;$$451552 = $$491556;$$46 = $488;$$461249 = $$501253;$$461355 = $487;
  23397. label = 105;
  23398. break;
  23399. }
  23400. $493 = ($$2986|0)!=(16);
  23401. $494 = ($$491146|0)!=(0);
  23402. $or$cond24 = $494 | $493;
  23403. if (!($or$cond24)) {
  23404. $$461462 = $$451461;$$461653 = $$451652;$$491040 = $$2986;$$501147 = $$491146;$$501557 = $$491556;$$51 = $488;$$511254 = $$501253;$$511360 = $487;
  23405. label = 125;
  23406. continue L46;
  23407. }
  23408. $495 = (($$2986) + -16)|0;
  23409. $496 = (11547 + ($495)|0);
  23410. $497 = HEAP8[$496>>0]|0;
  23411. $498 = $497 << 24 >> 24;
  23412. $499 = ($488>>>0)<($498>>>0);
  23413. if ($499) {
  23414. $$471463 = $$451461;$$471654 = $$451652;$$501041 = $$2986;$$511148 = $$491146;$$511558 = $$491556;$$52 = $488;$$521255 = $498;$$521361 = $487;
  23415. label = 127;
  23416. continue L125;
  23417. } else {
  23418. $$501466 = $$451461;$$501657 = $$451652;$$531044 = $$2986;$$541151 = $$491146;$$541561 = $$491556;$$55 = $488;$$551258 = $498;$$551364 = $487;
  23419. label = 132;
  23420. continue L125;
  23421. }
  23422. break;
  23423. }
  23424. case 127: {
  23425. label = 0;
  23426. $500 = ($$511558>>>0)<($10>>>0);
  23427. if ($500) {
  23428. $$491465$ph = $$471463;$$491656$ph = $$471654;$$521043$ph = $$501041;$$531150$ph = $$511148;$$54$ph = $$52;$$541257$ph = $$521255;$$541363$ph = $$521361;$$sink1732 = $$511558;
  23429. label = 130;
  23430. continue L46;
  23431. } else {
  23432. $$481464 = $$471463;$$481655 = $$471654;$$511042 = $$501041;$$521149 = $$511148;$$521559 = $$511558;$$53 = $$52;$$531256 = $$521255;$$531362 = $$521361;
  23433. label = 128;
  23434. continue L46;
  23435. }
  23436. break;
  23437. }
  23438. case 132: {
  23439. label = 0;
  23440. $510 = 1 << $$551258;
  23441. $511 = (($510) + -1)|0;
  23442. $512 = $511 & $$551364;
  23443. $513 = $$551364 >>> $$551258;
  23444. $514 = (($$55) - ($$551258))|0;
  23445. $515 = (($$531044) + -16)|0;
  23446. $516 = (11551 + ($515)|0);
  23447. $517 = HEAP8[$516>>0]|0;
  23448. $518 = $517 << 24 >> 24;
  23449. $519 = (($518) + ($512))|0;
  23450. $520 = (((($0)) + 10532|0) + ($$541151)|0);
  23451. $521 = ($$531044|0)==(16);
  23452. if ($521) {
  23453. $522 = (($$541151) + -1)|0;
  23454. $523 = (((($0)) + 10532|0) + ($522)|0);
  23455. $524 = HEAP8[$523>>0]|0;
  23456. $525 = $524&255;
  23457. $527 = $525;
  23458. } else {
  23459. $527 = 0;
  23460. }
  23461. $526 = $527&255;
  23462. _memset(($520|0),($526|0),($519|0))|0;
  23463. $528 = (($519) + ($$541151))|0;
  23464. $$411457 = $$501466;$$411648 = $$501657;$$451036 = $$531044;$$451142 = $528;$$451552 = $$541561;$$46 = $514;$$461249 = $$551258;$$461355 = $513;
  23465. label = 105;
  23466. break;
  23467. }
  23468. case 140: {
  23469. label = 0;
  23470. $539 = $10;
  23471. $540 = $$581565$ph;
  23472. $541 = (($539) - ($540))|0;
  23473. $542 = ($541|0)<(4);
  23474. $543 = ($$59$ph>>>0)<(15);
  23475. L241: do {
  23476. if ($542) {
  23477. $$541661$lcssa = $$541661$ph;$$581155$lcssa = $$581155$ph;$$581565$lcssa = $$581565$ph;$$59$lcssa = $$59$ph;$$591368$lcssa = $$591368$ph;$$lcssa1799 = $543;$$lcssa1802 = $541;
  23478. } else {
  23479. $544 = $12;
  23480. $$5416611868 = $$541661$ph;$$5811551871 = $$581155$ph;$$5815651869 = $$581565$ph;$$5913681870 = $$591368$ph;$$591872 = $$59$ph;$965 = $543;$966 = $541;
  23481. while(1) {
  23482. $545 = $$5416611868;
  23483. $546 = (($544) - ($545))|0;
  23484. $547 = ($546|0)<(2);
  23485. if ($547) {
  23486. $$541661$lcssa = $$5416611868;$$581155$lcssa = $$5811551871;$$581565$lcssa = $$5815651869;$$59$lcssa = $$591872;$$591368$lcssa = $$5913681870;$$lcssa1799 = $965;$$lcssa1802 = $966;
  23487. break L241;
  23488. }
  23489. if ($965) {
  23490. $613 = HEAP8[$$5815651869>>0]|0;
  23491. $614 = $613&255;
  23492. $615 = ((($$5815651869)) + 1|0);
  23493. $616 = HEAP8[$615>>0]|0;
  23494. $617 = $616&255;
  23495. $618 = $617 << 8;
  23496. $619 = $618 | $614;
  23497. $620 = $619 << $$591872;
  23498. $621 = $620 | $$5913681870;
  23499. $622 = ((($$5815651869)) + 2|0);
  23500. $623 = (($$591872) + 16)|0;
  23501. $$641571 = $622;$$65 = $623;$$651374 = $621;
  23502. } else {
  23503. $$641571 = $$5815651869;$$65 = $$591872;$$651374 = $$5913681870;
  23504. }
  23505. $624 = $$651374 & 1023;
  23506. $625 = (((($0)) + 352|0) + ($624<<1)|0);
  23507. $626 = HEAP16[$625>>1]|0;
  23508. $627 = $626 << 16 >> 16;
  23509. $628 = ($626<<16>>16)>(-1);
  23510. if ($628) {
  23511. $629 = $627 >> 9;
  23512. $$1964 = $629;$$1968 = $627;
  23513. } else {
  23514. $$0963 = 10;$$0967 = $627;
  23515. while(1) {
  23516. $630 = $$0967 ^ -1;
  23517. $631 = (($$0963) + 1)|0;
  23518. $632 = $$651374 >>> $$0963;
  23519. $633 = $632 & 1;
  23520. $634 = (($633) + ($630))|0;
  23521. $635 = (((($0)) + 2400|0) + ($634<<1)|0);
  23522. $636 = HEAP16[$635>>1]|0;
  23523. $637 = $636 << 16 >> 16;
  23524. $638 = ($636<<16>>16)<(0);
  23525. if ($638) {
  23526. $$0963 = $631;$$0967 = $637;
  23527. } else {
  23528. $$1964 = $631;$$1968 = $637;
  23529. break;
  23530. }
  23531. }
  23532. }
  23533. $639 = $$651374 >>> $$1964;
  23534. $640 = (($$65) - ($$1964))|0;
  23535. $641 = $$1968 & 256;
  23536. $642 = ($641|0)==(0);
  23537. if (!($642)) {
  23538. $$601476 = $$541470$ph;$$611668 = $$5416611868;$$631054 = $$571048$ph;$$641161 = $$1968;$$651268 = $$591262$ph;$$671574 = $$641571;$$68 = $640;$$681377 = $639;
  23539. label = 176;
  23540. break L126;
  23541. }
  23542. $643 = ($640>>>0)<(15);
  23543. if ($643) {
  23544. $644 = HEAP8[$$641571>>0]|0;
  23545. $645 = $644&255;
  23546. $646 = ((($$641571)) + 1|0);
  23547. $647 = HEAP8[$646>>0]|0;
  23548. $648 = $647&255;
  23549. $649 = $648 << 8;
  23550. $650 = $649 | $645;
  23551. $651 = $650 << $640;
  23552. $652 = $651 | $639;
  23553. $653 = ((($$641571)) + 2|0);
  23554. $654 = (($640) + 16)|0;
  23555. $$651572 = $653;$$66 = $654;$$661375 = $652;
  23556. } else {
  23557. $$651572 = $$641571;$$66 = $640;$$661375 = $639;
  23558. }
  23559. $655 = $$661375 & 1023;
  23560. $656 = (((($0)) + 352|0) + ($655<<1)|0);
  23561. $657 = HEAP16[$656>>1]|0;
  23562. $658 = $657 << 16 >> 16;
  23563. $659 = ($657<<16>>16)>(-1);
  23564. if ($659) {
  23565. $660 = $658 >> 9;
  23566. $$3966 = $660;$$3970 = $658;
  23567. } else {
  23568. $$2965 = 10;$$2969 = $658;
  23569. while(1) {
  23570. $661 = $$2969 ^ -1;
  23571. $662 = (($$2965) + 1)|0;
  23572. $663 = $$661375 >>> $$2965;
  23573. $664 = $663 & 1;
  23574. $665 = (($664) + ($661))|0;
  23575. $666 = (((($0)) + 2400|0) + ($665<<1)|0);
  23576. $667 = HEAP16[$666>>1]|0;
  23577. $668 = $667 << 16 >> 16;
  23578. $669 = ($667<<16>>16)<(0);
  23579. if ($669) {
  23580. $$2965 = $662;$$2969 = $668;
  23581. } else {
  23582. $$3966 = $662;$$3970 = $668;
  23583. break;
  23584. }
  23585. }
  23586. }
  23587. $670 = $$661375 >>> $$3966;
  23588. $671 = (($$66) - ($$3966))|0;
  23589. $672 = $$1968&255;
  23590. HEAP8[$$5416611868>>0] = $672;
  23591. $673 = $$3970 & 256;
  23592. $674 = ($673|0)==(0);
  23593. if (!($674)) {
  23594. break;
  23595. }
  23596. $676 = $$3970&255;
  23597. $677 = ((($$5416611868)) + 1|0);
  23598. HEAP8[$677>>0] = $676;
  23599. $678 = ((($$5416611868)) + 2|0);
  23600. $679 = $$651572;
  23601. $680 = (($539) - ($679))|0;
  23602. $681 = ($680|0)<(4);
  23603. $682 = ($671>>>0)<(15);
  23604. if ($681) {
  23605. $$541661$lcssa = $678;$$581155$lcssa = $$1968;$$581565$lcssa = $$651572;$$59$lcssa = $671;$$591368$lcssa = $670;$$lcssa1799 = $682;$$lcssa1802 = $680;
  23606. break L241;
  23607. } else {
  23608. $$5416611868 = $678;$$5811551871 = $$1968;$$5815651869 = $$651572;$$5913681870 = $670;$$591872 = $671;$965 = $682;$966 = $680;
  23609. }
  23610. }
  23611. $675 = ((($$5416611868)) + 1|0);
  23612. $$601476 = $$541470$ph;$$611668 = $675;$$631054 = $$571048$ph;$$641161 = $$3970;$$651268 = $$591262$ph;$$671574 = $$651572;$$68 = $671;$$681377 = $670;
  23613. label = 176;
  23614. break L126;
  23615. }
  23616. } while(0);
  23617. if (!($$lcssa1799)) {
  23618. $$581474 = $$541470$ph;$$581665 = $$541661$lcssa;$$611052 = $$571048$ph;$$621569 = $$581565$lcssa;$$63 = $$59$lcssa;$$631266 = $$591262$ph;$$631372 = $$591368$lcssa;
  23619. label = 156;
  23620. continue L125;
  23621. }
  23622. $548 = ($$lcssa1802|0)<(2);
  23623. if ($548) {
  23624. $$551471 = $$541470$ph;$$551662 = $$541661$lcssa;$$581049 = $$571048$ph;$$591156 = $$581155$lcssa;$$591566 = $$581565$lcssa;$$60 = $$59$lcssa;$$601263 = $$591262$ph;$$601369 = $$591368$lcssa;
  23625. label = 145;
  23626. continue L125;
  23627. }
  23628. $579 = HEAP8[$$581565$lcssa>>0]|0;
  23629. $580 = $579&255;
  23630. $581 = $580 << $$59$lcssa;
  23631. $582 = ((($$581565$lcssa)) + 1|0);
  23632. $583 = HEAP8[$582>>0]|0;
  23633. $584 = $583&255;
  23634. $585 = (($$59$lcssa) + 8)|0;
  23635. $586 = $584 << $585;
  23636. $587 = $581 | $$591368$lcssa;
  23637. $588 = $587 | $586;
  23638. $589 = ((($$581565$lcssa)) + 2|0);
  23639. $590 = (($$59$lcssa) + 16)|0;
  23640. $$581474 = $$541470$ph;$$581665 = $$541661$lcssa;$$611052 = $$571048$ph;$$621569 = $589;$$63 = $590;$$631266 = $$591262$ph;$$631372 = $588;
  23641. label = 156;
  23642. continue L125;
  23643. break;
  23644. }
  23645. case 145: {
  23646. label = 0;
  23647. $549 = $$601369 & 1023;
  23648. $550 = (((($0)) + 352|0) + ($549<<1)|0);
  23649. $551 = HEAP16[$550>>1]|0;
  23650. $552 = $551 << 16 >> 16;
  23651. $553 = ($551<<16>>16)>(-1);
  23652. if ($553) {
  23653. $554 = $552 >> 9;
  23654. $555 = (($554) + -1)|0;
  23655. $556 = ($555>>>0)<($$60>>>0);
  23656. if ($556) {
  23657. $$581474 = $$551471;$$581665 = $$551662;$$611052 = $$581049;$$621569 = $$591566;$$63 = $$60;$$631266 = $$601263;$$631372 = $$601369;
  23658. label = 156;
  23659. continue L125;
  23660. } else {
  23661. label = 150;
  23662. break L125;
  23663. }
  23664. }
  23665. $557 = ($$60>>>0)>(10);
  23666. if ($557) {
  23667. $$0972 = 10;$$0975 = $552;
  23668. } else {
  23669. label = 150;
  23670. break L125;
  23671. }
  23672. while(1) {
  23673. $558 = $$0975 ^ -1;
  23674. $559 = $$601369 >>> $$0972;
  23675. $560 = $559 & 1;
  23676. $561 = (($560) + ($558))|0;
  23677. $562 = (((($0)) + 2400|0) + ($561<<1)|0);
  23678. $563 = HEAP16[$562>>1]|0;
  23679. $564 = ($563<<16>>16)<(0);
  23680. if (!($564)) {
  23681. $$581474 = $$551471;$$581665 = $$551662;$$611052 = $$581049;$$621569 = $$591566;$$63 = $$60;$$631266 = $$601263;$$631372 = $$601369;
  23682. label = 156;
  23683. continue L125;
  23684. }
  23685. $565 = (($$0972) + 1)|0;
  23686. $566 = $563 << 16 >> 16;
  23687. $567 = (($$0972) + 2)|0;
  23688. $568 = ($$60>>>0)<($567>>>0);
  23689. if ($568) {
  23690. label = 150;
  23691. break L125;
  23692. } else {
  23693. $$0972 = $565;$$0975 = $566;
  23694. }
  23695. }
  23696. break;
  23697. }
  23698. case 156: {
  23699. label = 0;
  23700. $591 = $$631372 & 1023;
  23701. $592 = (((($0)) + 352|0) + ($591<<1)|0);
  23702. $593 = HEAP16[$592>>1]|0;
  23703. $594 = $593 << 16 >> 16;
  23704. $595 = ($593<<16>>16)>(-1);
  23705. if ($595) {
  23706. $596 = $594 >> 9;
  23707. $597 = $594 & 511;
  23708. $$2974 = $596;$$2977 = $597;
  23709. } else {
  23710. $$1973 = 10;$$1976 = $594;
  23711. while(1) {
  23712. $598 = $$1976 ^ -1;
  23713. $599 = (($$1973) + 1)|0;
  23714. $600 = $$631372 >>> $$1973;
  23715. $601 = $600 & 1;
  23716. $602 = (($601) + ($598))|0;
  23717. $603 = (((($0)) + 2400|0) + ($602<<1)|0);
  23718. $604 = HEAP16[$603>>1]|0;
  23719. $605 = $604 << 16 >> 16;
  23720. $606 = ($604<<16>>16)<(0);
  23721. if ($606) {
  23722. $$1973 = $599;$$1976 = $605;
  23723. } else {
  23724. $$2974 = $599;$$2977 = $605;
  23725. break;
  23726. }
  23727. }
  23728. }
  23729. $607 = $$631372 >>> $$2974;
  23730. $608 = (($$63) - ($$2974))|0;
  23731. $609 = ($$2977>>>0)>(255);
  23732. if ($609) {
  23733. $$601476 = $$581474;$$611668 = $$581665;$$631054 = $$611052;$$641161 = $$2977;$$651268 = $$631266;$$671574 = $$621569;$$68 = $608;$$681377 = $607;
  23734. label = 176;
  23735. } else {
  23736. $$591475 = $$581474;$$591666 = $$581665;$$621053 = $$611052;$$621159 = $$2977;$$631570 = $$621569;$$64 = $608;$$641267 = $$631266;$$641373 = $607;
  23737. label = 160;
  23738. continue L46;
  23739. }
  23740. break;
  23741. }
  23742. case 179: {
  23743. label = 0;
  23744. $693 = ($$681575>>>0)<($10>>>0);
  23745. if ($693) {
  23746. $$631479$ph = $$611477;$$641671$ph = $$621669;$$661057$ph = $$641055;$$671164$ph = $$651162;$$681271$ph = $$661269;$$71$ph = $$69;$$711380$ph = $$691378;$$sink1739 = $$681575;
  23747. label = 182;
  23748. continue L46;
  23749. } else {
  23750. $$621478 = $$611477;$$631670 = $$621669;$$651056 = $$641055;$$661163 = $$651162;$$671270 = $$661269;$$691576 = $$681575;$$70 = $$69;$$701379 = $$691378;
  23751. label = 180;
  23752. continue L46;
  23753. }
  23754. break;
  23755. }
  23756. case 184: {
  23757. label = 0;
  23758. $703 = 1 << $$691272;
  23759. $704 = (($703) + -1)|0;
  23760. $705 = $704 & $$721381;
  23761. $706 = $$721381 >>> $$691272;
  23762. $707 = (($$72) - ($$691272))|0;
  23763. $708 = (($705) + ($$681165))|0;
  23764. $$651481 = $$641480;$$661673 = $$651672;$$681059 = $$671058;$$691166 = $708;$$701273 = $$691272;$$721579 = $$711578;$$73 = $707;$$731382 = $706;
  23765. label = 185;
  23766. break;
  23767. }
  23768. case 187: {
  23769. label = 0;
  23770. $714 = $$741383 & 1023;
  23771. $715 = (((($0)) + 3840|0) + ($714<<1)|0);
  23772. $716 = HEAP16[$715>>1]|0;
  23773. $717 = $716 << 16 >> 16;
  23774. $718 = ($716<<16>>16)>(-1);
  23775. if ($718) {
  23776. $719 = $717 >> 9;
  23777. $720 = (($719) + -1)|0;
  23778. $721 = ($720>>>0)<($$74>>>0);
  23779. if ($721) {
  23780. $$691485 = $$661482;$$701677 = $$671674;$$731170 = $$701167;$$761583 = $$731580;$$77 = $$74;$$771386 = $$741383;
  23781. label = 198;
  23782. continue L125;
  23783. } else {
  23784. label = 192;
  23785. break L125;
  23786. }
  23787. }
  23788. $722 = ($$74>>>0)>(10);
  23789. if ($722) {
  23790. $$0953 = 10;$$0956 = $717;
  23791. } else {
  23792. label = 192;
  23793. break L125;
  23794. }
  23795. while(1) {
  23796. $723 = $$0956 ^ -1;
  23797. $724 = $$741383 >>> $$0953;
  23798. $725 = $724 & 1;
  23799. $726 = (($725) + ($723))|0;
  23800. $727 = (((($0)) + 5888|0) + ($726<<1)|0);
  23801. $728 = HEAP16[$727>>1]|0;
  23802. $729 = ($728<<16>>16)<(0);
  23803. if (!($729)) {
  23804. $$691485 = $$661482;$$701677 = $$671674;$$731170 = $$701167;$$761583 = $$731580;$$77 = $$74;$$771386 = $$741383;
  23805. label = 198;
  23806. continue L125;
  23807. }
  23808. $730 = (($$0953) + 1)|0;
  23809. $731 = $728 << 16 >> 16;
  23810. $732 = (($$0953) + 2)|0;
  23811. $733 = ($$74>>>0)<($732>>>0);
  23812. if ($733) {
  23813. label = 192;
  23814. break L125;
  23815. } else {
  23816. $$0953 = $730;$$0956 = $731;
  23817. }
  23818. }
  23819. break;
  23820. }
  23821. case 198: {
  23822. label = 0;
  23823. $756 = $$771386 & 1023;
  23824. $757 = (((($0)) + 3840|0) + ($756<<1)|0);
  23825. $758 = HEAP16[$757>>1]|0;
  23826. $759 = $758 << 16 >> 16;
  23827. $760 = ($758<<16>>16)>(-1);
  23828. if ($760) {
  23829. $761 = $759 >> 9;
  23830. $762 = $759 & 511;
  23831. $$2955 = $761;$$2958 = $762;
  23832. } else {
  23833. $$1954 = 10;$$1957 = $759;
  23834. while(1) {
  23835. $763 = $$1957 ^ -1;
  23836. $764 = (($$1954) + 1)|0;
  23837. $765 = $$771386 >>> $$1954;
  23838. $766 = $765 & 1;
  23839. $767 = (($766) + ($763))|0;
  23840. $768 = (((($0)) + 5888|0) + ($767<<1)|0);
  23841. $769 = HEAP16[$768>>1]|0;
  23842. $770 = $769 << 16 >> 16;
  23843. $771 = ($769<<16>>16)<(0);
  23844. if ($771) {
  23845. $$1954 = $764;$$1957 = $770;
  23846. } else {
  23847. $$2955 = $764;$$2958 = $770;
  23848. break;
  23849. }
  23850. }
  23851. }
  23852. $772 = $$771386 >>> $$2955;
  23853. $773 = (($$77) - ($$2955))|0;
  23854. $774 = (3364 + ($$2958<<2)|0);
  23855. $775 = HEAP32[$774>>2]|0;
  23856. $776 = (3492 + ($$2958<<2)|0);
  23857. $777 = HEAP32[$776>>2]|0;
  23858. $778 = (($$2958) + -4)|0;
  23859. $779 = ($778>>>0)<(26);
  23860. if ($779) {
  23861. $780 = ($773>>>0)<($775>>>0);
  23862. if ($780) {
  23863. $$701486 = $$691485;$$711678 = $$701677;$$721063 = $777;$$741171 = $$731170;$$741277 = $775;$$771584 = $$761583;$$78 = $773;$$781387 = $772;
  23864. label = 203;
  23865. continue L125;
  23866. } else {
  23867. $$741681 = $$701677;$$751066 = $777;$$771174 = $$731170;$$771280 = $775;$$801587 = $$761583;$$81 = $773;$$811390 = $772;
  23868. label = 208;
  23869. continue L125;
  23870. }
  23871. } else {
  23872. $$751682 = $$701677;$$761067 = $777;$$781175 = $$731170;$$781281 = $775;$$811588 = $$761583;$$82 = $773;$$821391 = $772;
  23873. label = 209;
  23874. }
  23875. break;
  23876. }
  23877. case 203: {
  23878. label = 0;
  23879. $781 = ($$771584>>>0)<($10>>>0);
  23880. if ($781) {
  23881. $$721488$ph = $$701486;$$731680$ph = $$711678;$$741065$ph = $$721063;$$761173$ph = $$741171;$$761279$ph = $$741277;$$80$ph = $$78;$$801389$ph = $$781387;$$sink1746 = $$771584;
  23882. label = 206;
  23883. continue L46;
  23884. } else {
  23885. $$711487 = $$701486;$$721679 = $$711678;$$731064 = $$721063;$$751172 = $$741171;$$751278 = $$741277;$$781585 = $$771584;$$79 = $$78;$$791388 = $$781387;
  23886. label = 204;
  23887. continue L46;
  23888. }
  23889. break;
  23890. }
  23891. case 208: {
  23892. label = 0;
  23893. $791 = 1 << $$771280;
  23894. $792 = (($791) + -1)|0;
  23895. $793 = $792 & $$811390;
  23896. $794 = $$811390 >>> $$771280;
  23897. $795 = (($$81) - ($$771280))|0;
  23898. $796 = (($793) + ($$751066))|0;
  23899. $$751682 = $$741681;$$761067 = $796;$$781175 = $$771174;$$781281 = $$771280;$$811588 = $$801587;$$82 = $795;$$821391 = $794;
  23900. label = 209;
  23901. break;
  23902. }
  23903. case 212: {
  23904. label = 0;
  23905. $807 = (($$801177) + -1)|0;
  23906. $808 = ($$801177|0)==(0);
  23907. if ($808) {
  23908. $$531469 = $$741490;$$531660 = $$771684;$$561047 = $$781069;$$571154 = $807;$$571564 = $$831590;$$58 = $$84;$$581261 = $$801283;$$581367 = $$841393;
  23909. label = 139;
  23910. } else {
  23911. $$751491 = $$741490;$$781685 = $$771684;$$791070 = $$781069;$$811178 = $807;$$811284 = $$801283;$$841591 = $$831590;$$85 = $$84;$$851394 = $$841393;
  23912. label = 213;
  23913. continue L46;
  23914. }
  23915. break;
  23916. }
  23917. }
  23918. do {
  23919. if ((label|0) == 70) {
  23920. label = 0;
  23921. $217 = ((($0)) + 52|0);
  23922. $218 = HEAP32[$217>>2]|0;
  23923. $219 = ($$381135>>>0)<($218>>>0);
  23924. if ($219) {
  23925. $220 = ($$39>>>0)<(3);
  23926. if ($220) {
  23927. $$351451 = $$341450;$$351642 = $$341641;$$391030 = $$381029;$$391136 = $$381135;$$391546 = $$381545;$$40 = $$39;$$401243 = $$391242;$$401349 = $$391348;
  23928. label = 72;
  23929. continue L125;
  23930. } else {
  23931. $$381454 = $$341450;$$381645 = $$341641;$$421033 = $$381029;$$421139 = $$381135;$$421549 = $$381545;$$43 = $$39;$$431246 = $$391242;$$431352 = $$391348;
  23932. label = 77;
  23933. continue L125;
  23934. }
  23935. } else {
  23936. HEAP32[$217>>2] = 19;
  23937. $$391455 = $$341450;$$391646 = $$341641;$$431034 = $$381029;$$431140 = $$381135;$$431550 = $$381545;$$44 = $$39;$$441247 = $$391242;$$441353 = $$391348;
  23938. label = 80;
  23939. continue L125;
  23940. }
  23941. }
  23942. else if ((label|0) == 105) {
  23943. label = 0;
  23944. $418 = ((($0)) + 44|0);
  23945. $419 = HEAP32[$418>>2]|0;
  23946. $420 = ((($0)) + 48|0);
  23947. $421 = HEAP32[$420>>2]|0;
  23948. $422 = (($421) + ($419))|0;
  23949. $423 = ($$451142>>>0)<($422>>>0);
  23950. if (!($423)) {
  23951. $529 = ($422|0)==($$451142|0);
  23952. if (!($529)) {
  23953. $$511467 = $$411457;$$511658 = $$411648;$$541045 = $$451036;$$551152 = $$451142;$$551562 = $$451552;$$56 = $$46;$$561259 = $$461249;$$561365 = $$461355;
  23954. label = 136;
  23955. continue L46;
  23956. }
  23957. $530 = ((($0)) + 64|0);
  23958. $531 = ((($0)) + 10532|0);
  23959. _memcpy(($530|0),($531|0),($419|0))|0;
  23960. $532 = ((($0)) + 3552|0);
  23961. $533 = HEAP32[$418>>2]|0;
  23962. $534 = (((($0)) + 10532|0) + ($533)|0);
  23963. $535 = HEAP32[$420>>2]|0;
  23964. _memcpy(($532|0),($534|0),($535|0))|0;
  23965. $$521468 = $$411457;$$521659 = $$411648;$$551046 = $$451036;$$561153 = $$451142;$$561563 = $$451552;$$57 = $$46;$$571260 = $$461249;$$571366 = $$461355;
  23966. label = 138;
  23967. break;
  23968. }
  23969. $424 = ($$46>>>0)<(15);
  23970. if (!($424)) {
  23971. $$451461 = $$411457;$$451652 = $$411648;$$491146 = $$451142;$$491556 = $$451552;$$50 = $$46;$$501253 = $$461249;$$501359 = $$461355;
  23972. label = 119;
  23973. continue L125;
  23974. }
  23975. $425 = $10;
  23976. $426 = $$451552;
  23977. $427 = (($425) - ($426))|0;
  23978. $428 = ($427|0)<(2);
  23979. if ($428) {
  23980. $$421458 = $$411457;$$421649 = $$411648;$$461037 = $$451036;$$461143 = $$451142;$$461553 = $$451552;$$47 = $$46;$$471250 = $$461249;$$471356 = $$461355;
  23981. label = 108;
  23982. continue L125;
  23983. }
  23984. $459 = HEAP8[$$451552>>0]|0;
  23985. $460 = $459&255;
  23986. $461 = $460 << $$46;
  23987. $462 = ((($$451552)) + 1|0);
  23988. $463 = HEAP8[$462>>0]|0;
  23989. $464 = $463&255;
  23990. $465 = (($$46) + 8)|0;
  23991. $466 = $464 << $465;
  23992. $467 = $461 | $$461355;
  23993. $468 = $467 | $466;
  23994. $469 = ((($$451552)) + 2|0);
  23995. $470 = (($$46) + 16)|0;
  23996. $$451461 = $$411457;$$451652 = $$411648;$$491146 = $$451142;$$491556 = $469;$$50 = $470;$$501253 = $$461249;$$501359 = $468;
  23997. label = 119;
  23998. continue L125;
  23999. }
  24000. else if ((label|0) == 176) {
  24001. label = 0;
  24002. $683 = $$641161 & 511;
  24003. $684 = ($683|0)==(256);
  24004. if ($684) {
  24005. $$761492 = $$601476;$$801071 = $$631054;$$801687 = $$611668;$$821285 = $$651268;$$831180 = 256;$$851592 = $$671574;$$86 = $$68;$$861395 = $$681377;
  24006. label = 220;
  24007. break L125;
  24008. }
  24009. $685 = (($683) + -257)|0;
  24010. $686 = (3116 + ($685<<2)|0);
  24011. $687 = HEAP32[$686>>2]|0;
  24012. $688 = (3240 + ($685<<2)|0);
  24013. $689 = HEAP32[$688>>2]|0;
  24014. $690 = (($683) + -265)|0;
  24015. $691 = ($690>>>0)<(20);
  24016. if ($691) {
  24017. $692 = ($$68>>>0)<($687>>>0);
  24018. if ($692) {
  24019. $$611477 = $$601476;$$621669 = $$611668;$$641055 = $$631054;$$651162 = $689;$$661269 = $687;$$681575 = $$671574;$$69 = $$68;$$691378 = $$681377;
  24020. label = 179;
  24021. continue L125;
  24022. } else {
  24023. $$641480 = $$601476;$$651672 = $$611668;$$671058 = $$631054;$$681165 = $689;$$691272 = $687;$$711578 = $$671574;$$72 = $$68;$$721381 = $$681377;
  24024. label = 184;
  24025. continue L125;
  24026. }
  24027. } else {
  24028. $$651481 = $$601476;$$661673 = $$611668;$$681059 = $$631054;$$691166 = $689;$$701273 = $687;$$721579 = $$671574;$$73 = $$68;$$731382 = $$681377;
  24029. label = 185;
  24030. }
  24031. }
  24032. else if ((label|0) == 209) {
  24033. label = 0;
  24034. $797 = $$751682;
  24035. $798 = $3;
  24036. $799 = (($797) - ($798))|0;
  24037. $$not = ($799>>>0)>=($$761067>>>0);
  24038. $$not1747 = $14 ^ 1;
  24039. $brmerge = $$not | $$not1747;
  24040. if (!($brmerge)) {
  24041. $$731489 = $799;$$761683 = $$751682;$$771068 = $$761067;$$791176 = $$781175;$$791282 = $$781281;$$821589 = $$811588;$$83 = $$82;$$831392 = $$821391;
  24042. label = 210;
  24043. continue L46;
  24044. }
  24045. $800 = (($799) - ($$761067))|0;
  24046. $801 = $800 & $$1753;
  24047. $802 = (($3) + ($801)|0);
  24048. $803 = ($$751682>>>0)>($802>>>0);
  24049. $804 = $803 ? $$751682 : $802;
  24050. $805 = (($804) + ($$781175)|0);
  24051. $806 = ($805>>>0)>($12>>>0);
  24052. if ($806) {
  24053. $$741490 = $799;$$771684 = $$751682;$$781069 = $$761067;$$801177 = $$781175;$$801283 = $$781281;$$831590 = $$811588;$$84 = $$82;$$841393 = $$821391;
  24054. label = 212;
  24055. continue L125;
  24056. } else {
  24057. $$0978 = $802;$$791686 = $$751682;$$821179 = $$781175;
  24058. }
  24059. while(1) {
  24060. $816 = HEAP8[$$0978>>0]|0;
  24061. HEAP8[$$791686>>0] = $816;
  24062. $817 = ((($$0978)) + 1|0);
  24063. $818 = HEAP8[$817>>0]|0;
  24064. $819 = ((($$791686)) + 1|0);
  24065. HEAP8[$819>>0] = $818;
  24066. $820 = ((($$0978)) + 2|0);
  24067. $821 = HEAP8[$820>>0]|0;
  24068. $822 = ((($$791686)) + 2|0);
  24069. HEAP8[$822>>0] = $821;
  24070. $823 = ((($$791686)) + 3|0);
  24071. $824 = ((($$0978)) + 3|0);
  24072. $825 = (($$821179) + -3)|0;
  24073. $826 = ($825|0)>(2);
  24074. if ($826) {
  24075. $$0978 = $824;$$791686 = $823;$$821179 = $825;
  24076. } else {
  24077. break;
  24078. }
  24079. }
  24080. $827 = ($825|0)>(0);
  24081. if ($827) {
  24082. $828 = HEAP8[$824>>0]|0;
  24083. HEAP8[$823>>0] = $828;
  24084. $829 = ($825|0)==(1);
  24085. if (!($829)) {
  24086. $830 = ((($$0978)) + 4|0);
  24087. $831 = HEAP8[$830>>0]|0;
  24088. $832 = ((($$791686)) + 4|0);
  24089. HEAP8[$832>>0] = $831;
  24090. }
  24091. $833 = (($823) + ($825)|0);
  24092. $$531469 = $799;$$531660 = $833;$$561047 = $$761067;$$571154 = $825;$$571564 = $$811588;$$58 = $$82;$$581261 = $$781281;$$581367 = $$821391;
  24093. label = 139;
  24094. } else {
  24095. $$531469 = $799;$$531660 = $823;$$561047 = $$761067;$$571154 = $825;$$571564 = $$811588;$$58 = $$82;$$581261 = $$781281;$$581367 = $$821391;
  24096. label = 139;
  24097. }
  24098. }
  24099. } while(0);
  24100. if ((label|0) == 138) {
  24101. label = 0;
  24102. $536 = ((($0)) + 24|0);
  24103. $537 = HEAP32[$536>>2]|0;
  24104. $538 = (($537) + -1)|0;
  24105. HEAP32[$536>>2] = $538;
  24106. $$391455 = $$521468;$$391646 = $$521659;$$431034 = $$551046;$$431140 = $$561153;$$431550 = $$561563;$$44 = $$57;$$441247 = $$571260;$$441353 = $$571366;
  24107. label = 80;
  24108. continue;
  24109. }
  24110. else if ((label|0) == 139) {
  24111. label = 0;
  24112. $$541470$ph = $$531469;$$541661$ph = $$531660;$$571048$ph = $$561047;$$581155$ph = $$571154;$$581565$ph = $$571564;$$59$ph = $$58;$$591262$ph = $$581261;$$591368$ph = $$581367;
  24113. label = 140;
  24114. continue;
  24115. }
  24116. else if ((label|0) == 185) {
  24117. label = 0;
  24118. $709 = ($$73>>>0)<(15);
  24119. if (!($709)) {
  24120. $$691485 = $$651481;$$701677 = $$661673;$$731170 = $$691166;$$761583 = $$721579;$$77 = $$73;$$771386 = $$731382;
  24121. label = 198;
  24122. continue;
  24123. }
  24124. $710 = $10;
  24125. $711 = $$721579;
  24126. $712 = (($710) - ($711))|0;
  24127. $713 = ($712|0)<(2);
  24128. if ($713) {
  24129. $$661482 = $$651481;$$671674 = $$661673;$$691060 = $$681059;$$701167 = $$691166;$$711274 = $$701273;$$731580 = $$721579;$$74 = $$73;$$741383 = $$731382;
  24130. label = 187;
  24131. continue;
  24132. }
  24133. $744 = HEAP8[$$721579>>0]|0;
  24134. $745 = $744&255;
  24135. $746 = $745 << $$73;
  24136. $747 = ((($$721579)) + 1|0);
  24137. $748 = HEAP8[$747>>0]|0;
  24138. $749 = $748&255;
  24139. $750 = (($$73) + 8)|0;
  24140. $751 = $749 << $750;
  24141. $752 = $746 | $$731382;
  24142. $753 = $752 | $751;
  24143. $754 = ((($$721579)) + 2|0);
  24144. $755 = (($$73) + 16)|0;
  24145. $$691485 = $$651481;$$701677 = $$661673;$$731170 = $$691166;$$761583 = $754;$$77 = $755;$$771386 = $753;
  24146. label = 198;
  24147. continue;
  24148. }
  24149. }
  24150. if ((label|0) == 113) {
  24151. label = 0;
  24152. $449 = ($$461553>>>0)<($10>>>0);
  24153. if ($449) {
  24154. $$441460$ph = $$421458;$$441651$ph = $$421649;$$481039$ph = $$461037;$$481145$ph = $$461143;$$49$ph = $$47;$$491252$ph = $$471250;$$491358$ph = $$471356;$$sink1729 = $$461553;
  24155. label = 116;
  24156. continue;
  24157. } else {
  24158. $$431459 = $$421458;$$431650 = $$421649;$$471038 = $$461037;$$471144 = $$461143;$$471554 = $$461553;$$48 = $$47;$$481251 = $$471250;$$481357 = $$471356;
  24159. label = 114;
  24160. continue;
  24161. }
  24162. }
  24163. else if ((label|0) == 150) {
  24164. label = 0;
  24165. $569 = ($$591566>>>0)<($10>>>0);
  24166. if ($569) {
  24167. $$571473$ph = $$551471;$$571664$ph = $$551662;$$601051$ph = $$581049;$$611158$ph = $$591156;$$62$ph = $$60;$$621265$ph = $$601263;$$621371$ph = $$601369;$$sink1736 = $$591566;
  24168. label = 153;
  24169. continue;
  24170. } else {
  24171. $$561472 = $$551471;$$561663 = $$551662;$$591050 = $$581049;$$601157 = $$591156;$$601567 = $$591566;$$61 = $$60;$$611264 = $$601263;$$611370 = $$601369;
  24172. label = 151;
  24173. continue;
  24174. }
  24175. }
  24176. else if ((label|0) == 192) {
  24177. label = 0;
  24178. $734 = ($$731580>>>0)<($10>>>0);
  24179. if ($734) {
  24180. $$681484$ph = $$661482;$$691676$ph = $$671674;$$711062$ph = $$691060;$$721169$ph = $$701167;$$731276$ph = $$711274;$$76$ph = $$74;$$761385$ph = $$741383;$$sink1743 = $$731580;
  24181. label = 195;
  24182. continue;
  24183. } else {
  24184. $$671483 = $$661482;$$681675 = $$671674;$$701061 = $$691060;$$711168 = $$701167;$$721275 = $$711274;$$741581 = $$731580;$$75 = $$74;$$751384 = $$741383;
  24185. label = 193;
  24186. continue;
  24187. }
  24188. }
  24189. else if ((label|0) == 220) {
  24190. label = 0;
  24191. $834 = ((($0)) + 20|0);
  24192. $835 = HEAP32[$834>>2]|0;
  24193. $836 = $835 & 1;
  24194. $837 = ($836|0)==(0);
  24195. if ($837) {
  24196. $$01416 = $$761492;$$01607 = $$801687;$$41511 = $$851592;$$5 = $$86;$$51102 = $$831180;$$51208 = $$821285;$$51314 = $$861395;$$5996 = $$801071;
  24197. label = 14;
  24198. continue;
  24199. }
  24200. $838 = $6 & 1;
  24201. $839 = ($838|0)==(0);
  24202. if ($839) {
  24203. $$881504 = $$761492;$$921083 = $$801071;$$921699 = $$801687;$$941191 = $$831180;$$941297 = $$821285;$$971604 = $$851592;$$98 = $$86;$$981407 = $$861395;
  24204. label = 242;
  24205. continue;
  24206. } else {
  24207. $$801496 = $$761492;$$841075 = $$801071;$$841691 = $$801687;$$861289 = $$821285;$$891596 = $$851592;$$90 = $$86;$$901399 = $$861395;
  24208. label = 226;
  24209. continue;
  24210. }
  24211. }
  24212. }
  24213. if ((label|0) == 258) {
  24214. STACKTOP = sp;return ($$0951|0);
  24215. }
  24216. $892 = ((($0)) + 28|0);
  24217. $893 = HEAP32[$892>>2]|0;
  24218. $894 = $893 & 65535;
  24219. $895 = $893 >>> 16;
  24220. $896 = ($888|0)==(0);
  24221. if ($896) {
  24222. $$0937$lcssa = $895;$$0938$lcssa = $894;
  24223. } else {
  24224. $897 = (($888>>>0) % 5552)&-1;
  24225. $$01834 = $897;$$09371833 = $895;$$09381832 = $894;$$09431831 = $888;$$09441830 = $4;
  24226. while(1) {
  24227. $898 = ($$01834>>>0)>(7);
  24228. if ($898) {
  24229. $899 = (($$01834) + -8)|0;
  24230. $900 = $899 & -8;
  24231. $scevgep = ((($$09441830)) + 8|0);
  24232. $$09411816 = 0;$$11818 = $$09371833;$$19391817 = $$09381832;$$19451815 = $$09441830;
  24233. while(1) {
  24234. $904 = HEAP8[$$19451815>>0]|0;
  24235. $905 = $904&255;
  24236. $906 = (($905) + ($$19391817))|0;
  24237. $907 = (($906) + ($$11818))|0;
  24238. $908 = ((($$19451815)) + 1|0);
  24239. $909 = HEAP8[$908>>0]|0;
  24240. $910 = $909&255;
  24241. $911 = (($906) + ($910))|0;
  24242. $912 = (($907) + ($911))|0;
  24243. $913 = ((($$19451815)) + 2|0);
  24244. $914 = HEAP8[$913>>0]|0;
  24245. $915 = $914&255;
  24246. $916 = (($911) + ($915))|0;
  24247. $917 = (($912) + ($916))|0;
  24248. $918 = ((($$19451815)) + 3|0);
  24249. $919 = HEAP8[$918>>0]|0;
  24250. $920 = $919&255;
  24251. $921 = (($916) + ($920))|0;
  24252. $922 = (($917) + ($921))|0;
  24253. $923 = ((($$19451815)) + 4|0);
  24254. $924 = HEAP8[$923>>0]|0;
  24255. $925 = $924&255;
  24256. $926 = (($921) + ($925))|0;
  24257. $927 = (($922) + ($926))|0;
  24258. $928 = ((($$19451815)) + 5|0);
  24259. $929 = HEAP8[$928>>0]|0;
  24260. $930 = $929&255;
  24261. $931 = (($926) + ($930))|0;
  24262. $932 = (($927) + ($931))|0;
  24263. $933 = ((($$19451815)) + 6|0);
  24264. $934 = HEAP8[$933>>0]|0;
  24265. $935 = $934&255;
  24266. $936 = (($931) + ($935))|0;
  24267. $937 = (($932) + ($936))|0;
  24268. $938 = ((($$19451815)) + 7|0);
  24269. $939 = HEAP8[$938>>0]|0;
  24270. $940 = $939&255;
  24271. $941 = (($936) + ($940))|0;
  24272. $942 = (($937) + ($941))|0;
  24273. $943 = (($$09411816) + 8)|0;
  24274. $944 = ((($$19451815)) + 8|0);
  24275. $945 = $943 | 7;
  24276. $946 = ($945>>>0)<($$01834>>>0);
  24277. if ($946) {
  24278. $$09411816 = $943;$$11818 = $942;$$19391817 = $941;$$19451815 = $944;
  24279. } else {
  24280. break;
  24281. }
  24282. }
  24283. $901 = (($900) + 8)|0;
  24284. $scevgep1947 = (($scevgep) + ($900)|0);
  24285. $$0941$lcssa = $901;$$1$lcssa = $942;$$1939$lcssa = $941;$$1945$lcssa = $scevgep1947;
  24286. } else {
  24287. $$0941$lcssa = 0;$$1$lcssa = $$09371833;$$1939$lcssa = $$09381832;$$1945$lcssa = $$09441830;
  24288. }
  24289. $902 = ($$01834>>>0)>($$0941$lcssa>>>0);
  24290. if ($902) {
  24291. $903 = (($$01834) - ($$0941$lcssa))|0;
  24292. $$19421823 = $$0941$lcssa;$$21825 = $$1$lcssa;$$29401824 = $$1939$lcssa;$$29461822 = $$1945$lcssa;
  24293. while(1) {
  24294. $947 = ((($$29461822)) + 1|0);
  24295. $948 = HEAP8[$$29461822>>0]|0;
  24296. $949 = $948&255;
  24297. $950 = (($949) + ($$29401824))|0;
  24298. $951 = (($950) + ($$21825))|0;
  24299. $952 = (($$19421823) + 1)|0;
  24300. $exitcond = ($952|0)==($$01834|0);
  24301. if ($exitcond) {
  24302. break;
  24303. } else {
  24304. $$19421823 = $952;$$21825 = $951;$$29401824 = $950;$$29461822 = $947;
  24305. }
  24306. }
  24307. $scevgep1948 = (($$1945$lcssa) + ($903)|0);
  24308. $$2$lcssa = $951;$$2940$lcssa = $950;$$2946$lcssa = $scevgep1948;
  24309. } else {
  24310. $$2$lcssa = $$1$lcssa;$$2940$lcssa = $$1939$lcssa;$$2946$lcssa = $$1945$lcssa;
  24311. }
  24312. $953 = (($$2940$lcssa>>>0) % 65521)&-1;
  24313. $954 = (($$2$lcssa>>>0) % 65521)&-1;
  24314. $955 = (($$09431831) - ($$01834))|0;
  24315. $956 = ($955|0)==(0);
  24316. if ($956) {
  24317. $$0937$lcssa = $954;$$0938$lcssa = $953;
  24318. break;
  24319. } else {
  24320. $$01834 = 5552;$$09371833 = $954;$$09381832 = $953;$$09431831 = $955;$$09441830 = $$2946$lcssa;
  24321. }
  24322. }
  24323. }
  24324. $957 = $$0937$lcssa << 16;
  24325. $958 = $957 | $$0938$lcssa;
  24326. HEAP32[$892>>2] = $958;
  24327. $959 = ($$1961|0)!=(0);
  24328. $960 = $6 & 1;
  24329. $961 = ($960|0)==(0);
  24330. $or$cond1752 = $961 | $959;
  24331. if ($or$cond1752) {
  24332. $$0951 = $$1961;
  24333. STACKTOP = sp;return ($$0951|0);
  24334. } else {
  24335. $962 = ((($0)) + 16|0);
  24336. $963 = HEAP32[$962>>2]|0;
  24337. $964 = ($958|0)==($963|0);
  24338. $$1961$ = $964 ? $$1961 : -2;
  24339. STACKTOP = sp;return ($$1961$|0);
  24340. }
  24341. return (0)|0;
  24342. }
  24343. function _ImageAlphaMask($0,$1) {
  24344. $0 = $0|0;
  24345. $1 = $1|0;
  24346. var $$0 = 0, $$031 = 0, $$032 = 0, $$033 = 0, $$byval_copy3 = 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;
  24347. 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;
  24348. 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, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, label = 0;
  24349. var sp = 0;
  24350. sp = STACKTOP;
  24351. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  24352. $$byval_copy3 = sp + 32|0;
  24353. $vararg_buffer1 = sp + 8|0;
  24354. $vararg_buffer = sp;
  24355. $2 = sp + 12|0;
  24356. $3 = ((($0)) + 4|0);
  24357. $4 = HEAP32[$3>>2]|0;
  24358. $5 = ((($1)) + 4|0);
  24359. $6 = HEAP32[$5>>2]|0;
  24360. $7 = ($4|0)==($6|0);
  24361. if ($7) {
  24362. $8 = ((($0)) + 8|0);
  24363. $9 = HEAP32[$8>>2]|0;
  24364. $10 = ((($1)) + 8|0);
  24365. $11 = HEAP32[$10>>2]|0;
  24366. $12 = ($9|0)==($11|0);
  24367. if ($12) {
  24368. $13 = ((($0)) + 16|0);
  24369. $14 = HEAP32[$13>>2]|0;
  24370. $15 = ($14|0)>(7);
  24371. if ($15) {
  24372. _TraceLog(2,11593,$vararg_buffer1);
  24373. STACKTOP = sp;return;
  24374. }
  24375. ;HEAP32[$$byval_copy3>>2]=HEAP32[$1>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[$$byval_copy3+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[$$byval_copy3+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[$$byval_copy3+16>>2]=HEAP32[$1+16>>2]|0;
  24376. _ImageCopy($2,$$byval_copy3);
  24377. $16 = ((($2)) + 16|0);
  24378. $17 = HEAP32[$16>>2]|0;
  24379. $18 = ($17|0)==(1);
  24380. if (!($18)) {
  24381. _ImageFormat($2,1);
  24382. }
  24383. $19 = HEAP32[$13>>2]|0;
  24384. L11: do {
  24385. switch ($19|0) {
  24386. case 1: {
  24387. _ImageFormat($0,2);
  24388. $20 = ((($2)) + 4|0);
  24389. $21 = HEAP32[$20>>2]|0;
  24390. $22 = ((($2)) + 8|0);
  24391. $23 = HEAP32[$22>>2]|0;
  24392. $24 = Math_imul($23, $21)|0;
  24393. $25 = HEAP32[$2>>2]|0;
  24394. $$032 = 1;$$033 = 0;
  24395. while(1) {
  24396. $26 = ($$033|0)<($24|0);
  24397. if (!($26)) {
  24398. $27 = HEAP32[$3>>2]|0;
  24399. $28 = HEAP32[$8>>2]|0;
  24400. $29 = Math_imul($28, $27)|0;
  24401. $30 = ($$033|0)<($29|0);
  24402. if (!($30)) {
  24403. break L11;
  24404. }
  24405. }
  24406. $31 = (($25) + ($$033)|0);
  24407. $32 = HEAP8[$31>>0]|0;
  24408. $33 = HEAP32[$0>>2]|0;
  24409. $34 = (($33) + ($$032)|0);
  24410. HEAP8[$34>>0] = $32;
  24411. $35 = (($$033) + 1)|0;
  24412. $36 = (($$032) + 2)|0;
  24413. $$032 = $36;$$033 = $35;
  24414. }
  24415. break;
  24416. }
  24417. case 7: {
  24418. label = 14;
  24419. break;
  24420. }
  24421. default: {
  24422. _ImageFormat($0,7);
  24423. label = 14;
  24424. }
  24425. }
  24426. } while(0);
  24427. L19: do {
  24428. if ((label|0) == 14) {
  24429. $37 = ((($2)) + 4|0);
  24430. $38 = HEAP32[$37>>2]|0;
  24431. $39 = ((($2)) + 8|0);
  24432. $40 = HEAP32[$39>>2]|0;
  24433. $41 = Math_imul($40, $38)|0;
  24434. $42 = HEAP32[$2>>2]|0;
  24435. $$0 = 3;$$031 = 0;
  24436. while(1) {
  24437. $43 = ($$031|0)<($41|0);
  24438. if (!($43)) {
  24439. $44 = HEAP32[$3>>2]|0;
  24440. $45 = HEAP32[$8>>2]|0;
  24441. $46 = Math_imul($45, $44)|0;
  24442. $47 = ($$031|0)<($46|0);
  24443. if (!($47)) {
  24444. break L19;
  24445. }
  24446. }
  24447. $48 = (($42) + ($$031)|0);
  24448. $49 = HEAP8[$48>>0]|0;
  24449. $50 = HEAP32[$0>>2]|0;
  24450. $51 = (($50) + ($$0)|0);
  24451. HEAP8[$51>>0] = $49;
  24452. $52 = (($$031) + 1)|0;
  24453. $53 = (($$0) + 4)|0;
  24454. $$0 = $53;$$031 = $52;
  24455. }
  24456. }
  24457. } while(0);
  24458. ;HEAP32[$$byval_copy3>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy3+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$$byval_copy3+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$$byval_copy3+16>>2]=HEAP32[$2+16>>2]|0;
  24459. _UnloadImage($$byval_copy3);
  24460. STACKTOP = sp;return;
  24461. }
  24462. }
  24463. _TraceLog(2,11555,$vararg_buffer);
  24464. STACKTOP = sp;return;
  24465. }
  24466. function _GetDefaultFont($0) {
  24467. $0 = $0|0;
  24468. var label = 0, sp = 0;
  24469. sp = STACKTOP;
  24470. ;HEAP32[$0>>2]=HEAP32[19568>>2]|0;HEAP32[$0+4>>2]=HEAP32[19568+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[19568+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[19568+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[19568+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[19568+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[19568+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[19568+28>>2]|0;
  24471. return;
  24472. }
  24473. function _MeasureTextEx($0,$1,$2,$3,$4) {
  24474. $0 = $0|0;
  24475. $1 = $1|0;
  24476. $2 = $2|0;
  24477. $3 = +$3;
  24478. $4 = $4|0;
  24479. var $$0$lcssa = 0, $$05064 = 0, $$052$lcssa = 0.0, $$05263 = 0.0, $$05462 = 0, $$055$lcssa = 0.0, $$05561 = 0.0, $$058$lcssa = 0.0, $$05860 = 0.0, $$065 = 0, $$151 = 0, $$151$$0 = 0, $$153 = 0.0, $$156 = 0.0, $$159 = 0.0, $$2 = 0.0, $$257 = 0.0, $$3 = 0.0, $$byval_copy = 0, $$pn = 0.0;
  24480. var $$pn$in = 0, $$sroa$4$0$$sroa_idx2 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0.0, $14 = 0, $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0;
  24481. var $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0.0, $36 = 0.0, $37 = 0.0, $38 = 0, $39 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0.0, $9 = 0.0, $exitcond = 0, $phitmp = 0, label = 0;
  24482. var sp = 0;
  24483. sp = STACKTOP;
  24484. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  24485. $$byval_copy = sp;
  24486. $5 = (_strlen($2)|0);
  24487. $6 = ((($1)) + 20|0);
  24488. $7 = HEAP32[$6>>2]|0;
  24489. $8 = (+($7|0));
  24490. $9 = $3 / $8;
  24491. $10 = ($5|0)>(0);
  24492. if (!($10)) {
  24493. $$0$lcssa = -1;$$052$lcssa = 0.0;$$055$lcssa = 0.0;$$058$lcssa = $8;
  24494. $12 = $$055$lcssa < $$052$lcssa;
  24495. $$3 = $12 ? $$052$lcssa : $$055$lcssa;
  24496. $13 = $9 * $$3;
  24497. $14 = Math_imul($$0$lcssa, $4)|0;
  24498. $15 = (+($14|0));
  24499. $16 = $13 + $15;
  24500. $17 = $9 * $$058$lcssa;
  24501. HEAPF32[$0>>2] = $16;
  24502. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  24503. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $17;
  24504. STACKTOP = sp;return;
  24505. }
  24506. $11 = ((($1)) + 28|0);
  24507. $$05064 = 0;$$05263 = 0.0;$$05462 = 0;$$05561 = 0.0;$$05860 = $8;$$065 = 0;
  24508. while(1) {
  24509. $18 = (($$05064) + 1)|0;
  24510. $19 = (($2) + ($$05462)|0);
  24511. $20 = HEAP8[$19>>0]|0;
  24512. $21 = ($20<<24>>24)==(10);
  24513. if ($21) {
  24514. $33 = $$05561 < $$05263;
  24515. $$156 = $33 ? $$05263 : $$05561;
  24516. $34 = HEAP32[$6>>2]|0;
  24517. $35 = (+($34|0));
  24518. $36 = $35 * 1.5;
  24519. $37 = $$05860 + $36;
  24520. $$151 = 0;$$159 = $37;$$2 = 0.0;$$257 = $$156;
  24521. } else {
  24522. $22 = $20 << 24 >> 24;
  24523. ;HEAP32[$$byval_copy>>2]=HEAP32[$1>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[$$byval_copy+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[$$byval_copy+16>>2]=HEAP32[$1+16>>2]|0;HEAP32[$$byval_copy+20>>2]=HEAP32[$1+20>>2]|0;HEAP32[$$byval_copy+24>>2]=HEAP32[$1+24>>2]|0;HEAP32[$$byval_copy+28>>2]=HEAP32[$1+28>>2]|0;
  24524. $23 = (_GetCharIndex($$byval_copy,$22)|0);
  24525. $24 = HEAP32[$11>>2]|0;
  24526. $25 = (((($24) + ($23<<5)|0)) + 28|0);
  24527. $26 = HEAP32[$25>>2]|0;
  24528. $27 = ($26|0)==(0);
  24529. if ($27) {
  24530. $28 = (((($24) + ($23<<5)|0)) + 20|0);
  24531. $29 = (((($24) + ($23<<5)|0)) + 12|0);
  24532. $30 = HEAP32[$29>>2]|0;
  24533. $31 = HEAP32[$28>>2]|0;
  24534. $32 = (($31) + ($30))|0;
  24535. $$pn$in = $32;
  24536. } else {
  24537. $$pn$in = $26;
  24538. }
  24539. $$pn = (+($$pn$in|0));
  24540. $$153 = $$05263 + $$pn;
  24541. $$151 = $18;$$159 = $$05860;$$2 = $$153;$$257 = $$05561;
  24542. }
  24543. $38 = ($$065|0)<($$151|0);
  24544. $$151$$0 = $38 ? $$151 : $$065;
  24545. $39 = (($$05462) + 1)|0;
  24546. $exitcond = ($39|0)==($5|0);
  24547. if ($exitcond) {
  24548. break;
  24549. } else {
  24550. $$05064 = $$151;$$05263 = $$2;$$05462 = $39;$$05561 = $$257;$$05860 = $$159;$$065 = $$151$$0;
  24551. }
  24552. }
  24553. $phitmp = (($$151$$0) + -1)|0;
  24554. $$0$lcssa = $phitmp;$$052$lcssa = $$2;$$055$lcssa = $$257;$$058$lcssa = $$159;
  24555. $12 = $$055$lcssa < $$052$lcssa;
  24556. $$3 = $12 ? $$052$lcssa : $$055$lcssa;
  24557. $13 = $9 * $$3;
  24558. $14 = Math_imul($$0$lcssa, $4)|0;
  24559. $15 = (+($14|0));
  24560. $16 = $13 + $15;
  24561. $17 = $9 * $$058$lcssa;
  24562. HEAPF32[$0>>2] = $16;
  24563. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  24564. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $17;
  24565. STACKTOP = sp;return;
  24566. }
  24567. function _GetCharIndex($0,$1) {
  24568. $0 = $0|0;
  24569. $1 = $1|0;
  24570. 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;
  24571. sp = STACKTOP;
  24572. $2 = ((($0)) + 24|0);
  24573. $3 = HEAP32[$2>>2]|0;
  24574. $4 = ($3|0)>(0);
  24575. if (!($4)) {
  24576. $$08 = 0;
  24577. return ($$08|0);
  24578. }
  24579. $5 = ((($0)) + 28|0);
  24580. $6 = HEAP32[$5>>2]|0;
  24581. $$09 = 0;
  24582. while(1) {
  24583. $7 = (($6) + ($$09<<5)|0);
  24584. $8 = HEAP32[$7>>2]|0;
  24585. $9 = ($8|0)==($1|0);
  24586. if ($9) {
  24587. $$08 = $$09;
  24588. label = 5;
  24589. break;
  24590. }
  24591. $10 = (($$09) + 1)|0;
  24592. $11 = HEAP32[$2>>2]|0;
  24593. $12 = ($10|0)<($11|0);
  24594. if ($12) {
  24595. $$09 = $10;
  24596. } else {
  24597. $$08 = 0;
  24598. label = 5;
  24599. break;
  24600. }
  24601. }
  24602. if ((label|0) == 5) {
  24603. return ($$08|0);
  24604. }
  24605. return (0)|0;
  24606. }
  24607. function _SetTextureFilter($0,$1) {
  24608. $0 = $0|0;
  24609. $1 = $1|0;
  24610. 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, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0;
  24611. var $9 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  24612. sp = STACKTOP;
  24613. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  24614. $vararg_buffer = sp;
  24615. switch ($1|0) {
  24616. case 0: {
  24617. $2 = ((($0)) + 12|0);
  24618. $3 = HEAP32[$2>>2]|0;
  24619. $4 = ($3|0)>(1);
  24620. $5 = HEAP32[$0>>2]|0;
  24621. if ($4) {
  24622. _rlTextureParameters($5,10241,9984);
  24623. $6 = HEAP32[$0>>2]|0;
  24624. _rlTextureParameters($6,10240,9728);
  24625. STACKTOP = sp;return;
  24626. } else {
  24627. _rlTextureParameters($5,10241,9728);
  24628. $7 = HEAP32[$0>>2]|0;
  24629. _rlTextureParameters($7,10240,9728);
  24630. STACKTOP = sp;return;
  24631. }
  24632. break;
  24633. }
  24634. case 1: {
  24635. $8 = ((($0)) + 12|0);
  24636. $9 = HEAP32[$8>>2]|0;
  24637. $10 = ($9|0)>(1);
  24638. $11 = HEAP32[$0>>2]|0;
  24639. if ($10) {
  24640. _rlTextureParameters($11,10241,9985);
  24641. $12 = HEAP32[$0>>2]|0;
  24642. _rlTextureParameters($12,10240,9729);
  24643. STACKTOP = sp;return;
  24644. } else {
  24645. _rlTextureParameters($11,10241,9729);
  24646. $13 = HEAP32[$0>>2]|0;
  24647. _rlTextureParameters($13,10240,9729);
  24648. STACKTOP = sp;return;
  24649. }
  24650. break;
  24651. }
  24652. case 2: {
  24653. $14 = ((($0)) + 12|0);
  24654. $15 = HEAP32[$14>>2]|0;
  24655. $16 = ($15|0)>(1);
  24656. $17 = HEAP32[$0>>2]|0;
  24657. if ($16) {
  24658. _rlTextureParameters($17,10241,9987);
  24659. $18 = HEAP32[$0>>2]|0;
  24660. _rlTextureParameters($18,10240,9729);
  24661. STACKTOP = sp;return;
  24662. } else {
  24663. HEAP32[$vararg_buffer>>2] = $17;
  24664. _TraceLog(2,11650,$vararg_buffer);
  24665. $19 = HEAP32[$0>>2]|0;
  24666. _rlTextureParameters($19,10241,9729);
  24667. _rlTextureParameters($19,10240,9729);
  24668. STACKTOP = sp;return;
  24669. }
  24670. break;
  24671. }
  24672. case 3: {
  24673. $20 = HEAP32[$0>>2]|0;
  24674. _rlTextureParameters($20,12288,4);
  24675. STACKTOP = sp;return;
  24676. break;
  24677. }
  24678. case 4: {
  24679. $21 = HEAP32[$0>>2]|0;
  24680. _rlTextureParameters($21,12288,8);
  24681. STACKTOP = sp;return;
  24682. break;
  24683. }
  24684. case 5: {
  24685. $22 = HEAP32[$0>>2]|0;
  24686. _rlTextureParameters($22,12288,16);
  24687. STACKTOP = sp;return;
  24688. break;
  24689. }
  24690. default: {
  24691. STACKTOP = sp;return;
  24692. }
  24693. }
  24694. }
  24695. function _DrawTexturePro($0,$1,$2,$3,$4,$5) {
  24696. $0 = $0|0;
  24697. $1 = $1|0;
  24698. $2 = $2|0;
  24699. $3 = $3|0;
  24700. $4 = +$4;
  24701. $5 = $5|0;
  24702. 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;
  24703. 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;
  24704. 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;
  24705. 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;
  24706. 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;
  24707. sp = STACKTOP;
  24708. $6 = HEAP32[$0>>2]|0;
  24709. $7 = ($6|0)==(0);
  24710. if ($7) {
  24711. return;
  24712. }
  24713. $8 = ((($1)) + 8|0);
  24714. $9 = HEAP32[$8>>2]|0;
  24715. $10 = ($9|0)<(0);
  24716. if ($10) {
  24717. $11 = HEAP32[$1>>2]|0;
  24718. $12 = (($11) - ($9))|0;
  24719. HEAP32[$1>>2] = $12;
  24720. }
  24721. $13 = ((($1)) + 12|0);
  24722. $14 = HEAP32[$13>>2]|0;
  24723. $15 = ($14|0)<(0);
  24724. if ($15) {
  24725. $16 = ((($1)) + 4|0);
  24726. $17 = HEAP32[$16>>2]|0;
  24727. $18 = (($17) - ($14))|0;
  24728. HEAP32[$16>>2] = $18;
  24729. }
  24730. $19 = HEAP32[$0>>2]|0;
  24731. _rlEnableTexture($19);
  24732. _rlPushMatrix();
  24733. $20 = HEAP32[$2>>2]|0;
  24734. $21 = (+($20|0));
  24735. $22 = ((($2)) + 4|0);
  24736. $23 = HEAP32[$22>>2]|0;
  24737. $24 = (+($23|0));
  24738. _rlTranslatef($21,$24,0.0);
  24739. _rlRotatef($4,0.0,0.0,1.0);
  24740. $25 = +HEAPF32[$3>>2];
  24741. $26 = -$25;
  24742. $27 = ((($3)) + 4|0);
  24743. $28 = +HEAPF32[$27>>2];
  24744. $29 = -$28;
  24745. _rlTranslatef($26,$29,0.0);
  24746. _rlBegin(7);
  24747. $30 = HEAP8[$5>>0]|0;
  24748. $31 = ((($5)) + 1|0);
  24749. $32 = HEAP8[$31>>0]|0;
  24750. $33 = ((($5)) + 2|0);
  24751. $34 = HEAP8[$33>>0]|0;
  24752. $35 = ((($5)) + 3|0);
  24753. $36 = HEAP8[$35>>0]|0;
  24754. _rlColor4ub($30,$32,$34,$36);
  24755. $37 = HEAP32[$1>>2]|0;
  24756. $38 = (+($37|0));
  24757. $39 = ((($0)) + 4|0);
  24758. $40 = HEAP32[$39>>2]|0;
  24759. $41 = (+($40|0));
  24760. $42 = $38 / $41;
  24761. $43 = ((($1)) + 4|0);
  24762. $44 = HEAP32[$43>>2]|0;
  24763. $45 = (+($44|0));
  24764. $46 = ((($0)) + 8|0);
  24765. $47 = HEAP32[$46>>2]|0;
  24766. $48 = (+($47|0));
  24767. $49 = $45 / $48;
  24768. _rlTexCoord2f($42,$49);
  24769. _rlVertex2f(0.0,0.0);
  24770. $50 = HEAP32[$1>>2]|0;
  24771. $51 = (+($50|0));
  24772. $52 = HEAP32[$39>>2]|0;
  24773. $53 = (+($52|0));
  24774. $54 = $51 / $53;
  24775. $55 = HEAP32[$43>>2]|0;
  24776. $56 = HEAP32[$13>>2]|0;
  24777. $57 = (($56) + ($55))|0;
  24778. $58 = (+($57|0));
  24779. $59 = HEAP32[$46>>2]|0;
  24780. $60 = (+($59|0));
  24781. $61 = $58 / $60;
  24782. _rlTexCoord2f($54,$61);
  24783. $62 = ((($2)) + 12|0);
  24784. $63 = HEAP32[$62>>2]|0;
  24785. $64 = (+($63|0));
  24786. _rlVertex2f(0.0,$64);
  24787. $65 = HEAP32[$1>>2]|0;
  24788. $66 = HEAP32[$8>>2]|0;
  24789. $67 = (($66) + ($65))|0;
  24790. $68 = (+($67|0));
  24791. $69 = HEAP32[$39>>2]|0;
  24792. $70 = (+($69|0));
  24793. $71 = $68 / $70;
  24794. $72 = HEAP32[$43>>2]|0;
  24795. $73 = HEAP32[$13>>2]|0;
  24796. $74 = (($73) + ($72))|0;
  24797. $75 = (+($74|0));
  24798. $76 = HEAP32[$46>>2]|0;
  24799. $77 = (+($76|0));
  24800. $78 = $75 / $77;
  24801. _rlTexCoord2f($71,$78);
  24802. $79 = ((($2)) + 8|0);
  24803. $80 = HEAP32[$79>>2]|0;
  24804. $81 = (+($80|0));
  24805. $82 = HEAP32[$62>>2]|0;
  24806. $83 = (+($82|0));
  24807. _rlVertex2f($81,$83);
  24808. $84 = HEAP32[$1>>2]|0;
  24809. $85 = HEAP32[$8>>2]|0;
  24810. $86 = (($85) + ($84))|0;
  24811. $87 = (+($86|0));
  24812. $88 = HEAP32[$39>>2]|0;
  24813. $89 = (+($88|0));
  24814. $90 = $87 / $89;
  24815. $91 = HEAP32[$43>>2]|0;
  24816. $92 = (+($91|0));
  24817. $93 = HEAP32[$46>>2]|0;
  24818. $94 = (+($93|0));
  24819. $95 = $92 / $94;
  24820. _rlTexCoord2f($90,$95);
  24821. $96 = HEAP32[$79>>2]|0;
  24822. $97 = (+($96|0));
  24823. _rlVertex2f($97,0.0);
  24824. _rlEnd();
  24825. _rlPopMatrix();
  24826. _rlDisableTexture();
  24827. return;
  24828. }
  24829. function _LoadSpriteFont($0,$1) {
  24830. $0 = $0|0;
  24831. $1 = $1|0;
  24832. var $$byval_copy2 = 0, $$byval_copy5 = 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;
  24833. 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;
  24834. var $45 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  24835. sp = STACKTOP;
  24836. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  24837. $$byval_copy5 = sp + 232|0;
  24838. $$byval_copy2 = sp + 212|0;
  24839. $vararg_buffer = sp;
  24840. $2 = sp + 96|0;
  24841. $3 = sp + 192|0;
  24842. $4 = sp + 160|0;
  24843. $5 = sp + 128|0;
  24844. $6 = sp + 40|0;
  24845. $7 = sp + 252|0;
  24846. $8 = sp + 64|0;
  24847. $9 = sp + 8|0;
  24848. ;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;
  24849. $10 = (_IsFileExtension($1,11715)|0);
  24850. $11 = ($10|0)==(0);
  24851. do {
  24852. if ($11) {
  24853. $35 = (_IsFileExtension($1,11721)|0);
  24854. $36 = ($35|0)==(0);
  24855. if (!($36)) {
  24856. _LoadSpriteFontTTF($4,$1,32,0,0);
  24857. ;HEAP32[$2>>2]=HEAP32[$4>>2]|0;HEAP32[$2+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$4+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$4+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$4+16>>2]|0;HEAP32[$2+20>>2]=HEAP32[$4+20>>2]|0;HEAP32[$2+24>>2]=HEAP32[$4+24>>2]|0;HEAP32[$2+28>>2]=HEAP32[$4+28>>2]|0;
  24858. break;
  24859. }
  24860. $37 = (_IsFileExtension($1,11726)|0);
  24861. $38 = ($37|0)==(0);
  24862. if (!($38)) {
  24863. _LoadBMFont($5,$1);
  24864. ;HEAP32[$2>>2]=HEAP32[$5>>2]|0;HEAP32[$2+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$5+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$5+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$5+16>>2]|0;HEAP32[$2+20>>2]=HEAP32[$5+20>>2]|0;HEAP32[$2+24>>2]=HEAP32[$5+24>>2]|0;HEAP32[$2+28>>2]=HEAP32[$5+28>>2]|0;
  24865. break;
  24866. }
  24867. _LoadImage($6,$1);
  24868. $39 = HEAP32[$6>>2]|0;
  24869. $40 = ($39|0)==(0|0);
  24870. if (!($40)) {
  24871. HEAP8[$7>>0] = -1;
  24872. $41 = ((($7)) + 1|0);
  24873. HEAP8[$41>>0] = 0;
  24874. $42 = ((($7)) + 2|0);
  24875. HEAP8[$42>>0] = -1;
  24876. $43 = ((($7)) + 3|0);
  24877. HEAP8[$43>>0] = -1;
  24878. ;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;HEAP32[$$byval_copy2+16>>2]=HEAP32[$6+16>>2]|0;
  24879. ;HEAP8[$$byval_copy5>>0]=HEAP8[$7>>0]|0;HEAP8[$$byval_copy5+1>>0]=HEAP8[$7+1>>0]|0;HEAP8[$$byval_copy5+2>>0]=HEAP8[$7+2>>0]|0;HEAP8[$$byval_copy5+3>>0]=HEAP8[$7+3>>0]|0;
  24880. _LoadImageFont($8,$$byval_copy2,$$byval_copy5);
  24881. ;HEAP32[$2>>2]=HEAP32[$8>>2]|0;HEAP32[$2+4>>2]=HEAP32[$8+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$8+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$8+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$8+16>>2]|0;HEAP32[$2+20>>2]=HEAP32[$8+20>>2]|0;HEAP32[$2+24>>2]=HEAP32[$8+24>>2]|0;HEAP32[$2+28>>2]=HEAP32[$8+28>>2]|0;
  24882. }
  24883. ;HEAP32[$$byval_copy5>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy5+4>>2]=HEAP32[$6+4>>2]|0;HEAP32[$$byval_copy5+8>>2]=HEAP32[$6+8>>2]|0;HEAP32[$$byval_copy5+12>>2]=HEAP32[$6+12>>2]|0;HEAP32[$$byval_copy5+16>>2]=HEAP32[$6+16>>2]|0;
  24884. _UnloadImage($$byval_copy5);
  24885. } else {
  24886. $12 = (_LoadResource($1,0)|0);
  24887. $13 = HEAP32[$12>>2]|0;
  24888. $14 = ($13|0)==(5);
  24889. if ($14) {
  24890. $15 = ((($12)) + 20|0);
  24891. $16 = HEAP32[$15>>2]|0;
  24892. $17 = ((($12)) + 4|0);
  24893. $18 = HEAP32[$17>>2]|0;
  24894. $19 = ((($12)) + 8|0);
  24895. $20 = HEAP32[$19>>2]|0;
  24896. $21 = ((($12)) + 12|0);
  24897. $22 = HEAP32[$21>>2]|0;
  24898. _LoadImagePro($$byval_copy2,$16,$18,$20,$22);
  24899. ;HEAP32[$$byval_copy5>>2]=HEAP32[$$byval_copy2>>2]|0;HEAP32[$$byval_copy5+4>>2]=HEAP32[$$byval_copy2+4>>2]|0;HEAP32[$$byval_copy5+8>>2]=HEAP32[$$byval_copy2+8>>2]|0;HEAP32[$$byval_copy5+12>>2]=HEAP32[$$byval_copy2+12>>2]|0;HEAP32[$$byval_copy5+16>>2]=HEAP32[$$byval_copy2+16>>2]|0;
  24900. _LoadTextureFromImage($3,$$byval_copy5);
  24901. ;HEAP32[$2>>2]=HEAP32[$3>>2]|0;HEAP32[$2+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$3+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$3+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$3+16>>2]|0;
  24902. ;HEAP32[$$byval_copy5>>2]=HEAP32[$$byval_copy2>>2]|0;HEAP32[$$byval_copy5+4>>2]=HEAP32[$$byval_copy2+4>>2]|0;HEAP32[$$byval_copy5+8>>2]=HEAP32[$$byval_copy2+8>>2]|0;HEAP32[$$byval_copy5+12>>2]=HEAP32[$$byval_copy2+12>>2]|0;HEAP32[$$byval_copy5+16>>2]=HEAP32[$$byval_copy2+16>>2]|0;
  24903. _UnloadImage($$byval_copy5);
  24904. }
  24905. $23 = ((($12)) + 24|0);
  24906. $24 = HEAP32[$23>>2]|0;
  24907. $25 = ($24|0)==(6);
  24908. if ($25) {
  24909. $26 = ((($12)) + 28|0);
  24910. $27 = HEAP32[$26>>2]|0;
  24911. $28 = ((($2)) + 20|0);
  24912. HEAP32[$28>>2] = $27;
  24913. $29 = ((($12)) + 32|0);
  24914. $30 = HEAP32[$29>>2]|0;
  24915. $31 = ((($2)) + 24|0);
  24916. HEAP32[$31>>2] = $30;
  24917. $32 = ((($12)) + 44|0);
  24918. $33 = HEAP32[$32>>2]|0;
  24919. $34 = ((($2)) + 28|0);
  24920. HEAP32[$34>>2] = $33;
  24921. }
  24922. }
  24923. } while(0);
  24924. $44 = HEAP32[$2>>2]|0;
  24925. $45 = ($44|0)==(0);
  24926. if ($45) {
  24927. HEAP32[$vararg_buffer>>2] = $1;
  24928. _TraceLog(2,11731,$vararg_buffer);
  24929. _GetDefaultFont($9);
  24930. ;HEAP32[$2>>2]=HEAP32[$9>>2]|0;HEAP32[$2+4>>2]=HEAP32[$9+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$9+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$9+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$9+16>>2]|0;HEAP32[$2+20>>2]=HEAP32[$9+20>>2]|0;HEAP32[$2+24>>2]=HEAP32[$9+24>>2]|0;HEAP32[$2+28>>2]=HEAP32[$9+28>>2]|0;
  24931. ;HEAP32[$0>>2]=HEAP32[$2>>2]|0;HEAP32[$0+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$2+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[$2+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[$2+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[$2+28>>2]|0;
  24932. STACKTOP = sp;return;
  24933. } else {
  24934. ;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;HEAP32[$$byval_copy5+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$$byval_copy5+16>>2]=HEAP32[$2+16>>2]|0;
  24935. _SetTextureFilter($$byval_copy5,0);
  24936. ;HEAP32[$0>>2]=HEAP32[$2>>2]|0;HEAP32[$0+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$2+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[$2+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[$2+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[$2+28>>2]|0;
  24937. STACKTOP = sp;return;
  24938. }
  24939. }
  24940. function _LoadSpriteFontTTF($0,$1,$2,$3,$4) {
  24941. $0 = $0|0;
  24942. $1 = $1|0;
  24943. $2 = $2|0;
  24944. $3 = $3|0;
  24945. $4 = $4|0;
  24946. var $$048 = 0, $$sroa$0$0 = 0, $$sroa$0$0$copyload = 0, $$sroa$0$0$copyload15 = 0, $$sroa$0$0$copyload17 = 0, $$sroa$0$1 = 0, $$sroa$8 = 0, $$sroa$8$0$$sroa_idx = 0, $$sroa$8$0$$sroa_idx23 = 0, $$sroa$8$0$$sroa_idx26 = 0, $$sroa$8$0$$sroa_idx29 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $5 = 0, $6 = 0;
  24947. var $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $or$cond = 0, $vararg_buffer = 0, label = 0, sp = 0;
  24948. sp = STACKTOP;
  24949. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  24950. $vararg_buffer = sp;
  24951. $$sroa$8 = sp + 104|0;
  24952. $5 = sp + 72|0;
  24953. $6 = sp + 40|0;
  24954. $7 = sp + 8|0;
  24955. ;HEAP32[$$sroa$8>>2]=0|0;HEAP32[$$sroa$8+4>>2]=0|0;HEAP32[$$sroa$8+8>>2]=0|0;HEAP32[$$sroa$8+12>>2]=0|0;HEAP32[$$sroa$8+16>>2]=0|0;HEAP32[$$sroa$8+20>>2]=0|0;HEAP32[$$sroa$8+24>>2]=0|0;
  24956. $8 = (_IsFileExtension($1,11721)|0);
  24957. $9 = ($8|0)==(0);
  24958. if (!($9)) {
  24959. $10 = ($4|0)==(0|0);
  24960. $11 = ($3|0)==(0);
  24961. $or$cond = $11 | $10;
  24962. if ($or$cond) {
  24963. $12 = (_malloc(380)|0);
  24964. $$048 = 0;
  24965. while(1) {
  24966. $13 = (($$048) + 32)|0;
  24967. $14 = (($12) + ($$048<<2)|0);
  24968. HEAP32[$14>>2] = $13;
  24969. $15 = (($$048) + 1)|0;
  24970. $exitcond = ($15|0)==(95);
  24971. if ($exitcond) {
  24972. break;
  24973. } else {
  24974. $$048 = $15;
  24975. }
  24976. }
  24977. _LoadTTF($5,$1,$2,95,$12);
  24978. $$sroa$0$0$copyload = HEAP32[$5>>2]|0;
  24979. $$sroa$8$0$$sroa_idx = ((($5)) + 4|0);
  24980. ;HEAP32[$$sroa$8>>2]=HEAP32[$$sroa$8$0$$sroa_idx>>2]|0;HEAP32[$$sroa$8+4>>2]=HEAP32[$$sroa$8$0$$sroa_idx+4>>2]|0;HEAP32[$$sroa$8+8>>2]=HEAP32[$$sroa$8$0$$sroa_idx+8>>2]|0;HEAP32[$$sroa$8+12>>2]=HEAP32[$$sroa$8$0$$sroa_idx+12>>2]|0;HEAP32[$$sroa$8+16>>2]=HEAP32[$$sroa$8$0$$sroa_idx+16>>2]|0;HEAP32[$$sroa$8+20>>2]=HEAP32[$$sroa$8$0$$sroa_idx+20>>2]|0;HEAP32[$$sroa$8+24>>2]=HEAP32[$$sroa$8$0$$sroa_idx+24>>2]|0;
  24981. $$sroa$0$0 = $$sroa$0$0$copyload;
  24982. } else {
  24983. _LoadTTF($6,$1,$2,$3,$4);
  24984. $$sroa$0$0$copyload15 = HEAP32[$6>>2]|0;
  24985. $$sroa$8$0$$sroa_idx23 = ((($6)) + 4|0);
  24986. ;HEAP32[$$sroa$8>>2]=HEAP32[$$sroa$8$0$$sroa_idx23>>2]|0;HEAP32[$$sroa$8+4>>2]=HEAP32[$$sroa$8$0$$sroa_idx23+4>>2]|0;HEAP32[$$sroa$8+8>>2]=HEAP32[$$sroa$8$0$$sroa_idx23+8>>2]|0;HEAP32[$$sroa$8+12>>2]=HEAP32[$$sroa$8$0$$sroa_idx23+12>>2]|0;HEAP32[$$sroa$8+16>>2]=HEAP32[$$sroa$8$0$$sroa_idx23+16>>2]|0;HEAP32[$$sroa$8+20>>2]=HEAP32[$$sroa$8$0$$sroa_idx23+20>>2]|0;HEAP32[$$sroa$8+24>>2]=HEAP32[$$sroa$8$0$$sroa_idx23+24>>2]|0;
  24987. $$sroa$0$0 = $$sroa$0$0$copyload15;
  24988. }
  24989. $16 = ($$sroa$0$0|0)==(0);
  24990. if (!($16)) {
  24991. $$sroa$0$1 = $$sroa$0$0;
  24992. HEAP32[$0>>2] = $$sroa$0$1;
  24993. $$sroa$8$0$$sroa_idx29 = ((($0)) + 4|0);
  24994. ;HEAP32[$$sroa$8$0$$sroa_idx29>>2]=HEAP32[$$sroa$8>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+4>>2]=HEAP32[$$sroa$8+4>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+8>>2]=HEAP32[$$sroa$8+8>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+12>>2]=HEAP32[$$sroa$8+12>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+16>>2]=HEAP32[$$sroa$8+16>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+20>>2]=HEAP32[$$sroa$8+20>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+24>>2]=HEAP32[$$sroa$8+24>>2]|0;
  24995. STACKTOP = sp;return;
  24996. }
  24997. }
  24998. HEAP32[$vararg_buffer>>2] = $1;
  24999. _TraceLog(2,12275,$vararg_buffer);
  25000. _GetDefaultFont($7);
  25001. $$sroa$0$0$copyload17 = HEAP32[$7>>2]|0;
  25002. $$sroa$8$0$$sroa_idx26 = ((($7)) + 4|0);
  25003. ;HEAP32[$$sroa$8>>2]=HEAP32[$$sroa$8$0$$sroa_idx26>>2]|0;HEAP32[$$sroa$8+4>>2]=HEAP32[$$sroa$8$0$$sroa_idx26+4>>2]|0;HEAP32[$$sroa$8+8>>2]=HEAP32[$$sroa$8$0$$sroa_idx26+8>>2]|0;HEAP32[$$sroa$8+12>>2]=HEAP32[$$sroa$8$0$$sroa_idx26+12>>2]|0;HEAP32[$$sroa$8+16>>2]=HEAP32[$$sroa$8$0$$sroa_idx26+16>>2]|0;HEAP32[$$sroa$8+20>>2]=HEAP32[$$sroa$8$0$$sroa_idx26+20>>2]|0;HEAP32[$$sroa$8+24>>2]=HEAP32[$$sroa$8$0$$sroa_idx26+24>>2]|0;
  25004. $$sroa$0$1 = $$sroa$0$0$copyload17;
  25005. HEAP32[$0>>2] = $$sroa$0$1;
  25006. $$sroa$8$0$$sroa_idx29 = ((($0)) + 4|0);
  25007. ;HEAP32[$$sroa$8$0$$sroa_idx29>>2]=HEAP32[$$sroa$8>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+4>>2]=HEAP32[$$sroa$8+4>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+8>>2]=HEAP32[$$sroa$8+8>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+12>>2]=HEAP32[$$sroa$8+12>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+16>>2]=HEAP32[$$sroa$8+16>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+20>>2]=HEAP32[$$sroa$8+20>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+24>>2]=HEAP32[$$sroa$8+24>>2]|0;
  25008. STACKTOP = sp;return;
  25009. }
  25010. function _LoadBMFont($0,$1) {
  25011. $0 = $0|0;
  25012. $1 = $1|0;
  25013. var $$05355 = 0, $$056 = 0, $$byval_copy52 = 0, $$sroa$0$0$$sroa_idx = 0, $$sroa$2$0$$sroa_idx1 = 0, $$sroa$3$0$$sroa_idx2 = 0, $$sroa$4$0$$sroa_idx3 = 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;
  25014. 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;
  25015. 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;
  25016. 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;
  25017. var $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer11 = 0, $vararg_buffer16 = 0, $vararg_buffer19 = 0, $vararg_buffer23 = 0, $vararg_buffer26 = 0, $vararg_buffer34 = 0, $vararg_buffer44 = 0, $vararg_buffer7 = 0, $vararg_ptr10 = 0;
  25018. var $vararg_ptr14 = 0, $vararg_ptr15 = 0, $vararg_ptr22 = 0, $vararg_ptr29 = 0, $vararg_ptr33 = 0, $vararg_ptr37 = 0, $vararg_ptr38 = 0, $vararg_ptr39 = 0, $vararg_ptr4 = 0, $vararg_ptr40 = 0, $vararg_ptr41 = 0, $vararg_ptr42 = 0, $vararg_ptr43 = 0, $vararg_ptr5 = 0, $vararg_ptr6 = 0, label = 0, sp = 0;
  25019. sp = STACKTOP;
  25020. STACKTOP = STACKTOP + 704|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(704|0);
  25021. $$byval_copy52 = sp + 152|0;
  25022. $vararg_buffer44 = sp + 144|0;
  25023. $vararg_buffer34 = sp + 112|0;
  25024. $vararg_buffer26 = sp + 88|0;
  25025. $vararg_buffer23 = sp + 64|0;
  25026. $vararg_buffer19 = sp + 56|0;
  25027. $vararg_buffer16 = sp + 48|0;
  25028. $vararg_buffer11 = sp + 32|0;
  25029. $vararg_buffer7 = sp + 24|0;
  25030. $vararg_buffer1 = sp + 8|0;
  25031. $vararg_buffer = sp;
  25032. $2 = sp + 288|0;
  25033. $3 = sp + 448|0;
  25034. $4 = sp + 260|0;
  25035. $5 = sp + 236|0;
  25036. $6 = sp + 232|0;
  25037. $7 = sp + 320|0;
  25038. $8 = sp + 196|0;
  25039. $9 = sp + 192|0;
  25040. $10 = sp + 264|0;
  25041. $11 = sp + 240|0;
  25042. $12 = sp + 188|0;
  25043. $13 = sp + 184|0;
  25044. $14 = sp + 200|0;
  25045. ;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;
  25046. HEAP32[$4>>2] = 0;
  25047. HEAP32[$8>>2] = 0;
  25048. $15 = (_fopen($1,11873)|0);
  25049. $16 = ($15|0)==(0|0);
  25050. if ($16) {
  25051. HEAP32[$vararg_buffer>>2] = $1;
  25052. _TraceLog(2,11876,$vararg_buffer);
  25053. ;HEAP32[$0>>2]=HEAP32[$2>>2]|0;HEAP32[$0+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$2+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[$2+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[$2+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[$2+28>>2]|0;
  25054. STACKTOP = sp;return;
  25055. }
  25056. (_fgets($3,256,$15)|0);
  25057. (_fgets($3,256,$15)|0);
  25058. $17 = (_strstr($3,11910)|0);
  25059. HEAP32[$vararg_buffer1>>2] = $4;
  25060. $vararg_ptr4 = ((($vararg_buffer1)) + 4|0);
  25061. HEAP32[$vararg_ptr4>>2] = $9;
  25062. $vararg_ptr5 = ((($vararg_buffer1)) + 8|0);
  25063. HEAP32[$vararg_ptr5>>2] = $5;
  25064. $vararg_ptr6 = ((($vararg_buffer1)) + 12|0);
  25065. HEAP32[$vararg_ptr6>>2] = $6;
  25066. (_sscanf($17,11921,$vararg_buffer1)|0);
  25067. $18 = HEAP32[$4>>2]|0;
  25068. HEAP32[$vararg_buffer7>>2] = $1;
  25069. $vararg_ptr10 = ((($vararg_buffer7)) + 4|0);
  25070. HEAP32[$vararg_ptr10>>2] = $18;
  25071. _TraceLog(3,11963,$vararg_buffer7);
  25072. $19 = HEAP32[$5>>2]|0;
  25073. $20 = HEAP32[$6>>2]|0;
  25074. HEAP32[$vararg_buffer11>>2] = $1;
  25075. $vararg_ptr14 = ((($vararg_buffer11)) + 4|0);
  25076. HEAP32[$vararg_ptr14>>2] = $19;
  25077. $vararg_ptr15 = ((($vararg_buffer11)) + 8|0);
  25078. HEAP32[$vararg_ptr15>>2] = $20;
  25079. _TraceLog(3,11982,$vararg_buffer11);
  25080. (_fgets($3,256,$15)|0);
  25081. $21 = (_strstr($3,12013)|0);
  25082. HEAP32[$vararg_buffer16>>2] = $7;
  25083. (_sscanf($21,12018,$vararg_buffer16)|0);
  25084. HEAP32[$vararg_buffer19>>2] = $1;
  25085. $vararg_ptr22 = ((($vararg_buffer19)) + 4|0);
  25086. HEAP32[$vararg_ptr22>>2] = $7;
  25087. _TraceLog(3,12034,$vararg_buffer19);
  25088. (_fgets($3,256,$15)|0);
  25089. $22 = (_strstr($3,12065)|0);
  25090. HEAP32[$vararg_buffer23>>2] = $8;
  25091. (_sscanf($22,12071,$vararg_buffer23)|0);
  25092. $23 = HEAP32[$8>>2]|0;
  25093. HEAP32[$vararg_buffer26>>2] = $1;
  25094. $vararg_ptr29 = ((($vararg_buffer26)) + 4|0);
  25095. HEAP32[$vararg_ptr29>>2] = $23;
  25096. _TraceLog(3,12080,$vararg_buffer26);
  25097. $24 = (_strrchr($1,47)|0);
  25098. $25 = (_strlen($1)|0);
  25099. $26 = (_strlen($24)|0);
  25100. $27 = (_strlen($7)|0);
  25101. $28 = (($25) + 4)|0;
  25102. $29 = (($28) - ($26))|0;
  25103. $30 = (($29) + ($27))|0;
  25104. $31 = (_malloc($30)|0);
  25105. HEAP8[$31>>0] = 0;
  25106. $32 = (_strlen($1)|0);
  25107. $33 = (_strlen($24)|0);
  25108. $34 = (($32) + 1)|0;
  25109. $35 = (($34) - ($33))|0;
  25110. (_strncat($31,$1,$35)|0);
  25111. $36 = (_strlen($7)|0);
  25112. (_strncat($31,$7,$36)|0);
  25113. HEAP32[$$byval_copy52>>2] = $1;
  25114. $vararg_ptr33 = ((($$byval_copy52)) + 4|0);
  25115. HEAP32[$vararg_ptr33>>2] = $31;
  25116. _TraceLog(3,12104,$$byval_copy52);
  25117. _LoadImage($vararg_buffer26,$31);
  25118. $37 = ((($vararg_buffer26)) + 16|0);
  25119. $38 = HEAP32[$37>>2]|0;
  25120. $39 = ($38|0)==(1);
  25121. if ($39) {
  25122. ;HEAP32[$$byval_copy52>>2]=HEAP32[$vararg_buffer26>>2]|0;HEAP32[$$byval_copy52+4>>2]=HEAP32[$vararg_buffer26+4>>2]|0;HEAP32[$$byval_copy52+8>>2]=HEAP32[$vararg_buffer26+8>>2]|0;HEAP32[$$byval_copy52+12>>2]=HEAP32[$vararg_buffer26+12>>2]|0;HEAP32[$$byval_copy52+16>>2]=HEAP32[$vararg_buffer26+16>>2]|0;
  25123. _ImageCopy($vararg_buffer23,$$byval_copy52);
  25124. $40 = ((($vararg_buffer23)) + 4|0);
  25125. $41 = HEAP32[$40>>2]|0;
  25126. $42 = ((($vararg_buffer23)) + 8|0);
  25127. $43 = HEAP32[$42>>2]|0;
  25128. $44 = Math_imul($43, $41)|0;
  25129. $45 = ($44|0)>(0);
  25130. if ($45) {
  25131. $$056 = 0;
  25132. while(1) {
  25133. $46 = HEAP32[$vararg_buffer23>>2]|0;
  25134. $47 = (($46) + ($$056)|0);
  25135. HEAP8[$47>>0] = -1;
  25136. $48 = (($$056) + 1)|0;
  25137. $49 = HEAP32[$40>>2]|0;
  25138. $50 = HEAP32[$42>>2]|0;
  25139. $51 = Math_imul($50, $49)|0;
  25140. $52 = ($48|0)<($51|0);
  25141. if ($52) {
  25142. $$056 = $48;
  25143. } else {
  25144. break;
  25145. }
  25146. }
  25147. }
  25148. ;HEAP32[$$byval_copy52>>2]=HEAP32[$vararg_buffer26>>2]|0;HEAP32[$$byval_copy52+4>>2]=HEAP32[$vararg_buffer26+4>>2]|0;HEAP32[$$byval_copy52+8>>2]=HEAP32[$vararg_buffer26+8>>2]|0;HEAP32[$$byval_copy52+12>>2]=HEAP32[$vararg_buffer26+12>>2]|0;HEAP32[$$byval_copy52+16>>2]=HEAP32[$vararg_buffer26+16>>2]|0;
  25149. _ImageAlphaMask($vararg_buffer23,$$byval_copy52);
  25150. ;HEAP32[$$byval_copy52>>2]=HEAP32[$vararg_buffer23>>2]|0;HEAP32[$$byval_copy52+4>>2]=HEAP32[$vararg_buffer23+4>>2]|0;HEAP32[$$byval_copy52+8>>2]=HEAP32[$vararg_buffer23+8>>2]|0;HEAP32[$$byval_copy52+12>>2]=HEAP32[$vararg_buffer23+12>>2]|0;HEAP32[$$byval_copy52+16>>2]=HEAP32[$vararg_buffer23+16>>2]|0;
  25151. _LoadTextureFromImage($10,$$byval_copy52);
  25152. ;HEAP32[$2>>2]=HEAP32[$10>>2]|0;HEAP32[$2+4>>2]=HEAP32[$10+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$10+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$10+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$10+16>>2]|0;
  25153. ;HEAP32[$$byval_copy52>>2]=HEAP32[$vararg_buffer23>>2]|0;HEAP32[$$byval_copy52+4>>2]=HEAP32[$vararg_buffer23+4>>2]|0;HEAP32[$$byval_copy52+8>>2]=HEAP32[$vararg_buffer23+8>>2]|0;HEAP32[$$byval_copy52+12>>2]=HEAP32[$vararg_buffer23+12>>2]|0;HEAP32[$$byval_copy52+16>>2]=HEAP32[$vararg_buffer23+16>>2]|0;
  25154. _UnloadImage($$byval_copy52);
  25155. } else {
  25156. ;HEAP32[$$byval_copy52>>2]=HEAP32[$vararg_buffer26>>2]|0;HEAP32[$$byval_copy52+4>>2]=HEAP32[$vararg_buffer26+4>>2]|0;HEAP32[$$byval_copy52+8>>2]=HEAP32[$vararg_buffer26+8>>2]|0;HEAP32[$$byval_copy52+12>>2]=HEAP32[$vararg_buffer26+12>>2]|0;HEAP32[$$byval_copy52+16>>2]=HEAP32[$vararg_buffer26+16>>2]|0;
  25157. _LoadTextureFromImage($11,$$byval_copy52);
  25158. ;HEAP32[$2>>2]=HEAP32[$11>>2]|0;HEAP32[$2+4>>2]=HEAP32[$11+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$11+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$11+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$11+16>>2]|0;
  25159. }
  25160. $53 = HEAP32[$4>>2]|0;
  25161. $54 = ((($2)) + 20|0);
  25162. HEAP32[$54>>2] = $53;
  25163. $55 = HEAP32[$8>>2]|0;
  25164. $56 = ((($2)) + 24|0);
  25165. HEAP32[$56>>2] = $55;
  25166. $57 = $55 << 5;
  25167. $58 = (_malloc($57)|0);
  25168. $59 = ((($2)) + 28|0);
  25169. HEAP32[$59>>2] = $58;
  25170. ;HEAP32[$$byval_copy52>>2]=HEAP32[$vararg_buffer26>>2]|0;HEAP32[$$byval_copy52+4>>2]=HEAP32[$vararg_buffer26+4>>2]|0;HEAP32[$$byval_copy52+8>>2]=HEAP32[$vararg_buffer26+8>>2]|0;HEAP32[$$byval_copy52+12>>2]=HEAP32[$vararg_buffer26+12>>2]|0;HEAP32[$$byval_copy52+16>>2]=HEAP32[$vararg_buffer26+16>>2]|0;
  25171. _UnloadImage($$byval_copy52);
  25172. _free($31);
  25173. $60 = HEAP32[$8>>2]|0;
  25174. $61 = ($60|0)>(0);
  25175. if ($61) {
  25176. $$05355 = 0;
  25177. while(1) {
  25178. (_fgets($3,256,$15)|0);
  25179. HEAP32[$vararg_buffer34>>2] = $vararg_buffer23;
  25180. $vararg_ptr37 = ((($vararg_buffer34)) + 4|0);
  25181. HEAP32[$vararg_ptr37>>2] = $vararg_buffer19;
  25182. $vararg_ptr38 = ((($vararg_buffer34)) + 8|0);
  25183. HEAP32[$vararg_ptr38>>2] = $vararg_buffer16;
  25184. $vararg_ptr39 = ((($vararg_buffer34)) + 12|0);
  25185. HEAP32[$vararg_ptr39>>2] = $vararg_buffer11;
  25186. $vararg_ptr40 = ((($vararg_buffer34)) + 16|0);
  25187. HEAP32[$vararg_ptr40>>2] = $vararg_buffer7;
  25188. $vararg_ptr41 = ((($vararg_buffer34)) + 20|0);
  25189. HEAP32[$vararg_ptr41>>2] = $vararg_buffer1;
  25190. $vararg_ptr42 = ((($vararg_buffer34)) + 24|0);
  25191. HEAP32[$vararg_ptr42>>2] = $12;
  25192. $vararg_ptr43 = ((($vararg_buffer34)) + 28|0);
  25193. HEAP32[$vararg_ptr43>>2] = $13;
  25194. (_sscanf($3,12139,$vararg_buffer34)|0);
  25195. $64 = HEAP32[$vararg_buffer23>>2]|0;
  25196. $65 = HEAP32[$59>>2]|0;
  25197. $66 = (($65) + ($$05355<<5)|0);
  25198. HEAP32[$66>>2] = $64;
  25199. $67 = HEAP32[$59>>2]|0;
  25200. $68 = HEAP32[$vararg_buffer19>>2]|0;
  25201. $69 = HEAP32[$vararg_buffer16>>2]|0;
  25202. $70 = HEAP32[$vararg_buffer11>>2]|0;
  25203. $71 = HEAP32[$vararg_buffer7>>2]|0;
  25204. $$sroa$0$0$$sroa_idx = (((($67) + ($$05355<<5)|0)) + 4|0);
  25205. HEAP32[$$sroa$0$0$$sroa_idx>>2] = $68;
  25206. $$sroa$2$0$$sroa_idx1 = (((($67) + ($$05355<<5)|0)) + 8|0);
  25207. HEAP32[$$sroa$2$0$$sroa_idx1>>2] = $69;
  25208. $$sroa$3$0$$sroa_idx2 = (((($67) + ($$05355<<5)|0)) + 12|0);
  25209. HEAP32[$$sroa$3$0$$sroa_idx2>>2] = $70;
  25210. $$sroa$4$0$$sroa_idx3 = (((($67) + ($$05355<<5)|0)) + 16|0);
  25211. HEAP32[$$sroa$4$0$$sroa_idx3>>2] = $71;
  25212. $72 = HEAP32[$vararg_buffer1>>2]|0;
  25213. $73 = HEAP32[$59>>2]|0;
  25214. $74 = (((($73) + ($$05355<<5)|0)) + 20|0);
  25215. HEAP32[$74>>2] = $72;
  25216. $75 = HEAP32[$12>>2]|0;
  25217. $76 = HEAP32[$59>>2]|0;
  25218. $77 = (((($76) + ($$05355<<5)|0)) + 24|0);
  25219. HEAP32[$77>>2] = $75;
  25220. $78 = HEAP32[$13>>2]|0;
  25221. $79 = HEAP32[$59>>2]|0;
  25222. $80 = (((($79) + ($$05355<<5)|0)) + 28|0);
  25223. HEAP32[$80>>2] = $78;
  25224. $81 = (($$05355) + 1)|0;
  25225. $82 = HEAP32[$8>>2]|0;
  25226. $83 = ($81|0)<($82|0);
  25227. if ($83) {
  25228. $$05355 = $81;
  25229. } else {
  25230. break;
  25231. }
  25232. }
  25233. }
  25234. (_fclose($15)|0);
  25235. $62 = HEAP32[$2>>2]|0;
  25236. $63 = ($62|0)==(0);
  25237. if ($63) {
  25238. ;HEAP32[$$byval_copy52>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy52+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy52+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$$byval_copy52+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$$byval_copy52+16>>2]=HEAP32[$2+16>>2]|0;HEAP32[$$byval_copy52+20>>2]=HEAP32[$2+20>>2]|0;HEAP32[$$byval_copy52+24>>2]=HEAP32[$2+24>>2]|0;HEAP32[$$byval_copy52+28>>2]=HEAP32[$2+28>>2]|0;
  25239. _UnloadSpriteFont($$byval_copy52);
  25240. _GetDefaultFont($14);
  25241. ;HEAP32[$2>>2]=HEAP32[$14>>2]|0;HEAP32[$2+4>>2]=HEAP32[$14+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$14+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$14+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$14+16>>2]|0;HEAP32[$2+20>>2]=HEAP32[$14+20>>2]|0;HEAP32[$2+24>>2]=HEAP32[$14+24>>2]|0;HEAP32[$2+28>>2]=HEAP32[$14+28>>2]|0;
  25242. } else {
  25243. HEAP32[$vararg_buffer44>>2] = $1;
  25244. _TraceLog(0,12213,$vararg_buffer44);
  25245. }
  25246. ;HEAP32[$0>>2]=HEAP32[$2>>2]|0;HEAP32[$0+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$2+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[$2+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[$2+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[$2+28>>2]|0;
  25247. STACKTOP = sp;return;
  25248. }
  25249. function _LoadImageFont($0,$1,$2) {
  25250. $0 = $0|0;
  25251. $1 = $1|0;
  25252. $2 = $2|0;
  25253. var $$0195$lcssa = 0, $$019552 = 0, $$019622 = 0, $$0197 = 0, $$020032 = 0, $$0201$lcssa = 0, $$020131 = 0, $$0203 = 0, $$021 = 0, $$1$lcssa = 0, $$119927 = 0, $$1202$lcssa = 0, $$120226 = 0, $$135 = 0, $$2 = 0, $$byval_copy4 = 0, $$sroa$0 = 0, $$sroa$5$0$$sroa_idx15 = 0, $$sroa$6$0$$sroa_idx17 = 0, $$sroa$9$0$$sroa_idx20 = 0;
  25254. var $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0;
  25255. var $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0;
  25256. var $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0;
  25257. var $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0, $17 = 0, $170 = 0, $171 = 0;
  25258. var $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0;
  25259. 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;
  25260. 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;
  25261. 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;
  25262. 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;
  25263. var $97 = 0, $98 = 0, $99 = 0, $exitcond = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, label = 0, sp = 0;
  25264. sp = STACKTOP;
  25265. STACKTOP = STACKTOP + 5232|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(5232|0);
  25266. $$byval_copy4 = sp + 5200|0;
  25267. $vararg_buffer1 = sp + 48|0;
  25268. $vararg_buffer = sp + 24|0;
  25269. $3 = sp + 4176|0;
  25270. $4 = sp + 56|0;
  25271. $$sroa$0 = sp;
  25272. $5 = sp + 4152|0;
  25273. ;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;HEAP32[$$byval_copy4+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[$$byval_copy4+16>>2]=HEAP32[$1+16>>2]|0;
  25274. $6 = (_GetImageData($$byval_copy4)|0);
  25275. $7 = ((($1)) + 8|0);
  25276. $8 = HEAP32[$7>>2]|0;
  25277. $9 = ($8|0)>(0);
  25278. L1: do {
  25279. if ($9) {
  25280. $10 = ((($1)) + 4|0);
  25281. $11 = HEAP32[$10>>2]|0;
  25282. $12 = ($11|0)>(0);
  25283. $13 = HEAP8[$2>>0]|0;
  25284. $14 = ((($2)) + 1|0);
  25285. $15 = HEAP8[$14>>0]|0;
  25286. $16 = ((($2)) + 2|0);
  25287. $17 = HEAP8[$16>>0]|0;
  25288. $18 = ((($2)) + 3|0);
  25289. $19 = HEAP8[$18>>0]|0;
  25290. $20 = HEAP8[$2>>0]|0;
  25291. $21 = ((($2)) + 1|0);
  25292. $22 = HEAP8[$21>>0]|0;
  25293. $23 = ((($2)) + 2|0);
  25294. $24 = HEAP8[$23>>0]|0;
  25295. $25 = ((($2)) + 3|0);
  25296. $26 = HEAP8[$25>>0]|0;
  25297. $27 = HEAP32[$10>>2]|0;
  25298. $$019552 = 0;
  25299. while(1) {
  25300. L5: do {
  25301. if ($12) {
  25302. $$135 = 0;$29 = $11;
  25303. while(1) {
  25304. $28 = Math_imul($29, $$019552)|0;
  25305. $30 = (($28) + ($$135))|0;
  25306. $31 = (($6) + ($30<<2)|0);
  25307. $32 = HEAP8[$31>>0]|0;
  25308. $33 = ($32<<24>>24)==($20<<24>>24);
  25309. if (!($33)) {
  25310. $$1$lcssa = $$135;
  25311. break L5;
  25312. }
  25313. $34 = (((($6) + ($30<<2)|0)) + 1|0);
  25314. $35 = HEAP8[$34>>0]|0;
  25315. $36 = ($35<<24>>24)==($22<<24>>24);
  25316. if (!($36)) {
  25317. $$1$lcssa = $$135;
  25318. break L5;
  25319. }
  25320. $37 = (((($6) + ($30<<2)|0)) + 2|0);
  25321. $38 = HEAP8[$37>>0]|0;
  25322. $39 = ($38<<24>>24)==($24<<24>>24);
  25323. if (!($39)) {
  25324. $$1$lcssa = $$135;
  25325. break L5;
  25326. }
  25327. $40 = (((($6) + ($30<<2)|0)) + 3|0);
  25328. $41 = HEAP8[$40>>0]|0;
  25329. $42 = ($41<<24>>24)==($26<<24>>24);
  25330. if (!($42)) {
  25331. $$1$lcssa = $$135;
  25332. break L5;
  25333. }
  25334. $43 = (($$135) + 1)|0;
  25335. $44 = HEAP32[$10>>2]|0;
  25336. $45 = ($43|0)<($44|0);
  25337. if ($45) {
  25338. $$135 = $43;$29 = $44;
  25339. } else {
  25340. $$1$lcssa = $43;
  25341. break;
  25342. }
  25343. }
  25344. } else {
  25345. $$1$lcssa = 0;
  25346. }
  25347. } while(0);
  25348. $46 = Math_imul($27, $$019552)|0;
  25349. $47 = (($46) + ($$1$lcssa))|0;
  25350. $48 = (($6) + ($47<<2)|0);
  25351. $49 = HEAP8[$48>>0]|0;
  25352. $50 = ($49<<24>>24)==($13<<24>>24);
  25353. if (!($50)) {
  25354. $$0195$lcssa = $$019552;$$2 = $$1$lcssa;
  25355. break L1;
  25356. }
  25357. $51 = (((($6) + ($47<<2)|0)) + 1|0);
  25358. $52 = HEAP8[$51>>0]|0;
  25359. $53 = ($52<<24>>24)==($15<<24>>24);
  25360. if (!($53)) {
  25361. $$0195$lcssa = $$019552;$$2 = $$1$lcssa;
  25362. break L1;
  25363. }
  25364. $54 = (((($6) + ($47<<2)|0)) + 2|0);
  25365. $55 = HEAP8[$54>>0]|0;
  25366. $56 = ($55<<24>>24)==($17<<24>>24);
  25367. if (!($56)) {
  25368. $$0195$lcssa = $$019552;$$2 = $$1$lcssa;
  25369. break L1;
  25370. }
  25371. $57 = (((($6) + ($47<<2)|0)) + 3|0);
  25372. $58 = HEAP8[$57>>0]|0;
  25373. $59 = ($58<<24>>24)==($19<<24>>24);
  25374. if (!($59)) {
  25375. $$0195$lcssa = $$019552;$$2 = $$1$lcssa;
  25376. break L1;
  25377. }
  25378. $60 = (($$019552) + 1)|0;
  25379. $61 = HEAP32[$7>>2]|0;
  25380. $62 = ($60|0)<($61|0);
  25381. if ($62) {
  25382. $$019552 = $60;
  25383. } else {
  25384. $$0195$lcssa = $60;$$2 = $$1$lcssa;
  25385. break;
  25386. }
  25387. }
  25388. } else {
  25389. $$0195$lcssa = 0;$$2 = 0;
  25390. }
  25391. } while(0);
  25392. $63 = ((($1)) + 4|0);
  25393. $64 = HEAP32[$63>>2]|0;
  25394. $65 = HEAP8[$2>>0]|0;
  25395. $66 = ((($2)) + 1|0);
  25396. $67 = HEAP8[$66>>0]|0;
  25397. $68 = ((($2)) + 2|0);
  25398. $69 = HEAP8[$68>>0]|0;
  25399. $70 = ((($2)) + 3|0);
  25400. $71 = HEAP8[$70>>0]|0;
  25401. $$0203 = 0;
  25402. while(1) {
  25403. $72 = (($$0203) + ($$0195$lcssa))|0;
  25404. $73 = Math_imul($72, $64)|0;
  25405. $74 = (($73) + ($$2))|0;
  25406. $75 = (($6) + ($74<<2)|0);
  25407. $76 = HEAP8[$75>>0]|0;
  25408. $77 = ($76<<24>>24)==($65<<24>>24);
  25409. if ($77) {
  25410. $78 = (((($6) + ($74<<2)|0)) + 1|0);
  25411. $79 = HEAP8[$78>>0]|0;
  25412. $80 = ($79<<24>>24)==($67<<24>>24);
  25413. if ($80) {
  25414. $81 = (((($6) + ($74<<2)|0)) + 2|0);
  25415. $82 = HEAP8[$81>>0]|0;
  25416. $83 = ($82<<24>>24)==($69<<24>>24);
  25417. if ($83) {
  25418. $84 = (((($6) + ($74<<2)|0)) + 3|0);
  25419. $85 = HEAP8[$84>>0]|0;
  25420. $86 = ($85<<24>>24)==($71<<24>>24);
  25421. if ($86) {
  25422. break;
  25423. }
  25424. }
  25425. }
  25426. }
  25427. $96 = (($$0203) + 1)|0;
  25428. $$0203 = $96;
  25429. }
  25430. $87 = HEAP32[$7>>2]|0;
  25431. $88 = ($$0195$lcssa|0)<($87|0);
  25432. if ($88) {
  25433. $89 = HEAP32[$63>>2]|0;
  25434. $90 = ($$2|0)<($89|0);
  25435. $91 = HEAP32[$7>>2]|0;
  25436. $92 = HEAP8[$2>>0]|0;
  25437. $93 = HEAP8[$66>>0]|0;
  25438. $94 = HEAP8[$68>>0]|0;
  25439. $95 = HEAP8[$70>>0]|0;
  25440. $$020032 = 0;$$020131 = 0;$99 = $$0195$lcssa;
  25441. while(1) {
  25442. L30: do {
  25443. if ($90) {
  25444. $$119927 = $$2;$$120226 = $$020131;$98 = $89;
  25445. while(1) {
  25446. $97 = Math_imul($98, $99)|0;
  25447. $100 = (($97) + ($$119927))|0;
  25448. $101 = (($6) + ($100<<2)|0);
  25449. $102 = HEAP8[$101>>0]|0;
  25450. $103 = ($102<<24>>24)==($92<<24>>24);
  25451. if ($103) {
  25452. $104 = (((($6) + ($100<<2)|0)) + 1|0);
  25453. $105 = HEAP8[$104>>0]|0;
  25454. $106 = ($105<<24>>24)==($93<<24>>24);
  25455. if ($106) {
  25456. $107 = (((($6) + ($100<<2)|0)) + 2|0);
  25457. $108 = HEAP8[$107>>0]|0;
  25458. $109 = ($108<<24>>24)==($94<<24>>24);
  25459. if ($109) {
  25460. $110 = (((($6) + ($100<<2)|0)) + 3|0);
  25461. $111 = HEAP8[$110>>0]|0;
  25462. $112 = ($111<<24>>24)==($95<<24>>24);
  25463. if ($112) {
  25464. $$1202$lcssa = $$120226;
  25465. break L30;
  25466. }
  25467. }
  25468. }
  25469. }
  25470. $113 = (($$120226) + 32)|0;
  25471. $114 = (($3) + ($$120226<<2)|0);
  25472. HEAP32[$114>>2] = $113;
  25473. $115 = (($4) + ($$120226<<4)|0);
  25474. HEAP32[$115>>2] = $$119927;
  25475. $116 = (((($4) + ($$120226<<4)|0)) + 4|0);
  25476. HEAP32[$116>>2] = $99;
  25477. $117 = (((($4) + ($$120226<<4)|0)) + 12|0);
  25478. HEAP32[$117>>2] = $$0203;
  25479. $118 = HEAP32[$63>>2]|0;
  25480. $119 = Math_imul($118, $99)|0;
  25481. $$0197 = 0;
  25482. while(1) {
  25483. $120 = (($$0197) + ($$119927))|0;
  25484. $121 = (($120) + ($119))|0;
  25485. $122 = (($6) + ($121<<2)|0);
  25486. $123 = HEAP8[$122>>0]|0;
  25487. $124 = ($123<<24>>24)==($92<<24>>24);
  25488. if ($124) {
  25489. $125 = (((($6) + ($121<<2)|0)) + 1|0);
  25490. $126 = HEAP8[$125>>0]|0;
  25491. $127 = ($126<<24>>24)==($93<<24>>24);
  25492. if ($127) {
  25493. $128 = (((($6) + ($121<<2)|0)) + 2|0);
  25494. $129 = HEAP8[$128>>0]|0;
  25495. $130 = ($129<<24>>24)==($94<<24>>24);
  25496. if ($130) {
  25497. $131 = (((($6) + ($121<<2)|0)) + 3|0);
  25498. $132 = HEAP8[$131>>0]|0;
  25499. $133 = ($132<<24>>24)==($95<<24>>24);
  25500. if ($133) {
  25501. break;
  25502. }
  25503. }
  25504. }
  25505. }
  25506. $134 = (($$0197) + 1)|0;
  25507. $$0197 = $134;
  25508. }
  25509. $135 = (((($4) + ($$120226<<4)|0)) + 8|0);
  25510. HEAP32[$135>>2] = $$0197;
  25511. $136 = (($$120226) + 1)|0;
  25512. $137 = (($$119927) + ($$2))|0;
  25513. $138 = (($137) + ($$0197))|0;
  25514. $139 = HEAP32[$63>>2]|0;
  25515. $140 = ($138|0)<($139|0);
  25516. if ($140) {
  25517. $$119927 = $138;$$120226 = $136;$98 = $139;
  25518. } else {
  25519. $$1202$lcssa = $136;
  25520. break;
  25521. }
  25522. }
  25523. } else {
  25524. $$1202$lcssa = $$020131;
  25525. }
  25526. } while(0);
  25527. $141 = (($$020032) + 1)|0;
  25528. $142 = Math_imul($141, $72)|0;
  25529. $143 = (($142) + ($$0195$lcssa))|0;
  25530. $144 = ($143|0)<($91|0);
  25531. if ($144) {
  25532. $$020032 = $141;$$020131 = $$1202$lcssa;$99 = $143;
  25533. } else {
  25534. $$0201$lcssa = $$1202$lcssa;
  25535. break;
  25536. }
  25537. }
  25538. } else {
  25539. $$0201$lcssa = 0;
  25540. }
  25541. _TraceLog(3,11787,$vararg_buffer);
  25542. $145 = HEAP32[$7>>2]|0;
  25543. $146 = HEAP32[$63>>2]|0;
  25544. $147 = Math_imul($146, $145)|0;
  25545. $148 = ($147|0)>(0);
  25546. if ($148) {
  25547. $149 = HEAP8[$2>>0]|0;
  25548. $150 = HEAP8[$66>>0]|0;
  25549. $151 = HEAP8[$68>>0]|0;
  25550. $152 = HEAP8[$70>>0]|0;
  25551. $$019622 = 0;
  25552. while(1) {
  25553. $158 = (($6) + ($$019622<<2)|0);
  25554. $159 = HEAP8[$158>>0]|0;
  25555. $160 = ($159<<24>>24)==($149<<24>>24);
  25556. if ($160) {
  25557. $161 = (((($6) + ($$019622<<2)|0)) + 1|0);
  25558. $162 = HEAP8[$161>>0]|0;
  25559. $163 = ($162<<24>>24)==($150<<24>>24);
  25560. if ($163) {
  25561. $164 = (((($6) + ($$019622<<2)|0)) + 2|0);
  25562. $165 = HEAP8[$164>>0]|0;
  25563. $166 = ($165<<24>>24)==($151<<24>>24);
  25564. if ($166) {
  25565. $167 = (((($6) + ($$019622<<2)|0)) + 3|0);
  25566. $168 = HEAP8[$167>>0]|0;
  25567. $169 = ($168<<24>>24)==($152<<24>>24);
  25568. if ($169) {
  25569. HEAP8[$158>>0]=0&255;HEAP8[$158+1>>0]=(0>>8)&255;HEAP8[$158+2>>0]=(0>>16)&255;HEAP8[$158+3>>0]=0>>24;
  25570. }
  25571. }
  25572. }
  25573. }
  25574. $170 = (($$019622) + 1)|0;
  25575. $171 = HEAP32[$7>>2]|0;
  25576. $172 = HEAP32[$63>>2]|0;
  25577. $173 = Math_imul($172, $171)|0;
  25578. $174 = ($170|0)<($173|0);
  25579. if ($174) {
  25580. $$019622 = $170;
  25581. } else {
  25582. break;
  25583. }
  25584. }
  25585. }
  25586. $153 = HEAP32[$63>>2]|0;
  25587. $154 = HEAP32[$7>>2]|0;
  25588. _LoadImageEx($vararg_buffer,$6,$153,$154);
  25589. _free($6);
  25590. ;HEAP32[$$sroa$0>>2]=0|0;HEAP32[$$sroa$0+4>>2]=0|0;HEAP32[$$sroa$0+8>>2]=0|0;HEAP32[$$sroa$0+12>>2]=0|0;HEAP32[$$sroa$0+16>>2]=0|0;
  25591. ;HEAP32[$$byval_copy4>>2]=HEAP32[$vararg_buffer>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[$vararg_buffer+4>>2]|0;HEAP32[$$byval_copy4+8>>2]=HEAP32[$vararg_buffer+8>>2]|0;HEAP32[$$byval_copy4+12>>2]=HEAP32[$vararg_buffer+12>>2]|0;HEAP32[$$byval_copy4+16>>2]=HEAP32[$vararg_buffer+16>>2]|0;
  25592. _LoadTextureFromImage($5,$$byval_copy4);
  25593. ;HEAP32[$$sroa$0>>2]=HEAP32[$5>>2]|0;HEAP32[$$sroa$0+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$sroa$0+8>>2]=HEAP32[$5+8>>2]|0;HEAP32[$$sroa$0+12>>2]=HEAP32[$5+12>>2]|0;HEAP32[$$sroa$0+16>>2]=HEAP32[$5+16>>2]|0;
  25594. ;HEAP32[$$byval_copy4>>2]=HEAP32[$vararg_buffer>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[$vararg_buffer+4>>2]|0;HEAP32[$$byval_copy4+8>>2]=HEAP32[$vararg_buffer+8>>2]|0;HEAP32[$$byval_copy4+12>>2]=HEAP32[$vararg_buffer+12>>2]|0;HEAP32[$$byval_copy4+16>>2]=HEAP32[$vararg_buffer+16>>2]|0;
  25595. _UnloadImage($$byval_copy4);
  25596. $155 = $$0201$lcssa << 5;
  25597. $156 = (_malloc($155)|0);
  25598. $157 = ($$0201$lcssa|0)>(0);
  25599. if ($157) {
  25600. $$021 = 0;
  25601. } else {
  25602. $175 = ((($156)) + 16|0);
  25603. $176 = HEAP32[$175>>2]|0;
  25604. _TraceLog(0,11831,$vararg_buffer1);
  25605. ;HEAP32[$0>>2]=HEAP32[$$sroa$0>>2]|0;HEAP32[$0+4>>2]=HEAP32[$$sroa$0+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$$sroa$0+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$$sroa$0+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$$sroa$0+16>>2]|0;
  25606. $$sroa$5$0$$sroa_idx15 = ((($0)) + 20|0);
  25607. HEAP32[$$sroa$5$0$$sroa_idx15>>2] = $176;
  25608. $$sroa$6$0$$sroa_idx17 = ((($0)) + 24|0);
  25609. HEAP32[$$sroa$6$0$$sroa_idx17>>2] = $$0201$lcssa;
  25610. $$sroa$9$0$$sroa_idx20 = ((($0)) + 28|0);
  25611. HEAP32[$$sroa$9$0$$sroa_idx20>>2] = $156;
  25612. STACKTOP = sp;return;
  25613. }
  25614. while(1) {
  25615. $177 = (($3) + ($$021<<2)|0);
  25616. $178 = HEAP32[$177>>2]|0;
  25617. $179 = (($156) + ($$021<<5)|0);
  25618. HEAP32[$179>>2] = $178;
  25619. $180 = (((($156) + ($$021<<5)|0)) + 4|0);
  25620. $181 = (($4) + ($$021<<4)|0);
  25621. ;HEAP32[$180>>2]=HEAP32[$181>>2]|0;HEAP32[$180+4>>2]=HEAP32[$181+4>>2]|0;HEAP32[$180+8>>2]=HEAP32[$181+8>>2]|0;HEAP32[$180+12>>2]=HEAP32[$181+12>>2]|0;
  25622. $182 = (((($156) + ($$021<<5)|0)) + 20|0);
  25623. HEAP32[$182>>2] = 0;
  25624. $183 = (((($156) + ($$021<<5)|0)) + 24|0);
  25625. HEAP32[$183>>2] = 0;
  25626. $184 = (((($156) + ($$021<<5)|0)) + 28|0);
  25627. HEAP32[$184>>2] = 0;
  25628. $185 = (($$021) + 1)|0;
  25629. $exitcond = ($185|0)==($$0201$lcssa|0);
  25630. if ($exitcond) {
  25631. break;
  25632. } else {
  25633. $$021 = $185;
  25634. }
  25635. }
  25636. $175 = ((($156)) + 16|0);
  25637. $176 = HEAP32[$175>>2]|0;
  25638. _TraceLog(0,11831,$vararg_buffer1);
  25639. ;HEAP32[$0>>2]=HEAP32[$$sroa$0>>2]|0;HEAP32[$0+4>>2]=HEAP32[$$sroa$0+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$$sroa$0+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$$sroa$0+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$$sroa$0+16>>2]|0;
  25640. $$sroa$5$0$$sroa_idx15 = ((($0)) + 20|0);
  25641. HEAP32[$$sroa$5$0$$sroa_idx15>>2] = $176;
  25642. $$sroa$6$0$$sroa_idx17 = ((($0)) + 24|0);
  25643. HEAP32[$$sroa$6$0$$sroa_idx17>>2] = $$0201$lcssa;
  25644. $$sroa$9$0$$sroa_idx20 = ((($0)) + 28|0);
  25645. HEAP32[$$sroa$9$0$$sroa_idx20>>2] = $156;
  25646. STACKTOP = sp;return;
  25647. }
  25648. function _UnloadSpriteFont($0) {
  25649. $0 = $0|0;
  25650. var $$byval_copy = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  25651. sp = STACKTOP;
  25652. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  25653. $$byval_copy = sp + 40|0;
  25654. $vararg_buffer = sp;
  25655. $1 = sp + 8|0;
  25656. $2 = HEAP32[$0>>2]|0;
  25657. _GetDefaultFont($1);
  25658. $3 = HEAP32[$1>>2]|0;
  25659. $4 = ($2|0)==($3|0);
  25660. if ($4) {
  25661. STACKTOP = sp;return;
  25662. }
  25663. ;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;
  25664. _UnloadTexture($$byval_copy);
  25665. $5 = ((($0)) + 28|0);
  25666. $6 = HEAP32[$5>>2]|0;
  25667. _free($6);
  25668. _TraceLog(3,12249,$vararg_buffer);
  25669. STACKTOP = sp;return;
  25670. }
  25671. function _LoadTTF($0,$1,$2,$3,$4) {
  25672. $0 = $0|0;
  25673. $1 = $1|0;
  25674. $2 = $2|0;
  25675. $3 = $3|0;
  25676. $4 = $4|0;
  25677. var $$0124130 = 0, $$0125129 = 0, $$0128 = 0, $$byval_copy9 = 0, $$sroa$0 = 0, $$sroa$10$0$$sroa_idx58 = 0, $$sroa$10$0$$sroa_idx59 = 0, $$sroa$6$0$$sroa_idx49 = 0, $$sroa$6$0$$sroa_idx50 = 0, $$sroa$7$0$$sroa_idx53 = 0, $$sroa$7$0$$sroa_idx54 = 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;
  25678. var $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0;
  25679. var $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0;
  25680. var $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.0, $70 = 0, $71 = 0.0, $72 = 0, $73 = 0, $74 = 0, $75 = 0.0;
  25681. var $76 = 0, $77 = 0, $78 = 0, $79 = 0.0, $8 = 0.0, $80 = 0, $81 = 0, $82 = 0, $9 = 0.0, $exitcond = 0, $exp2 = 0.0, $vararg_buffer2 = 0, $vararg_buffer5 = 0, $vararg_buffer7 = 0, $vararg_ptr1 = 0, label = 0, sp = 0;
  25682. sp = STACKTOP;
  25683. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  25684. $$byval_copy9 = sp + 48|0;
  25685. $vararg_buffer7 = sp + 40|0;
  25686. $vararg_buffer5 = sp + 32|0;
  25687. $vararg_buffer2 = sp + 24|0;
  25688. $$sroa$0 = sp;
  25689. $5 = sp + 68|0;
  25690. $6 = sp + 88|0;
  25691. $7 = (+($2|0));
  25692. $8 = $7 * 3.0;
  25693. $9 = $8 * 0.25;
  25694. $10 = (+Math_ceil((+$9)));
  25695. $11 = (+($3|0));
  25696. $12 = (+Math_sqrt((+$11)));
  25697. $13 = (+Math_ceil((+$12)));
  25698. $14 = $10 * $13;
  25699. $15 = (+Math_log((+$14)));
  25700. $16 = $15 / 0.69314718246459961;
  25701. $17 = (+Math_ceil((+$16)));
  25702. $exp2 = (+_llvm_exp2_f32((+$17)));
  25703. $18 = (~~(($exp2)));
  25704. HEAP32[$$byval_copy9>>2] = $18;
  25705. $vararg_ptr1 = ((($$byval_copy9)) + 4|0);
  25706. HEAP32[$vararg_ptr1>>2] = $18;
  25707. _TraceLog(0,12334,$$byval_copy9);
  25708. $19 = (_malloc(16777216)|0);
  25709. $20 = Math_imul($18, $18)|0;
  25710. $21 = (_malloc($20)|0);
  25711. $22 = ($3*20)|0;
  25712. $23 = (_malloc($22)|0);
  25713. ;HEAP32[$$sroa$0>>2]=0|0;HEAP32[$$sroa$0+4>>2]=0|0;HEAP32[$$sroa$0+8>>2]=0|0;HEAP32[$$sroa$0+12>>2]=0|0;HEAP32[$$sroa$0+16>>2]=0|0;
  25714. $24 = (_fopen($1,12388)|0);
  25715. $25 = ($24|0)==(0|0);
  25716. if ($25) {
  25717. HEAP32[$vararg_buffer2>>2] = $1;
  25718. _TraceLog(2,12391,$vararg_buffer2);
  25719. ;HEAP32[$0>>2]=HEAP32[$$sroa$0>>2]|0;HEAP32[$0+4>>2]=HEAP32[$$sroa$0+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$$sroa$0+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$$sroa$0+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$$sroa$0+16>>2]|0;
  25720. $$sroa$6$0$$sroa_idx49 = ((($0)) + 20|0);
  25721. HEAP32[$$sroa$6$0$$sroa_idx49>>2] = 0;
  25722. $$sroa$7$0$$sroa_idx53 = ((($0)) + 24|0);
  25723. HEAP32[$$sroa$7$0$$sroa_idx53>>2] = 0;
  25724. $$sroa$10$0$$sroa_idx58 = ((($0)) + 28|0);
  25725. HEAP32[$$sroa$10$0$$sroa_idx58>>2] = 0;
  25726. STACKTOP = sp;return;
  25727. }
  25728. (_fread($19,1,16777216,$24)|0);
  25729. $26 = HEAP32[$4>>2]|0;
  25730. $27 = ($26|0)==(32);
  25731. if (!($27)) {
  25732. _TraceLog(2,12425,$vararg_buffer5);
  25733. }
  25734. $28 = HEAP32[$4>>2]|0;
  25735. $29 = (_stbtt_BakeFontBitmap($19,$7,$21,$18,$18,$28,$3,$23)|0);
  25736. $30 = ($29|0)<(0);
  25737. if ($30) {
  25738. _TraceLog(2,12492,$vararg_buffer7);
  25739. }
  25740. _free($19);
  25741. $31 = $20 << 1;
  25742. $32 = (_malloc($31)|0);
  25743. $33 = ($20|0)==(0);
  25744. if (!($33)) {
  25745. $$0124130 = 0;$$0125129 = 0;
  25746. while(1) {
  25747. $41 = (($32) + ($$0124130)|0);
  25748. HEAP8[$41>>0] = -1;
  25749. $42 = (($21) + ($$0125129)|0);
  25750. $43 = HEAP8[$42>>0]|0;
  25751. $44 = $$0124130 | 1;
  25752. $45 = (($32) + ($44)|0);
  25753. HEAP8[$45>>0] = $43;
  25754. $46 = (($$0125129) + 1)|0;
  25755. $47 = (($$0124130) + 2)|0;
  25756. $48 = ($46|0)<($20|0);
  25757. if ($48) {
  25758. $$0124130 = $47;$$0125129 = $46;
  25759. } else {
  25760. break;
  25761. }
  25762. }
  25763. }
  25764. _free($21);
  25765. $34 = ((($5)) + 4|0);
  25766. HEAP32[$34>>2] = $18;
  25767. $35 = ((($5)) + 8|0);
  25768. HEAP32[$35>>2] = $18;
  25769. $36 = ((($5)) + 12|0);
  25770. HEAP32[$36>>2] = 1;
  25771. $37 = ((($5)) + 16|0);
  25772. HEAP32[$37>>2] = 2;
  25773. HEAP32[$5>>2] = $32;
  25774. ;HEAP32[$$byval_copy9>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy9+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy9+8>>2]=HEAP32[$5+8>>2]|0;HEAP32[$$byval_copy9+12>>2]=HEAP32[$5+12>>2]|0;HEAP32[$$byval_copy9+16>>2]=HEAP32[$5+16>>2]|0;
  25775. _LoadTextureFromImage($6,$$byval_copy9);
  25776. ;HEAP32[$$sroa$0>>2]=HEAP32[$6>>2]|0;HEAP32[$$sroa$0+4>>2]=HEAP32[$6+4>>2]|0;HEAP32[$$sroa$0+8>>2]=HEAP32[$6+8>>2]|0;HEAP32[$$sroa$0+12>>2]=HEAP32[$6+12>>2]|0;HEAP32[$$sroa$0+16>>2]=HEAP32[$6+16>>2]|0;
  25777. ;HEAP32[$$byval_copy9>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy9+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy9+8>>2]=HEAP32[$5+8>>2]|0;HEAP32[$$byval_copy9+12>>2]=HEAP32[$5+12>>2]|0;HEAP32[$$byval_copy9+16>>2]=HEAP32[$5+16>>2]|0;
  25778. _UnloadImage($$byval_copy9);
  25779. $38 = $3 << 5;
  25780. $39 = (_malloc($38)|0);
  25781. $40 = ($3|0)>(0);
  25782. if ($40) {
  25783. $$0128 = 0;
  25784. while(1) {
  25785. $49 = (($4) + ($$0128<<2)|0);
  25786. $50 = HEAP32[$49>>2]|0;
  25787. $51 = (($39) + ($$0128<<5)|0);
  25788. HEAP32[$51>>2] = $50;
  25789. $52 = (($23) + (($$0128*20)|0)|0);
  25790. $53 = HEAP16[$52>>1]|0;
  25791. $54 = $53&65535;
  25792. $55 = (((($39) + ($$0128<<5)|0)) + 4|0);
  25793. HEAP32[$55>>2] = $54;
  25794. $56 = (((($23) + (($$0128*20)|0)|0)) + 2|0);
  25795. $57 = HEAP16[$56>>1]|0;
  25796. $58 = $57&65535;
  25797. $59 = (((($39) + ($$0128<<5)|0)) + 8|0);
  25798. HEAP32[$59>>2] = $58;
  25799. $60 = (((($23) + (($$0128*20)|0)|0)) + 4|0);
  25800. $61 = HEAP16[$60>>1]|0;
  25801. $62 = $61&65535;
  25802. $63 = (($62) - ($54))|0;
  25803. $64 = (((($39) + ($$0128<<5)|0)) + 12|0);
  25804. HEAP32[$64>>2] = $63;
  25805. $65 = (((($23) + (($$0128*20)|0)|0)) + 6|0);
  25806. $66 = HEAP16[$65>>1]|0;
  25807. $67 = $66&65535;
  25808. $68 = (($67) - ($58))|0;
  25809. $69 = (((($39) + ($$0128<<5)|0)) + 16|0);
  25810. HEAP32[$69>>2] = $68;
  25811. $70 = (((($23) + (($$0128*20)|0)|0)) + 8|0);
  25812. $71 = +HEAPF32[$70>>2];
  25813. $72 = (~~(($71)));
  25814. $73 = (((($39) + ($$0128<<5)|0)) + 20|0);
  25815. HEAP32[$73>>2] = $72;
  25816. $74 = (((($23) + (($$0128*20)|0)|0)) + 12|0);
  25817. $75 = +HEAPF32[$74>>2];
  25818. $76 = (~~(($75)));
  25819. $77 = (((($39) + ($$0128<<5)|0)) + 24|0);
  25820. HEAP32[$77>>2] = $76;
  25821. $78 = (((($23) + (($$0128*20)|0)|0)) + 16|0);
  25822. $79 = +HEAPF32[$78>>2];
  25823. $80 = (~~(($79)));
  25824. $81 = (((($39) + ($$0128<<5)|0)) + 28|0);
  25825. HEAP32[$81>>2] = $80;
  25826. $82 = (($$0128) + 1)|0;
  25827. $exitcond = ($82|0)==($3|0);
  25828. if ($exitcond) {
  25829. break;
  25830. } else {
  25831. $$0128 = $82;
  25832. }
  25833. }
  25834. }
  25835. _free($23);
  25836. ;HEAP32[$0>>2]=HEAP32[$$sroa$0>>2]|0;HEAP32[$0+4>>2]=HEAP32[$$sroa$0+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$$sroa$0+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$$sroa$0+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$$sroa$0+16>>2]|0;
  25837. $$sroa$6$0$$sroa_idx50 = ((($0)) + 20|0);
  25838. HEAP32[$$sroa$6$0$$sroa_idx50>>2] = $2;
  25839. $$sroa$7$0$$sroa_idx54 = ((($0)) + 24|0);
  25840. HEAP32[$$sroa$7$0$$sroa_idx54>>2] = $3;
  25841. $$sroa$10$0$$sroa_idx59 = ((($0)) + 28|0);
  25842. HEAP32[$$sroa$10$0$$sroa_idx59>>2] = $39;
  25843. STACKTOP = sp;return;
  25844. }
  25845. function _stbtt_BakeFontBitmap($0,$1,$2,$3,$4,$5,$6,$7) {
  25846. $0 = $0|0;
  25847. $1 = +$1;
  25848. $2 = $2|0;
  25849. $3 = $3|0;
  25850. $4 = $4|0;
  25851. $5 = $5|0;
  25852. $6 = $6|0;
  25853. $7 = $7|0;
  25854. var $8 = 0, label = 0, sp = 0;
  25855. sp = STACKTOP;
  25856. $8 = (_stbtt_BakeFontBitmap_internal($0,$1,$2,$3,$4,$5,$6,$7)|0);
  25857. return ($8|0);
  25858. }
  25859. function _stbtt_BakeFontBitmap_internal($0,$1,$2,$3,$4,$5,$6,$7) {
  25860. $0 = $0|0;
  25861. $1 = +$1;
  25862. $2 = $2|0;
  25863. $3 = $3|0;
  25864. $4 = $4|0;
  25865. $5 = $5|0;
  25866. $6 = $6|0;
  25867. $7 = $7|0;
  25868. var $$05 = 0, $$084$ = 0, $$0844 = 0, $$087$$091 = 0, $$0873 = 0, $$089 = 0, $$0902 = 0, $$091$ = 0, $$0911 = 0, $$1 = 0, $$2 = 0, $$286 = 0, $$293 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0;
  25869. var $17 = 0, $18 = 0.0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0;
  25870. var $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $50 = 0, $51 = 0.0, $52 = 0.0, $53 = 0, $54 = 0, $55 = 0.0, $56 = 0;
  25871. var $57 = 0, $58 = 0.0, $59 = 0, $60 = 0, $61 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  25872. sp = STACKTOP;
  25873. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  25874. $8 = sp + 24|0;
  25875. $9 = sp + 20|0;
  25876. $10 = sp + 16|0;
  25877. $11 = sp + 12|0;
  25878. $12 = sp + 8|0;
  25879. $13 = sp + 4|0;
  25880. $14 = sp;
  25881. HEAP32[$8>>2] = 0;
  25882. $15 = (_stbtt_InitFont($8,$0)|0);
  25883. $16 = ($15|0)==(0);
  25884. if ($16) {
  25885. $$2 = -1;
  25886. STACKTOP = sp;return ($$2|0);
  25887. }
  25888. $17 = Math_imul($4, $3)|0;
  25889. _memset(($2|0),0,($17|0))|0;
  25890. $18 = (+_stbtt_ScaleForPixelHeight($8,$1));
  25891. $19 = ($6|0)>(0);
  25892. if (!($19)) {
  25893. $$2 = 1;
  25894. STACKTOP = sp;return ($$2|0);
  25895. }
  25896. $$05 = 0;$$0844 = 1;$$0873 = 1;$$0902 = 0;$$0911 = 1;
  25897. while(1) {
  25898. $22 = (($$0902) + ($5))|0;
  25899. $23 = (_stbtt_FindGlyphIndex($8,$22)|0);
  25900. _stbtt_GetGlyphHMetrics($8,$23,$9,$10);
  25901. _stbtt_GetGlyphBitmapBox($8,$23,$18,$18,$11,$12,$13,$14);
  25902. $24 = HEAP32[$13>>2]|0;
  25903. $25 = HEAP32[$11>>2]|0;
  25904. $26 = (($24) - ($25))|0;
  25905. $27 = HEAP32[$14>>2]|0;
  25906. $28 = HEAP32[$12>>2]|0;
  25907. $29 = (($27) - ($28))|0;
  25908. $30 = (($$0844) + 1)|0;
  25909. $31 = (($30) + ($26))|0;
  25910. $32 = ($31|0)<($3|0);
  25911. $$087$$091 = $32 ? $$0873 : $$0911;
  25912. $$084$ = $32 ? $$0844 : 1;
  25913. $33 = (($$087$$091) + ($29))|0;
  25914. $34 = (($33) + 1)|0;
  25915. $35 = ($34|0)<($4|0);
  25916. if ($35) {
  25917. $37 = (($$084$) + ($26))|0;
  25918. $38 = ($37|0)<($3|0);
  25919. if (!($38)) {
  25920. label = 8;
  25921. break;
  25922. }
  25923. $39 = (($2) + ($$084$)|0);
  25924. $40 = Math_imul($$087$$091, $3)|0;
  25925. $41 = (($39) + ($40)|0);
  25926. _stbtt_MakeGlyphBitmap($8,$41,$26,$29,$3,$18,$18,$23);
  25927. $42 = $$084$&65535;
  25928. $43 = (($7) + (($$0902*20)|0)|0);
  25929. HEAP16[$43>>1] = $42;
  25930. $44 = $$087$$091&65535;
  25931. $45 = (((($7) + (($$0902*20)|0)|0)) + 2|0);
  25932. HEAP16[$45>>1] = $44;
  25933. $46 = $37&65535;
  25934. $47 = (((($7) + (($$0902*20)|0)|0)) + 4|0);
  25935. HEAP16[$47>>1] = $46;
  25936. $48 = $33&65535;
  25937. $49 = (((($7) + (($$0902*20)|0)|0)) + 6|0);
  25938. HEAP16[$49>>1] = $48;
  25939. $50 = HEAP32[$9>>2]|0;
  25940. $51 = (+($50|0));
  25941. $52 = $18 * $51;
  25942. $53 = (((($7) + (($$0902*20)|0)|0)) + 16|0);
  25943. HEAPF32[$53>>2] = $52;
  25944. $54 = HEAP32[$11>>2]|0;
  25945. $55 = (+($54|0));
  25946. $56 = (((($7) + (($$0902*20)|0)|0)) + 8|0);
  25947. HEAPF32[$56>>2] = $55;
  25948. $57 = HEAP32[$12>>2]|0;
  25949. $58 = (+($57|0));
  25950. $59 = (((($7) + (($$0902*20)|0)|0)) + 12|0);
  25951. HEAPF32[$59>>2] = $58;
  25952. $60 = (($37) + 1)|0;
  25953. $61 = ($33|0)<($$0911|0);
  25954. $$091$ = $61 ? $$0911 : $34;
  25955. $$089 = 1;$$1 = $$05;$$286 = $60;$$293 = $$091$;
  25956. } else {
  25957. $36 = (0 - ($$0902))|0;
  25958. $$089 = 0;$$1 = $36;$$286 = $$084$;$$293 = $$0911;
  25959. }
  25960. $21 = (($$0902) + 1)|0;
  25961. if (!($$089)) {
  25962. $$2 = $$1;
  25963. label = 11;
  25964. break;
  25965. }
  25966. $20 = ($21|0)<($6|0);
  25967. if ($20) {
  25968. $$05 = $$1;$$0844 = $$286;$$0873 = $$087$$091;$$0902 = $21;$$0911 = $$293;
  25969. } else {
  25970. $$2 = $$293;
  25971. label = 11;
  25972. break;
  25973. }
  25974. }
  25975. if ((label|0) == 8) {
  25976. ___assert_fail((12555|0),(12565|0),3274,(12591|0));
  25977. // unreachable;
  25978. }
  25979. else if ((label|0) == 11) {
  25980. STACKTOP = sp;return ($$2|0);
  25981. }
  25982. return (0)|0;
  25983. }
  25984. function _stbtt_InitFont($0,$1) {
  25985. $0 = $0|0;
  25986. $1 = $1|0;
  25987. var $2 = 0, label = 0, sp = 0;
  25988. sp = STACKTOP;
  25989. $2 = (_stbtt_InitFont_internal($0,$1)|0);
  25990. return ($2|0);
  25991. }
  25992. function _stbtt_ScaleForPixelHeight($0,$1) {
  25993. $0 = $0|0;
  25994. $1 = +$1;
  25995. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0.0, $15 = 0.0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  25996. sp = STACKTOP;
  25997. $2 = ((($0)) + 4|0);
  25998. $3 = HEAP32[$2>>2]|0;
  25999. $4 = ((($0)) + 28|0);
  26000. $5 = HEAP32[$4>>2]|0;
  26001. $6 = (($3) + ($5)|0);
  26002. $7 = ((($6)) + 4|0);
  26003. $8 = (_ttSHORT($7)|0);
  26004. $9 = $8 << 16 >> 16;
  26005. $10 = ((($6)) + 6|0);
  26006. $11 = (_ttSHORT($10)|0);
  26007. $12 = $11 << 16 >> 16;
  26008. $13 = (($9) - ($12))|0;
  26009. $14 = (+($13|0));
  26010. $15 = $1 / $14;
  26011. return (+$15);
  26012. }
  26013. function _stbtt_FindGlyphIndex($0,$1) {
  26014. $0 = $0|0;
  26015. $1 = $1|0;
  26016. var $$ = 0, $$$1172 = 0, $$0163180 = 0, $$0164179 = 0, $$0165 = 0, $$0165$ph = 0, $$0168$ph = 0, $$1172$lcssa = 0, $$1172178 = 0, $$2 = 0, $$2$shrunk = 0, $$5 = 0, $$8 = 0, $$neg = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0;
  26017. var $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, $122 = 0;
  26018. var $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 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;
  26019. 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;
  26020. 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;
  26021. 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;
  26022. 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;
  26023. var $switch = 0, label = 0, sp = 0;
  26024. sp = STACKTOP;
  26025. $2 = ((($0)) + 4|0);
  26026. $3 = HEAP32[$2>>2]|0;
  26027. $4 = ((($0)) + 40|0);
  26028. $5 = HEAP32[$4>>2]|0;
  26029. $6 = (($3) + ($5)|0);
  26030. $7 = (_ttUSHORT($6)|0);
  26031. switch ($7<<16>>16) {
  26032. case 0: {
  26033. $8 = ((($6)) + 2|0);
  26034. $9 = (_ttUSHORT($8)|0);
  26035. $10 = $9&65535;
  26036. $11 = (($10) + -6)|0;
  26037. $12 = ($11|0)>($1|0);
  26038. if (!($12)) {
  26039. $$8 = 0;
  26040. return ($$8|0);
  26041. }
  26042. $13 = ((($6)) + 6|0);
  26043. $14 = (($13) + ($1)|0);
  26044. $15 = HEAP8[$14>>0]|0;
  26045. $16 = $15&255;
  26046. $$8 = $16;
  26047. return ($$8|0);
  26048. break;
  26049. }
  26050. case 6: {
  26051. $17 = ((($6)) + 6|0);
  26052. $18 = (_ttUSHORT($17)|0);
  26053. $19 = $18&65535;
  26054. $20 = ($19>>>0)>($1>>>0);
  26055. if ($20) {
  26056. $$8 = 0;
  26057. return ($$8|0);
  26058. }
  26059. $21 = ((($6)) + 8|0);
  26060. $22 = (_ttUSHORT($21)|0);
  26061. $23 = $22&65535;
  26062. $24 = (($23) + ($19))|0;
  26063. $25 = ($24>>>0)>($1>>>0);
  26064. if (!($25)) {
  26065. $$8 = 0;
  26066. return ($$8|0);
  26067. }
  26068. $26 = ((($6)) + 10|0);
  26069. $27 = (($1) - ($19))|0;
  26070. $28 = $27 << 1;
  26071. $29 = (($26) + ($28)|0);
  26072. $30 = (_ttUSHORT($29)|0);
  26073. $31 = $30&65535;
  26074. $$8 = $31;
  26075. return ($$8|0);
  26076. break;
  26077. }
  26078. case 2: {
  26079. ___assert_fail((13025|0),(12565|0),1347,(13367|0));
  26080. // unreachable;
  26081. break;
  26082. }
  26083. case 4: {
  26084. $32 = ((($6)) + 6|0);
  26085. $33 = (_ttUSHORT($32)|0);
  26086. $34 = ($33&65535) >>> 1;
  26087. $35 = ($1|0)>(65535);
  26088. if ($35) {
  26089. $$8 = 0;
  26090. return ($$8|0);
  26091. }
  26092. $36 = (($5) + 14)|0;
  26093. $37 = ((($6)) + 12|0);
  26094. $38 = (_ttUSHORT($37)|0);
  26095. $39 = ((($6)) + 10|0);
  26096. $40 = (_ttUSHORT($39)|0);
  26097. $41 = $38 & -2;
  26098. $42 = (($3) + ($36)|0);
  26099. $43 = $41&65535;
  26100. $44 = (($42) + ($43)|0);
  26101. $45 = (_ttUSHORT($44)|0);
  26102. $46 = $45&65535;
  26103. $47 = ($46|0)>($1|0);
  26104. $48 = $47 ? 0 : $43;
  26105. $$ = (($5) + 12)|0;
  26106. $49 = (($$) + ($48))|0;
  26107. $50 = ($40<<16>>16)==(0);
  26108. if ($50) {
  26109. $$1172$lcssa = $49;
  26110. } else {
  26111. $51 = ((($6)) + 8|0);
  26112. $52 = (_ttUSHORT($51)|0);
  26113. $53 = ($52&65535) >>> 1;
  26114. $$0163180 = $53;$$0164179 = $40;$$1172178 = $49;
  26115. while(1) {
  26116. $54 = ($$0163180&65535) >>> 1;
  26117. $55 = (($3) + ($$1172178)|0);
  26118. $56 = ($54 << 1)&65535;
  26119. $57 = $56&65535;
  26120. $58 = (($55) + ($57)|0);
  26121. $59 = (_ttUSHORT($58)|0);
  26122. $60 = $59&65535;
  26123. $61 = ($60|0)<($1|0);
  26124. $62 = $61 ? $57 : 0;
  26125. $$$1172 = (($62) + ($$1172178))|0;
  26126. $63 = (($$0164179) + -1)<<16>>16;
  26127. $64 = ($63<<16>>16)==(0);
  26128. if ($64) {
  26129. $$1172$lcssa = $$$1172;
  26130. break;
  26131. } else {
  26132. $$0163180 = $54;$$0164179 = $63;$$1172178 = $$$1172;
  26133. }
  26134. }
  26135. }
  26136. $$neg = (-14 - ($5))|0;
  26137. $65 = (($$neg) + 2)|0;
  26138. $66 = (($65) + ($$1172$lcssa))|0;
  26139. $67 = $66 & 131070;
  26140. $68 = (($42) + ($67)|0);
  26141. $69 = (_ttUSHORT($68)|0);
  26142. $70 = $69&65535;
  26143. $71 = ($70|0)<($1|0);
  26144. if ($71) {
  26145. ___assert_fail((13388|0),(12565|0),1383,(13367|0));
  26146. // unreachable;
  26147. }
  26148. $72 = ((($6)) + 14|0);
  26149. $73 = $34&65535;
  26150. $74 = ($34 << 1)&65535;
  26151. $75 = $74&65535;
  26152. $76 = (($72) + ($75)|0);
  26153. $77 = ((($76)) + 2|0);
  26154. $78 = (($77) + ($67)|0);
  26155. $79 = (_ttUSHORT($78)|0);
  26156. $80 = $79&65535;
  26157. $81 = ($80|0)>($1|0);
  26158. do {
  26159. if ($81) {
  26160. $$2$shrunk = 0;
  26161. } else {
  26162. $82 = ($73*6)|0;
  26163. $83 = (($72) + ($82)|0);
  26164. $84 = ((($83)) + 2|0);
  26165. $85 = (($84) + ($67)|0);
  26166. $86 = (_ttUSHORT($85)|0);
  26167. $87 = ($86<<16>>16)==(0);
  26168. if ($87) {
  26169. $88 = $73 << 2;
  26170. $89 = (($72) + ($88)|0);
  26171. $90 = ((($89)) + 2|0);
  26172. $91 = (($90) + ($67)|0);
  26173. $92 = (_ttSHORT($91)|0);
  26174. $93 = $92&65535;
  26175. $94 = (($93) + ($1))|0;
  26176. $95 = $94&65535;
  26177. $$2$shrunk = $95;
  26178. break;
  26179. } else {
  26180. $96 = $86&65535;
  26181. $97 = (($3) + ($96)|0);
  26182. $98 = (($1) - ($80))|0;
  26183. $99 = $98 << 1;
  26184. $100 = (($97) + ($99)|0);
  26185. $101 = (($100) + ($5)|0);
  26186. $102 = ((($101)) + 14|0);
  26187. $103 = (($102) + ($82)|0);
  26188. $104 = ((($103)) + 2|0);
  26189. $105 = (($104) + ($67)|0);
  26190. $106 = (_ttUSHORT($105)|0);
  26191. $$2$shrunk = $106;
  26192. break;
  26193. }
  26194. }
  26195. } while(0);
  26196. $$2 = $$2$shrunk&65535;
  26197. $$8 = $$2;
  26198. return ($$8|0);
  26199. break;
  26200. }
  26201. default: {
  26202. $107 = ($7<<16>>16)==(12);
  26203. $108 = $7 & -2;
  26204. $switch = ($108<<16>>16)==(12);
  26205. if (!($switch)) {
  26206. ___assert_fail((13025|0),(12565|0),1418,(13367|0));
  26207. // unreachable;
  26208. }
  26209. $109 = ((($6)) + 12|0);
  26210. $110 = (_ttULONG($109)|0);
  26211. $111 = ((($6)) + 16|0);
  26212. $$0165$ph = $110;$$0168$ph = 0;
  26213. L6: while(1) {
  26214. $$0165 = $$0165$ph;
  26215. while(1) {
  26216. $112 = ($$0165|0)>($$0168$ph|0);
  26217. if (!($112)) {
  26218. $$8 = 0;
  26219. label = 27;
  26220. break L6;
  26221. }
  26222. $113 = (($$0165) - ($$0168$ph))|0;
  26223. $114 = $113 >> 1;
  26224. $115 = (($114) + ($$0168$ph))|0;
  26225. $116 = ($115*12)|0;
  26226. $117 = (($111) + ($116)|0);
  26227. $118 = (_ttULONG($117)|0);
  26228. $119 = ($118>>>0)>($1>>>0);
  26229. if ($119) {
  26230. $$0165 = $115;
  26231. } else {
  26232. break;
  26233. }
  26234. }
  26235. $120 = ((($117)) + 4|0);
  26236. $121 = (_ttULONG($120)|0);
  26237. $122 = ($121>>>0)<($1>>>0);
  26238. $123 = (($115) + 1)|0;
  26239. if ($122) {
  26240. $$0165$ph = $$0165;$$0168$ph = $123;
  26241. } else {
  26242. break;
  26243. }
  26244. }
  26245. if ((label|0) == 27) {
  26246. return ($$8|0);
  26247. }
  26248. $124 = ((($117)) + 8|0);
  26249. $125 = (_ttULONG($124)|0);
  26250. $126 = (($1) - ($118))|0;
  26251. $127 = $107 ? $126 : 0;
  26252. $$5 = (($125) + ($127))|0;
  26253. $$8 = $$5;
  26254. return ($$8|0);
  26255. }
  26256. }
  26257. return (0)|0;
  26258. }
  26259. function _stbtt_GetGlyphHMetrics($0,$1,$2,$3) {
  26260. $0 = $0|0;
  26261. $1 = $1|0;
  26262. $2 = $2|0;
  26263. $3 = $3|0;
  26264. 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;
  26265. 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;
  26266. var $49 = 0, $5 = 0, $50 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  26267. sp = STACKTOP;
  26268. $4 = ((($0)) + 4|0);
  26269. $5 = HEAP32[$4>>2]|0;
  26270. $6 = ((($0)) + 28|0);
  26271. $7 = HEAP32[$6>>2]|0;
  26272. $8 = (($5) + ($7)|0);
  26273. $9 = ((($8)) + 34|0);
  26274. $10 = (_ttUSHORT($9)|0);
  26275. $11 = $10&65535;
  26276. $12 = ($11|0)>($1|0);
  26277. $13 = ($2|0)!=(0|0);
  26278. if ($12) {
  26279. if ($13) {
  26280. $14 = ((($0)) + 32|0);
  26281. $15 = HEAP32[$14>>2]|0;
  26282. $16 = (($5) + ($15)|0);
  26283. $17 = $1 << 2;
  26284. $18 = (($16) + ($17)|0);
  26285. $19 = (_ttSHORT($18)|0);
  26286. $20 = $19 << 16 >> 16;
  26287. HEAP32[$2>>2] = $20;
  26288. }
  26289. $21 = ($3|0)==(0|0);
  26290. if ($21) {
  26291. return;
  26292. }
  26293. $22 = HEAP32[$4>>2]|0;
  26294. $23 = ((($0)) + 32|0);
  26295. $24 = HEAP32[$23>>2]|0;
  26296. $25 = (($22) + ($24)|0);
  26297. $26 = $1 << 2;
  26298. $27 = (($25) + ($26)|0);
  26299. $28 = ((($27)) + 2|0);
  26300. $29 = (_ttSHORT($28)|0);
  26301. $30 = $29 << 16 >> 16;
  26302. HEAP32[$3>>2] = $30;
  26303. return;
  26304. } else {
  26305. if ($13) {
  26306. $31 = ((($0)) + 32|0);
  26307. $32 = HEAP32[$31>>2]|0;
  26308. $33 = (($5) + ($32)|0);
  26309. $34 = $11 << 2;
  26310. $35 = (($34) + -4)|0;
  26311. $36 = (($33) + ($35)|0);
  26312. $37 = (_ttSHORT($36)|0);
  26313. $38 = $37 << 16 >> 16;
  26314. HEAP32[$2>>2] = $38;
  26315. }
  26316. $39 = ($3|0)==(0|0);
  26317. if ($39) {
  26318. return;
  26319. }
  26320. $40 = HEAP32[$4>>2]|0;
  26321. $41 = ((($0)) + 32|0);
  26322. $42 = HEAP32[$41>>2]|0;
  26323. $43 = (($40) + ($42)|0);
  26324. $44 = $11 << 2;
  26325. $45 = (($43) + ($44)|0);
  26326. $46 = (($1) - ($11))|0;
  26327. $47 = $46 << 1;
  26328. $48 = (($45) + ($47)|0);
  26329. $49 = (_ttSHORT($48)|0);
  26330. $50 = $49 << 16 >> 16;
  26331. HEAP32[$3>>2] = $50;
  26332. return;
  26333. }
  26334. }
  26335. function _stbtt_GetGlyphBitmapBox($0,$1,$2,$3,$4,$5,$6,$7) {
  26336. $0 = $0|0;
  26337. $1 = $1|0;
  26338. $2 = +$2;
  26339. $3 = +$3;
  26340. $4 = $4|0;
  26341. $5 = $5|0;
  26342. $6 = $6|0;
  26343. $7 = $7|0;
  26344. var label = 0, sp = 0;
  26345. sp = STACKTOP;
  26346. _stbtt_GetGlyphBitmapBoxSubpixel($0,$1,$2,$3,$4,$5,$6,$7);
  26347. return;
  26348. }
  26349. function _stbtt_MakeGlyphBitmap($0,$1,$2,$3,$4,$5,$6,$7) {
  26350. $0 = $0|0;
  26351. $1 = $1|0;
  26352. $2 = $2|0;
  26353. $3 = $3|0;
  26354. $4 = $4|0;
  26355. $5 = +$5;
  26356. $6 = +$6;
  26357. $7 = $7|0;
  26358. var label = 0, sp = 0;
  26359. sp = STACKTOP;
  26360. _stbtt_MakeGlyphBitmapSubpixel($0,$1,$2,$3,$4,$5,$6,$7);
  26361. return;
  26362. }
  26363. function _stbtt_MakeGlyphBitmapSubpixel($0,$1,$2,$3,$4,$5,$6,$7) {
  26364. $0 = $0|0;
  26365. $1 = $1|0;
  26366. $2 = $2|0;
  26367. $3 = $3|0;
  26368. $4 = $4|0;
  26369. $5 = +$5;
  26370. $6 = +$6;
  26371. $7 = $7|0;
  26372. 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, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  26373. sp = STACKTOP;
  26374. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  26375. $8 = sp + 24|0;
  26376. $9 = sp + 20|0;
  26377. $10 = sp + 16|0;
  26378. $11 = sp;
  26379. $12 = (_stbtt_GetGlyphShape($0,$7,$10)|0);
  26380. _stbtt_GetGlyphBitmapBoxSubpixel($0,$7,$5,$6,$8,$9,0,0);
  26381. $13 = ((($11)) + 12|0);
  26382. HEAP32[$13>>2] = $1;
  26383. HEAP32[$11>>2] = $2;
  26384. $14 = ((($11)) + 4|0);
  26385. HEAP32[$14>>2] = $3;
  26386. $15 = ((($11)) + 8|0);
  26387. HEAP32[$15>>2] = $4;
  26388. $16 = ($2|0)==(0);
  26389. $17 = ($3|0)==(0);
  26390. $or$cond = $16 | $17;
  26391. if ($or$cond) {
  26392. $21 = HEAP32[$10>>2]|0;
  26393. _free($21);
  26394. STACKTOP = sp;return;
  26395. }
  26396. $18 = HEAP32[$10>>2]|0;
  26397. $19 = HEAP32[$8>>2]|0;
  26398. $20 = HEAP32[$9>>2]|0;
  26399. _stbtt_Rasterize($11,$18,$12,$5,$6,$19,$20);
  26400. $21 = HEAP32[$10>>2]|0;
  26401. _free($21);
  26402. STACKTOP = sp;return;
  26403. }
  26404. function _stbtt_GetGlyphShape($0,$1,$2) {
  26405. $0 = $0|0;
  26406. $1 = $1|0;
  26407. $2 = $2|0;
  26408. var $$0 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  26409. sp = STACKTOP;
  26410. $3 = ((($0)) + 56|0);
  26411. $4 = HEAP32[$3>>2]|0;
  26412. $5 = ($4|0)==(0);
  26413. if ($5) {
  26414. $6 = (_stbtt__GetGlyphShapeTT($0,$1,$2)|0);
  26415. $$0 = $6;
  26416. return ($$0|0);
  26417. } else {
  26418. $7 = (_stbtt__GetGlyphShapeT2($0,$1,$2)|0);
  26419. $$0 = $7;
  26420. return ($$0|0);
  26421. }
  26422. return (0)|0;
  26423. }
  26424. function _stbtt_GetGlyphBitmapBoxSubpixel($0,$1,$2,$3,$4,$5,$6,$7) {
  26425. $0 = $0|0;
  26426. $1 = $1|0;
  26427. $2 = +$2;
  26428. $3 = +$3;
  26429. $4 = $4|0;
  26430. $5 = $5|0;
  26431. $6 = $6|0;
  26432. $7 = $7|0;
  26433. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0.0, $20 = 0.0, $21 = 0.0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0.0, $27 = 0.0, $28 = 0.0, $29 = 0;
  26434. var $30 = 0, $31 = 0, $32 = 0.0, $33 = 0.0, $34 = 0.0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0.0, $40 = 0.0, $41 = 0.0, $42 = 0, $8 = 0, $9 = 0, $ceilf = 0.0, $ceilf1 = 0.0, $floorf = 0.0, $floorf2 = 0.0, label = 0;
  26435. var sp = 0;
  26436. sp = STACKTOP;
  26437. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  26438. $8 = sp + 12|0;
  26439. $9 = sp + 8|0;
  26440. $10 = sp + 4|0;
  26441. $11 = sp;
  26442. HEAP32[$8>>2] = 0;
  26443. HEAP32[$9>>2] = 0;
  26444. $12 = (_stbtt_GetGlyphBox($0,$1,$8,$9,$10,$11)|0);
  26445. $13 = ($12|0)==(0);
  26446. $14 = ($4|0)!=(0|0);
  26447. if ($13) {
  26448. if ($14) {
  26449. HEAP32[$4>>2] = 0;
  26450. }
  26451. $15 = ($5|0)==(0|0);
  26452. if (!($15)) {
  26453. HEAP32[$5>>2] = 0;
  26454. }
  26455. $16 = ($6|0)==(0|0);
  26456. if (!($16)) {
  26457. HEAP32[$6>>2] = 0;
  26458. }
  26459. $17 = ($7|0)==(0|0);
  26460. if ($17) {
  26461. STACKTOP = sp;return;
  26462. }
  26463. HEAP32[$7>>2] = 0;
  26464. STACKTOP = sp;return;
  26465. } else {
  26466. if ($14) {
  26467. $18 = HEAP32[$8>>2]|0;
  26468. $19 = (+($18|0));
  26469. $20 = $19 * $2;
  26470. $21 = $20 + 0.0;
  26471. $floorf2 = (+Math_floor((+$21)));
  26472. $22 = (~~(($floorf2)));
  26473. HEAP32[$4>>2] = $22;
  26474. }
  26475. $23 = ($5|0)==(0|0);
  26476. if (!($23)) {
  26477. $24 = HEAP32[$11>>2]|0;
  26478. $25 = (0 - ($24))|0;
  26479. $26 = (+($25|0));
  26480. $27 = $26 * $3;
  26481. $28 = $27 + 0.0;
  26482. $floorf = (+Math_floor((+$28)));
  26483. $29 = (~~(($floorf)));
  26484. HEAP32[$5>>2] = $29;
  26485. }
  26486. $30 = ($6|0)==(0|0);
  26487. if (!($30)) {
  26488. $31 = HEAP32[$10>>2]|0;
  26489. $32 = (+($31|0));
  26490. $33 = $32 * $2;
  26491. $34 = $33 + 0.0;
  26492. $ceilf1 = (+Math_ceil((+$34)));
  26493. $35 = (~~(($ceilf1)));
  26494. HEAP32[$6>>2] = $35;
  26495. }
  26496. $36 = ($7|0)==(0|0);
  26497. if ($36) {
  26498. STACKTOP = sp;return;
  26499. }
  26500. $37 = HEAP32[$9>>2]|0;
  26501. $38 = (0 - ($37))|0;
  26502. $39 = (+($38|0));
  26503. $40 = $39 * $3;
  26504. $41 = $40 + 0.0;
  26505. $ceilf = (+Math_ceil((+$41)));
  26506. $42 = (~~(($ceilf)));
  26507. HEAP32[$7>>2] = $42;
  26508. STACKTOP = sp;return;
  26509. }
  26510. }
  26511. function _stbtt_Rasterize($0,$1,$2,$3,$4,$5,$6) {
  26512. $0 = $0|0;
  26513. $1 = $1|0;
  26514. $2 = $2|0;
  26515. $3 = +$3;
  26516. $4 = +$4;
  26517. $5 = $5|0;
  26518. $6 = $6|0;
  26519. var $10 = 0.0, $11 = 0.0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  26520. sp = STACKTOP;
  26521. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  26522. $7 = sp + 4|0;
  26523. $8 = sp;
  26524. $9 = $3 > $4;
  26525. $10 = $9 ? $4 : $3;
  26526. $11 = 0.34999999403953552 / $10;
  26527. $12 = (_stbtt_FlattenCurves($1,$2,$11,$8,$7)|0);
  26528. $13 = ($12|0)==(0|0);
  26529. if ($13) {
  26530. STACKTOP = sp;return;
  26531. }
  26532. $14 = HEAP32[$8>>2]|0;
  26533. $15 = HEAP32[$7>>2]|0;
  26534. _stbtt__rasterize($0,$12,$14,$15,$3,$4,$5,$6);
  26535. _free($14);
  26536. _free($12);
  26537. STACKTOP = sp;return;
  26538. }
  26539. function _stbtt_FlattenCurves($0,$1,$2,$3,$4) {
  26540. $0 = $0|0;
  26541. $1 = $1|0;
  26542. $2 = +$2;
  26543. $3 = $3|0;
  26544. $4 = $4|0;
  26545. var $$$0113 = 0, $$010 = 0.0, $$01079 = 0.0, $$011014 = 0, $$011113 = 0, $$011316 = 0, $$011715 = 0, $$0119 = 0, $$012012 = 0, $$1 = 0.0, $$1108 = 0.0, $$1112$lcssa = 0, $$11128 = 0, $$11185 = 0, $$1121 = 0, $$2 = 0, $$2115$lcssa = 0, $$21157 = 0, $$3116 = 0, $10 = 0;
  26546. var $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, $30 = 0;
  26547. var $31 = 0, $32 = 0, $33 = 0, $34 = 0.0, $35 = 0, $36 = 0, $37 = 0.0, $38 = 0, $39 = 0, $40 = 0.0, $41 = 0, $42 = 0, $43 = 0.0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0.0, $49 = 0, $5 = 0;
  26548. var $50 = 0, $51 = 0.0, $52 = 0, $53 = 0.0, $54 = 0, $55 = 0, $56 = 0.0, $57 = 0, $58 = 0.0, $59 = 0, $6 = 0.0, $60 = 0.0, $61 = 0, $62 = 0, $63 = 0.0, $64 = 0, $65 = 0, $66 = 0.0, $67 = 0, $68 = 0;
  26549. var $69 = 0.0, $7 = 0, $70 = 0, $71 = 0, $72 = 0.0, $73 = 0, $74 = 0.0, $75 = 0, $76 = 0, $77 = 0.0, $78 = 0, $79 = 0.0, $8 = 0, $80 = 0, $81 = 0.0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0;
  26550. var $87 = 0, $88 = 0, $89 = 0, $9 = 0, $exitcond = 0, $exitcond21 = 0, label = 0, sp = 0;
  26551. sp = STACKTOP;
  26552. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  26553. $5 = sp;
  26554. HEAP32[$5>>2] = 0;
  26555. $6 = $2 * $2;
  26556. $7 = ($1|0)>(0);
  26557. if ($7) {
  26558. $$011316 = 0;$$011715 = 0;
  26559. } else {
  26560. HEAP32[$4>>2] = 0;
  26561. $$0119 = 0;
  26562. STACKTOP = sp;return ($$0119|0);
  26563. }
  26564. while(1) {
  26565. $8 = (((($0) + (($$011715*14)|0)|0)) + 12|0);
  26566. $9 = HEAP8[$8>>0]|0;
  26567. $10 = ($9<<24>>24)==(1);
  26568. $11 = $10&1;
  26569. $$$0113 = (($11) + ($$011316))|0;
  26570. $12 = (($$011715) + 1)|0;
  26571. $exitcond21 = ($12|0)==($1|0);
  26572. if ($exitcond21) {
  26573. break;
  26574. } else {
  26575. $$011316 = $$$0113;$$011715 = $12;
  26576. }
  26577. }
  26578. HEAP32[$4>>2] = $$$0113;
  26579. $13 = ($$$0113|0)==(0);
  26580. if ($13) {
  26581. $$0119 = 0;
  26582. STACKTOP = sp;return ($$0119|0);
  26583. }
  26584. $14 = $$$0113 << 2;
  26585. $15 = (_malloc($14)|0);
  26586. HEAP32[$3>>2] = $15;
  26587. $16 = ($15|0)==(0|0);
  26588. if ($16) {
  26589. HEAP32[$4>>2] = 0;
  26590. $$0119 = 0;
  26591. STACKTOP = sp;return ($$0119|0);
  26592. }
  26593. $17 = ($1|0)>(0);
  26594. $$011014 = 0;$$011113 = 0;$$012012 = 0;
  26595. while(1) {
  26596. $18 = ($$011014|0)==(1);
  26597. if ($18) {
  26598. $19 = HEAP32[$5>>2]|0;
  26599. $20 = $19 << 3;
  26600. $21 = (_malloc($20)|0);
  26601. $22 = ($21|0)==(0|0);
  26602. if ($22) {
  26603. break;
  26604. } else {
  26605. $$1121 = $21;
  26606. }
  26607. } else {
  26608. $$1121 = $$012012;
  26609. }
  26610. HEAP32[$5>>2] = 0;
  26611. L19: do {
  26612. if ($17) {
  26613. $$010 = 0.0;$$01079 = 0.0;$$11128 = $$011113;$$11185 = 0;$$21157 = -1;
  26614. while(1) {
  26615. $23 = (($0) + (($$11185*14)|0)|0);
  26616. $24 = (((($0) + (($$11185*14)|0)|0)) + 12|0);
  26617. $25 = HEAP8[$24>>0]|0;
  26618. switch ($25<<24>>24) {
  26619. case 1: {
  26620. $26 = ($$21157|0)>(-1);
  26621. if ($26) {
  26622. $27 = HEAP32[$5>>2]|0;
  26623. $28 = (($27) - ($$11128))|0;
  26624. $29 = HEAP32[$3>>2]|0;
  26625. $30 = (($29) + ($$21157<<2)|0);
  26626. HEAP32[$30>>2] = $28;
  26627. }
  26628. $31 = (($$21157) + 1)|0;
  26629. $32 = HEAP32[$5>>2]|0;
  26630. $33 = HEAP16[$23>>1]|0;
  26631. $34 = (+($33<<16>>16));
  26632. $35 = (((($0) + (($$11185*14)|0)|0)) + 2|0);
  26633. $36 = HEAP16[$35>>1]|0;
  26634. $37 = (+($36<<16>>16));
  26635. $38 = (($32) + 1)|0;
  26636. HEAP32[$5>>2] = $38;
  26637. _stbtt__add_point($$1121,$32,$34,$37);
  26638. $$1 = $37;$$1108 = $34;$$2 = $32;$$3116 = $31;
  26639. break;
  26640. }
  26641. case 2: {
  26642. $39 = HEAP16[$23>>1]|0;
  26643. $40 = (+($39<<16>>16));
  26644. $41 = (((($0) + (($$11185*14)|0)|0)) + 2|0);
  26645. $42 = HEAP16[$41>>1]|0;
  26646. $43 = (+($42<<16>>16));
  26647. $44 = HEAP32[$5>>2]|0;
  26648. $45 = (($44) + 1)|0;
  26649. HEAP32[$5>>2] = $45;
  26650. _stbtt__add_point($$1121,$44,$40,$43);
  26651. $$1 = $43;$$1108 = $40;$$2 = $$11128;$$3116 = $$21157;
  26652. break;
  26653. }
  26654. case 3: {
  26655. $46 = (((($0) + (($$11185*14)|0)|0)) + 4|0);
  26656. $47 = HEAP16[$46>>1]|0;
  26657. $48 = (+($47<<16>>16));
  26658. $49 = (((($0) + (($$11185*14)|0)|0)) + 6|0);
  26659. $50 = HEAP16[$49>>1]|0;
  26660. $51 = (+($50<<16>>16));
  26661. $52 = HEAP16[$23>>1]|0;
  26662. $53 = (+($52<<16>>16));
  26663. $54 = (((($0) + (($$11185*14)|0)|0)) + 2|0);
  26664. $55 = HEAP16[$54>>1]|0;
  26665. $56 = (+($55<<16>>16));
  26666. _stbtt__tesselate_curve($$1121,$5,$$01079,$$010,$48,$51,$53,$56,$6,0);
  26667. $57 = HEAP16[$23>>1]|0;
  26668. $58 = (+($57<<16>>16));
  26669. $59 = HEAP16[$54>>1]|0;
  26670. $60 = (+($59<<16>>16));
  26671. $$1 = $60;$$1108 = $58;$$2 = $$11128;$$3116 = $$21157;
  26672. break;
  26673. }
  26674. case 4: {
  26675. $61 = (((($0) + (($$11185*14)|0)|0)) + 4|0);
  26676. $62 = HEAP16[$61>>1]|0;
  26677. $63 = (+($62<<16>>16));
  26678. $64 = (((($0) + (($$11185*14)|0)|0)) + 6|0);
  26679. $65 = HEAP16[$64>>1]|0;
  26680. $66 = (+($65<<16>>16));
  26681. $67 = (((($0) + (($$11185*14)|0)|0)) + 8|0);
  26682. $68 = HEAP16[$67>>1]|0;
  26683. $69 = (+($68<<16>>16));
  26684. $70 = (((($0) + (($$11185*14)|0)|0)) + 10|0);
  26685. $71 = HEAP16[$70>>1]|0;
  26686. $72 = (+($71<<16>>16));
  26687. $73 = HEAP16[$23>>1]|0;
  26688. $74 = (+($73<<16>>16));
  26689. $75 = (((($0) + (($$11185*14)|0)|0)) + 2|0);
  26690. $76 = HEAP16[$75>>1]|0;
  26691. $77 = (+($76<<16>>16));
  26692. _stbtt__tesselate_cubic($$1121,$5,$$01079,$$010,$63,$66,$69,$72,$74,$77,$6,0);
  26693. $78 = HEAP16[$23>>1]|0;
  26694. $79 = (+($78<<16>>16));
  26695. $80 = HEAP16[$75>>1]|0;
  26696. $81 = (+($80<<16>>16));
  26697. $$1 = $81;$$1108 = $79;$$2 = $$11128;$$3116 = $$21157;
  26698. break;
  26699. }
  26700. default: {
  26701. $$1 = $$010;$$1108 = $$01079;$$2 = $$11128;$$3116 = $$21157;
  26702. }
  26703. }
  26704. $82 = (($$11185) + 1)|0;
  26705. $exitcond = ($82|0)==($1|0);
  26706. if ($exitcond) {
  26707. $$1112$lcssa = $$2;$$2115$lcssa = $$3116;
  26708. break L19;
  26709. } else {
  26710. $$010 = $$1;$$01079 = $$1108;$$11128 = $$2;$$11185 = $82;$$21157 = $$3116;
  26711. }
  26712. }
  26713. } else {
  26714. $$1112$lcssa = $$011113;$$2115$lcssa = -1;
  26715. }
  26716. } while(0);
  26717. $83 = HEAP32[$5>>2]|0;
  26718. $84 = (($83) - ($$1112$lcssa))|0;
  26719. $85 = HEAP32[$3>>2]|0;
  26720. $86 = (($85) + ($$2115$lcssa<<2)|0);
  26721. HEAP32[$86>>2] = $84;
  26722. $87 = (($$011014) + 1)|0;
  26723. $88 = ($87|0)<(2);
  26724. if ($88) {
  26725. $$011014 = $87;$$011113 = $$1112$lcssa;$$012012 = $$1121;
  26726. } else {
  26727. $$0119 = $$1121;
  26728. label = 21;
  26729. break;
  26730. }
  26731. }
  26732. if ((label|0) == 21) {
  26733. STACKTOP = sp;return ($$0119|0);
  26734. }
  26735. $89 = HEAP32[$3>>2]|0;
  26736. _free($89);
  26737. HEAP32[$3>>2] = 0;
  26738. HEAP32[$4>>2] = 0;
  26739. $$0119 = 0;
  26740. STACKTOP = sp;return ($$0119|0);
  26741. }
  26742. function _stbtt__rasterize($0,$1,$2,$3,$4,$5,$6,$7) {
  26743. $0 = $0|0;
  26744. $1 = $1|0;
  26745. $2 = $2|0;
  26746. $3 = $3|0;
  26747. $4 = +$4;
  26748. $5 = +$5;
  26749. $6 = $6|0;
  26750. $7 = $7|0;
  26751. var $$0 = 0, $$0101 = 0, $$0102$lcssa = 0, $$010211 = 0, $$010410 = 0, $$01064 = 0, $$01072 = 0, $$01081 = 0, $$01081$phi = 0, $$1$lcssa = 0, $$11055 = 0, $$16 = 0, $$2$lcssa = 0, $$23 = 0, $$3 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0;
  26752. 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.0, $27 = 0, $28 = 0, $29 = 0.0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0.0;
  26753. var $35 = 0.0, $36 = 0.0, $37 = 0, $38 = 0, $39 = 0.0, $40 = 0.0, $41 = 0.0, $42 = 0, $43 = 0, $44 = 0.0, $45 = 0.0, $46 = 0.0, $47 = 0, $48 = 0, $49 = 0.0, $50 = 0.0, $51 = 0.0, $52 = 0, $53 = 0, $54 = 0;
  26754. var $55 = 0, $56 = 0, $8 = 0.0, $9 = 0, $exitcond = 0, $exitcond16 = 0, $phitmp = 0, $phitmp17 = 0, $storemerge = 0, label = 0, sp = 0;
  26755. sp = STACKTOP;
  26756. $8 = -$5;
  26757. $9 = ($3|0)>(0);
  26758. if ($9) {
  26759. $$010211 = 0;$$010410 = 0;
  26760. while(1) {
  26761. $10 = (($2) + ($$010410<<2)|0);
  26762. $11 = HEAP32[$10>>2]|0;
  26763. $12 = (($11) + ($$010211))|0;
  26764. $13 = (($$010410) + 1)|0;
  26765. $exitcond16 = ($13|0)==($3|0);
  26766. if ($exitcond16) {
  26767. break;
  26768. } else {
  26769. $$010211 = $12;$$010410 = $13;
  26770. }
  26771. }
  26772. $phitmp = ($12*20)|0;
  26773. $phitmp17 = (($phitmp) + 20)|0;
  26774. $$0102$lcssa = $phitmp17;
  26775. } else {
  26776. $$0102$lcssa = 20;
  26777. }
  26778. $14 = (_malloc($$0102$lcssa)|0);
  26779. $15 = ($14|0)==(0|0);
  26780. if ($15) {
  26781. return;
  26782. }
  26783. $16 = ($3|0)>(0);
  26784. if ($16) {
  26785. $$01064 = 0;$$11055 = 0;$$16 = 0;
  26786. while(1) {
  26787. $17 = (($1) + ($$01064<<3)|0);
  26788. $18 = (($2) + ($$11055<<2)|0);
  26789. $19 = HEAP32[$18>>2]|0;
  26790. $20 = (($19) + ($$01064))|0;
  26791. $21 = ($19|0)>(0);
  26792. if ($21) {
  26793. $22 = (($19) + -1)|0;
  26794. $23 = HEAP32[$18>>2]|0;
  26795. $$01072 = 0;$$01081 = $22;$$23 = $$16;
  26796. while(1) {
  26797. $24 = (($17) + ($$01081<<3)|0);
  26798. $25 = ((($24)) + 4|0);
  26799. $26 = +HEAPF32[$25>>2];
  26800. $27 = (($17) + ($$01072<<3)|0);
  26801. $28 = ((($27)) + 4|0);
  26802. $29 = +HEAPF32[$28>>2];
  26803. $30 = $26 == $29;
  26804. if ($30) {
  26805. $$3 = $$23;
  26806. } else {
  26807. $31 = (((($14) + (($$23*20)|0)|0)) + 16|0);
  26808. $32 = $26 > $29;
  26809. $storemerge = $32&1;
  26810. $$0101 = $32 ? $$01081 : $$01072;
  26811. $$0 = $32 ? $$01072 : $$01081;
  26812. HEAP32[$31>>2] = $storemerge;
  26813. $33 = (($17) + ($$0101<<3)|0);
  26814. $34 = +HEAPF32[$33>>2];
  26815. $35 = $34 * $4;
  26816. $36 = $35 + 0.0;
  26817. $37 = (($14) + (($$23*20)|0)|0);
  26818. HEAPF32[$37>>2] = $36;
  26819. $38 = ((($33)) + 4|0);
  26820. $39 = +HEAPF32[$38>>2];
  26821. $40 = $39 * $8;
  26822. $41 = $40 + 0.0;
  26823. $42 = (((($14) + (($$23*20)|0)|0)) + 4|0);
  26824. HEAPF32[$42>>2] = $41;
  26825. $43 = (($17) + ($$0<<3)|0);
  26826. $44 = +HEAPF32[$43>>2];
  26827. $45 = $44 * $4;
  26828. $46 = $45 + 0.0;
  26829. $47 = (((($14) + (($$23*20)|0)|0)) + 8|0);
  26830. HEAPF32[$47>>2] = $46;
  26831. $48 = ((($43)) + 4|0);
  26832. $49 = +HEAPF32[$48>>2];
  26833. $50 = $49 * $8;
  26834. $51 = $50 + 0.0;
  26835. $52 = (((($14) + (($$23*20)|0)|0)) + 12|0);
  26836. HEAPF32[$52>>2] = $51;
  26837. $53 = (($$23) + 1)|0;
  26838. $$3 = $53;
  26839. }
  26840. $54 = (($$01072) + 1)|0;
  26841. $55 = ($54|0)<($23|0);
  26842. if ($55) {
  26843. $$01081$phi = $$01072;$$01072 = $54;$$23 = $$3;$$01081 = $$01081$phi;
  26844. } else {
  26845. $$2$lcssa = $$3;
  26846. break;
  26847. }
  26848. }
  26849. } else {
  26850. $$2$lcssa = $$16;
  26851. }
  26852. $56 = (($$11055) + 1)|0;
  26853. $exitcond = ($56|0)==($3|0);
  26854. if ($exitcond) {
  26855. $$1$lcssa = $$2$lcssa;
  26856. break;
  26857. } else {
  26858. $$01064 = $20;$$11055 = $56;$$16 = $$2$lcssa;
  26859. }
  26860. }
  26861. } else {
  26862. $$1$lcssa = 0;
  26863. }
  26864. _stbtt__sort_edges($14,$$1$lcssa);
  26865. _stbtt__rasterize_sorted_edges($0,$14,$$1$lcssa,$6,$7);
  26866. _free($14);
  26867. return;
  26868. }
  26869. function _stbtt__sort_edges($0,$1) {
  26870. $0 = $0|0;
  26871. $1 = $1|0;
  26872. var label = 0, sp = 0;
  26873. sp = STACKTOP;
  26874. _stbtt__sort_edges_quicksort($0,$1);
  26875. _stbtt__sort_edges_ins_sort($0,$1);
  26876. return;
  26877. }
  26878. function _stbtt__rasterize_sorted_edges($0,$1,$2,$3,$4) {
  26879. $0 = $0|0;
  26880. $1 = $1|0;
  26881. $2 = $2|0;
  26882. $3 = $3|0;
  26883. $4 = $4|0;
  26884. var $$ = 0, $$010025 = 0, $$010123 = 0, $$010219 = 0.0, $$010318 = 0, $$0104 = 0, $$0105$ph15 = 0, $$026 = 0, $$1$lcssa = 0, $$116 = 0, $$sroa$0 = 0, $$sroa$0$0$$sroa$0$0$$0$1 = 0, $$sroa$0$0$$sroa$0$0$$0$1079 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0;
  26885. var $17 = 0.0, $18 = 0.0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0.0, $26 = 0.0, $27 = 0, $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0.0, $34 = 0, $35 = 0, $36 = 0;
  26886. var $37 = 0.0, $38 = 0, $39 = 0, $40 = 0, $41 = 0.0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0.0, $49 = 0, $5 = 0, $50 = 0.0, $51 = 0, $52 = 0, $53 = 0, $54 = 0.0, $55 = 0;
  26887. var $56 = 0, $57 = 0, $58 = 0, $59 = 0.0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0.0, $69 = 0.0, $7 = 0, $70 = 0, $71 = 0.0, $72 = 0.0, $73 = 0.0;
  26888. var $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, $86 = 0, $87 = 0, $88 = 0.0, $89 = 0, $9 = 0, $90 = 0.0, $91 = 0.0;
  26889. var $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $fabsf = 0.0, label = 0, sp = 0;
  26890. sp = STACKTOP;
  26891. STACKTOP = STACKTOP + 544|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(544|0);
  26892. $5 = sp + 520|0;
  26893. $$sroa$0 = sp + 516|0;
  26894. $6 = sp;
  26895. ;HEAP32[$5>>2]=0|0;HEAP32[$5+4>>2]=0|0;HEAP32[$5+8>>2]=0|0;
  26896. HEAP32[$$sroa$0>>2] = 0;
  26897. $7 = HEAP32[$0>>2]|0;
  26898. $8 = ($7|0)>(64);
  26899. if ($8) {
  26900. $9 = $7 << 3;
  26901. $10 = $9 | 4;
  26902. $11 = (_malloc($10)|0);
  26903. $$0104 = $11;
  26904. } else {
  26905. $$0104 = $6;
  26906. }
  26907. $12 = HEAP32[$0>>2]|0;
  26908. $13 = (($$0104) + ($12<<2)|0);
  26909. $14 = ((($0)) + 4|0);
  26910. $15 = HEAP32[$14>>2]|0;
  26911. $16 = (($15) + ($4))|0;
  26912. $17 = (+($16|0));
  26913. $18 = $17 + 1.0;
  26914. $19 = (((($1) + (($2*20)|0)|0)) + 4|0);
  26915. HEAPF32[$19>>2] = $18;
  26916. $20 = HEAP32[$14>>2]|0;
  26917. $21 = ($20|0)>(0);
  26918. L5: do {
  26919. if ($21) {
  26920. $22 = ((($13)) + 4|0);
  26921. $23 = ((($0)) + 12|0);
  26922. $24 = ((($0)) + 8|0);
  26923. $$010025 = $4;$$010123 = 0;$$026 = $1;
  26924. L7: while(1) {
  26925. $25 = (+($$010025|0));
  26926. $26 = $25 + 1.0;
  26927. $27 = HEAP32[$0>>2]|0;
  26928. $28 = $27 << 2;
  26929. _memset(($$0104|0),0,($28|0))|0;
  26930. $29 = (($28) + 4)|0;
  26931. _memset(($13|0),0,($29|0))|0;
  26932. $30 = HEAP32[$$sroa$0>>2]|0;
  26933. $31 = ($30|0)==(0|0);
  26934. L9: do {
  26935. if (!($31)) {
  26936. $$0105$ph15 = $$sroa$0;$99 = $30;
  26937. while(1) {
  26938. $36 = $99;
  26939. while(1) {
  26940. $35 = ((($36)) + 24|0);
  26941. $37 = +HEAPF32[$35>>2];
  26942. $38 = !($37 <= $25);
  26943. if ($38) {
  26944. break;
  26945. }
  26946. $39 = HEAP32[$36>>2]|0;
  26947. HEAP32[$$0105$ph15>>2] = $39;
  26948. $40 = ((($36)) + 16|0);
  26949. $41 = +HEAPF32[$40>>2];
  26950. $42 = $41 != 0.0;
  26951. if (!($42)) {
  26952. label = 11;
  26953. break L7;
  26954. }
  26955. HEAPF32[$40>>2] = 0.0;
  26956. _stbtt__hheap_free($5,$36);
  26957. $43 = HEAP32[$$0105$ph15>>2]|0;
  26958. $44 = ($43|0)==(0|0);
  26959. if ($44) {
  26960. break L9;
  26961. } else {
  26962. $36 = $43;
  26963. }
  26964. }
  26965. $45 = HEAP32[$36>>2]|0;
  26966. $46 = ($45|0)==(0|0);
  26967. if ($46) {
  26968. break;
  26969. } else {
  26970. $$0105$ph15 = $36;$99 = $45;
  26971. }
  26972. }
  26973. }
  26974. } while(0);
  26975. $32 = ((($$026)) + 4|0);
  26976. $33 = +HEAPF32[$32>>2];
  26977. $34 = !($33 <= $26);
  26978. if ($34) {
  26979. $$1$lcssa = $$026;
  26980. } else {
  26981. $$116 = $$026;$50 = $33;
  26982. while(1) {
  26983. $47 = ((($$116)) + 12|0);
  26984. $48 = +HEAPF32[$47>>2];
  26985. $49 = $50 != $48;
  26986. if ($49) {
  26987. $51 = (_stbtt__new_active($5,$$116,$3,$25)|0);
  26988. $52 = ($51|0)==(0|0);
  26989. if (!($52)) {
  26990. $53 = ((($51)) + 24|0);
  26991. $54 = +HEAPF32[$53>>2];
  26992. $55 = !($54 >= $25);
  26993. if ($55) {
  26994. label = 17;
  26995. break L7;
  26996. }
  26997. $$sroa$0$0$$sroa$0$0$$0$1 = HEAP32[$$sroa$0>>2]|0;
  26998. HEAP32[$51>>2] = $$sroa$0$0$$sroa$0$0$$0$1;
  26999. $56 = $51;
  27000. HEAP32[$$sroa$0>>2] = $56;
  27001. }
  27002. }
  27003. $57 = ((($$116)) + 20|0);
  27004. $58 = ((($$116)) + 24|0);
  27005. $59 = +HEAPF32[$58>>2];
  27006. $60 = !($59 <= $26);
  27007. if ($60) {
  27008. $$1$lcssa = $57;
  27009. break;
  27010. } else {
  27011. $$116 = $57;$50 = $59;
  27012. }
  27013. }
  27014. }
  27015. $$sroa$0$0$$sroa$0$0$$0$1079 = HEAP32[$$sroa$0>>2]|0;
  27016. $61 = ($$sroa$0$0$$sroa$0$0$$0$1079|0)==(0|0);
  27017. if (!($61)) {
  27018. $62 = HEAP32[$0>>2]|0;
  27019. _stbtt__fill_active_edges_new($$0104,$22,$62,$$sroa$0$0$$sroa$0$0$$0$1079,$25);
  27020. }
  27021. $63 = HEAP32[$0>>2]|0;
  27022. $64 = ($63|0)>(0);
  27023. if ($64) {
  27024. $$010219 = 0.0;$$010318 = 0;
  27025. while(1) {
  27026. $67 = (($13) + ($$010318<<2)|0);
  27027. $68 = +HEAPF32[$67>>2];
  27028. $69 = $$010219 + $68;
  27029. $70 = (($$0104) + ($$010318<<2)|0);
  27030. $71 = +HEAPF32[$70>>2];
  27031. $72 = $71 + $69;
  27032. $fabsf = (+Math_abs((+$72)));
  27033. $73 = $fabsf * 255.0;
  27034. $74 = $73 + 0.5;
  27035. $75 = (~~(($74)));
  27036. $76 = ($75|0)<(255);
  27037. $$ = $76 ? $75 : 255;
  27038. $77 = $$&255;
  27039. $78 = HEAP32[$23>>2]|0;
  27040. $79 = HEAP32[$24>>2]|0;
  27041. $80 = Math_imul($79, $$010123)|0;
  27042. $81 = (($80) + ($$010318))|0;
  27043. $82 = (($78) + ($81)|0);
  27044. HEAP8[$82>>0] = $77;
  27045. $83 = (($$010318) + 1)|0;
  27046. $84 = HEAP32[$0>>2]|0;
  27047. $85 = ($83|0)<($84|0);
  27048. if ($85) {
  27049. $$010219 = $69;$$010318 = $83;
  27050. } else {
  27051. break;
  27052. }
  27053. }
  27054. }
  27055. $65 = HEAP32[$$sroa$0>>2]|0;
  27056. $66 = ($65|0)==(0|0);
  27057. if (!($66)) {
  27058. $87 = $65;
  27059. while(1) {
  27060. $86 = ((($87)) + 8|0);
  27061. $88 = +HEAPF32[$86>>2];
  27062. $89 = ((($87)) + 4|0);
  27063. $90 = +HEAPF32[$89>>2];
  27064. $91 = $88 + $90;
  27065. HEAPF32[$89>>2] = $91;
  27066. $92 = HEAP32[$87>>2]|0;
  27067. $93 = ($92|0)==(0|0);
  27068. if ($93) {
  27069. break;
  27070. } else {
  27071. $87 = $92;
  27072. }
  27073. }
  27074. }
  27075. $94 = (($$010025) + 1)|0;
  27076. $95 = (($$010123) + 1)|0;
  27077. $96 = HEAP32[$14>>2]|0;
  27078. $97 = ($95|0)<($96|0);
  27079. if ($97) {
  27080. $$010025 = $94;$$010123 = $95;$$026 = $$1$lcssa;
  27081. } else {
  27082. break L5;
  27083. }
  27084. }
  27085. if ((label|0) == 11) {
  27086. ___assert_fail((12621|0),(12565|0),2775,(12634|0));
  27087. // unreachable;
  27088. }
  27089. else if ((label|0) == 17) {
  27090. ___assert_fail((12664|0),(12565|0),2788,(12634|0));
  27091. // unreachable;
  27092. }
  27093. }
  27094. } while(0);
  27095. _stbtt__hheap_cleanup($5);
  27096. $98 = ($$0104|0)==($6|0);
  27097. if ($98) {
  27098. STACKTOP = sp;return;
  27099. }
  27100. _free($$0104);
  27101. STACKTOP = sp;return;
  27102. }
  27103. function _stbtt__hheap_free($0,$1) {
  27104. $0 = $0|0;
  27105. $1 = $1|0;
  27106. var $2 = 0, $3 = 0, label = 0, sp = 0;
  27107. sp = STACKTOP;
  27108. $2 = ((($0)) + 4|0);
  27109. $3 = HEAP32[$2>>2]|0;
  27110. HEAP32[$1>>2] = $3;
  27111. HEAP32[$2>>2] = $1;
  27112. return;
  27113. }
  27114. function _stbtt__new_active($0,$1,$2,$3) {
  27115. $0 = $0|0;
  27116. $1 = $1|0;
  27117. $2 = $2|0;
  27118. $3 = +$3;
  27119. var $10 = 0.0, $11 = 0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0, $16 = 0, $17 = 0, $18 = 0.0, $19 = 0.0, $20 = 0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0.0, $25 = 0.0, $26 = 0, $27 = 0.0, $28 = 0.0, $29 = 0;
  27120. var $30 = 0, $31 = 0, $32 = 0.0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $4 = 0, $5 = 0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0, label = 0, sp = 0;
  27121. sp = STACKTOP;
  27122. $4 = (_stbtt__hheap_alloc($0)|0);
  27123. $5 = ((($1)) + 8|0);
  27124. $6 = +HEAPF32[$5>>2];
  27125. $7 = +HEAPF32[$1>>2];
  27126. $8 = $6 - $7;
  27127. $9 = ((($1)) + 12|0);
  27128. $10 = +HEAPF32[$9>>2];
  27129. $11 = ((($1)) + 4|0);
  27130. $12 = +HEAPF32[$11>>2];
  27131. $13 = $10 - $12;
  27132. $14 = $8 / $13;
  27133. $15 = ($4|0)==(0|0);
  27134. if ($15) {
  27135. ___assert_fail((12954|0),(12565|0),2374,(12970|0));
  27136. // unreachable;
  27137. } else {
  27138. $16 = ((($4)) + 8|0);
  27139. HEAPF32[$16>>2] = $14;
  27140. $17 = $14 != 0.0;
  27141. $18 = 1.0 / $14;
  27142. $19 = $17 ? $18 : 0.0;
  27143. $20 = ((($4)) + 12|0);
  27144. HEAPF32[$20>>2] = $19;
  27145. $21 = +HEAPF32[$1>>2];
  27146. $22 = +HEAPF32[$11>>2];
  27147. $23 = $3 - $22;
  27148. $24 = $14 * $23;
  27149. $25 = $21 + $24;
  27150. $26 = ((($4)) + 4|0);
  27151. $27 = (+($2|0));
  27152. $28 = $25 - $27;
  27153. HEAPF32[$26>>2] = $28;
  27154. $29 = ((($1)) + 16|0);
  27155. $30 = HEAP32[$29>>2]|0;
  27156. $31 = ($30|0)!=(0);
  27157. $32 = $31 ? 1.0 : -1.0;
  27158. $33 = ((($4)) + 16|0);
  27159. HEAPF32[$33>>2] = $32;
  27160. $34 = ((($4)) + 20|0);
  27161. HEAPF32[$34>>2] = $22;
  27162. $35 = HEAP32[$9>>2]|0;
  27163. $36 = ((($4)) + 24|0);
  27164. HEAP32[$36>>2] = $35;
  27165. HEAP32[$4>>2] = 0;
  27166. return ($4|0);
  27167. }
  27168. return (0)|0;
  27169. }
  27170. function _stbtt__fill_active_edges_new($0,$1,$2,$3,$4) {
  27171. $0 = $0|0;
  27172. $1 = $1|0;
  27173. $2 = $2|0;
  27174. $3 = $3|0;
  27175. $4 = +$4;
  27176. var $$0350 = 0.0, $$0351 = 0.0, $$0352 = 0.0, $$0354 = 0.0, $$0356370 = 0, $$0357 = 0.0, $$0359$lcssa = 0.0, $$0359372 = 0.0, $$0360 = 0.0, $$0361371 = 0, $$0374 = 0, $$1 = 0.0, $$1353 = 0.0, $$1355 = 0.0, $$1358 = 0.0, $10 = 0.0, $100 = 0.0, $101 = 0, $102 = 0, $103 = 0;
  27177. var $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.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;
  27178. var $122 = 0.0, $123 = 0.0, $124 = 0.0, $125 = 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, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0;
  27179. var $140 = 0, $141 = 0, $142 = 0, $15 = 0, $16 = 0.0, $17 = 0, $18 = 0, $19 = 0.0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0.0, $25 = 0, $26 = 0.0, $27 = 0, $28 = 0.0, $29 = 0, $30 = 0, $31 = 0.0;
  27180. var $32 = 0.0, $33 = 0.0, $34 = 0.0, $35 = 0, $36 = 0.0, $37 = 0.0, $38 = 0.0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0.0, $47 = 0, $48 = 0, $49 = 0, $5 = 0.0, $50 = 0.0;
  27181. var $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, $6 = 0, $60 = 0.0, $61 = 0.0, $62 = 0.0, $63 = 0.0, $64 = 0, $65 = 0.0, $66 = 0.0, $67 = 0, $68 = 0.0, $69 = 0.0;
  27182. var $7 = 0.0, $70 = 0.0, $71 = 0.0, $72 = 0.0, $73 = 0, $74 = 0, $75 = 0, $76 = 0.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;
  27183. var $88 = 0.0, $89 = 0.0, $9 = 0, $90 = 0, $91 = 0.0, $92 = 0.0, $93 = 0.0, $94 = 0, $95 = 0.0, $96 = 0.0, $97 = 0, $98 = 0.0, $99 = 0.0, $exitcond = 0, $exitcond380 = 0, $fabsf = 0.0, $or$cond = 0, $or$cond362 = 0, $or$cond363 = 0, $or$cond364 = 0;
  27184. var $or$cond365 = 0, $or$cond366 = 0, $or$cond367 = 0, $or$cond368 = 0, $or$cond369 = 0, label = 0, sp = 0;
  27185. sp = STACKTOP;
  27186. $5 = $4 + 1.0;
  27187. $6 = ($3|0)==(0|0);
  27188. if ($6) {
  27189. return;
  27190. }
  27191. $7 = (+($2|0));
  27192. $8 = ((($1)) + -4|0);
  27193. $9 = ((($1)) + -4|0);
  27194. $10 = (+($2|0));
  27195. $11 = ($2|0)>(0);
  27196. $$0374 = $3;
  27197. L4: while(1) {
  27198. $12 = ((($$0374)) + 24|0);
  27199. $13 = +HEAPF32[$12>>2];
  27200. $14 = !($13 >= $4);
  27201. if ($14) {
  27202. label = 4;
  27203. break;
  27204. }
  27205. $15 = ((($$0374)) + 8|0);
  27206. $16 = +HEAPF32[$15>>2];
  27207. $17 = $16 == 0.0;
  27208. $18 = ((($$0374)) + 4|0);
  27209. $19 = +HEAPF32[$18>>2];
  27210. do {
  27211. if ($17) {
  27212. $20 = $19 < $7;
  27213. if ($20) {
  27214. $21 = !($19 >= 0.0);
  27215. if ($21) {
  27216. _stbtt__handle_clipped_edge($8,0,$$0374,$19,$4,$19,$5);
  27217. break;
  27218. } else {
  27219. $22 = (~~(($19)));
  27220. _stbtt__handle_clipped_edge($0,$22,$$0374,$19,$4,$19,$5);
  27221. $23 = (($22) + 1)|0;
  27222. _stbtt__handle_clipped_edge($9,$23,$$0374,$19,$4,$19,$5);
  27223. break;
  27224. }
  27225. }
  27226. } else {
  27227. $24 = $16 + $19;
  27228. $25 = ((($$0374)) + 12|0);
  27229. $26 = +HEAPF32[$25>>2];
  27230. $27 = ((($$0374)) + 20|0);
  27231. $28 = +HEAPF32[$27>>2];
  27232. $29 = !($28 <= $5);
  27233. if ($29) {
  27234. label = 11;
  27235. break L4;
  27236. }
  27237. $30 = $28 > $4;
  27238. $31 = $28 - $4;
  27239. $32 = $16 * $31;
  27240. $33 = $19 + $32;
  27241. $$0354 = $30 ? $28 : $4;
  27242. $$0351 = $30 ? $33 : $19;
  27243. $34 = +HEAPF32[$12>>2];
  27244. $35 = $34 < $5;
  27245. $36 = $34 - $4;
  27246. $37 = $16 * $36;
  27247. $38 = $19 + $37;
  27248. $$0357 = $35 ? $34 : $5;
  27249. $$0352 = $35 ? $38 : $24;
  27250. $39 = $$0351 >= 0.0;
  27251. $40 = $$0352 >= 0.0;
  27252. $or$cond = $39 & $40;
  27253. if ($or$cond) {
  27254. $41 = $$0351 < $10;
  27255. $42 = $$0352 < $10;
  27256. $or$cond362 = $41 & $42;
  27257. if ($or$cond362) {
  27258. $43 = (~~(($$0351)));
  27259. $44 = (~~(($$0352)));
  27260. $45 = ($43|0)==($44|0);
  27261. if ($45) {
  27262. $46 = $$0357 - $$0354;
  27263. $47 = ($43|0)>(-1);
  27264. $48 = ($43|0)<($2|0);
  27265. $or$cond363 = $47 & $48;
  27266. if (!($or$cond363)) {
  27267. label = 17;
  27268. break L4;
  27269. }
  27270. $49 = ((($$0374)) + 16|0);
  27271. $50 = +HEAPF32[$49>>2];
  27272. $51 = (+($43|0));
  27273. $52 = $$0351 - $51;
  27274. $53 = $$0352 - $51;
  27275. $54 = $52 + $53;
  27276. $55 = $54 * 0.5;
  27277. $56 = 1.0 - $55;
  27278. $57 = $56 * $50;
  27279. $58 = $46 * $57;
  27280. $59 = (($0) + ($43<<2)|0);
  27281. $60 = +HEAPF32[$59>>2];
  27282. $61 = $60 + $58;
  27283. HEAPF32[$59>>2] = $61;
  27284. $62 = +HEAPF32[$49>>2];
  27285. $63 = $46 * $62;
  27286. $64 = (($1) + ($43<<2)|0);
  27287. $65 = +HEAPF32[$64>>2];
  27288. $66 = $65 + $63;
  27289. HEAPF32[$64>>2] = $66;
  27290. break;
  27291. }
  27292. $67 = $$0351 > $$0352;
  27293. if ($67) {
  27294. $68 = -$26;
  27295. $69 = $$0357 - $4;
  27296. $70 = $5 - $69;
  27297. $71 = $$0354 - $4;
  27298. $72 = $5 - $71;
  27299. $$0350 = $24;$$0360 = $68;$$1 = $$0352;$$1353 = $$0351;$$1355 = $70;$$1358 = $72;
  27300. } else {
  27301. $$0350 = $19;$$0360 = $26;$$1 = $$0351;$$1353 = $$0352;$$1355 = $$0354;$$1358 = $$0357;
  27302. }
  27303. $73 = (~~(($$1)));
  27304. $74 = (~~(($$1353)));
  27305. $75 = (($73) + 1)|0;
  27306. $76 = (+($75|0));
  27307. $77 = $76 - $$0350;
  27308. $78 = $$0360 * $77;
  27309. $79 = $78 + $4;
  27310. $80 = ((($$0374)) + 16|0);
  27311. $81 = +HEAPF32[$80>>2];
  27312. $82 = $79 - $$1355;
  27313. $83 = $81 * $82;
  27314. $84 = (+($73|0));
  27315. $85 = $$1 - $84;
  27316. $86 = $85 + 1.0;
  27317. $87 = $86 * 0.5;
  27318. $88 = 1.0 - $87;
  27319. $89 = $88 * $83;
  27320. $90 = (($0) + ($73<<2)|0);
  27321. $91 = +HEAPF32[$90>>2];
  27322. $92 = $91 + $89;
  27323. HEAPF32[$90>>2] = $92;
  27324. $93 = $$0360 * $81;
  27325. $94 = ($74|0)>($75|0);
  27326. if ($94) {
  27327. $95 = $93 * 0.5;
  27328. $$0359372 = $83;$$0361371 = $75;
  27329. while(1) {
  27330. $96 = $95 + $$0359372;
  27331. $97 = (($0) + ($$0361371<<2)|0);
  27332. $98 = +HEAPF32[$97>>2];
  27333. $99 = $96 + $98;
  27334. HEAPF32[$97>>2] = $99;
  27335. $100 = $93 + $$0359372;
  27336. $101 = (($$0361371) + 1)|0;
  27337. $exitcond380 = ($101|0)==($74|0);
  27338. if ($exitcond380) {
  27339. $$0359$lcssa = $100;
  27340. break;
  27341. } else {
  27342. $$0359372 = $100;$$0361371 = $101;
  27343. }
  27344. }
  27345. } else {
  27346. $$0359$lcssa = $83;
  27347. }
  27348. $fabsf = (+Math_abs((+$$0359$lcssa)));
  27349. $102 = !($fabsf <= 1.0099999904632568);
  27350. if ($102) {
  27351. label = 25;
  27352. break L4;
  27353. }
  27354. $103 = (($74) - ($75))|0;
  27355. $104 = (+($103|0));
  27356. $105 = $$0360 * $104;
  27357. $106 = $105 + $79;
  27358. $107 = (+($74|0));
  27359. $108 = $$1353 - $107;
  27360. $109 = $108 + 0.0;
  27361. $110 = $109 * 0.5;
  27362. $111 = 1.0 - $110;
  27363. $112 = $81 * $111;
  27364. $113 = $$1358 - $106;
  27365. $114 = $112 * $113;
  27366. $115 = $114 + $$0359$lcssa;
  27367. $116 = (($0) + ($74<<2)|0);
  27368. $117 = +HEAPF32[$116>>2];
  27369. $118 = $115 + $117;
  27370. HEAPF32[$116>>2] = $118;
  27371. $119 = $$1358 - $$1355;
  27372. $120 = $119 * $81;
  27373. $121 = (($1) + ($74<<2)|0);
  27374. $122 = +HEAPF32[$121>>2];
  27375. $123 = $120 + $122;
  27376. HEAPF32[$121>>2] = $123;
  27377. break;
  27378. }
  27379. }
  27380. if ($11) {
  27381. $$0356370 = 0;
  27382. while(1) {
  27383. $124 = (+($$0356370|0));
  27384. $125 = (($$0356370) + 1)|0;
  27385. $126 = (+($125|0));
  27386. $127 = $124 - $19;
  27387. $128 = $127 / $16;
  27388. $129 = $128 + $4;
  27389. $130 = $126 - $19;
  27390. $131 = $130 / $16;
  27391. $132 = $131 + $4;
  27392. $133 = $19 < $124;
  27393. $134 = $24 > $126;
  27394. $or$cond364 = $133 & $134;
  27395. do {
  27396. if ($or$cond364) {
  27397. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$124,$129);
  27398. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$124,$129,$126,$132);
  27399. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$126,$132,$24,$5);
  27400. } else {
  27401. $135 = $24 < $124;
  27402. $136 = $19 > $126;
  27403. $or$cond365 = $135 & $136;
  27404. if ($or$cond365) {
  27405. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$126,$132);
  27406. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$126,$132,$124,$129);
  27407. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$124,$129,$24,$5);
  27408. break;
  27409. }
  27410. $137 = $24 > $124;
  27411. $or$cond366 = $133 & $137;
  27412. if ($or$cond366) {
  27413. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$124,$129);
  27414. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$124,$129,$24,$5);
  27415. break;
  27416. }
  27417. $138 = $19 > $124;
  27418. $or$cond367 = $135 & $138;
  27419. if ($or$cond367) {
  27420. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$124,$129);
  27421. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$124,$129,$24,$5);
  27422. break;
  27423. }
  27424. $139 = $19 < $126;
  27425. $or$cond368 = $139 & $134;
  27426. if ($or$cond368) {
  27427. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$126,$132);
  27428. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$126,$132,$24,$5);
  27429. break;
  27430. }
  27431. $140 = $24 < $126;
  27432. $or$cond369 = $140 & $136;
  27433. if ($or$cond369) {
  27434. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$126,$132);
  27435. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$126,$132,$24,$5);
  27436. break;
  27437. } else {
  27438. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$24,$5);
  27439. break;
  27440. }
  27441. }
  27442. } while(0);
  27443. $exitcond = ($125|0)==($2|0);
  27444. if ($exitcond) {
  27445. break;
  27446. } else {
  27447. $$0356370 = $125;
  27448. }
  27449. }
  27450. }
  27451. }
  27452. } while(0);
  27453. $141 = HEAP32[$$0374>>2]|0;
  27454. $142 = ($141|0)==(0|0);
  27455. if ($142) {
  27456. label = 42;
  27457. break;
  27458. } else {
  27459. $$0374 = $141;
  27460. }
  27461. }
  27462. if ((label|0) == 4) {
  27463. ___assert_fail((12684|0),(12565|0),2586,(12699|0));
  27464. // unreachable;
  27465. }
  27466. else if ((label|0) == 11) {
  27467. ___assert_fail((12728|0),(12565|0),2605,(12699|0));
  27468. // unreachable;
  27469. }
  27470. else if ((label|0) == 17) {
  27471. ___assert_fail((12764|0),(12565|0),2633,(12699|0));
  27472. // unreachable;
  27473. }
  27474. else if ((label|0) == 25) {
  27475. ___assert_fail((12782|0),(12565|0),2670,(12699|0));
  27476. // unreachable;
  27477. }
  27478. else if ((label|0) == 42) {
  27479. return;
  27480. }
  27481. }
  27482. function _stbtt__hheap_cleanup($0) {
  27483. $0 = $0|0;
  27484. var $$in12 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  27485. sp = STACKTOP;
  27486. $1 = HEAP32[$0>>2]|0;
  27487. $2 = ($1|0)==(0|0);
  27488. if ($2) {
  27489. return;
  27490. } else {
  27491. $$in12 = $1;
  27492. }
  27493. while(1) {
  27494. $3 = HEAP32[$$in12>>2]|0;
  27495. _free($$in12);
  27496. $4 = ($3|0)==(0|0);
  27497. if ($4) {
  27498. break;
  27499. } else {
  27500. $$in12 = $3;
  27501. }
  27502. }
  27503. return;
  27504. }
  27505. function _stbtt__handle_clipped_edge($0,$1,$2,$3,$4,$5,$6) {
  27506. $0 = $0|0;
  27507. $1 = $1|0;
  27508. $2 = $2|0;
  27509. $3 = +$3;
  27510. $4 = +$4;
  27511. $5 = +$5;
  27512. $6 = +$6;
  27513. var $$0 = 0.0, $$077 = 0.0, $$078 = 0.0, $$079 = 0.0, $10 = 0.0, $11 = 0, $12 = 0.0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0.0, $18 = 0.0, $19 = 0.0, $20 = 0.0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0, $25 = 0.0;
  27514. var $26 = 0.0, $27 = 0.0, $28 = 0.0, $29 = 0.0, $30 = 0.0, $31 = 0.0, $32 = 0, $33 = 0, $34 = 0.0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0;
  27515. var $46 = 0, $47 = 0.0, $48 = 0.0, $49 = 0.0, $50 = 0, $51 = 0.0, $52 = 0.0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $60 = 0.0, $61 = 0.0, $62 = 0.0, $63 = 0.0, $64 = 0.0, $65 = 0.0;
  27516. var $66 = 0.0, $67 = 0.0, $68 = 0.0, $69 = 0, $7 = 0, $70 = 0.0, $71 = 0.0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond80 = 0, $or$cond81 = 0, $or$cond82 = 0, $or$cond83 = 0, $or$cond84 = 0, $or$cond85 = 0, label = 0, sp = 0;
  27517. sp = STACKTOP;
  27518. $7 = $4 == $6;
  27519. if ($7) {
  27520. return;
  27521. }
  27522. $8 = $4 < $6;
  27523. if (!($8)) {
  27524. ___assert_fail((12802|0),(12565|0),2544,(12810|0));
  27525. // unreachable;
  27526. }
  27527. $9 = ((($2)) + 20|0);
  27528. $10 = +HEAPF32[$9>>2];
  27529. $11 = ((($2)) + 24|0);
  27530. $12 = +HEAPF32[$11>>2];
  27531. $13 = !($10 <= $12);
  27532. if ($13) {
  27533. ___assert_fail((12837|0),(12565|0),2545,(12810|0));
  27534. // unreachable;
  27535. }
  27536. $14 = $12 < $4;
  27537. $15 = $10 > $6;
  27538. $or$cond = $15 | $14;
  27539. if ($or$cond) {
  27540. return;
  27541. }
  27542. $16 = $10 > $4;
  27543. if ($16) {
  27544. $17 = $5 - $3;
  27545. $18 = $10 - $4;
  27546. $19 = $17 * $18;
  27547. $20 = $6 - $4;
  27548. $21 = $19 / $20;
  27549. $22 = $21 + $3;
  27550. $$078 = $10;$$079 = $22;
  27551. } else {
  27552. $$078 = $4;$$079 = $3;
  27553. }
  27554. $23 = +HEAPF32[$11>>2];
  27555. $24 = $23 < $6;
  27556. if ($24) {
  27557. $25 = $5 - $$079;
  27558. $26 = $23 - $6;
  27559. $27 = $25 * $26;
  27560. $28 = $6 - $$078;
  27561. $29 = $27 / $28;
  27562. $30 = $29 + $5;
  27563. $$0 = $23;$$077 = $30;
  27564. } else {
  27565. $$0 = $6;$$077 = $5;
  27566. }
  27567. $31 = (+($1|0));
  27568. $32 = $$079 == $31;
  27569. $33 = (($1) + 1)|0;
  27570. $34 = (+($33|0));
  27571. do {
  27572. if ($32) {
  27573. $35 = !($$077 <= $34);
  27574. if ($35) {
  27575. ___assert_fail((12852|0),(12565|0),2558,(12810|0));
  27576. // unreachable;
  27577. }
  27578. } else {
  27579. $36 = $$079 == $34;
  27580. if ($36) {
  27581. $37 = !($$077 >= $31);
  27582. if (!($37)) {
  27583. break;
  27584. }
  27585. ___assert_fail((12862|0),(12565|0),2560,(12810|0));
  27586. // unreachable;
  27587. }
  27588. $38 = !($$079 <= $31);
  27589. if (!($38)) {
  27590. $39 = !($$077 <= $31);
  27591. if (!($39)) {
  27592. break;
  27593. }
  27594. ___assert_fail((12870|0),(12565|0),2562,(12810|0));
  27595. // unreachable;
  27596. }
  27597. $40 = !($$079 >= $34);
  27598. if ($40) {
  27599. $42 = !($$077 >= $31);
  27600. $43 = !($$077 <= $34);
  27601. $or$cond80 = $42 | $43;
  27602. if (!($or$cond80)) {
  27603. break;
  27604. }
  27605. ___assert_fail((12888|0),(12565|0),2566,(12810|0));
  27606. // unreachable;
  27607. } else {
  27608. $41 = !($$077 >= $34);
  27609. if (!($41)) {
  27610. break;
  27611. }
  27612. ___assert_fail((12878|0),(12565|0),2564,(12810|0));
  27613. // unreachable;
  27614. }
  27615. }
  27616. } while(0);
  27617. $44 = !($$079 <= $31);
  27618. $45 = !($$077 <= $31);
  27619. $or$cond81 = $44 | $45;
  27620. if (!($or$cond81)) {
  27621. $46 = ((($2)) + 16|0);
  27622. $47 = +HEAPF32[$46>>2];
  27623. $48 = $$0 - $$078;
  27624. $49 = $48 * $47;
  27625. $50 = (($0) + ($1<<2)|0);
  27626. $51 = +HEAPF32[$50>>2];
  27627. $52 = $51 + $49;
  27628. HEAPF32[$50>>2] = $52;
  27629. return;
  27630. }
  27631. $53 = !($$079 >= $34);
  27632. $54 = !($$077 >= $34);
  27633. $or$cond82 = $53 | $54;
  27634. if (!($or$cond82)) {
  27635. return;
  27636. }
  27637. $55 = !($$079 >= $31);
  27638. $56 = !($$079 <= $34);
  27639. $or$cond83 = $55 | $56;
  27640. $57 = !($$077 >= $31);
  27641. $or$cond84 = $or$cond83 | $57;
  27642. $58 = !($$077 <= $34);
  27643. $or$cond85 = $58 | $or$cond84;
  27644. if ($or$cond85) {
  27645. ___assert_fail((12909|0),(12565|0),2573,(12810|0));
  27646. // unreachable;
  27647. }
  27648. $59 = ((($2)) + 16|0);
  27649. $60 = +HEAPF32[$59>>2];
  27650. $61 = $$0 - $$078;
  27651. $62 = $61 * $60;
  27652. $63 = $$079 - $31;
  27653. $64 = $$077 - $31;
  27654. $65 = $63 + $64;
  27655. $66 = $65 * 0.5;
  27656. $67 = 1.0 - $66;
  27657. $68 = $67 * $62;
  27658. $69 = (($0) + ($1<<2)|0);
  27659. $70 = +HEAPF32[$69>>2];
  27660. $71 = $70 + $68;
  27661. HEAPF32[$69>>2] = $71;
  27662. return;
  27663. }
  27664. function _stbtt__hheap_alloc($0) {
  27665. $0 = $0|0;
  27666. var $$1 = 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;
  27667. sp = STACKTOP;
  27668. $1 = ((($0)) + 4|0);
  27669. $2 = HEAP32[$1>>2]|0;
  27670. $3 = ($2|0)==(0|0);
  27671. if (!($3)) {
  27672. $4 = HEAP32[$2>>2]|0;
  27673. HEAP32[$1>>2] = $4;
  27674. $$1 = $2;
  27675. return ($$1|0);
  27676. }
  27677. $5 = ((($0)) + 8|0);
  27678. $6 = HEAP32[$5>>2]|0;
  27679. $7 = ($6|0)==(0);
  27680. do {
  27681. if ($7) {
  27682. $8 = (_malloc(56004)|0);
  27683. $9 = ($8|0)==(0|0);
  27684. if ($9) {
  27685. $$1 = 0;
  27686. return ($$1|0);
  27687. } else {
  27688. $10 = HEAP32[$0>>2]|0;
  27689. HEAP32[$8>>2] = $10;
  27690. HEAP32[$0>>2] = $8;
  27691. HEAP32[$5>>2] = 2000;
  27692. break;
  27693. }
  27694. }
  27695. } while(0);
  27696. $11 = HEAP32[$5>>2]|0;
  27697. $12 = (($11) + -1)|0;
  27698. HEAP32[$5>>2] = $12;
  27699. $13 = HEAP32[$0>>2]|0;
  27700. $14 = ($12*28)|0;
  27701. $15 = (($13) + ($14)|0);
  27702. $$1 = $15;
  27703. return ($$1|0);
  27704. }
  27705. function _stbtt__sort_edges_quicksort($0,$1) {
  27706. $0 = $0|0;
  27707. $1 = $1|0;
  27708. var $$079 = 0, $$081 = 0, $$08390 = 0, $$091 = 0, $$1 = 0, $$180 = 0, $$182 = 0, $$184 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0.0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0.0, $2 = 0, $20 = 0;
  27709. var $21 = 0.0, $22 = 0, $23 = 0, $24 = 0, $25 = 0.0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $4 = 0, $5 = 0, $6 = 0.0, $7 = 0;
  27710. var $8 = 0, $9 = 0.0, $tmp = 0, label = 0, sp = 0;
  27711. sp = STACKTOP;
  27712. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  27713. $2 = sp;
  27714. $3 = ($1|0)>(12);
  27715. if (!($3)) {
  27716. STACKTOP = sp;return;
  27717. }
  27718. $$08390 = $1;$$091 = $0;
  27719. while(1) {
  27720. $4 = $$08390 >>> 1;
  27721. $5 = ((($$091)) + 4|0);
  27722. $6 = +HEAPF32[$5>>2];
  27723. $7 = (($$091) + (($4*20)|0)|0);
  27724. $8 = (((($$091) + (($4*20)|0)|0)) + 4|0);
  27725. $9 = +HEAPF32[$8>>2];
  27726. $10 = $6 < $9;
  27727. $11 = (($$08390) + -1)|0;
  27728. $12 = (((($$091) + (($11*20)|0)|0)) + 4|0);
  27729. $13 = +HEAPF32[$12>>2];
  27730. $14 = $9 < $13;
  27731. $15 = $10 ^ $14;
  27732. $16 = $6 < $13;
  27733. $tmp = $16 ^ $14;
  27734. $17 = $tmp ? $11 : 0;
  27735. $18 = (($$091) + (($17*20)|0)|0);
  27736. if ($15) {
  27737. ;HEAP32[$2>>2]=HEAP32[$18>>2]|0;HEAP32[$2+4>>2]=HEAP32[$18+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$18+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$18+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$18+16>>2]|0;
  27738. ;HEAP32[$18>>2]=HEAP32[$7>>2]|0;HEAP32[$18+4>>2]=HEAP32[$7+4>>2]|0;HEAP32[$18+8>>2]=HEAP32[$7+8>>2]|0;HEAP32[$18+12>>2]=HEAP32[$7+12>>2]|0;HEAP32[$18+16>>2]=HEAP32[$7+16>>2]|0;
  27739. ;HEAP32[$7>>2]=HEAP32[$2>>2]|0;HEAP32[$7+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$7+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$7+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$7+16>>2]=HEAP32[$2+16>>2]|0;
  27740. }
  27741. ;HEAP32[$2>>2]=HEAP32[$$091>>2]|0;HEAP32[$2+4>>2]=HEAP32[$$091+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$$091+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$$091+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$$091+16>>2]|0;
  27742. ;HEAP32[$$091>>2]=HEAP32[$7>>2]|0;HEAP32[$$091+4>>2]=HEAP32[$7+4>>2]|0;HEAP32[$$091+8>>2]=HEAP32[$7+8>>2]|0;HEAP32[$$091+12>>2]=HEAP32[$7+12>>2]|0;HEAP32[$$091+16>>2]=HEAP32[$7+16>>2]|0;
  27743. ;HEAP32[$7>>2]=HEAP32[$2>>2]|0;HEAP32[$7+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$7+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$7+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$7+16>>2]=HEAP32[$2+16>>2]|0;
  27744. $$079 = $11;$$081 = 1;
  27745. while(1) {
  27746. $19 = +HEAPF32[$5>>2];
  27747. $$182 = $$081;
  27748. while(1) {
  27749. $20 = (((($$091) + (($$182*20)|0)|0)) + 4|0);
  27750. $21 = +HEAPF32[$20>>2];
  27751. $22 = $21 < $19;
  27752. $23 = (($$182) + 1)|0;
  27753. if ($22) {
  27754. $$182 = $23;
  27755. } else {
  27756. $$180 = $$079;
  27757. break;
  27758. }
  27759. }
  27760. while(1) {
  27761. $24 = (((($$091) + (($$180*20)|0)|0)) + 4|0);
  27762. $25 = +HEAPF32[$24>>2];
  27763. $26 = $19 < $25;
  27764. $27 = (($$180) + -1)|0;
  27765. if ($26) {
  27766. $$180 = $27;
  27767. } else {
  27768. break;
  27769. }
  27770. }
  27771. $28 = (($$091) + (($$182*20)|0)|0);
  27772. $29 = ($$182|0)<($$180|0);
  27773. if (!($29)) {
  27774. break;
  27775. }
  27776. $30 = (($$091) + (($$180*20)|0)|0);
  27777. ;HEAP32[$2>>2]=HEAP32[$28>>2]|0;HEAP32[$2+4>>2]=HEAP32[$28+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$28+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$28+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$28+16>>2]|0;
  27778. ;HEAP32[$28>>2]=HEAP32[$30>>2]|0;HEAP32[$28+4>>2]=HEAP32[$30+4>>2]|0;HEAP32[$28+8>>2]=HEAP32[$30+8>>2]|0;HEAP32[$28+12>>2]=HEAP32[$30+12>>2]|0;HEAP32[$28+16>>2]=HEAP32[$30+16>>2]|0;
  27779. ;HEAP32[$30>>2]=HEAP32[$2>>2]|0;HEAP32[$30+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$30+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$30+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$30+16>>2]=HEAP32[$2+16>>2]|0;
  27780. $31 = (($$182) + 1)|0;
  27781. $32 = (($$180) + -1)|0;
  27782. $$079 = $32;$$081 = $31;
  27783. }
  27784. $33 = (($$08390) - ($$182))|0;
  27785. $34 = ($$180|0)<($33|0);
  27786. if ($34) {
  27787. _stbtt__sort_edges_quicksort($$091,$$180);
  27788. $$1 = $28;$$184 = $33;
  27789. } else {
  27790. _stbtt__sort_edges_quicksort($28,$33);
  27791. $$1 = $$091;$$184 = $$180;
  27792. }
  27793. $35 = ($$184|0)>(12);
  27794. if ($35) {
  27795. $$08390 = $$184;$$091 = $$1;
  27796. } else {
  27797. break;
  27798. }
  27799. }
  27800. STACKTOP = sp;return;
  27801. }
  27802. function _stbtt__sort_edges_ins_sort($0,$1) {
  27803. $0 = $0|0;
  27804. $1 = $1|0;
  27805. var $$03251 = 0, $$033 = 0, $$2$ph = 0, $$sroa$0$0$copyload48 = 0, $$sroa$4$0$$sroa_idx37 = 0, $$sroa$4$0$$sroa_idx38 = 0, $$sroa$4$0$copyload = 0.0, $$sroa$5 = 0, $$sroa$5$0$$sroa_idx = 0, $$sroa$5$0$$sroa_idx42 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0.0, $7 = 0;
  27806. var $8 = 0, $9 = 0, $exitcond = 0, label = 0, sp = 0;
  27807. sp = STACKTOP;
  27808. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  27809. $$sroa$5 = sp;
  27810. $2 = ($1|0)>(1);
  27811. if (!($2)) {
  27812. STACKTOP = sp;return;
  27813. }
  27814. $$03251 = 1;
  27815. while(1) {
  27816. $3 = (($0) + (($$03251*20)|0)|0);
  27817. $$sroa$0$0$copyload48 = HEAP32[$3>>2]|0;
  27818. $$sroa$4$0$$sroa_idx37 = (((($0) + (($$03251*20)|0)|0)) + 4|0);
  27819. $$sroa$4$0$copyload = +HEAPF32[$$sroa$4$0$$sroa_idx37>>2];
  27820. $$sroa$5$0$$sroa_idx = (((($0) + (($$03251*20)|0)|0)) + 8|0);
  27821. ;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;
  27822. $$033 = $$03251;
  27823. while(1) {
  27824. $4 = (($$033) + -1)|0;
  27825. $5 = (((($0) + (($4*20)|0)|0)) + 4|0);
  27826. $6 = +HEAPF32[$5>>2];
  27827. $7 = $$sroa$4$0$copyload < $6;
  27828. if (!($7)) {
  27829. $$2$ph = $$033;
  27830. break;
  27831. }
  27832. $8 = (($0) + (($4*20)|0)|0);
  27833. $9 = (($0) + (($$033*20)|0)|0);
  27834. ;HEAP32[$9>>2]=HEAP32[$8>>2]|0;HEAP32[$9+4>>2]=HEAP32[$8+4>>2]|0;HEAP32[$9+8>>2]=HEAP32[$8+8>>2]|0;HEAP32[$9+12>>2]=HEAP32[$8+12>>2]|0;HEAP32[$9+16>>2]=HEAP32[$8+16>>2]|0;
  27835. $10 = ($$033|0)>(1);
  27836. if ($10) {
  27837. $$033 = $4;
  27838. } else {
  27839. $$2$ph = $4;
  27840. break;
  27841. }
  27842. }
  27843. $11 = ($$03251|0)==($$2$ph|0);
  27844. if (!($11)) {
  27845. $$sroa$5$0$$sroa_idx42 = (((($0) + (($$2$ph*20)|0)|0)) + 8|0);
  27846. $$sroa$4$0$$sroa_idx38 = (((($0) + (($$2$ph*20)|0)|0)) + 4|0);
  27847. $12 = (($0) + (($$2$ph*20)|0)|0);
  27848. HEAP32[$12>>2] = $$sroa$0$0$copyload48;
  27849. HEAPF32[$$sroa$4$0$$sroa_idx38>>2] = $$sroa$4$0$copyload;
  27850. ;HEAP32[$$sroa$5$0$$sroa_idx42>>2]=HEAP32[$$sroa$5>>2]|0;HEAP32[$$sroa$5$0$$sroa_idx42+4>>2]=HEAP32[$$sroa$5+4>>2]|0;HEAP32[$$sroa$5$0$$sroa_idx42+8>>2]=HEAP32[$$sroa$5+8>>2]|0;
  27851. }
  27852. $13 = (($$03251) + 1)|0;
  27853. $exitcond = ($13|0)==($1|0);
  27854. if ($exitcond) {
  27855. break;
  27856. } else {
  27857. $$03251 = $13;
  27858. }
  27859. }
  27860. STACKTOP = sp;return;
  27861. }
  27862. function _stbtt__add_point($0,$1,$2,$3) {
  27863. $0 = $0|0;
  27864. $1 = $1|0;
  27865. $2 = +$2;
  27866. $3 = +$3;
  27867. var $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  27868. sp = STACKTOP;
  27869. $4 = ($0|0)==(0|0);
  27870. if ($4) {
  27871. return;
  27872. }
  27873. $5 = (((($0) + ($1<<3)|0)) + 4|0);
  27874. $6 = (($0) + ($1<<3)|0);
  27875. HEAPF32[$6>>2] = $2;
  27876. HEAPF32[$5>>2] = $3;
  27877. return;
  27878. }
  27879. function _stbtt__tesselate_curve($0,$1,$2,$3,$4,$5,$6,$7,$8,$9) {
  27880. $0 = $0|0;
  27881. $1 = $1|0;
  27882. $2 = +$2;
  27883. $3 = +$3;
  27884. $4 = +$4;
  27885. $5 = +$5;
  27886. $6 = +$6;
  27887. $7 = +$7;
  27888. $8 = +$8;
  27889. $9 = $9|0;
  27890. var $$tr210 = 0.0, $$tr210$phi = 0.0, $$tr311 = 0.0, $$tr311$phi = 0.0, $$tr412 = 0.0, $$tr513 = 0.0, $$tr914 = 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.0, $20 = 0.0, $21 = 0.0, $22 = 0.0;
  27891. var $23 = 0.0, $24 = 0.0, $25 = 0.0, $26 = 0.0, $27 = 0.0, $28 = 0.0, $29 = 0.0, $30 = 0, $31 = 0.0, $32 = 0.0, $33 = 0.0, $34 = 0.0, $35 = 0, $36 = 0.0, $37 = 0.0, $38 = 0.0, $39 = 0.0, $40 = 0.0, $41 = 0.0, $42 = 0.0;
  27892. var $43 = 0.0, $44 = 0.0, $45 = 0.0, $46 = 0.0, $47 = 0.0, $48 = 0.0, $49 = 0.0, $50 = 0.0, $51 = 0.0, $52 = 0.0, $53 = 0.0, $54 = 0.0, $55 = 0.0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, label = 0, sp = 0;
  27893. sp = STACKTOP;
  27894. $10 = $4 * 2.0;
  27895. $11 = $10 + $2;
  27896. $12 = $11 + $6;
  27897. $13 = $12 * 0.25;
  27898. $14 = $5 * 2.0;
  27899. $15 = $14 + $3;
  27900. $16 = $15 + $7;
  27901. $17 = $16 * 0.25;
  27902. $18 = ($9|0)>(16);
  27903. if ($18) {
  27904. return;
  27905. }
  27906. $19 = $7 + $3;
  27907. $20 = $19 * 0.5;
  27908. $21 = $20 - $17;
  27909. $22 = $6 + $2;
  27910. $23 = $22 * 0.5;
  27911. $24 = $23 - $13;
  27912. $$tr210 = $2;$$tr311 = $3;$$tr412 = $4;$$tr513 = $5;$$tr914 = $9;$26 = $24;$28 = $21;$36 = $13;$37 = $17;
  27913. while(1) {
  27914. $25 = $26 * $26;
  27915. $27 = $28 * $28;
  27916. $29 = $25 + $27;
  27917. $30 = $29 > $8;
  27918. if (!($30)) {
  27919. break;
  27920. }
  27921. $31 = $$tr210 + $$tr412;
  27922. $32 = $31 * 0.5;
  27923. $33 = $$tr311 + $$tr513;
  27924. $34 = $33 * 0.5;
  27925. $35 = (($$tr914) + 1)|0;
  27926. _stbtt__tesselate_curve($0,$1,$$tr210,$$tr311,$32,$34,$36,$37,$8,$35);
  27927. $38 = $$tr412 + $6;
  27928. $39 = $38 * 0.5;
  27929. $40 = $$tr513 + $7;
  27930. $41 = $40 * 0.5;
  27931. $42 = $39 * 2.0;
  27932. $43 = $36 + $42;
  27933. $44 = $43 + $6;
  27934. $45 = $44 * 0.25;
  27935. $46 = $41 * 2.0;
  27936. $47 = $37 + $46;
  27937. $48 = $47 + $7;
  27938. $49 = $48 * 0.25;
  27939. $50 = $36 + $6;
  27940. $51 = $50 * 0.5;
  27941. $52 = $51 - $45;
  27942. $53 = $37 + $7;
  27943. $54 = $53 * 0.5;
  27944. $55 = $54 - $49;
  27945. $56 = ($$tr914|0)>(15);
  27946. if ($56) {
  27947. label = 6;
  27948. break;
  27949. } else {
  27950. $$tr311$phi = $37;$$tr210$phi = $36;$$tr412 = $39;$$tr513 = $41;$$tr914 = $35;$26 = $52;$28 = $55;$36 = $45;$37 = $49;$$tr311 = $$tr311$phi;$$tr210 = $$tr210$phi;
  27951. }
  27952. }
  27953. if ((label|0) == 6) {
  27954. return;
  27955. }
  27956. $57 = HEAP32[$1>>2]|0;
  27957. _stbtt__add_point($0,$57,$6,$7);
  27958. $58 = HEAP32[$1>>2]|0;
  27959. $59 = (($58) + 1)|0;
  27960. HEAP32[$1>>2] = $59;
  27961. return;
  27962. }
  27963. function _stbtt__tesselate_cubic($0,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11) {
  27964. $0 = $0|0;
  27965. $1 = $1|0;
  27966. $2 = +$2;
  27967. $3 = +$3;
  27968. $4 = +$4;
  27969. $5 = +$5;
  27970. $6 = +$6;
  27971. $7 = +$7;
  27972. $8 = +$8;
  27973. $9 = +$9;
  27974. $10 = +$10;
  27975. $11 = $11|0;
  27976. var $$tr138 = 0.0, $$tr139 = 0.0, $$tr140 = 0.0, $$tr141 = 0.0, $$tr142 = 0.0, $$tr143 = 0.0, $$tr147 = 0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0.0, $19 = 0.0, $20 = 0.0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0.0;
  27977. var $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, $35 = 0.0, $36 = 0.0, $37 = 0.0, $38 = 0.0, $39 = 0.0, $40 = 0.0, $41 = 0, $42 = 0.0, $43 = 0.0, $44 = 0.0;
  27978. var $45 = 0, $46 = 0.0, $47 = 0.0, $48 = 0.0, $49 = 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, $60 = 0.0, $61 = 0.0, $62 = 0.0, $63 = 0.0, $64 = 0.0;
  27979. var $65 = 0.0, $66 = 0.0, $67 = 0.0, $68 = 0.0, $69 = 0.0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $sqrtf = 0.0, label = 0, sp = 0;
  27980. sp = STACKTOP;
  27981. $$tr138 = $2;$$tr139 = $3;$$tr140 = $4;$$tr141 = $5;$$tr142 = $6;$$tr143 = $7;$$tr147 = $11;
  27982. while(1) {
  27983. $12 = $$tr140 - $$tr138;
  27984. $13 = $$tr141 - $$tr139;
  27985. $14 = $$tr142 - $$tr140;
  27986. $15 = $$tr143 - $$tr141;
  27987. $16 = $8 - $$tr142;
  27988. $17 = $9 - $$tr143;
  27989. $18 = $8 - $$tr138;
  27990. $19 = $9 - $$tr139;
  27991. $20 = $12 * $12;
  27992. $21 = $13 * $13;
  27993. $22 = $20 + $21;
  27994. $23 = $22;
  27995. $24 = (+Math_sqrt((+$23)));
  27996. $25 = $14 * $14;
  27997. $26 = $15 * $15;
  27998. $27 = $25 + $26;
  27999. $28 = $27;
  28000. $29 = (+Math_sqrt((+$28)));
  28001. $30 = $24 + $29;
  28002. $31 = $16 * $16;
  28003. $32 = $17 * $17;
  28004. $33 = $31 + $32;
  28005. $34 = $33;
  28006. $35 = (+Math_sqrt((+$34)));
  28007. $36 = $30 + $35;
  28008. $37 = $36;
  28009. $38 = $18 * $18;
  28010. $39 = $19 * $19;
  28011. $40 = $38 + $39;
  28012. $sqrtf = (+Math_sqrt((+$40)));
  28013. $41 = ($$tr147|0)>(16);
  28014. if ($41) {
  28015. label = 6;
  28016. break;
  28017. }
  28018. $42 = $37 * $37;
  28019. $43 = $sqrtf * $sqrtf;
  28020. $44 = $42 - $43;
  28021. $45 = $44 > $10;
  28022. if (!($45)) {
  28023. break;
  28024. }
  28025. $46 = $$tr138 + $$tr140;
  28026. $47 = $46 * 0.5;
  28027. $48 = $$tr139 + $$tr141;
  28028. $49 = $48 * 0.5;
  28029. $50 = $$tr140 + $$tr142;
  28030. $51 = $50 * 0.5;
  28031. $52 = $$tr141 + $$tr143;
  28032. $53 = $52 * 0.5;
  28033. $54 = $$tr142 + $8;
  28034. $55 = $54 * 0.5;
  28035. $56 = $$tr143 + $9;
  28036. $57 = $56 * 0.5;
  28037. $58 = $47 + $51;
  28038. $59 = $58 * 0.5;
  28039. $60 = $49 + $53;
  28040. $61 = $60 * 0.5;
  28041. $62 = $51 + $55;
  28042. $63 = $62 * 0.5;
  28043. $64 = $53 + $57;
  28044. $65 = $64 * 0.5;
  28045. $66 = $59 + $63;
  28046. $67 = $66 * 0.5;
  28047. $68 = $61 + $65;
  28048. $69 = $68 * 0.5;
  28049. $70 = (($$tr147) + 1)|0;
  28050. _stbtt__tesselate_cubic($0,$1,$$tr138,$$tr139,$47,$49,$59,$61,$67,$69,$10,$70);
  28051. $$tr138 = $67;$$tr139 = $69;$$tr140 = $63;$$tr141 = $65;$$tr142 = $55;$$tr143 = $57;$$tr147 = $70;
  28052. }
  28053. if ((label|0) == 6) {
  28054. return;
  28055. }
  28056. $71 = HEAP32[$1>>2]|0;
  28057. _stbtt__add_point($0,$71,$8,$9);
  28058. $72 = HEAP32[$1>>2]|0;
  28059. $73 = (($72) + 1)|0;
  28060. HEAP32[$1>>2] = $73;
  28061. return;
  28062. }
  28063. function _stbtt_GetGlyphBox($0,$1,$2,$3,$4,$5) {
  28064. $0 = $0|0;
  28065. $1 = $1|0;
  28066. $2 = $2|0;
  28067. $3 = $3|0;
  28068. $4 = $4|0;
  28069. $5 = $5|0;
  28070. 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;
  28071. var $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  28072. sp = STACKTOP;
  28073. $6 = ((($0)) + 56|0);
  28074. $7 = HEAP32[$6>>2]|0;
  28075. $8 = ($7|0)==(0);
  28076. if (!($8)) {
  28077. _stbtt__GetGlyphInfoT2($0,$1,$2,$3,$4,$5);
  28078. $$1 = 1;
  28079. return ($$1|0);
  28080. }
  28081. $9 = (_stbtt__GetGlyfOffset($0,$1)|0);
  28082. $10 = ($9|0)<(0);
  28083. if ($10) {
  28084. $$1 = 0;
  28085. return ($$1|0);
  28086. }
  28087. $11 = ($2|0)==(0|0);
  28088. if (!($11)) {
  28089. $12 = ((($0)) + 4|0);
  28090. $13 = HEAP32[$12>>2]|0;
  28091. $14 = (($13) + ($9)|0);
  28092. $15 = ((($14)) + 2|0);
  28093. $16 = (_ttSHORT($15)|0);
  28094. $17 = $16 << 16 >> 16;
  28095. HEAP32[$2>>2] = $17;
  28096. }
  28097. $18 = ($3|0)==(0|0);
  28098. if (!($18)) {
  28099. $19 = ((($0)) + 4|0);
  28100. $20 = HEAP32[$19>>2]|0;
  28101. $21 = (($20) + ($9)|0);
  28102. $22 = ((($21)) + 4|0);
  28103. $23 = (_ttSHORT($22)|0);
  28104. $24 = $23 << 16 >> 16;
  28105. HEAP32[$3>>2] = $24;
  28106. }
  28107. $25 = ($4|0)==(0|0);
  28108. if (!($25)) {
  28109. $26 = ((($0)) + 4|0);
  28110. $27 = HEAP32[$26>>2]|0;
  28111. $28 = (($27) + ($9)|0);
  28112. $29 = ((($28)) + 6|0);
  28113. $30 = (_ttSHORT($29)|0);
  28114. $31 = $30 << 16 >> 16;
  28115. HEAP32[$4>>2] = $31;
  28116. }
  28117. $32 = ($5|0)==(0|0);
  28118. if ($32) {
  28119. $$1 = 1;
  28120. return ($$1|0);
  28121. }
  28122. $33 = ((($0)) + 4|0);
  28123. $34 = HEAP32[$33>>2]|0;
  28124. $35 = (($34) + ($9)|0);
  28125. $36 = ((($35)) + 8|0);
  28126. $37 = (_ttSHORT($36)|0);
  28127. $38 = $37 << 16 >> 16;
  28128. HEAP32[$5>>2] = $38;
  28129. $$1 = 1;
  28130. return ($$1|0);
  28131. }
  28132. function _stbtt__GetGlyphInfoT2($0,$1,$2,$3,$4,$5) {
  28133. $0 = $0|0;
  28134. $1 = $1|0;
  28135. $2 = $2|0;
  28136. $3 = $3|0;
  28137. $4 = $4|0;
  28138. $5 = $5|0;
  28139. 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, $6 = 0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0;
  28140. var stop = 0;
  28141. sp = STACKTOP;
  28142. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  28143. $6 = sp;
  28144. $7 = ((($6)) + 4|0);
  28145. dest=$7; stop=dest+44|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  28146. HEAP32[$6>>2] = 1;
  28147. $8 = (_stbtt__run_charstring($0,$1,$6)|0);
  28148. $9 = ($2|0)==(0|0);
  28149. $10 = ($8|0)!=(0);
  28150. if ($9) {
  28151. STACKTOP = sp;return;
  28152. }
  28153. $11 = ((($6)) + 24|0);
  28154. $12 = HEAP32[$11>>2]|0;
  28155. $13 = $10 ? $12 : 0;
  28156. HEAP32[$2>>2] = $13;
  28157. $14 = ((($6)) + 32|0);
  28158. $15 = HEAP32[$14>>2]|0;
  28159. $16 = $10 ? $15 : 0;
  28160. HEAP32[$3>>2] = $16;
  28161. $17 = ((($6)) + 28|0);
  28162. $18 = HEAP32[$17>>2]|0;
  28163. $19 = $10 ? $18 : 0;
  28164. HEAP32[$4>>2] = $19;
  28165. $20 = ((($6)) + 36|0);
  28166. $21 = HEAP32[$20>>2]|0;
  28167. $22 = $10 ? $21 : 0;
  28168. HEAP32[$5>>2] = $22;
  28169. STACKTOP = sp;return;
  28170. }
  28171. function _stbtt__GetGlyfOffset($0,$1) {
  28172. $0 = $0|0;
  28173. $1 = $1|0;
  28174. var $$023 = 0, $$024 = 0, $$pn = 0, $$sink = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0;
  28175. 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, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  28176. sp = STACKTOP;
  28177. $2 = ((($0)) + 56|0);
  28178. $3 = HEAP32[$2>>2]|0;
  28179. $4 = ($3|0)==(0);
  28180. if (!($4)) {
  28181. ___assert_fail((12988|0),(12565|0),1440,(13004|0));
  28182. // unreachable;
  28183. }
  28184. $5 = ((($0)) + 12|0);
  28185. $6 = HEAP32[$5>>2]|0;
  28186. $7 = ($6|0)>($1|0);
  28187. if (!($7)) {
  28188. $$024 = -1;
  28189. return ($$024|0);
  28190. }
  28191. $8 = ((($0)) + 44|0);
  28192. $9 = HEAP32[$8>>2]|0;
  28193. $10 = ($9|0)>(1);
  28194. if ($10) {
  28195. $$024 = -1;
  28196. return ($$024|0);
  28197. }
  28198. $11 = ($9|0)==(0);
  28199. $12 = ((($0)) + 24|0);
  28200. $13 = HEAP32[$12>>2]|0;
  28201. $14 = ((($0)) + 4|0);
  28202. $15 = HEAP32[$14>>2]|0;
  28203. $16 = ((($0)) + 16|0);
  28204. $17 = HEAP32[$16>>2]|0;
  28205. $18 = (($15) + ($17)|0);
  28206. if ($11) {
  28207. $19 = $1 << 1;
  28208. $20 = (($18) + ($19)|0);
  28209. $21 = (_ttUSHORT($20)|0);
  28210. $22 = $21&65535;
  28211. $23 = $22 << 1;
  28212. $24 = ((($20)) + 2|0);
  28213. $25 = (_ttUSHORT($24)|0);
  28214. $26 = $25&65535;
  28215. $27 = $26 << 1;
  28216. $$pn = $23;$$sink = $27;
  28217. } else {
  28218. $28 = $1 << 2;
  28219. $29 = (($18) + ($28)|0);
  28220. $30 = (_ttULONG($29)|0);
  28221. $31 = ((($29)) + 4|0);
  28222. $32 = (_ttULONG($31)|0);
  28223. $$pn = $30;$$sink = $32;
  28224. }
  28225. $33 = (($$sink) + ($13))|0;
  28226. $$023 = (($$pn) + ($13))|0;
  28227. $34 = ($$023|0)==($33|0);
  28228. $35 = $34 ? -1 : $$023;
  28229. $$024 = $35;
  28230. return ($$024|0);
  28231. }
  28232. function _ttSHORT($0) {
  28233. $0 = $0|0;
  28234. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  28235. sp = STACKTOP;
  28236. $1 = HEAP8[$0>>0]|0;
  28237. $2 = $1&255;
  28238. $3 = $2 << 8;
  28239. $4 = ((($0)) + 1|0);
  28240. $5 = HEAP8[$4>>0]|0;
  28241. $6 = $5&255;
  28242. $7 = $3 | $6;
  28243. $8 = $7&65535;
  28244. return ($8|0);
  28245. }
  28246. function _ttUSHORT($0) {
  28247. $0 = $0|0;
  28248. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  28249. sp = STACKTOP;
  28250. $1 = HEAP8[$0>>0]|0;
  28251. $2 = $1&255;
  28252. $3 = $2 << 8;
  28253. $4 = ((($0)) + 1|0);
  28254. $5 = HEAP8[$4>>0]|0;
  28255. $6 = $5&255;
  28256. $7 = $3 | $6;
  28257. $8 = $7&65535;
  28258. return ($8|0);
  28259. }
  28260. function _ttULONG($0) {
  28261. $0 = $0|0;
  28262. var $1 = 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;
  28263. sp = STACKTOP;
  28264. $1 = HEAP8[$0>>0]|0;
  28265. $2 = $1&255;
  28266. $3 = $2 << 24;
  28267. $4 = ((($0)) + 1|0);
  28268. $5 = HEAP8[$4>>0]|0;
  28269. $6 = $5&255;
  28270. $7 = $6 << 16;
  28271. $8 = $7 | $3;
  28272. $9 = ((($0)) + 2|0);
  28273. $10 = HEAP8[$9>>0]|0;
  28274. $11 = $10&255;
  28275. $12 = $11 << 8;
  28276. $13 = $8 | $12;
  28277. $14 = ((($0)) + 3|0);
  28278. $15 = HEAP8[$14>>0]|0;
  28279. $16 = $15&255;
  28280. $17 = $13 | $16;
  28281. return ($17|0);
  28282. }
  28283. function _stbtt__run_charstring($0,$1,$2) {
  28284. $0 = $0|0;
  28285. $1 = $1|0;
  28286. $2 = $2|0;
  28287. var $$ = 0, $$0274$be = 0, $$0274335 = 0, $$0276$be = 0, $$0276334 = 0, $$0279 = 0.0, $$0280 = 0.0, $$0282318 = 0.0, $$0285$be = 0, $$0285333 = 0, $$0288$be = 0, $$0288332 = 0, $$0290329 = 0, $$0294$be = 0, $$0294331 = 0, $$1277 = 0, $$1283 = 0.0, $$1286 = 0, $$1291 = 0, $$2292 = 0;
  28288. var $$3 = 0, $$3293 = 0, $$363 = 0.0, $$4 = 0, $$5327 = 0, $$6$lcssa = 0, $$6322 = 0, $$7$lcssa = 0, $$7319 = 0, $$8317 = 0, $$byval_copy1 = 0, $$lcssa = 0, $$lcssa316 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0.0, $103 = 0, $104 = 0, $105 = 0.0;
  28289. var $106 = 0, $107 = 0.0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0.0, $113 = 0.0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0.0, $119 = 0, $12 = 0, $120 = 0, $121 = 0.0, $122 = 0, $123 = 0;
  28290. var $124 = 0.0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0.0, $13 = 0, $130 = 0, $131 = 0.0, $132 = 0.0, $133 = 0, $134 = 0, $135 = 0, $136 = 0.0, $137 = 0, $138 = 0, $139 = 0.0, $14 = 0, $140 = 0, $141 = 0;
  28291. var $142 = 0.0, $143 = 0, $144 = 0, $145 = 0.0, $146 = 0, $147 = 0, $148 = 0.0, $149 = 0, $15 = 0, $150 = 0, $151 = 0.0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0.0, $16 = 0;
  28292. var $160 = 0, $161 = 0, $162 = 0.0, $163 = 0, $164 = 0, $165 = 0.0, $166 = 0, $167 = 0, $168 = 0.0, $169 = 0, $17 = 0, $170 = 0, $171 = 0.0, $172 = 0, $173 = 0, $174 = 0.0, $175 = 0, $176 = 0, $177 = 0, $178 = 0;
  28293. var $179 = 0, $18 = 0, $180 = 0, $181 = 0.0, $182 = 0, $183 = 0.0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0.0, $189 = 0, $19 = 0, $190 = 0, $191 = 0.0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0;
  28294. var $197 = 0, $198 = 0.0, $199 = 0, $20 = 0, $200 = 0.0, $201 = 0, $202 = 0, $203 = 0.0, $204 = 0, $205 = 0, $206 = 0.0, $207 = 0, $208 = 0, $209 = 0.0, $21 = 0, $210 = 0, $211 = 0.0, $212 = 0, $213 = 0, $214 = 0;
  28295. var $215 = 0, $216 = 0, $217 = 0.0, $218 = 0, $219 = 0, $22 = 0, $220 = 0, $221 = 0, $222 = 0.0, $223 = 0, $224 = 0.0, $225 = 0, $226 = 0.0, $227 = 0, $228 = 0, $229 = 0.0, $23 = 0, $230 = 0, $231 = 0, $232 = 0;
  28296. var $233 = 0, $234 = 0, $235 = 0, $236 = 0, $237 = 0, $238 = 0, $239 = 0.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;
  28297. var $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.0, $262 = 0.0, $263 = 0.0, $264 = 0.0, $265 = 0.0, $266 = 0.0, $267 = 0.0, $268 = 0.0, $269 = 0.0;
  28298. var $27 = 0, $270 = 0.0, $271 = 0.0, $272 = 0.0, $273 = 0, $274 = 0.0, $275 = 0.0, $276 = 0.0, $277 = 0.0, $278 = 0.0, $279 = 0.0, $28 = 0, $280 = 0.0, $281 = 0.0, $282 = 0.0, $283 = 0.0, $284 = 0.0, $285 = 0.0, $286 = 0, $287 = 0.0;
  28299. var $288 = 0.0, $289 = 0.0, $29 = 0, $290 = 0.0, $291 = 0.0, $292 = 0.0, $293 = 0.0, $294 = 0.0, $295 = 0.0, $296 = 0.0, $297 = 0.0, $298 = 0.0, $299 = 0.0, $3 = 0, $30 = 0, $300 = 0.0, $301 = 0.0, $302 = 0.0, $303 = 0.0, $304 = 0.0;
  28300. var $305 = 0.0, $306 = 0, $307 = 0.0, $308 = 0.0, $309 = 0, $31 = 0, $310 = 0, $311 = 0, $312 = 0, $313 = 0, $314 = 0, $315 = 0.0, $316 = 0.0, $317 = 0, $318 = 0, $319 = 0.0, $32 = 0, $320 = 0, $321 = 0, $322 = 0;
  28301. var $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, $49 = 0, $5 = 0, $50 = 0;
  28302. var $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.0, $64 = 0, $65 = 0, $66 = 0.0, $67 = 0, $68 = 0, $69 = 0;
  28303. var $7 = 0, $70 = 0.0, $71 = 0, $72 = 0, $73 = 0, $74 = 0.0, $75 = 0, $76 = 0, $77 = 0.0, $78 = 0, $79 = 0, $8 = 0, $80 = 0.0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0;
  28304. var $88 = 0.0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0.0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0.0, $fabsf = 0.0, $fabsf296 = 0.0, $not$ = 0, $or$cond3 = 0, label = 0, sp = 0;
  28305. sp = STACKTOP;
  28306. STACKTOP = STACKTOP + 368|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(368|0);
  28307. $$byval_copy1 = sp + 352|0;
  28308. $3 = sp + 160|0;
  28309. $4 = sp + 40|0;
  28310. $5 = sp + 24|0;
  28311. $6 = sp;
  28312. $7 = sp + 12|0;
  28313. $8 = ((($0)) + 84|0);
  28314. ;HEAP32[$5>>2]=HEAP32[$8>>2]|0;HEAP32[$5+4>>2]=HEAP32[$8+4>>2]|0;HEAP32[$5+8>>2]=HEAP32[$8+8>>2]|0;
  28315. $9 = ((($0)) + 60|0);
  28316. ;HEAP32[$$byval_copy1>>2]=HEAP32[$9>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$9+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$9+8>>2]|0;
  28317. _stbtt__cff_index_get($6,$$byval_copy1,$1);
  28318. $10 = ((($6)) + 4|0);
  28319. $11 = HEAP32[$10>>2]|0;
  28320. $12 = ((($6)) + 8|0);
  28321. $13 = HEAP32[$12>>2]|0;
  28322. $14 = ($11|0)<($13|0);
  28323. if (!($14)) {
  28324. $$3 = 0;
  28325. STACKTOP = sp;return ($$3|0);
  28326. }
  28327. $15 = ((($0)) + 116|0);
  28328. $16 = ((($0)) + 72|0);
  28329. $17 = ((($3)) + 4|0);
  28330. $18 = ((($3)) + 8|0);
  28331. $19 = ((($3)) + 12|0);
  28332. $20 = ((($3)) + 16|0);
  28333. $21 = ((($3)) + 20|0);
  28334. $22 = ((($3)) + 24|0);
  28335. $23 = ((($3)) + 4|0);
  28336. $24 = ((($3)) + 8|0);
  28337. $25 = ((($3)) + 12|0);
  28338. $26 = ((($3)) + 16|0);
  28339. $27 = ((($3)) + 20|0);
  28340. $28 = ((($3)) + 24|0);
  28341. $29 = ((($3)) + 28|0);
  28342. $30 = ((($3)) + 32|0);
  28343. $31 = ((($3)) + 36|0);
  28344. $32 = ((($3)) + 40|0);
  28345. $33 = ((($3)) + 44|0);
  28346. $34 = ((($3)) + 4|0);
  28347. $35 = ((($3)) + 8|0);
  28348. $36 = ((($3)) + 12|0);
  28349. $37 = ((($3)) + 16|0);
  28350. $38 = ((($3)) + 20|0);
  28351. $39 = ((($3)) + 24|0);
  28352. $40 = ((($3)) + 28|0);
  28353. $41 = ((($3)) + 32|0);
  28354. $42 = ((($3)) + 4|0);
  28355. $43 = ((($3)) + 8|0);
  28356. $44 = ((($3)) + 12|0);
  28357. $45 = ((($3)) + 16|0);
  28358. $46 = ((($3)) + 20|0);
  28359. $47 = ((($3)) + 24|0);
  28360. $48 = ((($3)) + 28|0);
  28361. $49 = ((($3)) + 32|0);
  28362. $50 = ((($3)) + 36|0);
  28363. $51 = ((($3)) + 40|0);
  28364. $$0274335 = 1;$$0276334 = 0;$$0285333 = 0;$$0288332 = 0;$$0294331 = 0;
  28365. L4: while(1) {
  28366. $52 = (_stbtt__buf_get8($6)|0);
  28367. L6: do {
  28368. switch ($52<<24>>24) {
  28369. case 14: {
  28370. label = 63;
  28371. break L4;
  28372. break;
  28373. }
  28374. case 20: case 19: {
  28375. $53 = ($$0274335|0)==(0);
  28376. if ($53) {
  28377. $$1277 = $$0276334;
  28378. } else {
  28379. $54 = (($$0294331|0) / 2)&-1;
  28380. $55 = (($$0276334) + ($54))|0;
  28381. $$1277 = $55;
  28382. }
  28383. $56 = (($$1277) + 7)|0;
  28384. $57 = (($56|0) / 8)&-1;
  28385. _stbtt__buf_skip($6,$57);
  28386. $$0274$be = 0;$$0276$be = $$1277;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28387. label = 73;
  28388. break;
  28389. }
  28390. case 23: case 18: case 3: case 1: {
  28391. $58 = (($$0294331|0) / 2)&-1;
  28392. $59 = (($$0276334) + ($58))|0;
  28393. $$0274$be = $$0274335;$$0276$be = $59;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28394. label = 73;
  28395. break;
  28396. }
  28397. case 21: {
  28398. $60 = ($$0294331|0)<(2);
  28399. if ($60) {
  28400. $$3 = 0;
  28401. label = 80;
  28402. break L4;
  28403. }
  28404. $61 = (($$0294331) + -2)|0;
  28405. $62 = (($3) + ($61<<2)|0);
  28406. $63 = +HEAPF32[$62>>2];
  28407. $64 = (($$0294331) + -1)|0;
  28408. $65 = (($3) + ($64<<2)|0);
  28409. $66 = +HEAPF32[$65>>2];
  28410. _stbtt__csctx_rmove_to($2,$63,$66);
  28411. $$0274$be = 0;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28412. label = 73;
  28413. break;
  28414. }
  28415. case 4: {
  28416. $67 = ($$0294331|0)<(1);
  28417. if ($67) {
  28418. $$3 = 0;
  28419. label = 80;
  28420. break L4;
  28421. }
  28422. $68 = (($$0294331) + -1)|0;
  28423. $69 = (($3) + ($68<<2)|0);
  28424. $70 = +HEAPF32[$69>>2];
  28425. _stbtt__csctx_rmove_to($2,0.0,$70);
  28426. $$0274$be = 0;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28427. label = 73;
  28428. break;
  28429. }
  28430. case 22: {
  28431. $71 = ($$0294331|0)<(1);
  28432. if ($71) {
  28433. $$3 = 0;
  28434. label = 80;
  28435. break L4;
  28436. }
  28437. $72 = (($$0294331) + -1)|0;
  28438. $73 = (($3) + ($72<<2)|0);
  28439. $74 = +HEAPF32[$73>>2];
  28440. _stbtt__csctx_rmove_to($2,$74,0.0);
  28441. $$0274$be = 0;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28442. label = 73;
  28443. break;
  28444. }
  28445. case 5: {
  28446. $75 = ($$0294331|0)<(2);
  28447. if ($75) {
  28448. $$3 = 0;
  28449. label = 80;
  28450. break L4;
  28451. } else {
  28452. $$0290329 = 0;$79 = 1;
  28453. }
  28454. while(1) {
  28455. $76 = (($3) + ($$0290329<<2)|0);
  28456. $77 = +HEAPF32[$76>>2];
  28457. $78 = (($3) + ($79<<2)|0);
  28458. $80 = +HEAPF32[$78>>2];
  28459. _stbtt__csctx_rline_to($2,$77,$80);
  28460. $81 = (($$0290329) + 2)|0;
  28461. $82 = $81 | 1;
  28462. $83 = ($82|0)<($$0294331|0);
  28463. if ($83) {
  28464. $$0290329 = $81;$79 = $82;
  28465. } else {
  28466. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28467. label = 73;
  28468. break;
  28469. }
  28470. }
  28471. break;
  28472. }
  28473. case 7: {
  28474. $84 = ($$0294331|0)<(1);
  28475. if ($84) {
  28476. $$3 = 0;
  28477. label = 80;
  28478. break L4;
  28479. } else {
  28480. $$2292 = 0;
  28481. label = 20;
  28482. }
  28483. break;
  28484. }
  28485. case 6: {
  28486. $85 = ($$0294331|0)<(1);
  28487. if ($85) {
  28488. $$3 = 0;
  28489. label = 80;
  28490. break L4;
  28491. } else {
  28492. $$1291 = 0;
  28493. label = 18;
  28494. }
  28495. break;
  28496. }
  28497. case 31: {
  28498. $94 = ($$0294331|0)<(4);
  28499. if ($94) {
  28500. $$3 = 0;
  28501. label = 80;
  28502. break L4;
  28503. } else {
  28504. $$4 = 0;
  28505. label = 28;
  28506. }
  28507. break;
  28508. }
  28509. case 30: {
  28510. $95 = ($$0294331|0)<(4);
  28511. if ($95) {
  28512. $$3 = 0;
  28513. label = 80;
  28514. break L4;
  28515. } else {
  28516. $$3293 = 0;
  28517. label = 24;
  28518. }
  28519. break;
  28520. }
  28521. case 8: {
  28522. $134 = ($$0294331|0)<(6);
  28523. if ($134) {
  28524. $$3 = 0;
  28525. label = 80;
  28526. break L4;
  28527. } else {
  28528. $$5327 = 0;$150 = 5;
  28529. }
  28530. while(1) {
  28531. $135 = (($3) + ($$5327<<2)|0);
  28532. $136 = +HEAPF32[$135>>2];
  28533. $137 = $$5327 | 1;
  28534. $138 = (($3) + ($137<<2)|0);
  28535. $139 = +HEAPF32[$138>>2];
  28536. $140 = (($$5327) + 2)|0;
  28537. $141 = (($3) + ($140<<2)|0);
  28538. $142 = +HEAPF32[$141>>2];
  28539. $143 = (($$5327) + 3)|0;
  28540. $144 = (($3) + ($143<<2)|0);
  28541. $145 = +HEAPF32[$144>>2];
  28542. $146 = (($$5327) + 4)|0;
  28543. $147 = (($3) + ($146<<2)|0);
  28544. $148 = +HEAPF32[$147>>2];
  28545. $149 = (($3) + ($150<<2)|0);
  28546. $151 = +HEAPF32[$149>>2];
  28547. _stbtt__csctx_rccurve_to($2,$136,$139,$142,$145,$148,$151);
  28548. $152 = (($$5327) + 6)|0;
  28549. $153 = (($$5327) + 11)|0;
  28550. $154 = ($153|0)<($$0294331|0);
  28551. if ($154) {
  28552. $$5327 = $152;$150 = $153;
  28553. } else {
  28554. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28555. label = 73;
  28556. break;
  28557. }
  28558. }
  28559. break;
  28560. }
  28561. case 24: {
  28562. $155 = ($$0294331|0)<(8);
  28563. if ($155) {
  28564. $$3 = 0;
  28565. label = 80;
  28566. break L4;
  28567. }
  28568. $156 = (($$0294331) + -2)|0;
  28569. $157 = ($156|0)>(5);
  28570. if ($157) {
  28571. $$6322 = 0;$161 = 1;$173 = 5;
  28572. while(1) {
  28573. $158 = (($3) + ($$6322<<2)|0);
  28574. $159 = +HEAPF32[$158>>2];
  28575. $160 = (($3) + ($161<<2)|0);
  28576. $162 = +HEAPF32[$160>>2];
  28577. $163 = (($$6322) + 2)|0;
  28578. $164 = (($3) + ($163<<2)|0);
  28579. $165 = +HEAPF32[$164>>2];
  28580. $166 = (($$6322) + 3)|0;
  28581. $167 = (($3) + ($166<<2)|0);
  28582. $168 = +HEAPF32[$167>>2];
  28583. $169 = (($$6322) + 4)|0;
  28584. $170 = (($3) + ($169<<2)|0);
  28585. $171 = +HEAPF32[$170>>2];
  28586. $172 = (($3) + ($173<<2)|0);
  28587. $174 = +HEAPF32[$172>>2];
  28588. _stbtt__csctx_rccurve_to($2,$159,$162,$165,$168,$171,$174);
  28589. $175 = (($$6322) + 6)|0;
  28590. $176 = (($$6322) + 11)|0;
  28591. $177 = ($176|0)<($156|0);
  28592. $178 = $175 | 1;
  28593. if ($177) {
  28594. $$6322 = $175;$161 = $178;$173 = $176;
  28595. } else {
  28596. $$6$lcssa = $175;$$lcssa316 = $178;
  28597. break;
  28598. }
  28599. }
  28600. } else {
  28601. $$6$lcssa = 0;$$lcssa316 = 1;
  28602. }
  28603. $179 = ($$lcssa316|0)<($$0294331|0);
  28604. if (!($179)) {
  28605. $$3 = 0;
  28606. label = 80;
  28607. break L4;
  28608. }
  28609. $180 = (($3) + ($$6$lcssa<<2)|0);
  28610. $181 = +HEAPF32[$180>>2];
  28611. $182 = (($3) + ($$lcssa316<<2)|0);
  28612. $183 = +HEAPF32[$182>>2];
  28613. _stbtt__csctx_rline_to($2,$181,$183);
  28614. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28615. label = 73;
  28616. break;
  28617. }
  28618. case 25: {
  28619. $184 = ($$0294331|0)<(8);
  28620. if ($184) {
  28621. $$3 = 0;
  28622. label = 80;
  28623. break L4;
  28624. }
  28625. $185 = (($$0294331) + -6)|0;
  28626. $186 = ($185|0)>(1);
  28627. if ($186) {
  28628. $$7319 = 0;$190 = 1;
  28629. while(1) {
  28630. $187 = (($3) + ($$7319<<2)|0);
  28631. $188 = +HEAPF32[$187>>2];
  28632. $189 = (($3) + ($190<<2)|0);
  28633. $191 = +HEAPF32[$189>>2];
  28634. _stbtt__csctx_rline_to($2,$188,$191);
  28635. $192 = (($$7319) + 2)|0;
  28636. $193 = $192 | 1;
  28637. $194 = ($193|0)<($185|0);
  28638. if ($194) {
  28639. $$7319 = $192;$190 = $193;
  28640. } else {
  28641. $$7$lcssa = $192;$$lcssa = $193;
  28642. break;
  28643. }
  28644. }
  28645. } else {
  28646. $$7$lcssa = 0;$$lcssa = 1;
  28647. }
  28648. $195 = (($$7$lcssa) + 5)|0;
  28649. $196 = ($195|0)<($$0294331|0);
  28650. if (!($196)) {
  28651. $$3 = 0;
  28652. label = 80;
  28653. break L4;
  28654. }
  28655. $197 = (($3) + ($$7$lcssa<<2)|0);
  28656. $198 = +HEAPF32[$197>>2];
  28657. $199 = (($3) + ($$lcssa<<2)|0);
  28658. $200 = +HEAPF32[$199>>2];
  28659. $201 = (($$7$lcssa) + 2)|0;
  28660. $202 = (($3) + ($201<<2)|0);
  28661. $203 = +HEAPF32[$202>>2];
  28662. $204 = (($$7$lcssa) + 3)|0;
  28663. $205 = (($3) + ($204<<2)|0);
  28664. $206 = +HEAPF32[$205>>2];
  28665. $207 = (($$7$lcssa) + 4)|0;
  28666. $208 = (($3) + ($207<<2)|0);
  28667. $209 = +HEAPF32[$208>>2];
  28668. $210 = (($3) + ($195<<2)|0);
  28669. $211 = +HEAPF32[$210>>2];
  28670. _stbtt__csctx_rccurve_to($2,$198,$200,$203,$206,$209,$211);
  28671. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28672. label = 73;
  28673. break;
  28674. }
  28675. case 27: case 26: {
  28676. $212 = ($$0294331|0)<(4);
  28677. if ($212) {
  28678. $$3 = 0;
  28679. label = 80;
  28680. break L4;
  28681. }
  28682. $213 = $$0294331 & 1;
  28683. $214 = ($213|0)==(0);
  28684. $215 = (($213) + 3)|0;
  28685. $216 = ($215|0)<($$0294331|0);
  28686. if ($216) {
  28687. $not$ = $214 ^ 1;
  28688. $$ = $not$&1;
  28689. $217 = +HEAPF32[$3>>2];
  28690. $$363 = $214 ? 0.0 : $217;
  28691. $218 = ($52<<24>>24)==(27);
  28692. $$0282318 = $$363;$$8317 = $$;$228 = $215;
  28693. while(1) {
  28694. $219 = (($$8317) + 2)|0;
  28695. $220 = (($$8317) + 1)|0;
  28696. $221 = (($3) + ($219<<2)|0);
  28697. $222 = +HEAPF32[$221>>2];
  28698. $223 = (($3) + ($$8317<<2)|0);
  28699. $224 = +HEAPF32[$223>>2];
  28700. $225 = (($3) + ($220<<2)|0);
  28701. $226 = +HEAPF32[$225>>2];
  28702. $227 = (($3) + ($228<<2)|0);
  28703. $229 = +HEAPF32[$227>>2];
  28704. if ($218) {
  28705. _stbtt__csctx_rccurve_to($2,$224,$$0282318,$226,$222,$229,0.0);
  28706. } else {
  28707. _stbtt__csctx_rccurve_to($2,$$0282318,$224,$226,$222,0.0,$229);
  28708. }
  28709. $230 = (($$8317) + 4)|0;
  28710. $231 = (($$8317) + 7)|0;
  28711. $232 = ($231|0)<($$0294331|0);
  28712. if ($232) {
  28713. $$0282318 = 0.0;$$8317 = $230;$228 = $231;
  28714. } else {
  28715. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28716. label = 73;
  28717. break;
  28718. }
  28719. }
  28720. } else {
  28721. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28722. label = 73;
  28723. }
  28724. break;
  28725. }
  28726. case 10: {
  28727. $233 = ($$0285333|0)==(0);
  28728. if ($233) {
  28729. $234 = HEAP32[$15>>2]|0;
  28730. $235 = ($234|0)==(0);
  28731. if ($235) {
  28732. $$1286 = 1;
  28733. label = 54;
  28734. } else {
  28735. _stbtt__cid_get_glyph_subrs($5,$0,$1);
  28736. $$1286 = 1;
  28737. label = 54;
  28738. }
  28739. } else {
  28740. $$1286 = $$0285333;
  28741. label = 54;
  28742. }
  28743. break;
  28744. }
  28745. case 29: {
  28746. $$1286 = $$0285333;
  28747. label = 54;
  28748. break;
  28749. }
  28750. case 11: {
  28751. $247 = ($$0288332|0)<(1);
  28752. if ($247) {
  28753. $$3 = 0;
  28754. label = 80;
  28755. break L4;
  28756. }
  28757. $248 = (($$0288332) + -1)|0;
  28758. $249 = (($4) + (($248*12)|0)|0);
  28759. ;HEAP32[$6>>2]=HEAP32[$249>>2]|0;HEAP32[$6+4>>2]=HEAP32[$249+4>>2]|0;HEAP32[$6+8>>2]=HEAP32[$249+8>>2]|0;
  28760. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $248;$$0294$be = $$0294331;
  28761. label = 73;
  28762. break;
  28763. }
  28764. case 12: {
  28765. $250 = (_stbtt__buf_get8($6)|0);
  28766. switch ($250<<24>>24) {
  28767. case 34: {
  28768. $251 = ($$0294331|0)<(7);
  28769. if ($251) {
  28770. $$3 = 0;
  28771. label = 80;
  28772. break L4;
  28773. }
  28774. $252 = +HEAPF32[$3>>2];
  28775. $253 = +HEAPF32[$17>>2];
  28776. $254 = +HEAPF32[$18>>2];
  28777. $255 = +HEAPF32[$19>>2];
  28778. $256 = +HEAPF32[$20>>2];
  28779. $257 = +HEAPF32[$21>>2];
  28780. $258 = +HEAPF32[$22>>2];
  28781. _stbtt__csctx_rccurve_to($2,$252,0.0,$253,$254,$255,0.0);
  28782. $259 = -$254;
  28783. _stbtt__csctx_rccurve_to($2,$256,0.0,$257,$259,$258,0.0);
  28784. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28785. label = 73;
  28786. break L6;
  28787. break;
  28788. }
  28789. case 35: {
  28790. $260 = ($$0294331|0)<(13);
  28791. if ($260) {
  28792. $$3 = 0;
  28793. label = 80;
  28794. break L4;
  28795. }
  28796. $261 = +HEAPF32[$3>>2];
  28797. $262 = +HEAPF32[$23>>2];
  28798. $263 = +HEAPF32[$24>>2];
  28799. $264 = +HEAPF32[$25>>2];
  28800. $265 = +HEAPF32[$26>>2];
  28801. $266 = +HEAPF32[$27>>2];
  28802. $267 = +HEAPF32[$28>>2];
  28803. $268 = +HEAPF32[$29>>2];
  28804. $269 = +HEAPF32[$30>>2];
  28805. $270 = +HEAPF32[$31>>2];
  28806. $271 = +HEAPF32[$32>>2];
  28807. $272 = +HEAPF32[$33>>2];
  28808. _stbtt__csctx_rccurve_to($2,$261,$262,$263,$264,$265,$266);
  28809. _stbtt__csctx_rccurve_to($2,$267,$268,$269,$270,$271,$272);
  28810. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28811. label = 73;
  28812. break L6;
  28813. break;
  28814. }
  28815. case 36: {
  28816. $273 = ($$0294331|0)<(9);
  28817. if ($273) {
  28818. $$3 = 0;
  28819. label = 80;
  28820. break L4;
  28821. }
  28822. $274 = +HEAPF32[$3>>2];
  28823. $275 = +HEAPF32[$34>>2];
  28824. $276 = +HEAPF32[$35>>2];
  28825. $277 = +HEAPF32[$36>>2];
  28826. $278 = +HEAPF32[$37>>2];
  28827. $279 = +HEAPF32[$38>>2];
  28828. $280 = +HEAPF32[$39>>2];
  28829. $281 = +HEAPF32[$40>>2];
  28830. $282 = +HEAPF32[$41>>2];
  28831. _stbtt__csctx_rccurve_to($2,$274,$275,$276,$277,$278,0.0);
  28832. $283 = $275 + $277;
  28833. $284 = $283 + $281;
  28834. $285 = -$284;
  28835. _stbtt__csctx_rccurve_to($2,$279,0.0,$280,$281,$282,$285);
  28836. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28837. label = 73;
  28838. break L6;
  28839. break;
  28840. }
  28841. case 37: {
  28842. $286 = ($$0294331|0)<(11);
  28843. if ($286) {
  28844. $$3 = 0;
  28845. label = 80;
  28846. break L4;
  28847. }
  28848. $287 = +HEAPF32[$3>>2];
  28849. $288 = +HEAPF32[$42>>2];
  28850. $289 = +HEAPF32[$43>>2];
  28851. $290 = +HEAPF32[$44>>2];
  28852. $291 = +HEAPF32[$45>>2];
  28853. $292 = +HEAPF32[$46>>2];
  28854. $293 = +HEAPF32[$47>>2];
  28855. $294 = +HEAPF32[$48>>2];
  28856. $295 = +HEAPF32[$49>>2];
  28857. $296 = +HEAPF32[$50>>2];
  28858. $297 = +HEAPF32[$51>>2];
  28859. $298 = $287 + $289;
  28860. $299 = $298 + $291;
  28861. $300 = $299 + $293;
  28862. $301 = $300 + $295;
  28863. $302 = $288 + $290;
  28864. $303 = $302 + $292;
  28865. $304 = $303 + $294;
  28866. $305 = $304 + $296;
  28867. $fabsf = (+Math_abs((+$301)));
  28868. $fabsf296 = (+Math_abs((+$305)));
  28869. $306 = $fabsf > $fabsf296;
  28870. $307 = -$305;
  28871. $308 = -$301;
  28872. $$0280 = $306 ? $297 : $308;
  28873. $$0279 = $306 ? $307 : $297;
  28874. _stbtt__csctx_rccurve_to($2,$287,$288,$289,$290,$291,$292);
  28875. _stbtt__csctx_rccurve_to($2,$293,$294,$295,$296,$$0280,$$0279);
  28876. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28877. label = 73;
  28878. break L6;
  28879. break;
  28880. }
  28881. default: {
  28882. $$3 = 0;
  28883. label = 80;
  28884. break L4;
  28885. }
  28886. }
  28887. break;
  28888. }
  28889. case -1: {
  28890. label = 76;
  28891. break;
  28892. }
  28893. case 28: {
  28894. label = 77;
  28895. break;
  28896. }
  28897. default: {
  28898. $312 = ($52&255)<(32);
  28899. $313 = ($52<<24>>24)==(-1);
  28900. $or$cond3 = $312 | $313;
  28901. if ($or$cond3) {
  28902. $$3 = 0;
  28903. label = 80;
  28904. break L4;
  28905. }
  28906. if ($313) {
  28907. label = 76;
  28908. } else {
  28909. label = 77;
  28910. }
  28911. }
  28912. }
  28913. } while(0);
  28914. if ((label|0) == 54) {
  28915. label = 0;
  28916. $236 = ($$0294331|0)<(1);
  28917. if ($236) {
  28918. $$3 = 0;
  28919. label = 80;
  28920. break;
  28921. }
  28922. $237 = (($$0294331) + -1)|0;
  28923. $238 = (($3) + ($237<<2)|0);
  28924. $239 = +HEAPF32[$238>>2];
  28925. $240 = (~~(($239)));
  28926. $241 = ($$0288332|0)>(9);
  28927. if ($241) {
  28928. $$3 = 0;
  28929. label = 80;
  28930. break;
  28931. }
  28932. $242 = (($$0288332) + 1)|0;
  28933. $243 = (($4) + (($$0288332*12)|0)|0);
  28934. ;HEAP32[$243>>2]=HEAP32[$6>>2]|0;HEAP32[$243+4>>2]=HEAP32[$6+4>>2]|0;HEAP32[$243+8>>2]=HEAP32[$6+8>>2]|0;
  28935. $244 = ($52<<24>>24)==(10);
  28936. if ($244) {
  28937. ;HEAP32[$7>>2]=HEAP32[$5>>2]|0;HEAP32[$7+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$7+8>>2]=HEAP32[$5+8>>2]|0;
  28938. } else {
  28939. ;HEAP32[$7>>2]=HEAP32[$16>>2]|0;HEAP32[$7+4>>2]=HEAP32[$16+4>>2]|0;HEAP32[$7+8>>2]=HEAP32[$16+8>>2]|0;
  28940. }
  28941. ;HEAP32[$$byval_copy1>>2]=HEAP32[$7>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$7+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$7+8>>2]|0;
  28942. _stbtt__get_subr($6,$$byval_copy1,$240);
  28943. $245 = HEAP32[$12>>2]|0;
  28944. $246 = ($245|0)==(0);
  28945. if ($246) {
  28946. $$3 = 0;
  28947. label = 80;
  28948. break;
  28949. }
  28950. HEAP32[$10>>2] = 0;
  28951. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$1286;$$0288$be = $242;$$0294$be = $237;
  28952. label = 73;
  28953. }
  28954. else if ((label|0) == 76) {
  28955. label = 0;
  28956. $314 = (_stbtt__buf_get($6,4)|0);
  28957. $315 = (+($314>>>0));
  28958. $316 = $315 * 1.52587890625E-5;
  28959. $$1283 = $316;
  28960. label = 78;
  28961. }
  28962. else if ((label|0) == 77) {
  28963. label = 0;
  28964. _stbtt__buf_skip($6,-1);
  28965. $317 = (_stbtt__cff_int($6)|0);
  28966. $318 = $317&65535;
  28967. $319 = (+($318<<16>>16));
  28968. $$1283 = $319;
  28969. label = 78;
  28970. }
  28971. if ((label|0) == 78) {
  28972. label = 0;
  28973. $320 = ($$0294331|0)>(47);
  28974. if ($320) {
  28975. $$3 = 0;
  28976. label = 80;
  28977. break;
  28978. }
  28979. $321 = (($$0294331) + 1)|0;
  28980. $322 = (($3) + ($$0294331<<2)|0);
  28981. HEAPF32[$322>>2] = $$1283;
  28982. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = $321;
  28983. label = 73;
  28984. }
  28985. while(1) {
  28986. if ((label|0) == 18) {
  28987. label = 0;
  28988. $86 = ($$1291|0)<($$0294331|0);
  28989. if (!($86)) {
  28990. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28991. label = 73;
  28992. continue;
  28993. }
  28994. $87 = (($3) + ($$1291<<2)|0);
  28995. $88 = +HEAPF32[$87>>2];
  28996. _stbtt__csctx_rline_to($2,$88,0.0);
  28997. $89 = (($$1291) + 1)|0;
  28998. $$2292 = $89;
  28999. label = 20;
  29000. continue;
  29001. }
  29002. else if ((label|0) == 20) {
  29003. label = 0;
  29004. $90 = ($$2292|0)<($$0294331|0);
  29005. if (!($90)) {
  29006. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  29007. label = 73;
  29008. continue;
  29009. }
  29010. $91 = (($3) + ($$2292<<2)|0);
  29011. $92 = +HEAPF32[$91>>2];
  29012. _stbtt__csctx_rline_to($2,0.0,$92);
  29013. $93 = (($$2292) + 1)|0;
  29014. $$1291 = $93;
  29015. label = 18;
  29016. continue;
  29017. }
  29018. else if ((label|0) == 24) {
  29019. label = 0;
  29020. $96 = (($$3293) + 3)|0;
  29021. $97 = ($96|0)<($$0294331|0);
  29022. if (!($97)) {
  29023. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  29024. label = 73;
  29025. continue;
  29026. }
  29027. $98 = (($3) + ($$3293<<2)|0);
  29028. $99 = +HEAPF32[$98>>2];
  29029. $100 = (($$3293) + 1)|0;
  29030. $101 = (($3) + ($100<<2)|0);
  29031. $102 = +HEAPF32[$101>>2];
  29032. $103 = (($$3293) + 2)|0;
  29033. $104 = (($3) + ($103<<2)|0);
  29034. $105 = +HEAPF32[$104>>2];
  29035. $106 = (($3) + ($96<<2)|0);
  29036. $107 = +HEAPF32[$106>>2];
  29037. $108 = (($$0294331) - ($$3293))|0;
  29038. $109 = ($108|0)==(5);
  29039. if ($109) {
  29040. $110 = (($$3293) + 4)|0;
  29041. $111 = (($3) + ($110<<2)|0);
  29042. $112 = +HEAPF32[$111>>2];
  29043. $113 = $112;
  29044. } else {
  29045. $113 = 0.0;
  29046. }
  29047. _stbtt__csctx_rccurve_to($2,0.0,$99,$102,$105,$107,$113);
  29048. $114 = (($$3293) + 4)|0;
  29049. $$4 = $114;
  29050. label = 28;
  29051. continue;
  29052. }
  29053. else if ((label|0) == 28) {
  29054. label = 0;
  29055. $115 = (($$4) + 3)|0;
  29056. $116 = ($115|0)<($$0294331|0);
  29057. if (!($116)) {
  29058. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  29059. label = 73;
  29060. continue;
  29061. }
  29062. $117 = (($3) + ($$4<<2)|0);
  29063. $118 = +HEAPF32[$117>>2];
  29064. $119 = (($$4) + 1)|0;
  29065. $120 = (($3) + ($119<<2)|0);
  29066. $121 = +HEAPF32[$120>>2];
  29067. $122 = (($$4) + 2)|0;
  29068. $123 = (($3) + ($122<<2)|0);
  29069. $124 = +HEAPF32[$123>>2];
  29070. $125 = (($$0294331) - ($$4))|0;
  29071. $126 = ($125|0)==(5);
  29072. if ($126) {
  29073. $127 = (($$4) + 4)|0;
  29074. $128 = (($3) + ($127<<2)|0);
  29075. $129 = +HEAPF32[$128>>2];
  29076. $132 = $129;
  29077. } else {
  29078. $132 = 0.0;
  29079. }
  29080. $130 = (($3) + ($115<<2)|0);
  29081. $131 = +HEAPF32[$130>>2];
  29082. _stbtt__csctx_rccurve_to($2,$118,0.0,$121,$124,$132,$131);
  29083. $133 = (($$4) + 4)|0;
  29084. $$3293 = $133;
  29085. label = 24;
  29086. continue;
  29087. }
  29088. else if ((label|0) == 73) {
  29089. label = 0;
  29090. $309 = HEAP32[$10>>2]|0;
  29091. $310 = HEAP32[$12>>2]|0;
  29092. $311 = ($309|0)<($310|0);
  29093. if ($311) {
  29094. $$0274335 = $$0274$be;$$0276334 = $$0276$be;$$0285333 = $$0285$be;$$0288332 = $$0288$be;$$0294331 = $$0294$be;
  29095. continue L4;
  29096. } else {
  29097. $$3 = 0;
  29098. label = 80;
  29099. break L4;
  29100. }
  29101. }
  29102. }
  29103. }
  29104. if ((label|0) == 63) {
  29105. _stbtt__csctx_close_shape($2);
  29106. $$3 = 1;
  29107. STACKTOP = sp;return ($$3|0);
  29108. }
  29109. else if ((label|0) == 80) {
  29110. STACKTOP = sp;return ($$3|0);
  29111. }
  29112. return (0)|0;
  29113. }
  29114. function _stbtt__cff_index_get($0,$1,$2) {
  29115. $0 = $0|0;
  29116. $1 = $1|0;
  29117. $2 = $2|0;
  29118. var $$off = 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, $or$cond = 0, label = 0, sp = 0;
  29119. sp = STACKTOP;
  29120. _stbtt__buf_seek($1,0);
  29121. $3 = (_stbtt__buf_get($1,2)|0);
  29122. $4 = (_stbtt__buf_get8($1)|0);
  29123. $5 = $4&255;
  29124. $6 = ($2|0)>(-1);
  29125. $7 = ($3|0)>($2|0);
  29126. $or$cond = $6 & $7;
  29127. if (!($or$cond)) {
  29128. ___assert_fail((13230|0),(12565|0),1118,(13250|0));
  29129. // unreachable;
  29130. }
  29131. $$off = (($4) + -1)<<24>>24;
  29132. $8 = ($$off&255)<(4);
  29133. if ($8) {
  29134. $9 = Math_imul($5, $2)|0;
  29135. _stbtt__buf_skip($1,$9);
  29136. $10 = (_stbtt__buf_get($1,$5)|0);
  29137. $11 = (_stbtt__buf_get($1,$5)|0);
  29138. $12 = (($3) + 1)|0;
  29139. $13 = Math_imul($5, $12)|0;
  29140. $14 = (($13) + 2)|0;
  29141. $15 = (($14) + ($10))|0;
  29142. $16 = (($11) - ($10))|0;
  29143. _stbtt__buf_range($0,$1,$15,$16);
  29144. return;
  29145. } else {
  29146. ___assert_fail((13147|0),(12565|0),1119,(13250|0));
  29147. // unreachable;
  29148. }
  29149. }
  29150. function _stbtt__buf_get8($0) {
  29151. $0 = $0|0;
  29152. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  29153. sp = STACKTOP;
  29154. $1 = ((($0)) + 4|0);
  29155. $2 = HEAP32[$1>>2]|0;
  29156. $3 = ((($0)) + 8|0);
  29157. $4 = HEAP32[$3>>2]|0;
  29158. $5 = ($2|0)<($4|0);
  29159. if (!($5)) {
  29160. $$0 = 0;
  29161. return ($$0|0);
  29162. }
  29163. $6 = (($2) + 1)|0;
  29164. $7 = HEAP32[$0>>2]|0;
  29165. HEAP32[$1>>2] = $6;
  29166. $8 = (($7) + ($2)|0);
  29167. $9 = HEAP8[$8>>0]|0;
  29168. $$0 = $9;
  29169. return ($$0|0);
  29170. }
  29171. function _stbtt__buf_skip($0,$1) {
  29172. $0 = $0|0;
  29173. $1 = $1|0;
  29174. var $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  29175. sp = STACKTOP;
  29176. $2 = ((($0)) + 4|0);
  29177. $3 = HEAP32[$2>>2]|0;
  29178. $4 = (($3) + ($1))|0;
  29179. _stbtt__buf_seek($0,$4);
  29180. return;
  29181. }
  29182. function _stbtt__csctx_rmove_to($0,$1,$2) {
  29183. $0 = $0|0;
  29184. $1 = +$1;
  29185. $2 = +$2;
  29186. var $10 = 0, $11 = 0.0, $12 = 0, $13 = 0, $3 = 0, $4 = 0.0, $5 = 0.0, $6 = 0, $7 = 0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  29187. sp = STACKTOP;
  29188. _stbtt__csctx_close_shape($0);
  29189. $3 = ((($0)) + 16|0);
  29190. $4 = +HEAPF32[$3>>2];
  29191. $5 = $4 + $1;
  29192. HEAPF32[$3>>2] = $5;
  29193. $6 = ((($0)) + 8|0);
  29194. HEAPF32[$6>>2] = $5;
  29195. $7 = ((($0)) + 20|0);
  29196. $8 = +HEAPF32[$7>>2];
  29197. $9 = $8 + $2;
  29198. HEAPF32[$7>>2] = $9;
  29199. $10 = ((($0)) + 12|0);
  29200. HEAPF32[$10>>2] = $9;
  29201. $11 = +HEAPF32[$3>>2];
  29202. $12 = (~~(($11)));
  29203. $13 = (~~(($9)));
  29204. _stbtt__csctx_v($0,1,$12,$13,0,0,0,0);
  29205. return;
  29206. }
  29207. function _stbtt__csctx_rline_to($0,$1,$2) {
  29208. $0 = $0|0;
  29209. $1 = +$1;
  29210. $2 = +$2;
  29211. var $10 = 0, $3 = 0, $4 = 0.0, $5 = 0.0, $6 = 0, $7 = 0.0, $8 = 0.0, $9 = 0, label = 0, sp = 0;
  29212. sp = STACKTOP;
  29213. $3 = ((($0)) + 16|0);
  29214. $4 = +HEAPF32[$3>>2];
  29215. $5 = $4 + $1;
  29216. HEAPF32[$3>>2] = $5;
  29217. $6 = ((($0)) + 20|0);
  29218. $7 = +HEAPF32[$6>>2];
  29219. $8 = $7 + $2;
  29220. HEAPF32[$6>>2] = $8;
  29221. $9 = (~~(($5)));
  29222. $10 = (~~(($8)));
  29223. _stbtt__csctx_v($0,2,$9,$10,0,0,0,0);
  29224. return;
  29225. }
  29226. function _stbtt__csctx_rccurve_to($0,$1,$2,$3,$4,$5,$6) {
  29227. $0 = $0|0;
  29228. $1 = +$1;
  29229. $2 = +$2;
  29230. $3 = +$3;
  29231. $4 = +$4;
  29232. $5 = +$5;
  29233. $6 = +$6;
  29234. var $10 = 0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0.0, $16 = 0.0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $7 = 0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  29235. sp = STACKTOP;
  29236. $7 = ((($0)) + 16|0);
  29237. $8 = +HEAPF32[$7>>2];
  29238. $9 = $8 + $1;
  29239. $10 = ((($0)) + 20|0);
  29240. $11 = +HEAPF32[$10>>2];
  29241. $12 = $11 + $2;
  29242. $13 = $9 + $3;
  29243. $14 = $12 + $4;
  29244. $15 = $13 + $5;
  29245. HEAPF32[$7>>2] = $15;
  29246. $16 = $14 + $6;
  29247. HEAPF32[$10>>2] = $16;
  29248. $17 = (~~(($15)));
  29249. $18 = (~~(($16)));
  29250. $19 = (~~(($9)));
  29251. $20 = (~~(($12)));
  29252. $21 = (~~(($13)));
  29253. $22 = (~~(($14)));
  29254. _stbtt__csctx_v($0,4,$17,$18,$19,$20,$21,$22);
  29255. return;
  29256. }
  29257. function _stbtt__cid_get_glyph_subrs($0,$1,$2) {
  29258. $0 = $0|0;
  29259. $1 = $1|0;
  29260. $2 = $2|0;
  29261. var $$02931 = 0, $$03034 = 0, $$035 = 0, $$byval_copy1 = 0, $$byval_copy2 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0;
  29262. var $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  29263. sp = STACKTOP;
  29264. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  29265. $$byval_copy2 = sp + 36|0;
  29266. $$byval_copy1 = sp + 24|0;
  29267. $3 = sp;
  29268. $4 = sp + 12|0;
  29269. $5 = ((($1)) + 108|0);
  29270. ;HEAP32[$3>>2]=HEAP32[$5>>2]|0;HEAP32[$3+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$3+8>>2]=HEAP32[$5+8>>2]|0;
  29271. _stbtt__buf_seek($3,0);
  29272. $6 = (_stbtt__buf_get8($3)|0);
  29273. L1: do {
  29274. switch ($6<<24>>24) {
  29275. case 0: {
  29276. _stbtt__buf_skip($3,$2);
  29277. $7 = (_stbtt__buf_get8($3)|0);
  29278. $8 = $7&255;
  29279. $$02931 = $8;
  29280. break;
  29281. }
  29282. case 3: {
  29283. $9 = (_stbtt__buf_get($3,2)|0);
  29284. $10 = (_stbtt__buf_get($3,2)|0);
  29285. $11 = ($9|0)>(0);
  29286. if ($11) {
  29287. $$03034 = $10;$$035 = 0;
  29288. while(1) {
  29289. $14 = (_stbtt__buf_get8($3)|0);
  29290. $15 = (_stbtt__buf_get($3,2)|0);
  29291. $16 = ($$03034|0)<=($2|0);
  29292. $17 = ($15|0)>($2|0);
  29293. $or$cond = $16 & $17;
  29294. $13 = (($$035) + 1)|0;
  29295. if ($or$cond) {
  29296. break;
  29297. }
  29298. $12 = ($13|0)<($9|0);
  29299. if ($12) {
  29300. $$03034 = $15;$$035 = $13;
  29301. } else {
  29302. label = 6;
  29303. break L1;
  29304. }
  29305. }
  29306. $18 = $14&255;
  29307. $$02931 = $18;
  29308. } else {
  29309. label = 6;
  29310. }
  29311. break;
  29312. }
  29313. default: {
  29314. label = 6;
  29315. }
  29316. }
  29317. } while(0);
  29318. if ((label|0) == 6) {
  29319. _stbtt__new_buf($$byval_copy2,0,0);
  29320. $$02931 = -1;
  29321. }
  29322. $19 = ((($1)) + 48|0);
  29323. $20 = ((($1)) + 96|0);
  29324. ;HEAP32[$$byval_copy2>>2]=HEAP32[$20>>2]|0;HEAP32[$$byval_copy2+4>>2]=HEAP32[$20+4>>2]|0;HEAP32[$$byval_copy2+8>>2]=HEAP32[$20+8>>2]|0;
  29325. _stbtt__cff_index_get($4,$$byval_copy2,$$02931);
  29326. ;HEAP32[$$byval_copy1>>2]=HEAP32[$19>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$19+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$19+8>>2]|0;
  29327. ;HEAP32[$$byval_copy2>>2]=HEAP32[$4>>2]|0;HEAP32[$$byval_copy2+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$$byval_copy2+8>>2]=HEAP32[$4+8>>2]|0;
  29328. _stbtt__get_subrs($0,$$byval_copy1,$$byval_copy2);
  29329. STACKTOP = sp;return;
  29330. }
  29331. function _stbtt__get_subr($0,$1,$2) {
  29332. $0 = $0|0;
  29333. $1 = $1|0;
  29334. $2 = $2|0;
  29335. var $$ = 0, $$0 = 0, $$byval_copy = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $or$cond = 0, label = 0, sp = 0;
  29336. sp = STACKTOP;
  29337. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  29338. $$byval_copy = sp;
  29339. $3 = (_stbtt__cff_index_count($1)|0);
  29340. $4 = ($3|0)>(33899);
  29341. $5 = ($3|0)>(1239);
  29342. $$ = $5 ? 1131 : 107;
  29343. $$0 = $4 ? 32768 : $$;
  29344. $6 = (($$0) + ($2))|0;
  29345. $7 = ($6|0)>(-1);
  29346. $8 = ($6|0)<($3|0);
  29347. $or$cond = $7 & $8;
  29348. if ($or$cond) {
  29349. ;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;
  29350. _stbtt__cff_index_get($0,$$byval_copy,$6);
  29351. STACKTOP = sp;return;
  29352. } else {
  29353. _stbtt__new_buf($0,0,0);
  29354. STACKTOP = sp;return;
  29355. }
  29356. }
  29357. function _stbtt__csctx_close_shape($0) {
  29358. $0 = $0|0;
  29359. var $1 = 0, $10 = 0, $11 = 0, $12 = 0, $2 = 0.0, $3 = 0, $4 = 0.0, $5 = 0, $6 = 0, $7 = 0.0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
  29360. sp = STACKTOP;
  29361. $1 = ((($0)) + 8|0);
  29362. $2 = +HEAPF32[$1>>2];
  29363. $3 = ((($0)) + 16|0);
  29364. $4 = +HEAPF32[$3>>2];
  29365. $5 = $2 != $4;
  29366. $6 = ((($0)) + 12|0);
  29367. $7 = +HEAPF32[$6>>2];
  29368. if (!($5)) {
  29369. $8 = ((($0)) + 20|0);
  29370. $9 = +HEAPF32[$8>>2];
  29371. $10 = $7 != $9;
  29372. if (!($10)) {
  29373. return;
  29374. }
  29375. }
  29376. $11 = (~~(($2)));
  29377. $12 = (~~(($7)));
  29378. _stbtt__csctx_v($0,2,$11,$12,0,0,0,0);
  29379. return;
  29380. }
  29381. function _stbtt__buf_get($0,$1) {
  29382. $0 = $0|0;
  29383. $1 = $1|0;
  29384. var $$01011 = 0, $$012 = 0, $$off = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $exitcond = 0, label = 0, sp = 0;
  29385. sp = STACKTOP;
  29386. $$off = (($1) + -1)|0;
  29387. $2 = ($$off>>>0)<(4);
  29388. if ($2) {
  29389. $$01011 = 0;$$012 = 0;
  29390. } else {
  29391. ___assert_fail((13042|0),(12565|0),1014,(13059|0));
  29392. // unreachable;
  29393. }
  29394. while(1) {
  29395. $3 = $$01011 << 8;
  29396. $4 = (_stbtt__buf_get8($0)|0);
  29397. $5 = $4&255;
  29398. $6 = $5 | $3;
  29399. $7 = (($$012) + 1)|0;
  29400. $exitcond = ($7|0)==($1|0);
  29401. if ($exitcond) {
  29402. break;
  29403. } else {
  29404. $$01011 = $6;$$012 = $7;
  29405. }
  29406. }
  29407. return ($6|0);
  29408. }
  29409. function _stbtt__cff_int($0) {
  29410. $0 = $0|0;
  29411. var $$0 = 0, $$off = 0, $$off19 = 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, $3 = 0, $4 = 0, $5 = 0;
  29412. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond5 = 0, label = 0, sp = 0;
  29413. sp = STACKTOP;
  29414. $1 = (_stbtt__buf_get8($0)|0);
  29415. $2 = $1&255;
  29416. $$off = (($1) + -32)<<24>>24;
  29417. $3 = ($$off&255)<(215);
  29418. if ($3) {
  29419. $4 = (($2) + -139)|0;
  29420. $$0 = $4;
  29421. return ($$0|0);
  29422. }
  29423. $$off19 = (($1) + 9)<<24>>24;
  29424. $5 = ($$off19&255)<(4);
  29425. if ($5) {
  29426. $6 = $2 << 8;
  29427. $7 = (($6) + -63232)|0;
  29428. $8 = (_stbtt__buf_get8($0)|0);
  29429. $9 = $8&255;
  29430. $10 = $9 | $7;
  29431. $11 = (($10) + 108)|0;
  29432. $$0 = $11;
  29433. return ($$0|0);
  29434. }
  29435. $12 = ($1&255)>(250);
  29436. $13 = ($1<<24>>24)!=(-1);
  29437. $or$cond5 = $12 & $13;
  29438. if ($or$cond5) {
  29439. $14 = (251 - ($2))|0;
  29440. $15 = $14 << 8;
  29441. $16 = (_stbtt__buf_get8($0)|0);
  29442. $17 = $16&255;
  29443. $18 = (($15) + -108)|0;
  29444. $19 = (($18) - ($17))|0;
  29445. $$0 = $19;
  29446. return ($$0|0);
  29447. }
  29448. switch ($1<<24>>24) {
  29449. case 28: {
  29450. $20 = (_stbtt__buf_get($0,2)|0);
  29451. $$0 = $20;
  29452. return ($$0|0);
  29453. break;
  29454. }
  29455. case 29: {
  29456. $21 = (_stbtt__buf_get($0,4)|0);
  29457. $$0 = $21;
  29458. return ($$0|0);
  29459. break;
  29460. }
  29461. default: {
  29462. ___assert_fail((13025|0),(12565|0),1064,(13027|0));
  29463. // unreachable;
  29464. }
  29465. }
  29466. return (0)|0;
  29467. }
  29468. function _stbtt__csctx_v($0,$1,$2,$3,$4,$5,$6,$7) {
  29469. $0 = $0|0;
  29470. $1 = $1|0;
  29471. $2 = $2|0;
  29472. $3 = $3|0;
  29473. $4 = $4|0;
  29474. $5 = $5|0;
  29475. $6 = $6|0;
  29476. $7 = $7|0;
  29477. 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, $8 = 0, $9 = 0, label = 0;
  29478. var sp = 0;
  29479. sp = STACKTOP;
  29480. $8 = HEAP32[$0>>2]|0;
  29481. $9 = ($8|0)==(0);
  29482. if ($9) {
  29483. $11 = ((($0)) + 40|0);
  29484. $12 = HEAP32[$11>>2]|0;
  29485. $13 = ((($0)) + 44|0);
  29486. $14 = HEAP32[$13>>2]|0;
  29487. $15 = (($12) + (($14*14)|0)|0);
  29488. _stbtt_setvertex($15,$1,$2,$3,$4,$5);
  29489. $16 = $6&65535;
  29490. $17 = HEAP32[$11>>2]|0;
  29491. $18 = HEAP32[$13>>2]|0;
  29492. $19 = (((($17) + (($18*14)|0)|0)) + 8|0);
  29493. HEAP16[$19>>1] = $16;
  29494. $20 = $7&65535;
  29495. $21 = HEAP32[$11>>2]|0;
  29496. $22 = HEAP32[$13>>2]|0;
  29497. $23 = (((($21) + (($22*14)|0)|0)) + 10|0);
  29498. HEAP16[$23>>1] = $20;
  29499. } else {
  29500. _stbtt__track_vertex($0,$2,$3);
  29501. $10 = ($1<<24>>24)==(4);
  29502. if ($10) {
  29503. _stbtt__track_vertex($0,$4,$5);
  29504. _stbtt__track_vertex($0,$6,$7);
  29505. }
  29506. }
  29507. $24 = ((($0)) + 44|0);
  29508. $25 = HEAP32[$24>>2]|0;
  29509. $26 = (($25) + 1)|0;
  29510. HEAP32[$24>>2] = $26;
  29511. return;
  29512. }
  29513. function _stbtt__track_vertex($0,$1,$2) {
  29514. $0 = $0|0;
  29515. $1 = $1|0;
  29516. $2 = $2|0;
  29517. 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, $3 = 0, $4 = 0;
  29518. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  29519. sp = STACKTOP;
  29520. $3 = ((($0)) + 28|0);
  29521. $4 = HEAP32[$3>>2]|0;
  29522. $5 = ($4|0)<($1|0);
  29523. if ($5) {
  29524. label = 3;
  29525. } else {
  29526. $6 = ((($0)) + 4|0);
  29527. $7 = HEAP32[$6>>2]|0;
  29528. $8 = ($7|0)==(0);
  29529. if ($8) {
  29530. label = 3;
  29531. }
  29532. }
  29533. if ((label|0) == 3) {
  29534. HEAP32[$3>>2] = $1;
  29535. }
  29536. $9 = ((($0)) + 36|0);
  29537. $10 = HEAP32[$9>>2]|0;
  29538. $11 = ($10|0)<($2|0);
  29539. if ($11) {
  29540. label = 6;
  29541. } else {
  29542. $12 = ((($0)) + 4|0);
  29543. $13 = HEAP32[$12>>2]|0;
  29544. $14 = ($13|0)==(0);
  29545. if ($14) {
  29546. label = 6;
  29547. }
  29548. }
  29549. if ((label|0) == 6) {
  29550. HEAP32[$9>>2] = $2;
  29551. }
  29552. $15 = ((($0)) + 24|0);
  29553. $16 = HEAP32[$15>>2]|0;
  29554. $17 = ($16|0)>($1|0);
  29555. if ($17) {
  29556. label = 9;
  29557. } else {
  29558. $18 = ((($0)) + 4|0);
  29559. $19 = HEAP32[$18>>2]|0;
  29560. $20 = ($19|0)==(0);
  29561. if ($20) {
  29562. label = 9;
  29563. }
  29564. }
  29565. if ((label|0) == 9) {
  29566. HEAP32[$15>>2] = $1;
  29567. }
  29568. $21 = ((($0)) + 32|0);
  29569. $22 = HEAP32[$21>>2]|0;
  29570. $23 = ($22|0)>($2|0);
  29571. if (!($23)) {
  29572. $24 = ((($0)) + 4|0);
  29573. $25 = HEAP32[$24>>2]|0;
  29574. $26 = ($25|0)==(0);
  29575. if (!($26)) {
  29576. $27 = ((($0)) + 4|0);
  29577. HEAP32[$27>>2] = 1;
  29578. return;
  29579. }
  29580. }
  29581. HEAP32[$21>>2] = $2;
  29582. $27 = ((($0)) + 4|0);
  29583. HEAP32[$27>>2] = 1;
  29584. return;
  29585. }
  29586. function _stbtt_setvertex($0,$1,$2,$3,$4,$5) {
  29587. $0 = $0|0;
  29588. $1 = $1|0;
  29589. $2 = $2|0;
  29590. $3 = $3|0;
  29591. $4 = $4|0;
  29592. $5 = $5|0;
  29593. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  29594. sp = STACKTOP;
  29595. $6 = ((($0)) + 12|0);
  29596. HEAP8[$6>>0] = $1;
  29597. $7 = $2&65535;
  29598. HEAP16[$0>>1] = $7;
  29599. $8 = $3&65535;
  29600. $9 = ((($0)) + 2|0);
  29601. HEAP16[$9>>1] = $8;
  29602. $10 = $4&65535;
  29603. $11 = ((($0)) + 4|0);
  29604. HEAP16[$11>>1] = $10;
  29605. $12 = $5&65535;
  29606. $13 = ((($0)) + 6|0);
  29607. HEAP16[$13>>1] = $12;
  29608. return;
  29609. }
  29610. function _stbtt__cff_index_count($0) {
  29611. $0 = $0|0;
  29612. var $1 = 0, label = 0, sp = 0;
  29613. sp = STACKTOP;
  29614. _stbtt__buf_seek($0,0);
  29615. $1 = (_stbtt__buf_get($0,2)|0);
  29616. return ($1|0);
  29617. }
  29618. function _stbtt__new_buf($0,$1,$2) {
  29619. $0 = $0|0;
  29620. $1 = $1|0;
  29621. $2 = $2|0;
  29622. var $$sroa$4$0$$sroa_idx2 = 0, $$sroa$5$0$$sroa_idx4 = 0, $3 = 0, label = 0, sp = 0;
  29623. sp = STACKTOP;
  29624. $3 = ($2>>>0)<(1073741824);
  29625. if ($3) {
  29626. HEAP32[$0>>2] = $1;
  29627. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  29628. HEAP32[$$sroa$4$0$$sroa_idx2>>2] = 0;
  29629. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  29630. HEAP32[$$sroa$5$0$$sroa_idx4>>2] = $2;
  29631. return;
  29632. } else {
  29633. ___assert_fail((13074|0),(12565|0),1023,(13092|0));
  29634. // unreachable;
  29635. }
  29636. }
  29637. function _stbtt__buf_seek($0,$1) {
  29638. $0 = $0|0;
  29639. $1 = $1|0;
  29640. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $or$cond = 0, label = 0, sp = 0;
  29641. sp = STACKTOP;
  29642. $2 = ((($0)) + 8|0);
  29643. $3 = HEAP32[$2>>2]|0;
  29644. $4 = ($3|0)<($1|0);
  29645. $5 = ($1|0)<(0);
  29646. $or$cond = $5 | $4;
  29647. if ($or$cond) {
  29648. ___assert_fail((13107|0),(12565|0),1001,(13131|0));
  29649. // unreachable;
  29650. } else {
  29651. $6 = ((($0)) + 4|0);
  29652. HEAP32[$6>>2] = $1;
  29653. return;
  29654. }
  29655. }
  29656. function _stbtt__get_subrs($0,$1,$2) {
  29657. $0 = $0|0;
  29658. $1 = $1|0;
  29659. $2 = $2|0;
  29660. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  29661. sp = STACKTOP;
  29662. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  29663. $3 = sp + 20|0;
  29664. $4 = sp;
  29665. $5 = sp + 8|0;
  29666. HEAP32[$3>>2] = 0;
  29667. $6 = $4;
  29668. $7 = $6;
  29669. HEAP32[$7>>2] = 0;
  29670. $8 = (($6) + 4)|0;
  29671. $9 = $8;
  29672. HEAP32[$9>>2] = 0;
  29673. _stbtt__dict_get_ints($2,18,2,$4);
  29674. $10 = ((($4)) + 4|0);
  29675. $11 = HEAP32[$10>>2]|0;
  29676. $12 = ($11|0)==(0);
  29677. if (!($12)) {
  29678. $13 = HEAP32[$4>>2]|0;
  29679. $14 = ($13|0)==(0);
  29680. if (!($14)) {
  29681. _stbtt__buf_range($5,$1,$11,$13);
  29682. _stbtt__dict_get_ints($5,19,1,$3);
  29683. $15 = HEAP32[$3>>2]|0;
  29684. $16 = ($15|0)==(0);
  29685. if ($16) {
  29686. _stbtt__new_buf($0,0,0);
  29687. STACKTOP = sp;return;
  29688. } else {
  29689. $17 = HEAP32[$10>>2]|0;
  29690. $18 = (($17) + ($15))|0;
  29691. _stbtt__buf_seek($1,$18);
  29692. _stbtt__cff_get_index($0,$1);
  29693. STACKTOP = sp;return;
  29694. }
  29695. }
  29696. }
  29697. _stbtt__new_buf($0,0,0);
  29698. STACKTOP = sp;return;
  29699. }
  29700. function _stbtt__dict_get_ints($0,$1,$2,$3) {
  29701. $0 = $0|0;
  29702. $1 = $1|0;
  29703. $2 = $2|0;
  29704. $3 = $3|0;
  29705. var $$07 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  29706. sp = STACKTOP;
  29707. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  29708. $4 = sp;
  29709. _stbtt__dict_get($4,$0,$1);
  29710. $5 = ((($4)) + 4|0);
  29711. $6 = ($2|0)>(0);
  29712. if (!($6)) {
  29713. STACKTOP = sp;return;
  29714. }
  29715. $7 = ((($4)) + 8|0);
  29716. $$07 = 0;
  29717. while(1) {
  29718. $8 = HEAP32[$5>>2]|0;
  29719. $9 = HEAP32[$7>>2]|0;
  29720. $10 = ($8|0)<($9|0);
  29721. if (!($10)) {
  29722. label = 5;
  29723. break;
  29724. }
  29725. $11 = (_stbtt__cff_int($4)|0);
  29726. $12 = (($3) + ($$07<<2)|0);
  29727. HEAP32[$12>>2] = $11;
  29728. $13 = (($$07) + 1)|0;
  29729. $14 = ($13|0)<($2|0);
  29730. if ($14) {
  29731. $$07 = $13;
  29732. } else {
  29733. label = 5;
  29734. break;
  29735. }
  29736. }
  29737. if ((label|0) == 5) {
  29738. STACKTOP = sp;return;
  29739. }
  29740. }
  29741. function _stbtt__buf_range($0,$1,$2,$3) {
  29742. $0 = $0|0;
  29743. $1 = $1|0;
  29744. $2 = $2|0;
  29745. $3 = $3|0;
  29746. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  29747. sp = STACKTOP;
  29748. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  29749. $4 = sp;
  29750. _stbtt__new_buf($4,0,0);
  29751. $5 = $3 | $2;
  29752. $6 = ($5|0)<(0);
  29753. if (!($6)) {
  29754. $7 = ((($1)) + 8|0);
  29755. $8 = HEAP32[$7>>2]|0;
  29756. $9 = ($8|0)<($2|0);
  29757. $10 = (($8) - ($2))|0;
  29758. $11 = ($10|0)<($3|0);
  29759. $or$cond = $9 | $11;
  29760. if (!($or$cond)) {
  29761. $12 = HEAP32[$1>>2]|0;
  29762. $13 = (($12) + ($2)|0);
  29763. HEAP32[$4>>2] = $13;
  29764. $14 = ((($4)) + 8|0);
  29765. HEAP32[$14>>2] = $3;
  29766. ;HEAP32[$0>>2]=HEAP32[$4>>2]|0;HEAP32[$0+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$4+8>>2]|0;
  29767. STACKTOP = sp;return;
  29768. }
  29769. }
  29770. ;HEAP32[$0>>2]=HEAP32[$4>>2]|0;HEAP32[$0+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$4+8>>2]|0;
  29771. STACKTOP = sp;return;
  29772. }
  29773. function _stbtt__cff_get_index($0,$1) {
  29774. $0 = $0|0;
  29775. $1 = $1|0;
  29776. var $$off = 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;
  29777. sp = STACKTOP;
  29778. $2 = ((($1)) + 4|0);
  29779. $3 = HEAP32[$2>>2]|0;
  29780. $4 = (_stbtt__buf_get($1,2)|0);
  29781. $5 = ($4|0)==(0);
  29782. if ($5) {
  29783. $12 = HEAP32[$2>>2]|0;
  29784. $13 = (($12) - ($3))|0;
  29785. _stbtt__buf_range($0,$1,$3,$13);
  29786. return;
  29787. }
  29788. $6 = (_stbtt__buf_get8($1)|0);
  29789. $7 = $6&255;
  29790. $$off = (($6) + -1)<<24>>24;
  29791. $8 = ($$off&255)<(4);
  29792. if (!($8)) {
  29793. ___assert_fail((13147|0),(12565|0),1049,(13176|0));
  29794. // unreachable;
  29795. }
  29796. $9 = Math_imul($7, $4)|0;
  29797. _stbtt__buf_skip($1,$9);
  29798. $10 = (_stbtt__buf_get($1,$7)|0);
  29799. $11 = (($10) + -1)|0;
  29800. _stbtt__buf_skip($1,$11);
  29801. $12 = HEAP32[$2>>2]|0;
  29802. $13 = (($12) - ($3))|0;
  29803. _stbtt__buf_range($0,$1,$3,$13);
  29804. return;
  29805. }
  29806. function _stbtt__dict_get($0,$1,$2) {
  29807. $0 = $0|0;
  29808. $1 = $1|0;
  29809. $2 = $2|0;
  29810. var $$021 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0;
  29811. var sp = 0;
  29812. sp = STACKTOP;
  29813. _stbtt__buf_seek($1,0);
  29814. $3 = ((($1)) + 4|0);
  29815. $4 = ((($1)) + 8|0);
  29816. while(1) {
  29817. $5 = HEAP32[$3>>2]|0;
  29818. $6 = HEAP32[$4>>2]|0;
  29819. $7 = ($5|0)<($6|0);
  29820. if (!($7)) {
  29821. label = 9;
  29822. break;
  29823. }
  29824. $8 = (_stbtt__buf_peek8($1)|0);
  29825. $9 = ($8&255)>(27);
  29826. if ($9) {
  29827. while(1) {
  29828. _stbtt__cff_skip_operand($1);
  29829. $10 = (_stbtt__buf_peek8($1)|0);
  29830. $11 = ($10&255)>(27);
  29831. if (!($11)) {
  29832. break;
  29833. }
  29834. }
  29835. }
  29836. $12 = HEAP32[$3>>2]|0;
  29837. $13 = (_stbtt__buf_get8($1)|0);
  29838. $14 = $13&255;
  29839. $15 = ($13<<24>>24)==(12);
  29840. if ($15) {
  29841. $16 = (_stbtt__buf_get8($1)|0);
  29842. $17 = $16&255;
  29843. $18 = $17 | 256;
  29844. $$021 = $18;
  29845. } else {
  29846. $$021 = $14;
  29847. }
  29848. $19 = ($$021|0)==($2|0);
  29849. if ($19) {
  29850. label = 8;
  29851. break;
  29852. }
  29853. }
  29854. if ((label|0) == 8) {
  29855. $20 = (($12) - ($5))|0;
  29856. _stbtt__buf_range($0,$1,$5,$20);
  29857. return;
  29858. }
  29859. else if ((label|0) == 9) {
  29860. _stbtt__buf_range($0,$1,0,0);
  29861. return;
  29862. }
  29863. }
  29864. function _stbtt__buf_peek8($0) {
  29865. $0 = $0|0;
  29866. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  29867. sp = STACKTOP;
  29868. $1 = ((($0)) + 4|0);
  29869. $2 = HEAP32[$1>>2]|0;
  29870. $3 = ((($0)) + 8|0);
  29871. $4 = HEAP32[$3>>2]|0;
  29872. $5 = ($2|0)<($4|0);
  29873. if (!($5)) {
  29874. $$0 = 0;
  29875. return ($$0|0);
  29876. }
  29877. $6 = HEAP32[$0>>2]|0;
  29878. $7 = (($6) + ($2)|0);
  29879. $8 = HEAP8[$7>>0]|0;
  29880. $$0 = $8;
  29881. return ($$0|0);
  29882. }
  29883. function _stbtt__cff_skip_operand($0) {
  29884. $0 = $0|0;
  29885. var $$mask = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  29886. sp = STACKTOP;
  29887. $1 = (_stbtt__buf_peek8($0)|0);
  29888. $2 = ($1&255)>(27);
  29889. if (!($2)) {
  29890. ___assert_fail((13197|0),(12565|0),1070,(13206|0));
  29891. // unreachable;
  29892. }
  29893. $3 = ($1<<24>>24)==(30);
  29894. if (!($3)) {
  29895. (_stbtt__cff_int($0)|0);
  29896. return;
  29897. }
  29898. _stbtt__buf_skip($0,1);
  29899. $4 = ((($0)) + 4|0);
  29900. $5 = ((($0)) + 8|0);
  29901. while(1) {
  29902. $6 = HEAP32[$4>>2]|0;
  29903. $7 = HEAP32[$5>>2]|0;
  29904. $8 = ($6|0)<($7|0);
  29905. if (!($8)) {
  29906. label = 8;
  29907. break;
  29908. }
  29909. $9 = (_stbtt__buf_get8($0)|0);
  29910. $10 = $9&255;
  29911. $11 = $10 & 15;
  29912. $12 = ($11|0)==(15);
  29913. $$mask = $10 & 240;
  29914. $13 = ($$mask|0)==(240);
  29915. $or$cond = $12 | $13;
  29916. if ($or$cond) {
  29917. label = 8;
  29918. break;
  29919. }
  29920. }
  29921. if ((label|0) == 8) {
  29922. return;
  29923. }
  29924. }
  29925. function _stbtt__GetGlyphShapeTT($0,$1,$2) {
  29926. $0 = $0|0;
  29927. $1 = $1|0;
  29928. $2 = $2|0;
  29929. var $$0348453 = 0, $$0353439 = 0, $$0361449 = 0, $$0363450 = 0, $$0364448 = 0, $$0366447 = 0, $$0372451 = 0, $$0377437 = 0, $$0379436 = 0, $$0381446 = 0, $$0387435 = 0, $$0390434 = 0, $$0393433 = 0, $$0396432 = 0, $$0399431 = 0, $$0401430 = 0, $$0403440 = 0, $$0405443 = 0, $$0407429 = 0, $$0409428 = 0;
  29930. var $$1349 = 0, $$1354 = 0, $$1362 = 0, $$1365 = 0, $$1367445 = 0, $$1378 = 0, $$1380 = 0, $$1382 = 0, $$1388 = 0, $$1391 = 0, $$1394 = 0, $$1397 = 0, $$1400 = 0, $$1402 = 0, $$1404 = 0, $$1406 = 0, $$1408 = 0, $$1410 = 0, $$2368442 = 0, $$2374 = 0;
  29931. var $$2383444 = 0, $$2389 = 0, $$2392 = 0, $$2395 = 0, $$2398 = 0, $$3356 = 0, $$3369438 = 0, $$3384 = 0, $$4 = 0, $$4352 = 0, $$4370 = 0, $$4385441 = 0, $$5371 = 0, $$5386 = 0, $$5452 = 0, $$6 = 0, $$9 = 0, $$sink = 0, $$sroa$0$0 = 0.0, $$sroa$10$0 = 0.0;
  29932. var $$sroa$17$0 = 0.0, $$sroa$24$0 = 0.0, $$sroa$31$0 = 0.0, $$sroa$35$0 = 0.0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0;
  29933. 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;
  29934. 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;
  29935. var $150 = 0, $151 = 0, $152 = 0, $153 = 0, $154 = 0.0, $155 = 0, $156 = 0, $157 = 0.0, $158 = 0, $159 = 0.0, $16 = 0, $160 = 0, $161 = 0, $162 = 0.0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0.0, $168 = 0.0;
  29936. var $169 = 0, $17 = 0, $170 = 0, $171 = 0, $172 = 0, $173 = 0.0, $174 = 0.0, $175 = 0, $176 = 0, $177 = 0.0, $178 = 0.0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0.0, $184 = 0.0, $185 = 0, $186 = 0;
  29937. var $187 = 0.0, $188 = 0.0, $189 = 0, $19 = 0, $190 = 0, $191 = 0.0, $192 = 0.0, $193 = 0, $194 = 0, $195 = 0.0, $196 = 0.0, $197 = 0, $198 = 0.0, $199 = 0.0, $20 = 0, $200 = 0.0, $201 = 0.0, $202 = 0.0, $203 = 0.0, $204 = 0;
  29938. var $205 = 0, $206 = 0, $207 = 0, $208 = 0, $209 = 0, $21 = 0, $210 = 0, $211 = 0, $212 = 0.0, $213 = 0.0, $214 = 0.0, $215 = 0.0, $216 = 0.0, $217 = 0.0, $218 = 0.0, $219 = 0, $22 = 0, $220 = 0.0, $221 = 0.0, $222 = 0.0;
  29939. var $223 = 0.0, $224 = 0.0, $225 = 0, $226 = 0, $227 = 0, $228 = 0, $229 = 0, $23 = 0, $230 = 0.0, $231 = 0.0, $232 = 0.0, $233 = 0.0, $234 = 0.0, $235 = 0.0, $236 = 0.0, $237 = 0, $238 = 0.0, $239 = 0.0, $24 = 0, $240 = 0.0;
  29940. var $241 = 0.0, $242 = 0.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, $259 = 0;
  29941. var $26 = 0, $260 = 0, $261 = 0, $262 = 0, $263 = 0, $264 = 0, $265 = 0, $266 = 0, $267 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0;
  29942. var $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0;
  29943. var $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0;
  29944. var $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0;
  29945. var $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $exitcond = 0, $exitcond458 = 0, $exitcond459 = 0, $exitcond460 = 0, $sext = 0, $sext412 = 0, $sqrtf = 0.0, $sqrtf411 = 0.0, label = 0, sp = 0;
  29946. sp = STACKTOP;
  29947. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  29948. $3 = sp;
  29949. $4 = ((($0)) + 4|0);
  29950. $5 = HEAP32[$4>>2]|0;
  29951. $6 = (_stbtt__GetGlyfOffset($0,$1)|0);
  29952. HEAP32[$2>>2] = 0;
  29953. $7 = ($6|0)<(0);
  29954. if ($7) {
  29955. $$4 = 0;
  29956. STACKTOP = sp;return ($$4|0);
  29957. }
  29958. $8 = (($5) + ($6)|0);
  29959. $9 = (_ttSHORT($8)|0);
  29960. $10 = ($9<<16>>16)>(0);
  29961. L4: do {
  29962. if ($10) {
  29963. $11 = $9 << 16 >> 16;
  29964. $12 = ((($8)) + 10|0);
  29965. $13 = $11 << 1;
  29966. $14 = (($12) + ($13)|0);
  29967. $15 = (_ttUSHORT($14)|0);
  29968. $16 = ((($14)) + -2|0);
  29969. $17 = (_ttUSHORT($16)|0);
  29970. $18 = $17&65535;
  29971. $19 = $13 | 1;
  29972. $20 = (($19) + ($18))|0;
  29973. $21 = ($20*14)|0;
  29974. $22 = (_malloc($21)|0);
  29975. $23 = ($22|0)==(0|0);
  29976. if ($23) {
  29977. $$4 = 0;
  29978. STACKTOP = sp;return ($$4|0);
  29979. }
  29980. $24 = ((($14)) + 2|0);
  29981. $25 = $15&65535;
  29982. $26 = (($24) + ($25)|0);
  29983. $$0361449 = 0;$$0364448 = 0;$$0366447 = 0;$$0381446 = $26;
  29984. while(1) {
  29985. $27 = ($$0364448<<24>>24)==(0);
  29986. if ($27) {
  29987. $28 = ((($$0381446)) + 1|0);
  29988. $29 = HEAP8[$$0381446>>0]|0;
  29989. $30 = $29 & 8;
  29990. $31 = ($30<<24>>24)==(0);
  29991. if ($31) {
  29992. $$1362 = $29;$$1365 = 0;$$1382 = $28;
  29993. } else {
  29994. $32 = ((($$0381446)) + 2|0);
  29995. $33 = HEAP8[$28>>0]|0;
  29996. $$1362 = $29;$$1365 = $33;$$1382 = $32;
  29997. }
  29998. } else {
  29999. $34 = (($$0364448) + -1)<<24>>24;
  30000. $$1362 = $$0361449;$$1365 = $34;$$1382 = $$0381446;
  30001. }
  30002. $35 = (($$0366447) + ($13))|0;
  30003. $36 = (((($22) + (($35*14)|0)|0)) + 12|0);
  30004. HEAP8[$36>>0] = $$1362;
  30005. $37 = (($$0366447) + 1)|0;
  30006. $exitcond459 = ($$0366447|0)==($18|0);
  30007. if ($exitcond459) {
  30008. $$0405443 = 0;$$1367445 = 0;$$2383444 = $$1382;
  30009. break;
  30010. } else {
  30011. $$0361449 = $$1362;$$0364448 = $$1365;$$0366447 = $37;$$0381446 = $$1382;
  30012. }
  30013. }
  30014. while(1) {
  30015. $38 = (($$1367445) + ($13))|0;
  30016. $39 = (((($22) + (($38*14)|0)|0)) + 12|0);
  30017. $40 = HEAP8[$39>>0]|0;
  30018. $41 = $40&255;
  30019. $42 = $41 & 2;
  30020. $43 = ($42|0)==(0);
  30021. $44 = $41 & 16;
  30022. $45 = ($44|0)!=(0);
  30023. if ($43) {
  30024. if ($45) {
  30025. $$1406 = $$0405443;$$3384 = $$2383444;
  30026. } else {
  30027. $52 = HEAP8[$$2383444>>0]|0;
  30028. $53 = $52&255;
  30029. $54 = $53 << 8;
  30030. $55 = ((($$2383444)) + 1|0);
  30031. $56 = HEAP8[$55>>0]|0;
  30032. $57 = $56&255;
  30033. $58 = $54 | $57;
  30034. $sext412 = $58 << 16;
  30035. $59 = $sext412 >> 16;
  30036. $60 = (($59) + ($$0405443))|0;
  30037. $61 = ((($$2383444)) + 2|0);
  30038. $$1406 = $60;$$3384 = $61;
  30039. }
  30040. } else {
  30041. $46 = ((($$2383444)) + 1|0);
  30042. $47 = HEAP8[$$2383444>>0]|0;
  30043. $48 = $47&255;
  30044. $49 = (0 - ($48))|0;
  30045. $50 = $45 ? $48 : $49;
  30046. $51 = (($50) + ($$0405443))|0;
  30047. $$1406 = $51;$$3384 = $46;
  30048. }
  30049. $62 = $$1406&65535;
  30050. $63 = (($22) + (($38*14)|0)|0);
  30051. HEAP16[$63>>1] = $62;
  30052. $64 = (($$1367445) + 1)|0;
  30053. $exitcond458 = ($$1367445|0)==($18|0);
  30054. if ($exitcond458) {
  30055. $$0403440 = 0;$$2368442 = 0;$$4385441 = $$3384;
  30056. break;
  30057. } else {
  30058. $$0405443 = $$1406;$$1367445 = $64;$$2383444 = $$3384;
  30059. }
  30060. }
  30061. while(1) {
  30062. $65 = (($$2368442) + ($13))|0;
  30063. $66 = (((($22) + (($65*14)|0)|0)) + 12|0);
  30064. $67 = HEAP8[$66>>0]|0;
  30065. $68 = $67&255;
  30066. $69 = $68 & 4;
  30067. $70 = ($69|0)==(0);
  30068. $71 = $68 & 32;
  30069. $72 = ($71|0)!=(0);
  30070. if ($70) {
  30071. if ($72) {
  30072. $$1404 = $$0403440;$$5386 = $$4385441;
  30073. } else {
  30074. $79 = HEAP8[$$4385441>>0]|0;
  30075. $80 = $79&255;
  30076. $81 = $80 << 8;
  30077. $82 = ((($$4385441)) + 1|0);
  30078. $83 = HEAP8[$82>>0]|0;
  30079. $84 = $83&255;
  30080. $85 = $81 | $84;
  30081. $sext = $85 << 16;
  30082. $86 = $sext >> 16;
  30083. $87 = (($86) + ($$0403440))|0;
  30084. $88 = ((($$4385441)) + 2|0);
  30085. $$1404 = $87;$$5386 = $88;
  30086. }
  30087. } else {
  30088. $73 = ((($$4385441)) + 1|0);
  30089. $74 = HEAP8[$$4385441>>0]|0;
  30090. $75 = $74&255;
  30091. $76 = (0 - ($75))|0;
  30092. $77 = $72 ? $75 : $76;
  30093. $78 = (($77) + ($$0403440))|0;
  30094. $$1404 = $78;$$5386 = $73;
  30095. }
  30096. $89 = $$1404&65535;
  30097. $90 = (((($22) + (($65*14)|0)|0)) + 2|0);
  30098. HEAP16[$90>>1] = $89;
  30099. $91 = (($$2368442) + 1)|0;
  30100. $exitcond = ($$2368442|0)==($18|0);
  30101. if ($exitcond) {
  30102. $$0353439 = 0;$$0377437 = 0;$$0379436 = 0;$$0387435 = 0;$$0390434 = 0;$$0393433 = 0;$$0396432 = 0;$$0399431 = 0;$$0401430 = 0;$$0407429 = 0;$$0409428 = 0;$$3369438 = 0;
  30103. break;
  30104. } else {
  30105. $$0403440 = $$1404;$$2368442 = $91;$$4385441 = $$5386;
  30106. }
  30107. }
  30108. while(1) {
  30109. $92 = (($$3369438) + ($13))|0;
  30110. $93 = (((($22) + (($92*14)|0)|0)) + 12|0);
  30111. $94 = HEAP8[$93>>0]|0;
  30112. $95 = (($22) + (($92*14)|0)|0);
  30113. $96 = HEAP16[$95>>1]|0;
  30114. $97 = $96 << 16 >> 16;
  30115. $98 = (((($22) + (($92*14)|0)|0)) + 2|0);
  30116. $99 = HEAP16[$98>>1]|0;
  30117. $100 = $99 << 16 >> 16;
  30118. $101 = ($$0379436|0)==($$3369438|0);
  30119. $102 = $94 & 1;
  30120. $103 = ($102<<24>>24)!=(0);
  30121. do {
  30122. if ($101) {
  30123. $104 = ($$3369438|0)==(0);
  30124. if ($104) {
  30125. $$1354 = $$0353439;
  30126. } else {
  30127. $105 = (_stbtt__close_shape($22,$$0353439,$$0409428,$$0407429,$$0396432,$$0393433,$$0390434,$$0387435,$$0401430,$$0399431)|0);
  30128. $$1354 = $105;
  30129. }
  30130. $106 = $103 ^ 1;
  30131. $107 = $106&1;
  30132. do {
  30133. if ($103) {
  30134. $$1388 = $$0387435;$$1391 = $$0390434;$$1394 = $100;$$1397 = $97;$$4370 = $$3369438;
  30135. } else {
  30136. $108 = (($92) + 1)|0;
  30137. $109 = (((($22) + (($108*14)|0)|0)) + 12|0);
  30138. $110 = HEAP8[$109>>0]|0;
  30139. $111 = $110 & 1;
  30140. $112 = ($111<<24>>24)==(0);
  30141. $113 = (((($22) + (($108*14)|0)|0)) + 2|0);
  30142. $114 = HEAP16[$113>>1]|0;
  30143. $115 = (($22) + (($108*14)|0)|0);
  30144. $116 = HEAP16[$115>>1]|0;
  30145. $117 = $114 << 16 >> 16;
  30146. $118 = $116 << 16 >> 16;
  30147. if ($112) {
  30148. $119 = (($118) + ($97))|0;
  30149. $120 = $119 >> 1;
  30150. $121 = (($117) + ($100))|0;
  30151. $122 = $121 >> 1;
  30152. $$1388 = $100;$$1391 = $97;$$1394 = $122;$$1397 = $120;$$4370 = $$3369438;
  30153. break;
  30154. } else {
  30155. $123 = (($$3369438) + 1)|0;
  30156. $$1388 = $100;$$1391 = $97;$$1394 = $117;$$1397 = $118;$$4370 = $123;
  30157. break;
  30158. }
  30159. }
  30160. } while(0);
  30161. $124 = (($$1354) + 1)|0;
  30162. $125 = (($22) + (($$1354*14)|0)|0);
  30163. _stbtt_setvertex($125,1,$$1397,$$1394,0,0);
  30164. $126 = $$0377437 << 1;
  30165. $127 = (($12) + ($126)|0);
  30166. $128 = (_ttUSHORT($127)|0);
  30167. $129 = $128&65535;
  30168. $130 = (($129) + 1)|0;
  30169. $131 = (($$0377437) + 1)|0;
  30170. $$1378 = $131;$$1380 = $130;$$1400 = $$0399431;$$1402 = $$0401430;$$1408 = $107;$$1410 = 0;$$2389 = $$1388;$$2392 = $$1391;$$2395 = $$1394;$$2398 = $$1397;$$3356 = $124;$$5371 = $$4370;
  30171. } else {
  30172. $132 = ($$0409428|0)!=(0);
  30173. $133 = (($$0353439) + 1)|0;
  30174. $134 = (($22) + (($$0353439*14)|0)|0);
  30175. if (!($103)) {
  30176. if (!($132)) {
  30177. $$1378 = $$0377437;$$1380 = $$0379436;$$1400 = $100;$$1402 = $97;$$1408 = $$0407429;$$1410 = 1;$$2389 = $$0387435;$$2392 = $$0390434;$$2395 = $$0393433;$$2398 = $$0396432;$$3356 = $$0353439;$$5371 = $$3369438;
  30178. break;
  30179. }
  30180. $135 = (($100) + ($$0399431))|0;
  30181. $136 = $135 >> 1;
  30182. $137 = (($97) + ($$0401430))|0;
  30183. $138 = $137 >> 1;
  30184. _stbtt_setvertex($134,3,$138,$136,$$0401430,$$0399431);
  30185. $$1378 = $$0377437;$$1380 = $$0379436;$$1400 = $100;$$1402 = $97;$$1408 = $$0407429;$$1410 = 1;$$2389 = $$0387435;$$2392 = $$0390434;$$2395 = $$0393433;$$2398 = $$0396432;$$3356 = $133;$$5371 = $$3369438;
  30186. break;
  30187. }
  30188. if ($132) {
  30189. _stbtt_setvertex($134,3,$97,$100,$$0401430,$$0399431);
  30190. $$1378 = $$0377437;$$1380 = $$0379436;$$1400 = $$0399431;$$1402 = $$0401430;$$1408 = $$0407429;$$1410 = 0;$$2389 = $$0387435;$$2392 = $$0390434;$$2395 = $$0393433;$$2398 = $$0396432;$$3356 = $133;$$5371 = $$3369438;
  30191. break;
  30192. } else {
  30193. _stbtt_setvertex($134,2,$97,$100,0,0);
  30194. $$1378 = $$0377437;$$1380 = $$0379436;$$1400 = $$0399431;$$1402 = $$0401430;$$1408 = $$0407429;$$1410 = 0;$$2389 = $$0387435;$$2392 = $$0390434;$$2395 = $$0393433;$$2398 = $$0396432;$$3356 = $133;$$5371 = $$3369438;
  30195. break;
  30196. }
  30197. }
  30198. } while(0);
  30199. $139 = (($$5371) + 1)|0;
  30200. $140 = ($$5371|0)<($18|0);
  30201. if ($140) {
  30202. $$0353439 = $$3356;$$0377437 = $$1378;$$0379436 = $$1380;$$0387435 = $$2389;$$0390434 = $$2392;$$0393433 = $$2395;$$0396432 = $$2398;$$0399431 = $$1400;$$0401430 = $$1402;$$0407429 = $$1408;$$0409428 = $$1410;$$3369438 = $139;
  30203. } else {
  30204. break;
  30205. }
  30206. }
  30207. $141 = (_stbtt__close_shape($22,$$3356,$$1410,$$1408,$$2398,$$2395,$$2392,$$2389,$$1402,$$1400)|0);
  30208. $$4352 = $22;$$9 = $141;
  30209. } else {
  30210. $142 = ($9<<16>>16)==(-1);
  30211. if (!($142)) {
  30212. $264 = ($9<<16>>16)<(0);
  30213. if (!($264)) {
  30214. $$4352 = 0;$$9 = 0;
  30215. break;
  30216. }
  30217. ___assert_fail((13025|0),(12565|0),1724,(13344|0));
  30218. // unreachable;
  30219. }
  30220. $143 = ((($8)) + 10|0);
  30221. $$0348453 = 0;$$0372451 = $143;$$5452 = 0;$250 = 0;$255 = 0;$260 = 0;
  30222. while(1) {
  30223. HEAP32[$3>>2] = 0;
  30224. $144 = (_ttSHORT($$0372451)|0);
  30225. $145 = ((($$0372451)) + 2|0);
  30226. $146 = (_ttSHORT($145)|0);
  30227. $147 = ((($$0372451)) + 4|0);
  30228. $148 = $144&65535;
  30229. $149 = $148 & 2;
  30230. $150 = ($149|0)==(0);
  30231. if ($150) {
  30232. label = 42;
  30233. break;
  30234. }
  30235. $151 = $148 & 1;
  30236. $152 = ($151|0)==(0);
  30237. if ($152) {
  30238. $158 = HEAP8[$147>>0]|0;
  30239. $159 = (+($158<<24>>24));
  30240. $160 = ((($$0372451)) + 5|0);
  30241. $161 = HEAP8[$160>>0]|0;
  30242. $162 = (+($161<<24>>24));
  30243. $$sink = 6;$$sroa$31$0 = $159;$$sroa$35$0 = $162;
  30244. } else {
  30245. $153 = (_ttSHORT($147)|0);
  30246. $154 = (+($153<<16>>16));
  30247. $155 = ((($$0372451)) + 6|0);
  30248. $156 = (_ttSHORT($155)|0);
  30249. $157 = (+($156<<16>>16));
  30250. $$sink = 8;$$sroa$31$0 = $154;$$sroa$35$0 = $157;
  30251. }
  30252. $163 = (($$0372451) + ($$sink)|0);
  30253. $164 = $148 & 8;
  30254. $165 = ($164|0)==(0);
  30255. do {
  30256. if ($165) {
  30257. $170 = $148 & 64;
  30258. $171 = ($170|0)==(0);
  30259. if (!($171)) {
  30260. $172 = (_ttSHORT($163)|0);
  30261. $173 = (+($172<<16>>16));
  30262. $174 = $173 * 6.103515625E-5;
  30263. $175 = ((($163)) + 2|0);
  30264. $176 = (_ttSHORT($175)|0);
  30265. $177 = (+($176<<16>>16));
  30266. $178 = $177 * 6.103515625E-5;
  30267. $179 = ((($163)) + 4|0);
  30268. $$2374 = $179;$$sroa$0$0 = $174;$$sroa$10$0 = 0.0;$$sroa$17$0 = 0.0;$$sroa$24$0 = $178;
  30269. break;
  30270. }
  30271. $180 = $148 & 128;
  30272. $181 = ($180|0)==(0);
  30273. if ($181) {
  30274. $$2374 = $163;$$sroa$0$0 = 1.0;$$sroa$10$0 = 0.0;$$sroa$17$0 = 0.0;$$sroa$24$0 = 1.0;
  30275. } else {
  30276. $182 = (_ttSHORT($163)|0);
  30277. $183 = (+($182<<16>>16));
  30278. $184 = $183 * 6.103515625E-5;
  30279. $185 = ((($163)) + 2|0);
  30280. $186 = (_ttSHORT($185)|0);
  30281. $187 = (+($186<<16>>16));
  30282. $188 = $187 * 6.103515625E-5;
  30283. $189 = ((($163)) + 4|0);
  30284. $190 = (_ttSHORT($189)|0);
  30285. $191 = (+($190<<16>>16));
  30286. $192 = $191 * 6.103515625E-5;
  30287. $193 = ((($163)) + 6|0);
  30288. $194 = (_ttSHORT($193)|0);
  30289. $195 = (+($194<<16>>16));
  30290. $196 = $195 * 6.103515625E-5;
  30291. $197 = ((($163)) + 8|0);
  30292. $$2374 = $197;$$sroa$0$0 = $184;$$sroa$10$0 = $188;$$sroa$17$0 = $192;$$sroa$24$0 = $196;
  30293. }
  30294. } else {
  30295. $166 = (_ttSHORT($163)|0);
  30296. $167 = (+($166<<16>>16));
  30297. $168 = $167 * 6.103515625E-5;
  30298. $169 = ((($163)) + 2|0);
  30299. $$2374 = $169;$$sroa$0$0 = $168;$$sroa$10$0 = 0.0;$$sroa$17$0 = 0.0;$$sroa$24$0 = $168;
  30300. }
  30301. } while(0);
  30302. $198 = $$sroa$0$0 * $$sroa$0$0;
  30303. $199 = $$sroa$10$0 * $$sroa$10$0;
  30304. $200 = $199 + $198;
  30305. $sqrtf = (+Math_sqrt((+$200)));
  30306. $201 = $$sroa$17$0 * $$sroa$17$0;
  30307. $202 = $$sroa$24$0 * $$sroa$24$0;
  30308. $203 = $202 + $201;
  30309. $sqrtf411 = (+Math_sqrt((+$203)));
  30310. $204 = $146&65535;
  30311. $205 = (_stbtt_GetGlyphShape($0,$204,$3)|0);
  30312. $206 = ($205|0)>(0);
  30313. if ($206) {
  30314. $207 = HEAP32[$3>>2]|0;
  30315. $$0363450 = 0;
  30316. while(1) {
  30317. $208 = (($207) + (($$0363450*14)|0)|0);
  30318. $209 = HEAP16[$208>>1]|0;
  30319. $210 = (((($207) + (($$0363450*14)|0)|0)) + 2|0);
  30320. $211 = HEAP16[$210>>1]|0;
  30321. $212 = (+($209<<16>>16));
  30322. $213 = $$sroa$0$0 * $212;
  30323. $214 = (+($211<<16>>16));
  30324. $215 = $$sroa$17$0 * $214;
  30325. $216 = $213 + $215;
  30326. $217 = $$sroa$31$0 + $216;
  30327. $218 = $sqrtf * $217;
  30328. $219 = (~~(($218)));
  30329. HEAP16[$208>>1] = $219;
  30330. $220 = $$sroa$10$0 * $212;
  30331. $221 = $$sroa$24$0 * $214;
  30332. $222 = $220 + $221;
  30333. $223 = $$sroa$35$0 + $222;
  30334. $224 = $sqrtf411 * $223;
  30335. $225 = (~~(($224)));
  30336. HEAP16[$210>>1] = $225;
  30337. $226 = (((($207) + (($$0363450*14)|0)|0)) + 4|0);
  30338. $227 = HEAP16[$226>>1]|0;
  30339. $228 = (((($207) + (($$0363450*14)|0)|0)) + 6|0);
  30340. $229 = HEAP16[$228>>1]|0;
  30341. $230 = (+($227<<16>>16));
  30342. $231 = $$sroa$0$0 * $230;
  30343. $232 = (+($229<<16>>16));
  30344. $233 = $$sroa$17$0 * $232;
  30345. $234 = $231 + $233;
  30346. $235 = $$sroa$31$0 + $234;
  30347. $236 = $sqrtf * $235;
  30348. $237 = (~~(($236)));
  30349. HEAP16[$226>>1] = $237;
  30350. $238 = $$sroa$10$0 * $230;
  30351. $239 = $$sroa$24$0 * $232;
  30352. $240 = $238 + $239;
  30353. $241 = $$sroa$35$0 + $240;
  30354. $242 = $sqrtf411 * $241;
  30355. $243 = (~~(($242)));
  30356. HEAP16[$228>>1] = $243;
  30357. $244 = (($$0363450) + 1)|0;
  30358. $exitcond460 = ($244|0)==($205|0);
  30359. if ($exitcond460) {
  30360. break;
  30361. } else {
  30362. $$0363450 = $244;
  30363. }
  30364. }
  30365. $245 = (($205) + ($$5452))|0;
  30366. $246 = ($245*14)|0;
  30367. $247 = (_malloc($246)|0);
  30368. $248 = ($247|0)==(0|0);
  30369. if ($248) {
  30370. break;
  30371. }
  30372. $253 = ($$5452|0)>(0);
  30373. if ($253) {
  30374. $254 = ($$5452*14)|0;
  30375. _memcpy(($247|0),($255|0),($254|0))|0;
  30376. }
  30377. $256 = (($247) + (($$5452*14)|0)|0);
  30378. $257 = HEAP32[$3>>2]|0;
  30379. $258 = ($205*14)|0;
  30380. _memcpy(($256|0),($257|0),($258|0))|0;
  30381. $259 = ($$0348453|0)==(0|0);
  30382. if (!($259)) {
  30383. _free($260);
  30384. }
  30385. $261 = HEAP32[$3>>2]|0;
  30386. _free($261);
  30387. $$1349 = $247;$$6 = $245;$265 = $247;$266 = $247;$267 = $247;
  30388. } else {
  30389. $$1349 = $$0348453;$$6 = $$5452;$265 = $250;$266 = $260;$267 = $255;
  30390. }
  30391. $262 = $148 & 32;
  30392. $263 = ($262|0)==(0);
  30393. if ($263) {
  30394. $$4352 = $$1349;$$9 = $$6;
  30395. break L4;
  30396. } else {
  30397. $$0348453 = $$1349;$$0372451 = $$2374;$$5452 = $$6;$250 = $265;$255 = $267;$260 = $266;
  30398. }
  30399. }
  30400. if ((label|0) == 42) {
  30401. ___assert_fail((13025|0),(12565|0),1671,(13344|0));
  30402. // unreachable;
  30403. }
  30404. $249 = ($$0348453|0)==(0|0);
  30405. if (!($249)) {
  30406. _free($250);
  30407. }
  30408. $251 = HEAP32[$3>>2]|0;
  30409. $252 = ($251|0)==(0|0);
  30410. if (!($252)) {
  30411. _free($251);
  30412. }
  30413. $$4 = 0;
  30414. STACKTOP = sp;return ($$4|0);
  30415. }
  30416. } while(0);
  30417. HEAP32[$2>>2] = $$4352;
  30418. $$4 = $$9;
  30419. STACKTOP = sp;return ($$4|0);
  30420. }
  30421. function _stbtt__GetGlyphShapeT2($0,$1,$2) {
  30422. $0 = $0|0;
  30423. $1 = $1|0;
  30424. $2 = $2|0;
  30425. var $$0 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0;
  30426. var stop = 0;
  30427. sp = STACKTOP;
  30428. STACKTOP = STACKTOP + 96|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(96|0);
  30429. $3 = sp + 48|0;
  30430. $4 = sp;
  30431. $5 = ((($3)) + 4|0);
  30432. dest=$5; stop=dest+44|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  30433. HEAP32[$3>>2] = 1;
  30434. dest=$4; stop=dest+48|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  30435. $6 = (_stbtt__run_charstring($0,$1,$3)|0);
  30436. $7 = ($6|0)==(0);
  30437. if (!($7)) {
  30438. $8 = ((($3)) + 44|0);
  30439. $9 = HEAP32[$8>>2]|0;
  30440. $10 = ($9*14)|0;
  30441. $11 = (_malloc($10)|0);
  30442. HEAP32[$2>>2] = $11;
  30443. $12 = ((($4)) + 40|0);
  30444. HEAP32[$12>>2] = $11;
  30445. $13 = (_stbtt__run_charstring($0,$1,$4)|0);
  30446. $14 = ($13|0)==(0);
  30447. if (!($14)) {
  30448. $15 = ((($4)) + 44|0);
  30449. $16 = HEAP32[$15>>2]|0;
  30450. $17 = HEAP32[$8>>2]|0;
  30451. $18 = ($16|0)==($17|0);
  30452. if ($18) {
  30453. $$0 = $16;
  30454. STACKTOP = sp;return ($$0|0);
  30455. } else {
  30456. ___assert_fail((13271|0),(12565|0),2114,(13321|0));
  30457. // unreachable;
  30458. }
  30459. }
  30460. }
  30461. HEAP32[$2>>2] = 0;
  30462. $$0 = 0;
  30463. STACKTOP = sp;return ($$0|0);
  30464. }
  30465. function _stbtt__close_shape($0,$1,$2,$3,$4,$5,$6,$7,$8,$9) {
  30466. $0 = $0|0;
  30467. $1 = $1|0;
  30468. $2 = $2|0;
  30469. $3 = $3|0;
  30470. $4 = $4|0;
  30471. $5 = $5|0;
  30472. $6 = $6|0;
  30473. $7 = $7|0;
  30474. $8 = $8|0;
  30475. $9 = $9|0;
  30476. 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, label = 0, sp = 0;
  30477. sp = STACKTOP;
  30478. $10 = ($3|0)==(0);
  30479. $11 = ($2|0)!=(0);
  30480. $12 = (($1) + 1)|0;
  30481. $13 = (($0) + (($1*14)|0)|0);
  30482. if (!($10)) {
  30483. if ($11) {
  30484. $14 = (($9) + ($7))|0;
  30485. $15 = $14 >> 1;
  30486. $16 = (($8) + ($6))|0;
  30487. $17 = $16 >> 1;
  30488. _stbtt_setvertex($13,3,$17,$15,$8,$9);
  30489. $$0 = $12;
  30490. } else {
  30491. $$0 = $1;
  30492. }
  30493. $18 = (($$0) + 1)|0;
  30494. $19 = (($0) + (($$0*14)|0)|0);
  30495. _stbtt_setvertex($19,3,$4,$5,$6,$7);
  30496. $$1 = $18;
  30497. return ($$1|0);
  30498. }
  30499. if ($11) {
  30500. _stbtt_setvertex($13,3,$4,$5,$8,$9);
  30501. $$1 = $12;
  30502. return ($$1|0);
  30503. } else {
  30504. _stbtt_setvertex($13,2,$4,$5,0,0);
  30505. $$1 = $12;
  30506. return ($$1|0);
  30507. }
  30508. return (0)|0;
  30509. }
  30510. function _stbtt_InitFont_internal($0,$1) {
  30511. $0 = $0|0;
  30512. $1 = $1|0;
  30513. var $$0902 = 0, $$1 = 0, $$byval_copy1 = 0, $$byval_copy2 = 0, $$pr = 0, $$sink = 0, $10 = 0, $100 = 0, $101 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0;
  30514. 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;
  30515. var $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0;
  30516. var $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, $74 = 0, $75 = 0;
  30517. var $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, $92 = 0, $93 = 0;
  30518. var $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $exitcond = 0, $or$cond = 0, label = 0, sp = 0;
  30519. sp = STACKTOP;
  30520. STACKTOP = STACKTOP + 192|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(192|0);
  30521. $$byval_copy2 = sp + 172|0;
  30522. $$byval_copy1 = sp + 160|0;
  30523. $2 = sp + 148|0;
  30524. $3 = sp + 136|0;
  30525. $4 = sp + 124|0;
  30526. $5 = sp + 112|0;
  30527. $6 = sp + 108|0;
  30528. $7 = sp + 104|0;
  30529. $8 = sp + 100|0;
  30530. $9 = sp + 96|0;
  30531. $10 = sp + 84|0;
  30532. $11 = sp + 72|0;
  30533. $12 = sp + 60|0;
  30534. $13 = sp + 48|0;
  30535. $14 = sp + 36|0;
  30536. $15 = sp + 24|0;
  30537. $16 = sp + 12|0;
  30538. $17 = sp;
  30539. $18 = ((($0)) + 4|0);
  30540. HEAP32[$18>>2] = $1;
  30541. $19 = ((($0)) + 8|0);
  30542. HEAP32[$19>>2] = 0;
  30543. $20 = ((($0)) + 48|0);
  30544. _stbtt__new_buf($2,0,0);
  30545. ;HEAP32[$20>>2]=HEAP32[$2>>2]|0;HEAP32[$20+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$20+8>>2]=HEAP32[$2+8>>2]|0;
  30546. $21 = (_stbtt__find_table($1,13444)|0);
  30547. $22 = (_stbtt__find_table($1,13449)|0);
  30548. $23 = ((($0)) + 16|0);
  30549. HEAP32[$23>>2] = $22;
  30550. $24 = (_stbtt__find_table($1,13454)|0);
  30551. $25 = ((($0)) + 20|0);
  30552. HEAP32[$25>>2] = $24;
  30553. $26 = (_stbtt__find_table($1,13459)|0);
  30554. $27 = ((($0)) + 24|0);
  30555. HEAP32[$27>>2] = $26;
  30556. $28 = (_stbtt__find_table($1,13464)|0);
  30557. $29 = ((($0)) + 28|0);
  30558. HEAP32[$29>>2] = $28;
  30559. $30 = (_stbtt__find_table($1,13469)|0);
  30560. $31 = ((($0)) + 32|0);
  30561. HEAP32[$31>>2] = $30;
  30562. $32 = (_stbtt__find_table($1,13474)|0);
  30563. $33 = ((($0)) + 36|0);
  30564. HEAP32[$33>>2] = $32;
  30565. $34 = ($21|0)==(0);
  30566. if ($34) {
  30567. $$1 = 0;
  30568. STACKTOP = sp;return ($$1|0);
  30569. }
  30570. $35 = HEAP32[$25>>2]|0;
  30571. $36 = ($35|0)==(0);
  30572. if ($36) {
  30573. $$1 = 0;
  30574. STACKTOP = sp;return ($$1|0);
  30575. }
  30576. $37 = HEAP32[$29>>2]|0;
  30577. $38 = ($37|0)==(0);
  30578. if ($38) {
  30579. $$1 = 0;
  30580. STACKTOP = sp;return ($$1|0);
  30581. }
  30582. $39 = HEAP32[$31>>2]|0;
  30583. $40 = ($39|0)==(0);
  30584. if ($40) {
  30585. $$1 = 0;
  30586. STACKTOP = sp;return ($$1|0);
  30587. }
  30588. $41 = HEAP32[$27>>2]|0;
  30589. $42 = ($41|0)==(0);
  30590. L13: do {
  30591. if ($42) {
  30592. HEAP32[$6>>2] = 2;
  30593. HEAP32[$7>>2] = 0;
  30594. HEAP32[$8>>2] = 0;
  30595. HEAP32[$9>>2] = 0;
  30596. $45 = (_stbtt__find_table($1,13479)|0);
  30597. $46 = ($45|0)==(0);
  30598. do {
  30599. if (!($46)) {
  30600. $47 = ((($0)) + 96|0);
  30601. _stbtt__new_buf($10,0,0);
  30602. ;HEAP32[$47>>2]=HEAP32[$10>>2]|0;HEAP32[$47+4>>2]=HEAP32[$10+4>>2]|0;HEAP32[$47+8>>2]=HEAP32[$10+8>>2]|0;
  30603. $48 = ((($0)) + 108|0);
  30604. _stbtt__new_buf($11,0,0);
  30605. ;HEAP32[$48>>2]=HEAP32[$11>>2]|0;HEAP32[$48+4>>2]=HEAP32[$11+4>>2]|0;HEAP32[$48+8>>2]=HEAP32[$11+8>>2]|0;
  30606. $49 = (($1) + ($45)|0);
  30607. _stbtt__new_buf($12,$49,536870912);
  30608. ;HEAP32[$20>>2]=HEAP32[$12>>2]|0;HEAP32[$20+4>>2]=HEAP32[$12+4>>2]|0;HEAP32[$20+8>>2]=HEAP32[$12+8>>2]|0;
  30609. ;HEAP32[$3>>2]=HEAP32[$12>>2]|0;HEAP32[$3+4>>2]=HEAP32[$12+4>>2]|0;HEAP32[$3+8>>2]=HEAP32[$12+8>>2]|0;
  30610. _stbtt__buf_skip($3,2);
  30611. $50 = (_stbtt__buf_get8($3)|0);
  30612. $51 = $50&255;
  30613. _stbtt__buf_seek($3,$51);
  30614. _stbtt__cff_get_index($$byval_copy2,$3);
  30615. _stbtt__cff_get_index($5,$3);
  30616. ;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;
  30617. _stbtt__cff_index_get($4,$$byval_copy2,0);
  30618. _stbtt__cff_get_index($$byval_copy2,$3);
  30619. $52 = ((($0)) + 72|0);
  30620. _stbtt__cff_get_index($13,$3);
  30621. ;HEAP32[$52>>2]=HEAP32[$13>>2]|0;HEAP32[$52+4>>2]=HEAP32[$13+4>>2]|0;HEAP32[$52+8>>2]=HEAP32[$13+8>>2]|0;
  30622. _stbtt__dict_get_ints($4,17,1,$7);
  30623. _stbtt__dict_get_ints($4,262,1,$6);
  30624. _stbtt__dict_get_ints($4,292,1,$8);
  30625. _stbtt__dict_get_ints($4,293,1,$9);
  30626. $53 = ((($0)) + 84|0);
  30627. ;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;
  30628. ;HEAP32[$$byval_copy2>>2]=HEAP32[$4>>2]|0;HEAP32[$$byval_copy2+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$$byval_copy2+8>>2]=HEAP32[$4+8>>2]|0;
  30629. _stbtt__get_subrs($14,$$byval_copy1,$$byval_copy2);
  30630. ;HEAP32[$53>>2]=HEAP32[$14>>2]|0;HEAP32[$53+4>>2]=HEAP32[$14+4>>2]|0;HEAP32[$53+8>>2]=HEAP32[$14+8>>2]|0;
  30631. $54 = HEAP32[$6>>2]|0;
  30632. $55 = ($54|0)!=(2);
  30633. $56 = HEAP32[$7>>2]|0;
  30634. $57 = ($56|0)==(0);
  30635. $or$cond = $55 | $57;
  30636. if (!($or$cond)) {
  30637. $58 = HEAP32[$8>>2]|0;
  30638. $59 = ($58|0)==(0);
  30639. if (!($59)) {
  30640. $60 = HEAP32[$9>>2]|0;
  30641. $61 = ($60|0)==(0);
  30642. if ($61) {
  30643. break;
  30644. }
  30645. _stbtt__buf_seek($3,$58);
  30646. _stbtt__cff_get_index($15,$3);
  30647. ;HEAP32[$47>>2]=HEAP32[$15>>2]|0;HEAP32[$47+4>>2]=HEAP32[$15+4>>2]|0;HEAP32[$47+8>>2]=HEAP32[$15+8>>2]|0;
  30648. $62 = HEAP32[$9>>2]|0;
  30649. $63 = ((($3)) + 8|0);
  30650. $64 = HEAP32[$63>>2]|0;
  30651. $65 = (($64) - ($62))|0;
  30652. _stbtt__buf_range($16,$3,$62,$65);
  30653. ;HEAP32[$48>>2]=HEAP32[$16>>2]|0;HEAP32[$48+4>>2]=HEAP32[$16+4>>2]|0;HEAP32[$48+8>>2]=HEAP32[$16+8>>2]|0;
  30654. }
  30655. $66 = HEAP32[$7>>2]|0;
  30656. _stbtt__buf_seek($3,$66);
  30657. $67 = ((($0)) + 60|0);
  30658. _stbtt__cff_get_index($17,$3);
  30659. ;HEAP32[$67>>2]=HEAP32[$17>>2]|0;HEAP32[$67+4>>2]=HEAP32[$17+4>>2]|0;HEAP32[$67+8>>2]=HEAP32[$17+8>>2]|0;
  30660. break L13;
  30661. }
  30662. }
  30663. } while(0);
  30664. $$1 = 0;
  30665. STACKTOP = sp;return ($$1|0);
  30666. } else {
  30667. $43 = HEAP32[$23>>2]|0;
  30668. $44 = ($43|0)==(0);
  30669. if ($44) {
  30670. $$1 = 0;
  30671. STACKTOP = sp;return ($$1|0);
  30672. }
  30673. }
  30674. } while(0);
  30675. $68 = (_stbtt__find_table($1,13484)|0);
  30676. $69 = ($68|0)==(0);
  30677. if ($69) {
  30678. $$sink = 65535;
  30679. } else {
  30680. $70 = (($1) + ($68)|0);
  30681. $71 = ((($70)) + 4|0);
  30682. $72 = (_ttUSHORT($71)|0);
  30683. $73 = $72&65535;
  30684. $$sink = $73;
  30685. }
  30686. $74 = ((($0)) + 12|0);
  30687. HEAP32[$74>>2] = $$sink;
  30688. $75 = (($1) + ($21)|0);
  30689. $76 = ((($75)) + 2|0);
  30690. $77 = (_ttUSHORT($76)|0);
  30691. $78 = $77&65535;
  30692. $79 = ((($0)) + 40|0);
  30693. HEAP32[$79>>2] = 0;
  30694. $80 = ($77<<16>>16)==(0);
  30695. if ($80) {
  30696. $$1 = 0;
  30697. STACKTOP = sp;return ($$1|0);
  30698. }
  30699. $81 = (($21) + 4)|0;
  30700. $$0902 = 0;
  30701. while(1) {
  30702. $82 = $$0902 << 3;
  30703. $83 = (($81) + ($82))|0;
  30704. $84 = (($1) + ($83)|0);
  30705. $85 = (_ttUSHORT($84)|0);
  30706. L35: do {
  30707. switch ($85<<16>>16) {
  30708. case 3: {
  30709. $86 = ((($84)) + 2|0);
  30710. $87 = (_ttUSHORT($86)|0);
  30711. switch ($87<<16>>16) {
  30712. case 10: case 1: {
  30713. break;
  30714. }
  30715. default: {
  30716. break L35;
  30717. }
  30718. }
  30719. $88 = ((($84)) + 4|0);
  30720. $89 = (_ttULONG($88)|0);
  30721. $90 = (($89) + ($21))|0;
  30722. HEAP32[$79>>2] = $90;
  30723. break;
  30724. }
  30725. case 0: {
  30726. $91 = ((($84)) + 4|0);
  30727. $92 = (_ttULONG($91)|0);
  30728. $93 = (($92) + ($21))|0;
  30729. HEAP32[$79>>2] = $93;
  30730. break;
  30731. }
  30732. default: {
  30733. }
  30734. }
  30735. } while(0);
  30736. $94 = (($$0902) + 1)|0;
  30737. $exitcond = ($94|0)==($78|0);
  30738. if ($exitcond) {
  30739. break;
  30740. } else {
  30741. $$0902 = $94;
  30742. }
  30743. }
  30744. $$pr = HEAP32[$79>>2]|0;
  30745. $95 = ($$pr|0)==(0);
  30746. if ($95) {
  30747. $$1 = 0;
  30748. STACKTOP = sp;return ($$1|0);
  30749. }
  30750. $96 = HEAP32[$25>>2]|0;
  30751. $97 = (($1) + ($96)|0);
  30752. $98 = ((($97)) + 50|0);
  30753. $99 = (_ttUSHORT($98)|0);
  30754. $100 = $99&65535;
  30755. $101 = ((($0)) + 44|0);
  30756. HEAP32[$101>>2] = $100;
  30757. $$1 = 1;
  30758. STACKTOP = sp;return ($$1|0);
  30759. }
  30760. function _stbtt__find_table($0,$1) {
  30761. $0 = $0|0;
  30762. $1 = $1|0;
  30763. var $$0312 = 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, $24 = 0, $25 = 0, $26 = 0;
  30764. 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, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0;
  30765. var sp = 0;
  30766. sp = STACKTOP;
  30767. $2 = ((($0)) + 4|0);
  30768. $3 = (_ttUSHORT($2)|0);
  30769. $4 = $3&65535;
  30770. $5 = ($3<<16>>16)==(0);
  30771. if ($5) {
  30772. $$2 = 0;
  30773. return ($$2|0);
  30774. }
  30775. $6 = HEAP8[$1>>0]|0;
  30776. $7 = $6 << 24 >> 24;
  30777. $8 = ((($1)) + 1|0);
  30778. $9 = ((($1)) + 2|0);
  30779. $10 = ((($1)) + 3|0);
  30780. $$0312 = 0;
  30781. while(1) {
  30782. $11 = $$0312 << 4;
  30783. $12 = $11 | 12;
  30784. $13 = (($0) + ($12)|0);
  30785. $14 = HEAP8[$13>>0]|0;
  30786. $15 = $14&255;
  30787. $16 = ($15|0)==($7|0);
  30788. if ($16) {
  30789. $17 = ((($13)) + 1|0);
  30790. $18 = HEAP8[$17>>0]|0;
  30791. $19 = $18&255;
  30792. $20 = HEAP8[$8>>0]|0;
  30793. $21 = $20 << 24 >> 24;
  30794. $22 = ($19|0)==($21|0);
  30795. if ($22) {
  30796. $23 = ((($13)) + 2|0);
  30797. $24 = HEAP8[$23>>0]|0;
  30798. $25 = $24&255;
  30799. $26 = HEAP8[$9>>0]|0;
  30800. $27 = $26 << 24 >> 24;
  30801. $28 = ($25|0)==($27|0);
  30802. if ($28) {
  30803. $29 = ((($13)) + 3|0);
  30804. $30 = HEAP8[$29>>0]|0;
  30805. $31 = $30&255;
  30806. $32 = HEAP8[$10>>0]|0;
  30807. $33 = $32 << 24 >> 24;
  30808. $34 = ($31|0)==($33|0);
  30809. if ($34) {
  30810. break;
  30811. }
  30812. }
  30813. }
  30814. }
  30815. $37 = (($$0312) + 1)|0;
  30816. $38 = ($37|0)<($4|0);
  30817. if ($38) {
  30818. $$0312 = $37;
  30819. } else {
  30820. $$2 = 0;
  30821. label = 9;
  30822. break;
  30823. }
  30824. }
  30825. if ((label|0) == 9) {
  30826. return ($$2|0);
  30827. }
  30828. $35 = ((($13)) + 8|0);
  30829. $36 = (_ttULONG($35)|0);
  30830. $$2 = $36;
  30831. return ($$2|0);
  30832. }
  30833. function _DrawTextEx($0,$1,$2,$3,$4,$5) {
  30834. $0 = $0|0;
  30835. $1 = $1|0;
  30836. $2 = $2|0;
  30837. $3 = +$3;
  30838. $4 = $4|0;
  30839. $5 = $5|0;
  30840. 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;
  30841. 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;
  30842. 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;
  30843. 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;
  30844. 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;
  30845. sp = STACKTOP;
  30846. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  30847. $$byval_copy5 = sp + 88|0;
  30848. $$byval_copy4 = sp + 80|0;
  30849. $$byval_copy3 = sp + 64|0;
  30850. $$byval_copy2 = sp + 48|0;
  30851. $$byval_copy1 = sp + 24|0;
  30852. $6 = sp + 8|0;
  30853. $7 = sp;
  30854. $8 = (_strlen($1)|0);
  30855. $9 = ((($0)) + 20|0);
  30856. $10 = HEAP32[$9>>2]|0;
  30857. $11 = (+($10|0));
  30858. $12 = $3 / $11;
  30859. $13 = ($8|0)>(0);
  30860. if (!($13)) {
  30861. STACKTOP = sp;return;
  30862. }
  30863. $14 = ((($0)) + 28|0);
  30864. $15 = +HEAPF32[$2>>2];
  30865. $16 = ((($6)) + 4|0);
  30866. $17 = ((($2)) + 4|0);
  30867. $18 = ((($6)) + 8|0);
  30868. $19 = ((($6)) + 12|0);
  30869. $20 = ((($7)) + 4|0);
  30870. $21 = (+($4|0));
  30871. $$04954 = 0;$$05153 = 0;$$055 = 0;
  30872. while(1) {
  30873. $22 = (($1) + ($$055)|0);
  30874. $23 = HEAP8[$22>>0]|0;
  30875. switch ($23<<24>>24) {
  30876. case 10: {
  30877. $24 = HEAP32[$9>>2]|0;
  30878. $25 = (($24|0) / 2)&-1;
  30879. $26 = (($25) + ($24))|0;
  30880. $27 = (+($26|0));
  30881. $28 = $12 * $27;
  30882. $29 = (~~(($28)));
  30883. $30 = (($29) + ($$05153))|0;
  30884. $$150 = 0;$$152 = $30;$$2 = $$055;
  30885. break;
  30886. }
  30887. case -62: {
  30888. $31 = (($$055) + 1)|0;
  30889. $32 = (($1) + ($31)|0);
  30890. $33 = HEAP8[$32>>0]|0;
  30891. $34 = $33&255;
  30892. $$1 = $31;$$sink = $34;
  30893. label = 9;
  30894. break;
  30895. }
  30896. case -61: {
  30897. $35 = (($$055) + 1)|0;
  30898. $36 = (($1) + ($35)|0);
  30899. $37 = HEAP8[$36>>0]|0;
  30900. $38 = $37&255;
  30901. $39 = (($38) + 64)|0;
  30902. $$1 = $35;$$sink = $39;
  30903. label = 9;
  30904. break;
  30905. }
  30906. default: {
  30907. $40 = $23 << 24 >> 24;
  30908. $$1 = $$055;$$sink = $40;
  30909. label = 9;
  30910. }
  30911. }
  30912. do {
  30913. if ((label|0) == 9) {
  30914. label = 0;
  30915. ;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;
  30916. $41 = (_GetCharIndex($$byval_copy5,$$sink)|0);
  30917. $42 = HEAP32[$14>>2]|0;
  30918. $43 = (((($42) + ($41<<5)|0)) + 4|0);
  30919. $44 = (+($$04954|0));
  30920. $45 = $44 + $15;
  30921. $46 = (((($42) + ($41<<5)|0)) + 20|0);
  30922. $47 = HEAP32[$46>>2]|0;
  30923. $48 = (+($47|0));
  30924. $49 = $12 * $48;
  30925. $50 = $45 + $49;
  30926. $51 = (~~(($50)));
  30927. HEAP32[$6>>2] = $51;
  30928. $52 = +HEAPF32[$17>>2];
  30929. $53 = (+($$05153|0));
  30930. $54 = $53 + $52;
  30931. $55 = (((($42) + ($41<<5)|0)) + 24|0);
  30932. $56 = HEAP32[$55>>2]|0;
  30933. $57 = (+($56|0));
  30934. $58 = $12 * $57;
  30935. $59 = $54 + $58;
  30936. $60 = (~~(($59)));
  30937. HEAP32[$16>>2] = $60;
  30938. $61 = (((($42) + ($41<<5)|0)) + 12|0);
  30939. $62 = HEAP32[$61>>2]|0;
  30940. $63 = (+($62|0));
  30941. $64 = $12 * $63;
  30942. $65 = (~~(($64)));
  30943. HEAP32[$18>>2] = $65;
  30944. $66 = (((($42) + ($41<<5)|0)) + 16|0);
  30945. $67 = HEAP32[$66>>2]|0;
  30946. $68 = (+($67|0));
  30947. $69 = $12 * $68;
  30948. $70 = (~~(($69)));
  30949. HEAP32[$19>>2] = $70;
  30950. HEAPF32[$7>>2] = 0.0;
  30951. HEAPF32[$20>>2] = 0.0;
  30952. ;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;
  30953. ;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;
  30954. ;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;
  30955. ;HEAP32[$$byval_copy4>>2]=HEAP32[$7>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[$7+4>>2]|0;
  30956. ;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;
  30957. _DrawTexturePro($$byval_copy1,$$byval_copy2,$$byval_copy3,$$byval_copy4,0.0,$$byval_copy5);
  30958. $71 = HEAP32[$14>>2]|0;
  30959. $72 = (((($71) + ($41<<5)|0)) + 28|0);
  30960. $73 = HEAP32[$72>>2]|0;
  30961. $74 = ($73|0)==(0);
  30962. if ($74) {
  30963. $75 = (((($71) + ($41<<5)|0)) + 12|0);
  30964. $76 = HEAP32[$75>>2]|0;
  30965. $77 = (+($76|0));
  30966. $78 = $12 * $77;
  30967. $79 = $21 + $78;
  30968. $80 = (~~(($79)));
  30969. $81 = (($80) + ($$04954))|0;
  30970. $$150 = $81;$$152 = $$05153;$$2 = $$1;
  30971. break;
  30972. } else {
  30973. $82 = (+($73|0));
  30974. $83 = $12 * $82;
  30975. $84 = $21 + $83;
  30976. $85 = (~~(($84)));
  30977. $86 = (($85) + ($$04954))|0;
  30978. $$150 = $86;$$152 = $$05153;$$2 = $$1;
  30979. break;
  30980. }
  30981. }
  30982. } while(0);
  30983. $87 = (($$2) + 1)|0;
  30984. $88 = ($87|0)<($8|0);
  30985. if ($88) {
  30986. $$04954 = $$150;$$05153 = $$152;$$055 = $87;
  30987. } else {
  30988. break;
  30989. }
  30990. }
  30991. STACKTOP = sp;return;
  30992. }
  30993. function _emscripten_GetProcAddress($0) {
  30994. $0 = $0|0;
  30995. 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;
  30996. 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;
  30997. 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;
  30998. 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;
  30999. 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;
  31000. 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;
  31001. 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;
  31002. 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;
  31003. 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;
  31004. 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;
  31005. 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;
  31006. 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;
  31007. 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;
  31008. 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;
  31009. 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;
  31010. 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;
  31011. 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;
  31012. 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;
  31013. 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;
  31014. 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;
  31015. 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;
  31016. 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;
  31017. 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;
  31018. 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;
  31019. 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;
  31020. 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;
  31021. 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;
  31022. 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;
  31023. sp = STACKTOP;
  31024. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  31025. $1 = sp + 12|0;
  31026. $2 = sp + 8|0;
  31027. $3 = sp + 4|0;
  31028. $4 = sp;
  31029. HEAP32[$2>>2] = $0;
  31030. $5 = HEAP32[$2>>2]|0;
  31031. $6 = (_strlen($5)|0);
  31032. $7 = (($6) + 1)|0;
  31033. $8 = (_malloc($7)|0);
  31034. HEAP32[$3>>2] = $8;
  31035. $9 = HEAP32[$3>>2]|0;
  31036. $10 = HEAP32[$2>>2]|0;
  31037. (_strcpy($9,$10)|0);
  31038. $11 = HEAP32[$3>>2]|0;
  31039. $12 = (_strstr($11,13489)|0);
  31040. HEAP32[$4>>2] = $12;
  31041. $13 = HEAP32[$4>>2]|0;
  31042. $14 = ($13|0)!=(0|0);
  31043. if ($14) {
  31044. $15 = HEAP32[$4>>2]|0;
  31045. HEAP8[$15>>0] = 0;
  31046. }
  31047. $16 = HEAP32[$3>>2]|0;
  31048. $17 = (_strstr($16,13493)|0);
  31049. HEAP32[$4>>2] = $17;
  31050. $18 = HEAP32[$4>>2]|0;
  31051. $19 = ($18|0)!=(0|0);
  31052. if ($19) {
  31053. $20 = HEAP32[$4>>2]|0;
  31054. HEAP8[$20>>0] = 0;
  31055. }
  31056. $21 = HEAP32[$3>>2]|0;
  31057. $22 = (_strstr($21,13497)|0);
  31058. HEAP32[$4>>2] = $22;
  31059. $23 = HEAP32[$4>>2]|0;
  31060. $24 = ($23|0)!=(0|0);
  31061. if ($24) {
  31062. $25 = HEAP32[$4>>2]|0;
  31063. HEAP8[$25>>0] = 0;
  31064. }
  31065. $26 = HEAP32[$3>>2]|0;
  31066. $27 = (_strstr($26,13501)|0);
  31067. HEAP32[$4>>2] = $27;
  31068. $28 = HEAP32[$4>>2]|0;
  31069. $29 = ($28|0)!=(0|0);
  31070. if ($29) {
  31071. $30 = HEAP32[$4>>2]|0;
  31072. HEAP8[$30>>0] = 0;
  31073. }
  31074. $31 = HEAP32[$3>>2]|0;
  31075. $32 = (_strcmp($31,13507)|0);
  31076. $33 = ($32|0)!=(0);
  31077. do {
  31078. if ($33) {
  31079. $34 = HEAP32[$3>>2]|0;
  31080. $35 = (_strcmp($34,13545)|0);
  31081. $36 = ($35|0)!=(0);
  31082. if (!($36)) {
  31083. HEAP32[$3>>2] = 13564;
  31084. break;
  31085. }
  31086. $37 = HEAP32[$3>>2]|0;
  31087. $38 = (_strcmp($37,13577)|0);
  31088. $39 = ($38|0)!=(0);
  31089. if (!($39)) {
  31090. HEAP32[$3>>2] = 13598;
  31091. break;
  31092. }
  31093. $40 = HEAP32[$3>>2]|0;
  31094. $41 = (_strcmp($40,13613)|0);
  31095. $42 = ($41|0)!=(0);
  31096. if (!($42)) {
  31097. HEAP32[$3>>2] = 13628;
  31098. break;
  31099. }
  31100. $43 = HEAP32[$3>>2]|0;
  31101. $44 = (_strcmp($43,13643)|0);
  31102. $45 = ($44|0)!=(0);
  31103. if (!($45)) {
  31104. HEAP32[$3>>2] = 13658;
  31105. }
  31106. } else {
  31107. HEAP32[$3>>2] = 13529;
  31108. }
  31109. } while(0);
  31110. $46 = HEAP32[$3>>2]|0;
  31111. $47 = (_strcmp($46,13673)|0);
  31112. $48 = ($47|0)!=(0);
  31113. do {
  31114. if ($48) {
  31115. $49 = HEAP32[$3>>2]|0;
  31116. $50 = (_strcmp($49,13687)|0);
  31117. $51 = ($50|0)!=(0);
  31118. if (!($51)) {
  31119. HEAP32[$1>>2] = 3;
  31120. break;
  31121. }
  31122. $52 = HEAP32[$3>>2]|0;
  31123. $53 = (_strcmp($52,13699)|0);
  31124. $54 = ($53|0)!=(0);
  31125. if (!($54)) {
  31126. HEAP32[$1>>2] = 7;
  31127. break;
  31128. }
  31129. $55 = HEAP32[$3>>2]|0;
  31130. $56 = (_strcmp($55,13713)|0);
  31131. $57 = ($56|0)!=(0);
  31132. if (!($57)) {
  31133. HEAP32[$1>>2] = 8;
  31134. break;
  31135. }
  31136. $58 = HEAP32[$3>>2]|0;
  31137. $59 = (_strcmp($58,13725)|0);
  31138. $60 = ($59|0)!=(0);
  31139. if (!($60)) {
  31140. HEAP32[$1>>2] = 9;
  31141. break;
  31142. }
  31143. $61 = HEAP32[$3>>2]|0;
  31144. $62 = (_strcmp($61,13739)|0);
  31145. $63 = ($62|0)!=(0);
  31146. if (!($63)) {
  31147. HEAP32[$1>>2] = 10;
  31148. break;
  31149. }
  31150. $64 = HEAP32[$3>>2]|0;
  31151. $65 = (_strcmp($64,13753)|0);
  31152. $66 = ($65|0)!=(0);
  31153. if (!($66)) {
  31154. HEAP32[$1>>2] = 11;
  31155. break;
  31156. }
  31157. $67 = HEAP32[$3>>2]|0;
  31158. $68 = (_strcmp($67,13770)|0);
  31159. $69 = ($68|0)!=(0);
  31160. if (!($69)) {
  31161. HEAP32[$1>>2] = 1;
  31162. break;
  31163. }
  31164. $70 = HEAP32[$3>>2]|0;
  31165. $71 = (_strcmp($70,13793)|0);
  31166. $72 = ($71|0)!=(0);
  31167. if (!($72)) {
  31168. HEAP32[$1>>2] = 1;
  31169. break;
  31170. }
  31171. $73 = HEAP32[$3>>2]|0;
  31172. $74 = (_strcmp($73,13819)|0);
  31173. $75 = ($74|0)!=(0);
  31174. if (!($75)) {
  31175. HEAP32[$1>>2] = 2;
  31176. break;
  31177. }
  31178. $76 = HEAP32[$3>>2]|0;
  31179. $77 = (_strcmp($76,13832)|0);
  31180. $78 = ($77|0)!=(0);
  31181. if (!($78)) {
  31182. HEAP32[$1>>2] = 3;
  31183. break;
  31184. }
  31185. $79 = HEAP32[$3>>2]|0;
  31186. $80 = (_strcmp($79,13848)|0);
  31187. $81 = ($80|0)!=(0);
  31188. if (!($81)) {
  31189. HEAP32[$1>>2] = 1;
  31190. break;
  31191. }
  31192. $82 = HEAP32[$3>>2]|0;
  31193. $83 = (_strcmp($82,13861)|0);
  31194. $84 = ($83|0)!=(0);
  31195. if (!($84)) {
  31196. HEAP32[$1>>2] = 12;
  31197. break;
  31198. }
  31199. $85 = HEAP32[$3>>2]|0;
  31200. $86 = (_strcmp($85,13875)|0);
  31201. $87 = ($86|0)!=(0);
  31202. if (!($87)) {
  31203. HEAP32[$1>>2] = 2;
  31204. break;
  31205. }
  31206. $88 = HEAP32[$3>>2]|0;
  31207. $89 = (_strcmp($88,13895)|0);
  31208. $90 = ($89|0)!=(0);
  31209. if (!($90)) {
  31210. HEAP32[$1>>2] = 3;
  31211. break;
  31212. }
  31213. $91 = HEAP32[$3>>2]|0;
  31214. $92 = (_strcmp($91,13915)|0);
  31215. $93 = ($92|0)!=(0);
  31216. if (!($93)) {
  31217. HEAP32[$1>>2] = 4;
  31218. break;
  31219. }
  31220. $94 = HEAP32[$3>>2]|0;
  31221. $95 = (_strcmp($94,13932)|0);
  31222. $96 = ($95|0)!=(0);
  31223. if (!($96)) {
  31224. HEAP32[$1>>2] = 5;
  31225. break;
  31226. }
  31227. $97 = HEAP32[$3>>2]|0;
  31228. $98 = (_strcmp($97,13949)|0);
  31229. $99 = ($98|0)!=(0);
  31230. if (!($99)) {
  31231. HEAP32[$1>>2] = 4;
  31232. break;
  31233. }
  31234. $100 = HEAP32[$3>>2]|0;
  31235. $101 = (_strcmp($100,13961)|0);
  31236. $102 = ($101|0)!=(0);
  31237. if (!($102)) {
  31238. HEAP32[$1>>2] = 13;
  31239. break;
  31240. }
  31241. $103 = HEAP32[$3>>2]|0;
  31242. $104 = (_strcmp($103,13974)|0);
  31243. $105 = ($104|0)!=(0);
  31244. if (!($105)) {
  31245. HEAP32[$1>>2] = 14;
  31246. break;
  31247. }
  31248. $106 = HEAP32[$3>>2]|0;
  31249. $107 = (_strcmp($106,13990)|0);
  31250. $108 = ($107|0)!=(0);
  31251. if (!($108)) {
  31252. HEAP32[$1>>2] = 6;
  31253. break;
  31254. }
  31255. $109 = HEAP32[$3>>2]|0;
  31256. $110 = (_strcmp($109,14013)|0);
  31257. $111 = ($110|0)!=(0);
  31258. if (!($111)) {
  31259. HEAP32[$1>>2] = 2;
  31260. break;
  31261. }
  31262. $112 = HEAP32[$3>>2]|0;
  31263. $113 = (_strcmp($112,14026)|0);
  31264. $114 = ($113|0)!=(0);
  31265. if (!($114)) {
  31266. HEAP32[$1>>2] = 3;
  31267. break;
  31268. }
  31269. $115 = HEAP32[$3>>2]|0;
  31270. $116 = (_strcmp($115,14042)|0);
  31271. $117 = ($116|0)!=(0);
  31272. if (!($117)) {
  31273. HEAP32[$1>>2] = 5;
  31274. break;
  31275. }
  31276. $118 = HEAP32[$3>>2]|0;
  31277. $119 = (_strcmp($118,14053)|0);
  31278. $120 = ($119|0)!=(0);
  31279. if (!($120)) {
  31280. HEAP32[$1>>2] = 15;
  31281. break;
  31282. }
  31283. $121 = HEAP32[$3>>2]|0;
  31284. $122 = (_strcmp($121,14072)|0);
  31285. $123 = ($122|0)!=(0);
  31286. if (!($123)) {
  31287. HEAP32[$1>>2] = 16;
  31288. break;
  31289. }
  31290. $124 = HEAP32[$3>>2]|0;
  31291. $125 = (_strcmp($124,14094)|0);
  31292. $126 = ($125|0)!=(0);
  31293. if (!($126)) {
  31294. HEAP32[$1>>2] = 17;
  31295. break;
  31296. }
  31297. $127 = HEAP32[$3>>2]|0;
  31298. $128 = (_strcmp($127,14113)|0);
  31299. $129 = ($128|0)!=(0);
  31300. if (!($129)) {
  31301. HEAP32[$1>>2] = 7;
  31302. break;
  31303. }
  31304. $130 = HEAP32[$3>>2]|0;
  31305. $131 = (_strcmp($130,14142)|0);
  31306. $132 = ($131|0)!=(0);
  31307. if (!($132)) {
  31308. HEAP32[$1>>2] = 6;
  31309. break;
  31310. }
  31311. $133 = HEAP32[$3>>2]|0;
  31312. $134 = (_strcmp($133,14159)|0);
  31313. $135 = ($134|0)!=(0);
  31314. if (!($135)) {
  31315. HEAP32[$1>>2] = 8;
  31316. break;
  31317. }
  31318. $136 = HEAP32[$3>>2]|0;
  31319. $137 = (_strcmp($136,14174)|0);
  31320. $138 = ($137|0)!=(0);
  31321. if (!($138)) {
  31322. HEAP32[$1>>2] = 9;
  31323. break;
  31324. }
  31325. $139 = HEAP32[$3>>2]|0;
  31326. $140 = (_strcmp($139,14189)|0);
  31327. $141 = ($140|0)!=(0);
  31328. if (!($141)) {
  31329. HEAP32[$1>>2] = 1;
  31330. break;
  31331. }
  31332. $142 = HEAP32[$3>>2]|0;
  31333. $143 = (_strcmp($142,14210)|0);
  31334. $144 = ($143|0)!=(0);
  31335. if (!($144)) {
  31336. HEAP32[$1>>2] = 10;
  31337. break;
  31338. }
  31339. $145 = HEAP32[$3>>2]|0;
  31340. $146 = (_strcmp($145,14230)|0);
  31341. $147 = ($146|0)!=(0);
  31342. if (!($147)) {
  31343. HEAP32[$1>>2] = 11;
  31344. break;
  31345. }
  31346. $148 = HEAP32[$3>>2]|0;
  31347. $149 = (_strcmp($148,14250)|0);
  31348. $150 = ($149|0)!=(0);
  31349. if (!($150)) {
  31350. HEAP32[$1>>2] = 12;
  31351. break;
  31352. }
  31353. $151 = HEAP32[$3>>2]|0;
  31354. $152 = (_strcmp($151,14276)|0);
  31355. $153 = ($152|0)!=(0);
  31356. if (!($153)) {
  31357. HEAP32[$1>>2] = 2;
  31358. break;
  31359. }
  31360. $154 = HEAP32[$3>>2]|0;
  31361. $155 = (_strcmp($154,14295)|0);
  31362. $156 = ($155|0)!=(0);
  31363. if (!($156)) {
  31364. HEAP32[$1>>2] = 1;
  31365. break;
  31366. }
  31367. $157 = HEAP32[$3>>2]|0;
  31368. $158 = (_strcmp($157,14307)|0);
  31369. $159 = ($158|0)!=(0);
  31370. if (!($159)) {
  31371. HEAP32[$1>>2] = 3;
  31372. break;
  31373. }
  31374. $160 = HEAP32[$3>>2]|0;
  31375. $161 = (_strcmp($160,14319)|0);
  31376. $162 = ($161|0)!=(0);
  31377. if (!($162)) {
  31378. HEAP32[$1>>2] = 1;
  31379. break;
  31380. }
  31381. $163 = HEAP32[$3>>2]|0;
  31382. $164 = (_strcmp($163,14331)|0);
  31383. $165 = ($164|0)!=(0);
  31384. if (!($165)) {
  31385. HEAP32[$1>>2] = 1;
  31386. break;
  31387. }
  31388. $166 = HEAP32[$3>>2]|0;
  31389. $167 = (_strcmp($166,14343)|0);
  31390. $168 = ($167|0)!=(0);
  31391. if (!($168)) {
  31392. HEAP32[$1>>2] = 18;
  31393. break;
  31394. }
  31395. $169 = HEAP32[$3>>2]|0;
  31396. $170 = (_strcmp($169,14355)|0);
  31397. $171 = ($170|0)!=(0);
  31398. if (!($171)) {
  31399. HEAP32[$1>>2] = 13;
  31400. break;
  31401. }
  31402. $172 = HEAP32[$3>>2]|0;
  31403. $173 = (_strcmp($172,14367)|0);
  31404. $174 = ($173|0)!=(0);
  31405. if (!($174)) {
  31406. HEAP32[$1>>2] = 4;
  31407. break;
  31408. }
  31409. $175 = HEAP32[$3>>2]|0;
  31410. $176 = (_strcmp($175,14379)|0);
  31411. $177 = ($176|0)!=(0);
  31412. if (!($177)) {
  31413. HEAP32[$1>>2] = 2;
  31414. break;
  31415. }
  31416. $178 = HEAP32[$3>>2]|0;
  31417. $179 = (_strcmp($178,14391)|0);
  31418. $180 = ($179|0)!=(0);
  31419. if (!($180)) {
  31420. HEAP32[$1>>2] = 14;
  31421. break;
  31422. }
  31423. $181 = HEAP32[$3>>2]|0;
  31424. $182 = (_strcmp($181,14404)|0);
  31425. $183 = ($182|0)!=(0);
  31426. if (!($183)) {
  31427. HEAP32[$1>>2] = 15;
  31428. break;
  31429. }
  31430. $184 = HEAP32[$3>>2]|0;
  31431. $185 = (_strcmp($184,14417)|0);
  31432. $186 = ($185|0)!=(0);
  31433. if (!($186)) {
  31434. HEAP32[$1>>2] = 16;
  31435. break;
  31436. }
  31437. $187 = HEAP32[$3>>2]|0;
  31438. $188 = (_strcmp($187,14430)|0);
  31439. $189 = ($188|0)!=(0);
  31440. if (!($189)) {
  31441. HEAP32[$1>>2] = 17;
  31442. break;
  31443. }
  31444. $190 = HEAP32[$3>>2]|0;
  31445. $191 = (_strcmp($190,14443)|0);
  31446. $192 = ($191|0)!=(0);
  31447. if (!($192)) {
  31448. HEAP32[$1>>2] = 18;
  31449. break;
  31450. }
  31451. $193 = HEAP32[$3>>2]|0;
  31452. $194 = (_strcmp($193,14456)|0);
  31453. $195 = ($194|0)!=(0);
  31454. if (!($195)) {
  31455. HEAP32[$1>>2] = 19;
  31456. break;
  31457. }
  31458. $196 = HEAP32[$3>>2]|0;
  31459. $197 = (_strcmp($196,14469)|0);
  31460. $198 = ($197|0)!=(0);
  31461. if (!($198)) {
  31462. HEAP32[$1>>2] = 20;
  31463. break;
  31464. }
  31465. $199 = HEAP32[$3>>2]|0;
  31466. $200 = (_strcmp($199,14482)|0);
  31467. $201 = ($200|0)!=(0);
  31468. if (!($201)) {
  31469. HEAP32[$1>>2] = 21;
  31470. break;
  31471. }
  31472. $202 = HEAP32[$3>>2]|0;
  31473. $203 = (_strcmp($202,14495)|0);
  31474. $204 = ($203|0)!=(0);
  31475. if (!($204)) {
  31476. HEAP32[$1>>2] = 5;
  31477. break;
  31478. }
  31479. $205 = HEAP32[$3>>2]|0;
  31480. $206 = (_strcmp($205,14514)|0);
  31481. $207 = ($206|0)!=(0);
  31482. if (!($207)) {
  31483. HEAP32[$1>>2] = 6;
  31484. break;
  31485. }
  31486. $208 = HEAP32[$3>>2]|0;
  31487. $209 = (_strcmp($208,14533)|0);
  31488. $210 = ($209|0)!=(0);
  31489. if (!($210)) {
  31490. HEAP32[$1>>2] = 7;
  31491. break;
  31492. }
  31493. $211 = HEAP32[$3>>2]|0;
  31494. $212 = (_strcmp($211,14552)|0);
  31495. $213 = ($212|0)!=(0);
  31496. if (!($213)) {
  31497. HEAP32[$1>>2] = 19;
  31498. break;
  31499. }
  31500. $214 = HEAP32[$3>>2]|0;
  31501. $215 = (_strcmp($214,14565)|0);
  31502. $216 = ($215|0)!=(0);
  31503. if (!($216)) {
  31504. HEAP32[$1>>2] = 20;
  31505. break;
  31506. }
  31507. $217 = HEAP32[$3>>2]|0;
  31508. $218 = (_strcmp($217,14583)|0);
  31509. $219 = ($218|0)!=(0);
  31510. if (!($219)) {
  31511. HEAP32[$1>>2] = 21;
  31512. break;
  31513. }
  31514. $220 = HEAP32[$3>>2]|0;
  31515. $221 = (_strcmp($220,14601)|0);
  31516. $222 = ($221|0)!=(0);
  31517. if (!($222)) {
  31518. HEAP32[$1>>2] = 22;
  31519. break;
  31520. }
  31521. $223 = HEAP32[$3>>2]|0;
  31522. $224 = (_strcmp($223,14619)|0);
  31523. $225 = ($224|0)!=(0);
  31524. if (!($225)) {
  31525. HEAP32[$1>>2] = 23;
  31526. break;
  31527. }
  31528. $226 = HEAP32[$3>>2]|0;
  31529. $227 = (_strcmp($226,14637)|0);
  31530. $228 = ($227|0)!=(0);
  31531. if (!($228)) {
  31532. HEAP32[$1>>2] = 2;
  31533. break;
  31534. }
  31535. $229 = HEAP32[$3>>2]|0;
  31536. $230 = (_strcmp($229,14657)|0);
  31537. $231 = ($230|0)!=(0);
  31538. if (!($231)) {
  31539. HEAP32[$1>>2] = 3;
  31540. break;
  31541. }
  31542. $232 = HEAP32[$3>>2]|0;
  31543. $233 = (_strcmp($232,13598)|0);
  31544. $234 = ($233|0)!=(0);
  31545. if (!($234)) {
  31546. HEAP32[$1>>2] = 7;
  31547. break;
  31548. }
  31549. $235 = HEAP32[$3>>2]|0;
  31550. $236 = (_strcmp($235,14675)|0);
  31551. $237 = ($236|0)!=(0);
  31552. if (!($237)) {
  31553. HEAP32[$1>>2] = 1;
  31554. break;
  31555. }
  31556. $238 = HEAP32[$3>>2]|0;
  31557. $239 = (_strcmp($238,14690)|0);
  31558. $240 = ($239|0)!=(0);
  31559. if (!($240)) {
  31560. HEAP32[$1>>2] = 8;
  31561. break;
  31562. }
  31563. $241 = HEAP32[$3>>2]|0;
  31564. $242 = (_strcmp($241,14711)|0);
  31565. $243 = ($242|0)!=(0);
  31566. if (!($243)) {
  31567. HEAP32[$1>>2] = 9;
  31568. break;
  31569. }
  31570. $244 = HEAP32[$3>>2]|0;
  31571. $245 = (_strcmp($244,14726)|0);
  31572. $246 = ($245|0)!=(0);
  31573. if (!($246)) {
  31574. HEAP32[$1>>2] = 10;
  31575. break;
  31576. }
  31577. $247 = HEAP32[$3>>2]|0;
  31578. $248 = (_strcmp($247,14744)|0);
  31579. $249 = ($248|0)!=(0);
  31580. if (!($249)) {
  31581. HEAP32[$1>>2] = 2;
  31582. break;
  31583. }
  31584. $250 = HEAP32[$3>>2]|0;
  31585. $251 = (_strcmp($250,14760)|0);
  31586. $252 = ($251|0)!=(0);
  31587. if (!($252)) {
  31588. HEAP32[$1>>2] = 11;
  31589. break;
  31590. }
  31591. $253 = HEAP32[$3>>2]|0;
  31592. $254 = (_strcmp($253,14779)|0);
  31593. $255 = ($254|0)!=(0);
  31594. if (!($255)) {
  31595. HEAP32[$1>>2] = 22;
  31596. break;
  31597. }
  31598. $256 = HEAP32[$3>>2]|0;
  31599. $257 = (_strcmp($256,14793)|0);
  31600. $258 = ($257|0)!=(0);
  31601. if (!($258)) {
  31602. HEAP32[$1>>2] = 23;
  31603. break;
  31604. }
  31605. $259 = HEAP32[$3>>2]|0;
  31606. $260 = (_strcmp($259,14808)|0);
  31607. $261 = ($260|0)!=(0);
  31608. if (!($261)) {
  31609. HEAP32[$1>>2] = 8;
  31610. break;
  31611. }
  31612. $262 = HEAP32[$3>>2]|0;
  31613. $263 = (_strcmp($262,13529)|0);
  31614. $264 = ($263|0)!=(0);
  31615. if (!($264)) {
  31616. HEAP32[$1>>2] = 1;
  31617. break;
  31618. }
  31619. $265 = HEAP32[$3>>2]|0;
  31620. $266 = (_strcmp($265,14819)|0);
  31621. $267 = ($266|0)!=(0);
  31622. if (!($267)) {
  31623. HEAP32[$1>>2] = 3;
  31624. break;
  31625. }
  31626. $268 = HEAP32[$3>>2]|0;
  31627. $269 = (_strcmp($268,13628)|0);
  31628. $270 = ($269|0)!=(0);
  31629. if (!($270)) {
  31630. HEAP32[$1>>2] = 24;
  31631. break;
  31632. }
  31633. $271 = HEAP32[$3>>2]|0;
  31634. $272 = (_strcmp($271,13658)|0);
  31635. $273 = ($272|0)!=(0);
  31636. if (!($273)) {
  31637. HEAP32[$1>>2] = 25;
  31638. break;
  31639. }
  31640. $274 = HEAP32[$3>>2]|0;
  31641. $275 = (_strcmp($274,14835)|0);
  31642. $276 = ($275|0)!=(0);
  31643. if (!($276)) {
  31644. HEAP32[$1>>2] = 12;
  31645. break;
  31646. }
  31647. $277 = HEAP32[$3>>2]|0;
  31648. $278 = (_strcmp($277,14862)|0);
  31649. $279 = ($278|0)!=(0);
  31650. if (!($279)) {
  31651. HEAP32[$1>>2] = 4;
  31652. break;
  31653. }
  31654. $280 = HEAP32[$3>>2]|0;
  31655. $281 = (_strcmp($280,14876)|0);
  31656. $282 = ($281|0)!=(0);
  31657. if (!($282)) {
  31658. HEAP32[$1>>2] = 13;
  31659. break;
  31660. }
  31661. $283 = HEAP32[$3>>2]|0;
  31662. $284 = (_strcmp($283,13564)|0);
  31663. $285 = ($284|0)!=(0);
  31664. if (!($285)) {
  31665. HEAP32[$1>>2] = 5;
  31666. break;
  31667. }
  31668. $286 = HEAP32[$3>>2]|0;
  31669. $287 = (_strcmp($286,14896)|0);
  31670. $288 = ($287|0)!=(0);
  31671. if (!($288)) {
  31672. HEAP32[$1>>2] = 6;
  31673. break;
  31674. }
  31675. $289 = HEAP32[$3>>2]|0;
  31676. $290 = (_strcmp($289,14914)|0);
  31677. $291 = ($290|0)!=(0);
  31678. if (!($291)) {
  31679. HEAP32[$1>>2] = 9;
  31680. break;
  31681. }
  31682. $292 = HEAP32[$3>>2]|0;
  31683. $293 = (_strcmp($292,14926)|0);
  31684. $294 = ($293|0)!=(0);
  31685. if (!($294)) {
  31686. HEAP32[$1>>2] = 24;
  31687. break;
  31688. }
  31689. $295 = HEAP32[$3>>2]|0;
  31690. $296 = (_strcmp($295,14947)|0);
  31691. $297 = ($296|0)!=(0);
  31692. if (!($297)) {
  31693. HEAP32[$1>>2] = 26;
  31694. break;
  31695. }
  31696. $298 = HEAP32[$3>>2]|0;
  31697. $299 = (_strcmp($298,14965)|0);
  31698. $300 = ($299|0)!=(0);
  31699. if (!($300)) {
  31700. HEAP32[$1>>2] = 27;
  31701. break;
  31702. }
  31703. $301 = HEAP32[$3>>2]|0;
  31704. $302 = (_strcmp($301,14983)|0);
  31705. $303 = ($302|0)!=(0);
  31706. if (!($303)) {
  31707. HEAP32[$1>>2] = 28;
  31708. break;
  31709. }
  31710. $304 = HEAP32[$3>>2]|0;
  31711. $305 = (_strcmp($304,15004)|0);
  31712. $306 = ($305|0)!=(0);
  31713. if (!($306)) {
  31714. HEAP32[$1>>2] = 14;
  31715. break;
  31716. }
  31717. $307 = HEAP32[$3>>2]|0;
  31718. $308 = (_strcmp($307,15030)|0);
  31719. $309 = ($308|0)!=(0);
  31720. if (!($309)) {
  31721. HEAP32[$1>>2] = 3;
  31722. break;
  31723. }
  31724. $310 = HEAP32[$3>>2]|0;
  31725. $311 = (_strcmp($310,15053)|0);
  31726. $312 = ($311|0)!=(0);
  31727. if (!($312)) {
  31728. HEAP32[$1>>2] = 15;
  31729. break;
  31730. }
  31731. $313 = HEAP32[$3>>2]|0;
  31732. $314 = (_strcmp($313,15091)|0);
  31733. $315 = ($314|0)!=(0);
  31734. if (!($315)) {
  31735. HEAP32[$1>>2] = 10;
  31736. break;
  31737. }
  31738. $316 = HEAP32[$3>>2]|0;
  31739. $317 = (_strcmp($316,15107)|0);
  31740. $318 = ($317|0)!=(0);
  31741. if (!($318)) {
  31742. HEAP32[$1>>2] = 7;
  31743. break;
  31744. }
  31745. $319 = HEAP32[$3>>2]|0;
  31746. $320 = (_strcmp($319,15122)|0);
  31747. $321 = ($320|0)!=(0);
  31748. if (!($321)) {
  31749. HEAP32[$1>>2] = 25;
  31750. break;
  31751. }
  31752. $322 = HEAP32[$3>>2]|0;
  31753. $323 = (_strcmp($322,15145)|0);
  31754. $324 = ($323|0)!=(0);
  31755. if (!($324)) {
  31756. HEAP32[$1>>2] = 16;
  31757. break;
  31758. }
  31759. $325 = HEAP32[$3>>2]|0;
  31760. $326 = (_strcmp($325,15158)|0);
  31761. $327 = ($326|0)!=(0);
  31762. if (!($327)) {
  31763. HEAP32[$1>>2] = 29;
  31764. break;
  31765. }
  31766. $328 = HEAP32[$3>>2]|0;
  31767. $329 = (_strcmp($328,15172)|0);
  31768. $330 = ($329|0)!=(0);
  31769. if (!($330)) {
  31770. HEAP32[$1>>2] = 30;
  31771. break;
  31772. }
  31773. $331 = HEAP32[$3>>2]|0;
  31774. $332 = (_strcmp($331,15186)|0);
  31775. $333 = ($332|0)!=(0);
  31776. if (!($333)) {
  31777. HEAP32[$1>>2] = 1;
  31778. break;
  31779. }
  31780. $334 = HEAP32[$3>>2]|0;
  31781. $335 = (_strcmp($334,15206)|0);
  31782. $336 = ($335|0)!=(0);
  31783. if (!($336)) {
  31784. HEAP32[$1>>2] = 8;
  31785. break;
  31786. }
  31787. $337 = HEAP32[$3>>2]|0;
  31788. $338 = (_strcmp($337,15226)|0);
  31789. $339 = ($338|0)!=(0);
  31790. if (!($339)) {
  31791. HEAP32[$1>>2] = 17;
  31792. break;
  31793. }
  31794. $340 = HEAP32[$3>>2]|0;
  31795. $341 = (_strcmp($340,15242)|0);
  31796. $342 = ($341|0)!=(0);
  31797. if (!($342)) {
  31798. HEAP32[$1>>2] = 18;
  31799. break;
  31800. }
  31801. $343 = HEAP32[$3>>2]|0;
  31802. $344 = (_strcmp($343,15260)|0);
  31803. $345 = ($344|0)!=(0);
  31804. if (!($345)) {
  31805. HEAP32[$1>>2] = 26;
  31806. break;
  31807. }
  31808. $346 = HEAP32[$3>>2]|0;
  31809. $347 = (_strcmp($346,15276)|0);
  31810. $348 = ($347|0)!=(0);
  31811. if (!($348)) {
  31812. HEAP32[$1>>2] = 19;
  31813. break;
  31814. }
  31815. $349 = HEAP32[$3>>2]|0;
  31816. $350 = (_strcmp($349,15291)|0);
  31817. $351 = ($350|0)!=(0);
  31818. if (!($351)) {
  31819. HEAP32[$1>>2] = 9;
  31820. break;
  31821. }
  31822. $352 = HEAP32[$3>>2]|0;
  31823. $353 = (_strcmp($352,15313)|0);
  31824. $354 = ($353|0)!=(0);
  31825. if (!($354)) {
  31826. HEAP32[$1>>2] = 31;
  31827. break;
  31828. }
  31829. $355 = HEAP32[$3>>2]|0;
  31830. $356 = (_strcmp($355,15331)|0);
  31831. $357 = ($356|0)!=(0);
  31832. if (!($357)) {
  31833. HEAP32[$1>>2] = 32;
  31834. break;
  31835. }
  31836. $358 = HEAP32[$3>>2]|0;
  31837. $359 = (_strcmp($358,15352)|0);
  31838. $360 = ($359|0)!=(0);
  31839. if (!($360)) {
  31840. HEAP32[$1>>2] = 10;
  31841. break;
  31842. }
  31843. $361 = HEAP32[$3>>2]|0;
  31844. $362 = (_strcmp($361,15370)|0);
  31845. $363 = ($362|0)!=(0);
  31846. if (!($363)) {
  31847. HEAP32[$1>>2] = 11;
  31848. break;
  31849. }
  31850. $364 = HEAP32[$3>>2]|0;
  31851. $365 = (_strcmp($364,15383)|0);
  31852. $366 = ($365|0)!=(0);
  31853. if (!($366)) {
  31854. HEAP32[$1>>2] = 2;
  31855. break;
  31856. }
  31857. $367 = HEAP32[$3>>2]|0;
  31858. $368 = (_strcmp($367,15398)|0);
  31859. $369 = ($368|0)!=(0);
  31860. if (!($369)) {
  31861. HEAP32[$1>>2] = 12;
  31862. break;
  31863. }
  31864. $370 = HEAP32[$3>>2]|0;
  31865. $371 = (_strcmp($370,15412)|0);
  31866. $372 = ($371|0)!=(0);
  31867. if (!($372)) {
  31868. HEAP32[$1>>2] = 1;
  31869. break;
  31870. }
  31871. $373 = HEAP32[$3>>2]|0;
  31872. $374 = (_strcmp($373,15422)|0);
  31873. $375 = ($374|0)!=(0);
  31874. if (!($375)) {
  31875. HEAP32[$1>>2] = 1;
  31876. break;
  31877. }
  31878. $376 = HEAP32[$3>>2]|0;
  31879. $377 = (_strcmp($376,15432)|0);
  31880. $378 = ($377|0)!=(0);
  31881. if (!($378)) {
  31882. HEAP32[$1>>2] = 2;
  31883. break;
  31884. }
  31885. $379 = HEAP32[$3>>2]|0;
  31886. $380 = (_strcmp($379,15454)|0);
  31887. $381 = ($380|0)!=(0);
  31888. if (!($381)) {
  31889. HEAP32[$1>>2] = 13;
  31890. break;
  31891. }
  31892. $382 = HEAP32[$3>>2]|0;
  31893. $383 = (_strcmp($382,15480)|0);
  31894. $384 = ($383|0)!=(0);
  31895. if (!($384)) {
  31896. HEAP32[$1>>2] = 14;
  31897. break;
  31898. }
  31899. $385 = HEAP32[$3>>2]|0;
  31900. $386 = (_strcmp($385,15507)|0);
  31901. $387 = ($386|0)!=(0);
  31902. if (!($387)) {
  31903. HEAP32[$1>>2] = 27;
  31904. break;
  31905. }
  31906. $388 = HEAP32[$3>>2]|0;
  31907. $389 = (_strcmp($388,15520)|0);
  31908. $390 = ($389|0)!=(0);
  31909. if (!($390)) {
  31910. HEAP32[$1>>2] = 20;
  31911. break;
  31912. }
  31913. $391 = HEAP32[$3>>2]|0;
  31914. $392 = (_strcmp($391,15535)|0);
  31915. $393 = ($392|0)!=(0);
  31916. if (!($393)) {
  31917. HEAP32[$1>>2] = 4;
  31918. break;
  31919. }
  31920. $394 = HEAP32[$3>>2]|0;
  31921. $395 = (_strcmp($394,15550)|0);
  31922. $396 = ($395|0)!=(0);
  31923. if (!($396)) {
  31924. HEAP32[$1>>2] = 3;
  31925. break;
  31926. }
  31927. $397 = HEAP32[$3>>2]|0;
  31928. $398 = (_strcmp($397,15574)|0);
  31929. $399 = ($398|0)!=(0);
  31930. if (!($399)) {
  31931. HEAP32[$1>>2] = 2;
  31932. break;
  31933. }
  31934. $400 = HEAP32[$3>>2]|0;
  31935. $401 = (_strcmp($400,15585)|0);
  31936. $402 = ($401|0)!=(0);
  31937. if (!($402)) {
  31938. HEAP32[$1>>2] = 33;
  31939. break;
  31940. }
  31941. $403 = HEAP32[$3>>2]|0;
  31942. $404 = (_strcmp($403,15607)|0);
  31943. $405 = ($404|0)!=(0);
  31944. if (!($405)) {
  31945. HEAP32[$1>>2] = 21;
  31946. break;
  31947. }
  31948. $406 = HEAP32[$3>>2]|0;
  31949. $407 = (_strcmp($406,15629)|0);
  31950. $408 = ($407|0)!=(0);
  31951. if (!($408)) {
  31952. HEAP32[$1>>2] = 5;
  31953. break;
  31954. }
  31955. $409 = HEAP32[$3>>2]|0;
  31956. $410 = (_strcmp($409,15653)|0);
  31957. $411 = ($410|0)!=(0);
  31958. if (!($411)) {
  31959. HEAP32[$1>>2] = 4;
  31960. break;
  31961. }
  31962. $412 = HEAP32[$3>>2]|0;
  31963. $413 = (_strcmp($412,15662)|0);
  31964. $414 = ($413|0)!=(0);
  31965. if (!($414)) {
  31966. HEAP32[$1>>2] = 5;
  31967. break;
  31968. }
  31969. $415 = HEAP32[$3>>2]|0;
  31970. $416 = (_strcmp($415,15670)|0);
  31971. $417 = ($416|0)!=(0);
  31972. if (!($417)) {
  31973. HEAP32[$1>>2] = 1;
  31974. break;
  31975. }
  31976. $418 = HEAP32[$3>>2]|0;
  31977. $419 = (_strcmp($418,15683)|0);
  31978. $420 = ($419|0)!=(0);
  31979. if (!($420)) {
  31980. HEAP32[$1>>2] = 2;
  31981. break;
  31982. }
  31983. $421 = HEAP32[$3>>2]|0;
  31984. $422 = (_strcmp($421,15697)|0);
  31985. $423 = ($422|0)!=(0);
  31986. if (!($423)) {
  31987. HEAP32[$1>>2] = 15;
  31988. break;
  31989. }
  31990. $424 = HEAP32[$3>>2]|0;
  31991. $425 = (_strcmp($424,15709)|0);
  31992. $426 = ($425|0)!=(0);
  31993. if (!($426)) {
  31994. HEAP32[$1>>2] = 16;
  31995. break;
  31996. }
  31997. $427 = HEAP32[$3>>2]|0;
  31998. $428 = (_strcmp($427,15718)|0);
  31999. $429 = ($428|0)!=(0);
  32000. if (!($429)) {
  32001. HEAP32[$1>>2] = 17;
  32002. break;
  32003. }
  32004. $430 = HEAP32[$3>>2]|0;
  32005. $431 = (_strcmp($430,15728)|0);
  32006. $432 = ($431|0)!=(0);
  32007. if (!($432)) {
  32008. HEAP32[$1>>2] = 18;
  32009. break;
  32010. }
  32011. $433 = HEAP32[$3>>2]|0;
  32012. $434 = (_strcmp($433,15740)|0);
  32013. $435 = ($434|0)!=(0);
  32014. if (!($435)) {
  32015. HEAP32[$1>>2] = 19;
  32016. break;
  32017. }
  32018. $436 = HEAP32[$3>>2]|0;
  32019. $437 = (_strcmp($436,15751)|0);
  32020. $438 = ($437|0)!=(0);
  32021. if (!($438)) {
  32022. HEAP32[$1>>2] = 20;
  32023. break;
  32024. }
  32025. $439 = HEAP32[$3>>2]|0;
  32026. $440 = (_strcmp($439,15759)|0);
  32027. $441 = ($440|0)!=(0);
  32028. if (!($441)) {
  32029. HEAP32[$1>>2] = 3;
  32030. break;
  32031. }
  32032. $442 = HEAP32[$3>>2]|0;
  32033. $443 = (_strcmp($442,15771)|0);
  32034. $444 = ($443|0)!=(0);
  32035. if (!($444)) {
  32036. HEAP32[$1>>2] = 21;
  32037. break;
  32038. }
  32039. $445 = HEAP32[$3>>2]|0;
  32040. $446 = (_strcmp($445,15786)|0);
  32041. $447 = ($446|0)!=(0);
  32042. if (!($447)) {
  32043. HEAP32[$1>>2] = 22;
  32044. break;
  32045. }
  32046. $448 = HEAP32[$3>>2]|0;
  32047. $449 = (_strcmp($448,15798)|0);
  32048. $450 = ($449|0)!=(0);
  32049. if (!($450)) {
  32050. HEAP32[$1>>2] = 23;
  32051. break;
  32052. }
  32053. $451 = HEAP32[$3>>2]|0;
  32054. $452 = (_strcmp($451,15812)|0);
  32055. $453 = ($452|0)!=(0);
  32056. if (!($453)) {
  32057. HEAP32[$1>>2] = 11;
  32058. break;
  32059. }
  32060. $454 = HEAP32[$3>>2]|0;
  32061. $455 = (_strcmp($454,15837)|0);
  32062. $456 = ($455|0)!=(0);
  32063. if (!($456)) {
  32064. HEAP32[$1>>2] = 24;
  32065. break;
  32066. }
  32067. $457 = HEAP32[$3>>2]|0;
  32068. $458 = (_strcmp($457,15854)|0);
  32069. $459 = ($458|0)!=(0);
  32070. if (!($459)) {
  32071. HEAP32[$1>>2] = 25;
  32072. break;
  32073. }
  32074. $460 = HEAP32[$3>>2]|0;
  32075. $461 = (_strcmp($460,15870)|0);
  32076. $462 = ($461|0)!=(0);
  32077. if (!($462)) {
  32078. HEAP32[$1>>2] = 26;
  32079. break;
  32080. }
  32081. $463 = HEAP32[$3>>2]|0;
  32082. $464 = (_strcmp($463,15886)|0);
  32083. $465 = ($464|0)!=(0);
  32084. if (!($465)) {
  32085. HEAP32[$1>>2] = 12;
  32086. break;
  32087. }
  32088. $466 = HEAP32[$3>>2]|0;
  32089. $467 = (_strcmp($466,15898)|0);
  32090. $468 = ($467|0)!=(0);
  32091. if (!($468)) {
  32092. HEAP32[$1>>2] = 34;
  32093. break;
  32094. }
  32095. $469 = HEAP32[$3>>2]|0;
  32096. $470 = (_strcmp($469,15910)|0);
  32097. $471 = ($470|0)!=(0);
  32098. if (!($471)) {
  32099. HEAP32[$1>>2] = 35;
  32100. break;
  32101. }
  32102. $472 = HEAP32[$3>>2]|0;
  32103. $473 = (_strcmp($472,15934)|0);
  32104. $474 = ($473|0)!=(0);
  32105. if (!($474)) {
  32106. HEAP32[$1>>2] = 1;
  32107. break;
  32108. }
  32109. $475 = HEAP32[$3>>2]|0;
  32110. $476 = (_strcmp($475,15947)|0);
  32111. $477 = ($476|0)!=(0);
  32112. if (!($477)) {
  32113. HEAP32[$1>>2] = 2;
  32114. break;
  32115. }
  32116. $478 = HEAP32[$3>>2]|0;
  32117. $479 = (_strcmp($478,15961)|0);
  32118. $480 = ($479|0)!=(0);
  32119. if (!($480)) {
  32120. HEAP32[$1>>2] = 36;
  32121. break;
  32122. }
  32123. $481 = HEAP32[$3>>2]|0;
  32124. $482 = (_strcmp($481,15983)|0);
  32125. $483 = ($482|0)!=(0);
  32126. if (!($483)) {
  32127. HEAP32[$1>>2] = 37;
  32128. break;
  32129. }
  32130. $484 = HEAP32[$3>>2]|0;
  32131. $485 = (_strcmp($484,15990)|0);
  32132. $486 = ($485|0)!=(0);
  32133. if (!($486)) {
  32134. HEAP32[$1>>2] = 3;
  32135. break;
  32136. }
  32137. $487 = HEAP32[$3>>2]|0;
  32138. $488 = (_strcmp($487,16006)|0);
  32139. $489 = ($488|0)!=(0);
  32140. if (!($489)) {
  32141. HEAP32[$1>>2] = 2;
  32142. break;
  32143. }
  32144. $490 = HEAP32[$3>>2]|0;
  32145. $491 = (_strcmp($490,16023)|0);
  32146. $492 = ($491|0)!=(0);
  32147. if (!($492)) {
  32148. HEAP32[$1>>2] = 1;
  32149. break;
  32150. }
  32151. $493 = HEAP32[$3>>2]|0;
  32152. $494 = (_strcmp($493,16040)|0);
  32153. $495 = ($494|0)!=(0);
  32154. if (!($495)) {
  32155. HEAP32[$1>>2] = 28;
  32156. break;
  32157. }
  32158. $496 = HEAP32[$3>>2]|0;
  32159. $497 = (_strcmp($496,16056)|0);
  32160. $498 = ($497|0)!=(0);
  32161. if (!($498)) {
  32162. HEAP32[$1>>2] = 1;
  32163. break;
  32164. }
  32165. $499 = HEAP32[$3>>2]|0;
  32166. $500 = (_strcmp($499,16072)|0);
  32167. $501 = ($500|0)!=(0);
  32168. if (!($501)) {
  32169. HEAP32[$1>>2] = 4;
  32170. break;
  32171. }
  32172. $502 = HEAP32[$3>>2]|0;
  32173. $503 = (_strcmp($502,16089)|0);
  32174. $504 = ($503|0)!=(0);
  32175. if (!($504)) {
  32176. HEAP32[$1>>2] = 29;
  32177. break;
  32178. }
  32179. $505 = HEAP32[$3>>2]|0;
  32180. $506 = (_strcmp($505,16103)|0);
  32181. $507 = ($506|0)!=(0);
  32182. if (!($507)) {
  32183. HEAP32[$1>>2] = 30;
  32184. break;
  32185. }
  32186. $508 = HEAP32[$3>>2]|0;
  32187. $509 = (_strcmp($508,16115)|0);
  32188. $510 = ($509|0)!=(0);
  32189. if (!($510)) {
  32190. HEAP32[$1>>2] = 22;
  32191. break;
  32192. }
  32193. $511 = HEAP32[$3>>2]|0;
  32194. $512 = (_strcmp($511,16126)|0);
  32195. $513 = ($512|0)!=(0);
  32196. if (!($513)) {
  32197. HEAP32[$1>>2] = 2;
  32198. break;
  32199. }
  32200. $514 = HEAP32[$3>>2]|0;
  32201. $515 = (_strcmp($514,16139)|0);
  32202. $516 = ($515|0)!=(0);
  32203. if (!($516)) {
  32204. HEAP32[$1>>2] = 23;
  32205. break;
  32206. }
  32207. $517 = HEAP32[$3>>2]|0;
  32208. $518 = (_strcmp($517,16149)|0);
  32209. $519 = ($518|0)!=(0);
  32210. if (!($519)) {
  32211. HEAP32[$1>>2] = 2;
  32212. break;
  32213. }
  32214. $520 = HEAP32[$3>>2]|0;
  32215. $521 = (_strcmp($520,16166)|0);
  32216. $522 = ($521|0)!=(0);
  32217. if (!($522)) {
  32218. HEAP32[$1>>2] = 24;
  32219. break;
  32220. }
  32221. $523 = HEAP32[$3>>2]|0;
  32222. $524 = (_strcmp($523,16178)|0);
  32223. $525 = ($524|0)!=(0);
  32224. if (!($525)) {
  32225. HEAP32[$1>>2] = 25;
  32226. break;
  32227. }
  32228. $526 = HEAP32[$3>>2]|0;
  32229. $527 = (_strcmp($526,16200)|0);
  32230. $528 = ($527|0)!=(0);
  32231. if (!($528)) {
  32232. HEAP32[$1>>2] = 26;
  32233. break;
  32234. }
  32235. $529 = HEAP32[$3>>2]|0;
  32236. $530 = (_strcmp($529,16220)|0);
  32237. $531 = ($530|0)!=(0);
  32238. if (!($531)) {
  32239. HEAP32[$1>>2] = 3;
  32240. break;
  32241. }
  32242. $532 = HEAP32[$3>>2]|0;
  32243. $533 = (_strcmp($532,16233)|0);
  32244. $534 = ($533|0)!=(0);
  32245. if (!($534)) {
  32246. HEAP32[$1>>2] = 27;
  32247. break;
  32248. }
  32249. $535 = HEAP32[$3>>2]|0;
  32250. $536 = (_strcmp($535,16255)|0);
  32251. $537 = ($536|0)!=(0);
  32252. if (!($537)) {
  32253. HEAP32[$1>>2] = 28;
  32254. break;
  32255. }
  32256. $538 = HEAP32[$3>>2]|0;
  32257. $539 = (_strcmp($538,16275)|0);
  32258. $540 = ($539|0)!=(0);
  32259. if (!($540)) {
  32260. HEAP32[$1>>2] = 2;
  32261. break;
  32262. }
  32263. $541 = HEAP32[$3>>2]|0;
  32264. $542 = (_strcmp($541,16292)|0);
  32265. $543 = ($542|0)!=(0);
  32266. if (!($543)) {
  32267. HEAP32[$1>>2] = 2;
  32268. break;
  32269. }
  32270. $544 = HEAP32[$3>>2]|0;
  32271. $545 = (_strcmp($544,16309)|0);
  32272. $546 = ($545|0)!=(0);
  32273. if (!($546)) {
  32274. HEAP32[$1>>2] = 3;
  32275. break;
  32276. }
  32277. $547 = HEAP32[$3>>2]|0;
  32278. $548 = (_strcmp($547,16329)|0);
  32279. $549 = ($548|0)!=(0);
  32280. if ($549) {
  32281. $550 = HEAP32[$2>>2]|0;
  32282. $551 = HEAP32[$3>>2]|0;
  32283. $552 = _emscripten_asm_const_iii(0, ($550|0), ($551|0))|0;
  32284. HEAP32[$1>>2] = 0;
  32285. break;
  32286. } else {
  32287. HEAP32[$1>>2] = 38;
  32288. break;
  32289. }
  32290. } else {
  32291. HEAP32[$1>>2] = 6;
  32292. }
  32293. } while(0);
  32294. $553 = HEAP32[$1>>2]|0;
  32295. STACKTOP = sp;return ($553|0);
  32296. }
  32297. function _emscripten_get_global_libc() {
  32298. var label = 0, sp = 0;
  32299. sp = STACKTOP;
  32300. return (21780|0);
  32301. }
  32302. function ___stdio_close($0) {
  32303. $0 = $0|0;
  32304. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  32305. sp = STACKTOP;
  32306. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  32307. $vararg_buffer = sp;
  32308. $1 = ((($0)) + 60|0);
  32309. $2 = HEAP32[$1>>2]|0;
  32310. $3 = (_dummy_738($2)|0);
  32311. HEAP32[$vararg_buffer>>2] = $3;
  32312. $4 = (___syscall6(6,($vararg_buffer|0))|0);
  32313. $5 = (___syscall_ret($4)|0);
  32314. STACKTOP = sp;return ($5|0);
  32315. }
  32316. function ___stdio_write($0,$1,$2) {
  32317. $0 = $0|0;
  32318. $1 = $1|0;
  32319. $2 = $2|0;
  32320. 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;
  32321. 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;
  32322. 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;
  32323. var $vararg_ptr7 = 0, label = 0, sp = 0;
  32324. sp = STACKTOP;
  32325. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  32326. $vararg_buffer3 = sp + 16|0;
  32327. $vararg_buffer = sp;
  32328. $3 = sp + 32|0;
  32329. $4 = ((($0)) + 28|0);
  32330. $5 = HEAP32[$4>>2]|0;
  32331. HEAP32[$3>>2] = $5;
  32332. $6 = ((($3)) + 4|0);
  32333. $7 = ((($0)) + 20|0);
  32334. $8 = HEAP32[$7>>2]|0;
  32335. $9 = (($8) - ($5))|0;
  32336. HEAP32[$6>>2] = $9;
  32337. $10 = ((($3)) + 8|0);
  32338. HEAP32[$10>>2] = $1;
  32339. $11 = ((($3)) + 12|0);
  32340. HEAP32[$11>>2] = $2;
  32341. $12 = (($9) + ($2))|0;
  32342. $13 = ((($0)) + 60|0);
  32343. $14 = HEAP32[$13>>2]|0;
  32344. $15 = $3;
  32345. HEAP32[$vararg_buffer>>2] = $14;
  32346. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  32347. HEAP32[$vararg_ptr1>>2] = $15;
  32348. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  32349. HEAP32[$vararg_ptr2>>2] = 2;
  32350. $16 = (___syscall146(146,($vararg_buffer|0))|0);
  32351. $17 = (___syscall_ret($16)|0);
  32352. $18 = ($12|0)==($17|0);
  32353. L1: do {
  32354. if ($18) {
  32355. label = 3;
  32356. } else {
  32357. $$04756 = 2;$$04855 = $12;$$04954 = $3;$26 = $17;
  32358. while(1) {
  32359. $25 = ($26|0)<(0);
  32360. if ($25) {
  32361. break;
  32362. }
  32363. $34 = (($$04855) - ($26))|0;
  32364. $35 = ((($$04954)) + 4|0);
  32365. $36 = HEAP32[$35>>2]|0;
  32366. $37 = ($26>>>0)>($36>>>0);
  32367. $38 = ((($$04954)) + 8|0);
  32368. $$150 = $37 ? $38 : $$04954;
  32369. $39 = $37 << 31 >> 31;
  32370. $$1 = (($39) + ($$04756))|0;
  32371. $40 = $37 ? $36 : 0;
  32372. $$0 = (($26) - ($40))|0;
  32373. $41 = HEAP32[$$150>>2]|0;
  32374. $42 = (($41) + ($$0)|0);
  32375. HEAP32[$$150>>2] = $42;
  32376. $43 = ((($$150)) + 4|0);
  32377. $44 = HEAP32[$43>>2]|0;
  32378. $45 = (($44) - ($$0))|0;
  32379. HEAP32[$43>>2] = $45;
  32380. $46 = HEAP32[$13>>2]|0;
  32381. $47 = $$150;
  32382. HEAP32[$vararg_buffer3>>2] = $46;
  32383. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  32384. HEAP32[$vararg_ptr6>>2] = $47;
  32385. $vararg_ptr7 = ((($vararg_buffer3)) + 8|0);
  32386. HEAP32[$vararg_ptr7>>2] = $$1;
  32387. $48 = (___syscall146(146,($vararg_buffer3|0))|0);
  32388. $49 = (___syscall_ret($48)|0);
  32389. $50 = ($34|0)==($49|0);
  32390. if ($50) {
  32391. label = 3;
  32392. break L1;
  32393. } else {
  32394. $$04756 = $$1;$$04855 = $34;$$04954 = $$150;$26 = $49;
  32395. }
  32396. }
  32397. $27 = ((($0)) + 16|0);
  32398. HEAP32[$27>>2] = 0;
  32399. HEAP32[$4>>2] = 0;
  32400. HEAP32[$7>>2] = 0;
  32401. $28 = HEAP32[$0>>2]|0;
  32402. $29 = $28 | 32;
  32403. HEAP32[$0>>2] = $29;
  32404. $30 = ($$04756|0)==(2);
  32405. if ($30) {
  32406. $$051 = 0;
  32407. } else {
  32408. $31 = ((($$04954)) + 4|0);
  32409. $32 = HEAP32[$31>>2]|0;
  32410. $33 = (($2) - ($32))|0;
  32411. $$051 = $33;
  32412. }
  32413. }
  32414. } while(0);
  32415. if ((label|0) == 3) {
  32416. $19 = ((($0)) + 44|0);
  32417. $20 = HEAP32[$19>>2]|0;
  32418. $21 = ((($0)) + 48|0);
  32419. $22 = HEAP32[$21>>2]|0;
  32420. $23 = (($20) + ($22)|0);
  32421. $24 = ((($0)) + 16|0);
  32422. HEAP32[$24>>2] = $23;
  32423. HEAP32[$4>>2] = $20;
  32424. HEAP32[$7>>2] = $20;
  32425. $$051 = $2;
  32426. }
  32427. STACKTOP = sp;return ($$051|0);
  32428. }
  32429. function ___stdio_seek($0,$1,$2) {
  32430. $0 = $0|0;
  32431. $1 = $1|0;
  32432. $2 = $2|0;
  32433. 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;
  32434. sp = STACKTOP;
  32435. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  32436. $vararg_buffer = sp;
  32437. $3 = sp + 20|0;
  32438. $4 = ((($0)) + 60|0);
  32439. $5 = HEAP32[$4>>2]|0;
  32440. $6 = $3;
  32441. HEAP32[$vararg_buffer>>2] = $5;
  32442. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  32443. HEAP32[$vararg_ptr1>>2] = 0;
  32444. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  32445. HEAP32[$vararg_ptr2>>2] = $1;
  32446. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  32447. HEAP32[$vararg_ptr3>>2] = $6;
  32448. $vararg_ptr4 = ((($vararg_buffer)) + 16|0);
  32449. HEAP32[$vararg_ptr4>>2] = $2;
  32450. $7 = (___syscall140(140,($vararg_buffer|0))|0);
  32451. $8 = (___syscall_ret($7)|0);
  32452. $9 = ($8|0)<(0);
  32453. if ($9) {
  32454. HEAP32[$3>>2] = -1;
  32455. $10 = -1;
  32456. } else {
  32457. $$pre = HEAP32[$3>>2]|0;
  32458. $10 = $$pre;
  32459. }
  32460. STACKTOP = sp;return ($10|0);
  32461. }
  32462. function ___syscall_ret($0) {
  32463. $0 = $0|0;
  32464. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  32465. sp = STACKTOP;
  32466. $1 = ($0>>>0)>(4294963200);
  32467. if ($1) {
  32468. $2 = (0 - ($0))|0;
  32469. $3 = (___errno_location()|0);
  32470. HEAP32[$3>>2] = $2;
  32471. $$0 = -1;
  32472. } else {
  32473. $$0 = $0;
  32474. }
  32475. return ($$0|0);
  32476. }
  32477. function ___errno_location() {
  32478. var $0 = 0, $1 = 0, label = 0, sp = 0;
  32479. sp = STACKTOP;
  32480. $0 = (___pthread_self_108()|0);
  32481. $1 = ((($0)) + 64|0);
  32482. return ($1|0);
  32483. }
  32484. function ___pthread_self_108() {
  32485. var $0 = 0, label = 0, sp = 0;
  32486. sp = STACKTOP;
  32487. $0 = (_pthread_self()|0);
  32488. return ($0|0);
  32489. }
  32490. function _pthread_self() {
  32491. var label = 0, sp = 0;
  32492. sp = STACKTOP;
  32493. return (3824|0);
  32494. }
  32495. function _dummy_738($0) {
  32496. $0 = $0|0;
  32497. var label = 0, sp = 0;
  32498. sp = STACKTOP;
  32499. return ($0|0);
  32500. }
  32501. function ___stdio_read($0,$1,$2) {
  32502. $0 = $0|0;
  32503. $1 = $1|0;
  32504. $2 = $2|0;
  32505. 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;
  32506. 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;
  32507. sp = STACKTOP;
  32508. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  32509. $vararg_buffer = sp;
  32510. $3 = sp + 16|0;
  32511. HEAP32[$3>>2] = $1;
  32512. $4 = ((($3)) + 4|0);
  32513. $5 = ((($0)) + 48|0);
  32514. $6 = HEAP32[$5>>2]|0;
  32515. $7 = ($6|0)!=(0);
  32516. $8 = $7&1;
  32517. $9 = (($2) - ($8))|0;
  32518. HEAP32[$4>>2] = $9;
  32519. $10 = ((($3)) + 8|0);
  32520. $11 = ((($0)) + 44|0);
  32521. $12 = HEAP32[$11>>2]|0;
  32522. HEAP32[$10>>2] = $12;
  32523. $13 = ((($3)) + 12|0);
  32524. HEAP32[$13>>2] = $6;
  32525. $14 = ((($0)) + 60|0);
  32526. $15 = HEAP32[$14>>2]|0;
  32527. $16 = $3;
  32528. HEAP32[$vararg_buffer>>2] = $15;
  32529. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  32530. HEAP32[$vararg_ptr1>>2] = $16;
  32531. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  32532. HEAP32[$vararg_ptr2>>2] = 2;
  32533. $17 = (___syscall145(145,($vararg_buffer|0))|0);
  32534. $18 = (___syscall_ret($17)|0);
  32535. $19 = ($18|0)<(1);
  32536. if ($19) {
  32537. $20 = $18 & 48;
  32538. $21 = $20 ^ 16;
  32539. $22 = HEAP32[$0>>2]|0;
  32540. $23 = $22 | $21;
  32541. HEAP32[$0>>2] = $23;
  32542. $$0 = $18;
  32543. } else {
  32544. $24 = HEAP32[$4>>2]|0;
  32545. $25 = ($18>>>0)>($24>>>0);
  32546. if ($25) {
  32547. $26 = (($18) - ($24))|0;
  32548. $27 = HEAP32[$11>>2]|0;
  32549. $28 = ((($0)) + 4|0);
  32550. HEAP32[$28>>2] = $27;
  32551. $29 = (($27) + ($26)|0);
  32552. $30 = ((($0)) + 8|0);
  32553. HEAP32[$30>>2] = $29;
  32554. $31 = HEAP32[$5>>2]|0;
  32555. $32 = ($31|0)==(0);
  32556. if ($32) {
  32557. $$0 = $2;
  32558. } else {
  32559. $33 = ((($27)) + 1|0);
  32560. HEAP32[$28>>2] = $33;
  32561. $34 = HEAP8[$27>>0]|0;
  32562. $35 = (($2) + -1)|0;
  32563. $36 = (($1) + ($35)|0);
  32564. HEAP8[$36>>0] = $34;
  32565. $$0 = $2;
  32566. }
  32567. } else {
  32568. $$0 = $18;
  32569. }
  32570. }
  32571. STACKTOP = sp;return ($$0|0);
  32572. }
  32573. function ___stdout_write($0,$1,$2) {
  32574. $0 = $0|0;
  32575. $1 = $1|0;
  32576. $2 = $2|0;
  32577. 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;
  32578. sp = STACKTOP;
  32579. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  32580. $vararg_buffer = sp;
  32581. $3 = sp + 16|0;
  32582. $4 = ((($0)) + 36|0);
  32583. HEAP32[$4>>2] = 9;
  32584. $5 = HEAP32[$0>>2]|0;
  32585. $6 = $5 & 64;
  32586. $7 = ($6|0)==(0);
  32587. if ($7) {
  32588. $8 = ((($0)) + 60|0);
  32589. $9 = HEAP32[$8>>2]|0;
  32590. $10 = $3;
  32591. HEAP32[$vararg_buffer>>2] = $9;
  32592. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  32593. HEAP32[$vararg_ptr1>>2] = 21523;
  32594. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  32595. HEAP32[$vararg_ptr2>>2] = $10;
  32596. $11 = (___syscall54(54,($vararg_buffer|0))|0);
  32597. $12 = ($11|0)==(0);
  32598. if (!($12)) {
  32599. $13 = ((($0)) + 75|0);
  32600. HEAP8[$13>>0] = -1;
  32601. }
  32602. }
  32603. $14 = (___stdio_write($0,$1,$2)|0);
  32604. STACKTOP = sp;return ($14|0);
  32605. }
  32606. function ___shlim($0,$1) {
  32607. $0 = $0|0;
  32608. $1 = $1|0;
  32609. var $$sink = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  32610. sp = STACKTOP;
  32611. $2 = ((($0)) + 104|0);
  32612. HEAP32[$2>>2] = $1;
  32613. $3 = ((($0)) + 8|0);
  32614. $4 = HEAP32[$3>>2]|0;
  32615. $5 = ((($0)) + 4|0);
  32616. $6 = HEAP32[$5>>2]|0;
  32617. $7 = $4;
  32618. $8 = $6;
  32619. $9 = (($7) - ($8))|0;
  32620. $10 = ((($0)) + 108|0);
  32621. HEAP32[$10>>2] = $9;
  32622. $11 = ($1|0)!=(0);
  32623. $12 = ($9|0)>($1|0);
  32624. $or$cond = $11 & $12;
  32625. $13 = (($6) + ($1)|0);
  32626. $$sink = $or$cond ? $13 : $4;
  32627. $14 = ((($0)) + 100|0);
  32628. HEAP32[$14>>2] = $$sink;
  32629. return;
  32630. }
  32631. function ___intscan($0,$1,$2,$3,$4) {
  32632. $0 = $0|0;
  32633. $1 = $1|0;
  32634. $2 = $2|0;
  32635. $3 = $3|0;
  32636. $4 = $4|0;
  32637. var $$0154222 = 0, $$0157 = 0, $$0157$ = 0, $$0159 = 0, $$1155192 = 0, $$1158 = 0, $$1160 = 0, $$1160169 = 0, $$1165 = 0, $$1165167 = 0, $$1165168 = 0, $$166 = 0, $$2156210 = 0, $$2161$be = 0, $$2161$lcssa = 0, $$3162$be = 0, $$3162215 = 0, $$4163$be = 0, $$4163$lcssa = 0, $$5$be = 0;
  32638. var $$6$be = 0, $$6$lcssa = 0, $$7$be = 0, $$7198 = 0, $$8 = 0, $$9$be = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0;
  32639. var $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0;
  32640. 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;
  32641. var $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0;
  32642. var $167 = 0, $168 = 0, $169 = 0, $17 = 0, $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0;
  32643. var $185 = 0, $186 = 0, $187 = 0, $188 = 0, $189 = 0, $19 = 0, $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0, $199 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0;
  32644. var $203 = 0, $204 = 0, $205 = 0, $206 = 0, $207 = 0, $208 = 0, $209 = 0, $21 = 0, $210 = 0, $211 = 0, $212 = 0, $213 = 0, $214 = 0, $215 = 0, $216 = 0, $217 = 0, $218 = 0, $219 = 0, $22 = 0, $220 = 0;
  32645. var $221 = 0, $222 = 0, $223 = 0, $224 = 0, $225 = 0, $226 = 0, $227 = 0, $228 = 0, $229 = 0, $23 = 0, $230 = 0, $231 = 0, $232 = 0, $233 = 0, $234 = 0, $235 = 0, $236 = 0, $237 = 0, $238 = 0, $239 = 0;
  32646. var $24 = 0, $240 = 0, $241 = 0, $242 = 0, $243 = 0, $244 = 0, $245 = 0, $246 = 0, $247 = 0, $248 = 0, $249 = 0, $25 = 0, $250 = 0, $251 = 0, $252 = 0, $253 = 0, $254 = 0, $255 = 0, $256 = 0, $257 = 0;
  32647. var $258 = 0, $259 = 0, $26 = 0, $260 = 0, $261 = 0, $262 = 0, $263 = 0, $264 = 0, $265 = 0, $266 = 0, $267 = 0, $268 = 0, $269 = 0, $27 = 0, $270 = 0, $271 = 0, $272 = 0, $273 = 0, $274 = 0, $275 = 0;
  32648. var $276 = 0, $277 = 0, $278 = 0, $279 = 0, $28 = 0, $280 = 0, $281 = 0, $282 = 0, $283 = 0, $284 = 0, $285 = 0, $286 = 0, $287 = 0, $288 = 0, $289 = 0, $29 = 0, $290 = 0, $291 = 0, $292 = 0, $293 = 0;
  32649. var $294 = 0, $295 = 0, $296 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0;
  32650. 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;
  32651. 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;
  32652. var $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $or$cond = 0, $or$cond12 = 0;
  32653. var $or$cond187 = 0, $or$cond5 = 0, $or$cond7 = 0, label = 0, sp = 0;
  32654. sp = STACKTOP;
  32655. $5 = ($1>>>0)>(36);
  32656. L1: do {
  32657. if ($5) {
  32658. $8 = (___errno_location()|0);
  32659. HEAP32[$8>>2] = 22;
  32660. $289 = 0;$290 = 0;
  32661. } else {
  32662. $6 = ((($0)) + 4|0);
  32663. $7 = ((($0)) + 100|0);
  32664. while(1) {
  32665. $9 = HEAP32[$6>>2]|0;
  32666. $10 = HEAP32[$7>>2]|0;
  32667. $11 = ($9>>>0)<($10>>>0);
  32668. if ($11) {
  32669. $12 = ((($9)) + 1|0);
  32670. HEAP32[$6>>2] = $12;
  32671. $13 = HEAP8[$9>>0]|0;
  32672. $14 = $13&255;
  32673. $16 = $14;
  32674. } else {
  32675. $15 = (___shgetc($0)|0);
  32676. $16 = $15;
  32677. }
  32678. $17 = (_isspace($16)|0);
  32679. $18 = ($17|0)==(0);
  32680. if ($18) {
  32681. break;
  32682. }
  32683. }
  32684. L11: do {
  32685. switch ($16|0) {
  32686. case 43: case 45: {
  32687. $19 = ($16|0)==(45);
  32688. $20 = $19 << 31 >> 31;
  32689. $21 = HEAP32[$6>>2]|0;
  32690. $22 = HEAP32[$7>>2]|0;
  32691. $23 = ($21>>>0)<($22>>>0);
  32692. if ($23) {
  32693. $24 = ((($21)) + 1|0);
  32694. HEAP32[$6>>2] = $24;
  32695. $25 = HEAP8[$21>>0]|0;
  32696. $26 = $25&255;
  32697. $$0157 = $20;$$0159 = $26;
  32698. break L11;
  32699. } else {
  32700. $27 = (___shgetc($0)|0);
  32701. $$0157 = $20;$$0159 = $27;
  32702. break L11;
  32703. }
  32704. break;
  32705. }
  32706. default: {
  32707. $$0157 = 0;$$0159 = $16;
  32708. }
  32709. }
  32710. } while(0);
  32711. $28 = ($1|0)==(0);
  32712. $29 = $1 | 16;
  32713. $30 = ($29|0)==(16);
  32714. $31 = ($$0159|0)==(48);
  32715. $or$cond5 = $30 & $31;
  32716. do {
  32717. if ($or$cond5) {
  32718. $32 = HEAP32[$6>>2]|0;
  32719. $33 = HEAP32[$7>>2]|0;
  32720. $34 = ($32>>>0)<($33>>>0);
  32721. if ($34) {
  32722. $35 = ((($32)) + 1|0);
  32723. HEAP32[$6>>2] = $35;
  32724. $36 = HEAP8[$32>>0]|0;
  32725. $37 = $36&255;
  32726. $40 = $37;
  32727. } else {
  32728. $38 = (___shgetc($0)|0);
  32729. $40 = $38;
  32730. }
  32731. $39 = $40 | 32;
  32732. $41 = ($39|0)==(120);
  32733. if (!($41)) {
  32734. if ($28) {
  32735. $$1160169 = $40;$$1165168 = 8;
  32736. label = 46;
  32737. break;
  32738. } else {
  32739. $$1160 = $40;$$1165 = $1;
  32740. label = 32;
  32741. break;
  32742. }
  32743. }
  32744. $42 = HEAP32[$6>>2]|0;
  32745. $43 = HEAP32[$7>>2]|0;
  32746. $44 = ($42>>>0)<($43>>>0);
  32747. if ($44) {
  32748. $45 = ((($42)) + 1|0);
  32749. HEAP32[$6>>2] = $45;
  32750. $46 = HEAP8[$42>>0]|0;
  32751. $47 = $46&255;
  32752. $50 = $47;
  32753. } else {
  32754. $48 = (___shgetc($0)|0);
  32755. $50 = $48;
  32756. }
  32757. $49 = ((16446) + ($50)|0);
  32758. $51 = HEAP8[$49>>0]|0;
  32759. $52 = ($51&255)>(15);
  32760. if ($52) {
  32761. $53 = HEAP32[$7>>2]|0;
  32762. $54 = ($53|0)!=(0|0);
  32763. if ($54) {
  32764. $55 = HEAP32[$6>>2]|0;
  32765. $56 = ((($55)) + -1|0);
  32766. HEAP32[$6>>2] = $56;
  32767. }
  32768. $57 = ($2|0)==(0);
  32769. if ($57) {
  32770. ___shlim($0,0);
  32771. $289 = 0;$290 = 0;
  32772. break L1;
  32773. }
  32774. if (!($54)) {
  32775. $289 = 0;$290 = 0;
  32776. break L1;
  32777. }
  32778. $58 = HEAP32[$6>>2]|0;
  32779. $59 = ((($58)) + -1|0);
  32780. HEAP32[$6>>2] = $59;
  32781. $289 = 0;$290 = 0;
  32782. break L1;
  32783. } else {
  32784. $$1160169 = $50;$$1165168 = 16;
  32785. label = 46;
  32786. }
  32787. } else {
  32788. $$166 = $28 ? 10 : $1;
  32789. $60 = ((16446) + ($$0159)|0);
  32790. $61 = HEAP8[$60>>0]|0;
  32791. $62 = $61&255;
  32792. $63 = ($62>>>0)<($$166>>>0);
  32793. if ($63) {
  32794. $$1160 = $$0159;$$1165 = $$166;
  32795. label = 32;
  32796. } else {
  32797. $64 = HEAP32[$7>>2]|0;
  32798. $65 = ($64|0)==(0|0);
  32799. if (!($65)) {
  32800. $66 = HEAP32[$6>>2]|0;
  32801. $67 = ((($66)) + -1|0);
  32802. HEAP32[$6>>2] = $67;
  32803. }
  32804. ___shlim($0,0);
  32805. $68 = (___errno_location()|0);
  32806. HEAP32[$68>>2] = 22;
  32807. $289 = 0;$290 = 0;
  32808. break L1;
  32809. }
  32810. }
  32811. } while(0);
  32812. L43: do {
  32813. if ((label|0) == 32) {
  32814. $69 = ($$1165|0)==(10);
  32815. if ($69) {
  32816. $70 = (($$1160) + -48)|0;
  32817. $71 = ($70>>>0)<(10);
  32818. if ($71) {
  32819. $$0154222 = 0;$74 = $70;
  32820. while(1) {
  32821. $72 = ($$0154222*10)|0;
  32822. $73 = (($72) + ($74))|0;
  32823. $75 = HEAP32[$6>>2]|0;
  32824. $76 = HEAP32[$7>>2]|0;
  32825. $77 = ($75>>>0)<($76>>>0);
  32826. if ($77) {
  32827. $78 = ((($75)) + 1|0);
  32828. HEAP32[$6>>2] = $78;
  32829. $79 = HEAP8[$75>>0]|0;
  32830. $80 = $79&255;
  32831. $$2161$be = $80;
  32832. } else {
  32833. $81 = (___shgetc($0)|0);
  32834. $$2161$be = $81;
  32835. }
  32836. $82 = (($$2161$be) + -48)|0;
  32837. $83 = ($82>>>0)<(10);
  32838. $84 = ($73>>>0)<(429496729);
  32839. $85 = $83 & $84;
  32840. if ($85) {
  32841. $$0154222 = $73;$74 = $82;
  32842. } else {
  32843. break;
  32844. }
  32845. }
  32846. $$2161$lcssa = $$2161$be;$291 = $73;$292 = 0;
  32847. } else {
  32848. $$2161$lcssa = $$1160;$291 = 0;$292 = 0;
  32849. }
  32850. $86 = (($$2161$lcssa) + -48)|0;
  32851. $87 = ($86>>>0)<(10);
  32852. if ($87) {
  32853. $$3162215 = $$2161$lcssa;$88 = $291;$89 = $292;$93 = $86;
  32854. while(1) {
  32855. $90 = (___muldi3(($88|0),($89|0),10,0)|0);
  32856. $91 = tempRet0;
  32857. $92 = ($93|0)<(0);
  32858. $94 = $92 << 31 >> 31;
  32859. $95 = $93 ^ -1;
  32860. $96 = $94 ^ -1;
  32861. $97 = ($91>>>0)>($96>>>0);
  32862. $98 = ($90>>>0)>($95>>>0);
  32863. $99 = ($91|0)==($96|0);
  32864. $100 = $99 & $98;
  32865. $101 = $97 | $100;
  32866. if ($101) {
  32867. $$1165167 = 10;$$8 = $$3162215;$293 = $88;$294 = $89;
  32868. label = 72;
  32869. break L43;
  32870. }
  32871. $102 = (_i64Add(($90|0),($91|0),($93|0),($94|0))|0);
  32872. $103 = tempRet0;
  32873. $104 = HEAP32[$6>>2]|0;
  32874. $105 = HEAP32[$7>>2]|0;
  32875. $106 = ($104>>>0)<($105>>>0);
  32876. if ($106) {
  32877. $107 = ((($104)) + 1|0);
  32878. HEAP32[$6>>2] = $107;
  32879. $108 = HEAP8[$104>>0]|0;
  32880. $109 = $108&255;
  32881. $$3162$be = $109;
  32882. } else {
  32883. $110 = (___shgetc($0)|0);
  32884. $$3162$be = $110;
  32885. }
  32886. $111 = (($$3162$be) + -48)|0;
  32887. $112 = ($111>>>0)<(10);
  32888. $113 = ($103>>>0)<(429496729);
  32889. $114 = ($102>>>0)<(2576980378);
  32890. $115 = ($103|0)==(429496729);
  32891. $116 = $115 & $114;
  32892. $117 = $113 | $116;
  32893. $or$cond7 = $112 & $117;
  32894. if ($or$cond7) {
  32895. $$3162215 = $$3162$be;$88 = $102;$89 = $103;$93 = $111;
  32896. } else {
  32897. break;
  32898. }
  32899. }
  32900. $118 = ($111>>>0)>(9);
  32901. if ($118) {
  32902. $$1158 = $$0157;$263 = $103;$265 = $102;
  32903. } else {
  32904. $$1165167 = 10;$$8 = $$3162$be;$293 = $102;$294 = $103;
  32905. label = 72;
  32906. }
  32907. } else {
  32908. $$1158 = $$0157;$263 = $292;$265 = $291;
  32909. }
  32910. } else {
  32911. $$1160169 = $$1160;$$1165168 = $$1165;
  32912. label = 46;
  32913. }
  32914. }
  32915. } while(0);
  32916. L63: do {
  32917. if ((label|0) == 46) {
  32918. $119 = (($$1165168) + -1)|0;
  32919. $120 = $119 & $$1165168;
  32920. $121 = ($120|0)==(0);
  32921. if ($121) {
  32922. $126 = ($$1165168*23)|0;
  32923. $127 = $126 >>> 5;
  32924. $128 = $127 & 7;
  32925. $129 = (16702 + ($128)|0);
  32926. $130 = HEAP8[$129>>0]|0;
  32927. $131 = $130 << 24 >> 24;
  32928. $132 = ((16446) + ($$1160169)|0);
  32929. $133 = HEAP8[$132>>0]|0;
  32930. $134 = $133&255;
  32931. $135 = ($134>>>0)<($$1165168>>>0);
  32932. if ($135) {
  32933. $$1155192 = 0;$138 = $134;
  32934. while(1) {
  32935. $136 = $$1155192 << $131;
  32936. $137 = $138 | $136;
  32937. $139 = HEAP32[$6>>2]|0;
  32938. $140 = HEAP32[$7>>2]|0;
  32939. $141 = ($139>>>0)<($140>>>0);
  32940. if ($141) {
  32941. $142 = ((($139)) + 1|0);
  32942. HEAP32[$6>>2] = $142;
  32943. $143 = HEAP8[$139>>0]|0;
  32944. $144 = $143&255;
  32945. $$4163$be = $144;
  32946. } else {
  32947. $145 = (___shgetc($0)|0);
  32948. $$4163$be = $145;
  32949. }
  32950. $146 = ((16446) + ($$4163$be)|0);
  32951. $147 = HEAP8[$146>>0]|0;
  32952. $148 = $147&255;
  32953. $149 = ($148>>>0)<($$1165168>>>0);
  32954. $150 = ($137>>>0)<(134217728);
  32955. $151 = $150 & $149;
  32956. if ($151) {
  32957. $$1155192 = $137;$138 = $148;
  32958. } else {
  32959. break;
  32960. }
  32961. }
  32962. $$4163$lcssa = $$4163$be;$155 = $147;$158 = 0;$160 = $137;
  32963. } else {
  32964. $$4163$lcssa = $$1160169;$155 = $133;$158 = 0;$160 = 0;
  32965. }
  32966. $152 = (_bitshift64Lshr(-1,-1,($131|0))|0);
  32967. $153 = tempRet0;
  32968. $154 = $155&255;
  32969. $156 = ($154>>>0)>=($$1165168>>>0);
  32970. $157 = ($158>>>0)>($153>>>0);
  32971. $159 = ($160>>>0)>($152>>>0);
  32972. $161 = ($158|0)==($153|0);
  32973. $162 = $161 & $159;
  32974. $163 = $157 | $162;
  32975. $or$cond187 = $156 | $163;
  32976. if ($or$cond187) {
  32977. $$1165167 = $$1165168;$$8 = $$4163$lcssa;$293 = $160;$294 = $158;
  32978. label = 72;
  32979. break;
  32980. } else {
  32981. $164 = $160;$165 = $158;$169 = $155;
  32982. }
  32983. while(1) {
  32984. $166 = (_bitshift64Shl(($164|0),($165|0),($131|0))|0);
  32985. $167 = tempRet0;
  32986. $168 = $169&255;
  32987. $170 = $168 | $166;
  32988. $171 = HEAP32[$6>>2]|0;
  32989. $172 = HEAP32[$7>>2]|0;
  32990. $173 = ($171>>>0)<($172>>>0);
  32991. if ($173) {
  32992. $174 = ((($171)) + 1|0);
  32993. HEAP32[$6>>2] = $174;
  32994. $175 = HEAP8[$171>>0]|0;
  32995. $176 = $175&255;
  32996. $$5$be = $176;
  32997. } else {
  32998. $177 = (___shgetc($0)|0);
  32999. $$5$be = $177;
  33000. }
  33001. $178 = ((16446) + ($$5$be)|0);
  33002. $179 = HEAP8[$178>>0]|0;
  33003. $180 = $179&255;
  33004. $181 = ($180>>>0)>=($$1165168>>>0);
  33005. $182 = ($167>>>0)>($153>>>0);
  33006. $183 = ($170>>>0)>($152>>>0);
  33007. $184 = ($167|0)==($153|0);
  33008. $185 = $184 & $183;
  33009. $186 = $182 | $185;
  33010. $or$cond = $181 | $186;
  33011. if ($or$cond) {
  33012. $$1165167 = $$1165168;$$8 = $$5$be;$293 = $170;$294 = $167;
  33013. label = 72;
  33014. break L63;
  33015. } else {
  33016. $164 = $170;$165 = $167;$169 = $179;
  33017. }
  33018. }
  33019. }
  33020. $122 = ((16446) + ($$1160169)|0);
  33021. $123 = HEAP8[$122>>0]|0;
  33022. $124 = $123&255;
  33023. $125 = ($124>>>0)<($$1165168>>>0);
  33024. if ($125) {
  33025. $$2156210 = 0;$189 = $124;
  33026. while(1) {
  33027. $187 = Math_imul($$2156210, $$1165168)|0;
  33028. $188 = (($189) + ($187))|0;
  33029. $190 = HEAP32[$6>>2]|0;
  33030. $191 = HEAP32[$7>>2]|0;
  33031. $192 = ($190>>>0)<($191>>>0);
  33032. if ($192) {
  33033. $193 = ((($190)) + 1|0);
  33034. HEAP32[$6>>2] = $193;
  33035. $194 = HEAP8[$190>>0]|0;
  33036. $195 = $194&255;
  33037. $$6$be = $195;
  33038. } else {
  33039. $196 = (___shgetc($0)|0);
  33040. $$6$be = $196;
  33041. }
  33042. $197 = ((16446) + ($$6$be)|0);
  33043. $198 = HEAP8[$197>>0]|0;
  33044. $199 = $198&255;
  33045. $200 = ($199>>>0)<($$1165168>>>0);
  33046. $201 = ($188>>>0)<(119304647);
  33047. $202 = $201 & $200;
  33048. if ($202) {
  33049. $$2156210 = $188;$189 = $199;
  33050. } else {
  33051. break;
  33052. }
  33053. }
  33054. $$6$lcssa = $$6$be;$204 = $198;$295 = $188;$296 = 0;
  33055. } else {
  33056. $$6$lcssa = $$1160169;$204 = $123;$295 = 0;$296 = 0;
  33057. }
  33058. $203 = $204&255;
  33059. $205 = ($203>>>0)<($$1165168>>>0);
  33060. if ($205) {
  33061. $206 = (___udivdi3(-1,-1,($$1165168|0),0)|0);
  33062. $207 = tempRet0;
  33063. $$7198 = $$6$lcssa;$209 = $296;$211 = $295;$218 = $204;
  33064. while(1) {
  33065. $208 = ($209>>>0)>($207>>>0);
  33066. $210 = ($211>>>0)>($206>>>0);
  33067. $212 = ($209|0)==($207|0);
  33068. $213 = $212 & $210;
  33069. $214 = $208 | $213;
  33070. if ($214) {
  33071. $$1165167 = $$1165168;$$8 = $$7198;$293 = $211;$294 = $209;
  33072. label = 72;
  33073. break L63;
  33074. }
  33075. $215 = (___muldi3(($211|0),($209|0),($$1165168|0),0)|0);
  33076. $216 = tempRet0;
  33077. $217 = $218&255;
  33078. $219 = $217 ^ -1;
  33079. $220 = ($216>>>0)>(4294967295);
  33080. $221 = ($215>>>0)>($219>>>0);
  33081. $222 = ($216|0)==(-1);
  33082. $223 = $222 & $221;
  33083. $224 = $220 | $223;
  33084. if ($224) {
  33085. $$1165167 = $$1165168;$$8 = $$7198;$293 = $211;$294 = $209;
  33086. label = 72;
  33087. break L63;
  33088. }
  33089. $225 = (_i64Add(($217|0),0,($215|0),($216|0))|0);
  33090. $226 = tempRet0;
  33091. $227 = HEAP32[$6>>2]|0;
  33092. $228 = HEAP32[$7>>2]|0;
  33093. $229 = ($227>>>0)<($228>>>0);
  33094. if ($229) {
  33095. $230 = ((($227)) + 1|0);
  33096. HEAP32[$6>>2] = $230;
  33097. $231 = HEAP8[$227>>0]|0;
  33098. $232 = $231&255;
  33099. $$7$be = $232;
  33100. } else {
  33101. $233 = (___shgetc($0)|0);
  33102. $$7$be = $233;
  33103. }
  33104. $234 = ((16446) + ($$7$be)|0);
  33105. $235 = HEAP8[$234>>0]|0;
  33106. $236 = $235&255;
  33107. $237 = ($236>>>0)<($$1165168>>>0);
  33108. if ($237) {
  33109. $$7198 = $$7$be;$209 = $226;$211 = $225;$218 = $235;
  33110. } else {
  33111. $$1165167 = $$1165168;$$8 = $$7$be;$293 = $225;$294 = $226;
  33112. label = 72;
  33113. break;
  33114. }
  33115. }
  33116. } else {
  33117. $$1165167 = $$1165168;$$8 = $$6$lcssa;$293 = $295;$294 = $296;
  33118. label = 72;
  33119. }
  33120. }
  33121. } while(0);
  33122. if ((label|0) == 72) {
  33123. $238 = ((16446) + ($$8)|0);
  33124. $239 = HEAP8[$238>>0]|0;
  33125. $240 = $239&255;
  33126. $241 = ($240>>>0)<($$1165167>>>0);
  33127. if ($241) {
  33128. while(1) {
  33129. $242 = HEAP32[$6>>2]|0;
  33130. $243 = HEAP32[$7>>2]|0;
  33131. $244 = ($242>>>0)<($243>>>0);
  33132. if ($244) {
  33133. $245 = ((($242)) + 1|0);
  33134. HEAP32[$6>>2] = $245;
  33135. $246 = HEAP8[$242>>0]|0;
  33136. $247 = $246&255;
  33137. $$9$be = $247;
  33138. } else {
  33139. $248 = (___shgetc($0)|0);
  33140. $$9$be = $248;
  33141. }
  33142. $249 = ((16446) + ($$9$be)|0);
  33143. $250 = HEAP8[$249>>0]|0;
  33144. $251 = $250&255;
  33145. $252 = ($251>>>0)<($$1165167>>>0);
  33146. if (!($252)) {
  33147. break;
  33148. }
  33149. }
  33150. $253 = (___errno_location()|0);
  33151. HEAP32[$253>>2] = 34;
  33152. $254 = $3 & 1;
  33153. $255 = ($254|0)==(0);
  33154. $256 = (0)==(0);
  33155. $257 = $255 & $256;
  33156. $$0157$ = $257 ? $$0157 : 0;
  33157. $$1158 = $$0157$;$263 = $4;$265 = $3;
  33158. } else {
  33159. $$1158 = $$0157;$263 = $294;$265 = $293;
  33160. }
  33161. }
  33162. $258 = HEAP32[$7>>2]|0;
  33163. $259 = ($258|0)==(0|0);
  33164. if (!($259)) {
  33165. $260 = HEAP32[$6>>2]|0;
  33166. $261 = ((($260)) + -1|0);
  33167. HEAP32[$6>>2] = $261;
  33168. }
  33169. $262 = ($263>>>0)<($4>>>0);
  33170. $264 = ($265>>>0)<($3>>>0);
  33171. $266 = ($263|0)==($4|0);
  33172. $267 = $266 & $264;
  33173. $268 = $262 | $267;
  33174. if (!($268)) {
  33175. $269 = $3 & 1;
  33176. $270 = ($269|0)!=(0);
  33177. $271 = (0)!=(0);
  33178. $272 = $270 | $271;
  33179. $273 = ($$1158|0)!=(0);
  33180. $or$cond12 = $272 | $273;
  33181. if (!($or$cond12)) {
  33182. $274 = (___errno_location()|0);
  33183. HEAP32[$274>>2] = 34;
  33184. $275 = (_i64Add(($3|0),($4|0),-1,-1)|0);
  33185. $276 = tempRet0;
  33186. $289 = $276;$290 = $275;
  33187. break;
  33188. }
  33189. $277 = ($263>>>0)>($4>>>0);
  33190. $278 = ($265>>>0)>($3>>>0);
  33191. $279 = ($263|0)==($4|0);
  33192. $280 = $279 & $278;
  33193. $281 = $277 | $280;
  33194. if ($281) {
  33195. $282 = (___errno_location()|0);
  33196. HEAP32[$282>>2] = 34;
  33197. $289 = $4;$290 = $3;
  33198. break;
  33199. }
  33200. }
  33201. $283 = ($$1158|0)<(0);
  33202. $284 = $283 << 31 >> 31;
  33203. $285 = $265 ^ $$1158;
  33204. $286 = $263 ^ $284;
  33205. $287 = (_i64Subtract(($285|0),($286|0),($$1158|0),($284|0))|0);
  33206. $288 = tempRet0;
  33207. $289 = $288;$290 = $287;
  33208. }
  33209. } while(0);
  33210. tempRet0 = ($289);
  33211. return ($290|0);
  33212. }
  33213. function ___shgetc($0) {
  33214. $0 = $0|0;
  33215. var $$0 = 0, $$phi$trans$insert = 0, $$phi$trans$insert28$phi$trans$insert = 0, $$pre = 0, $$pre$phi34Z2D = 0, $$pre29$pre = 0, $$pre35 = 0, $$sink = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0;
  33216. 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;
  33217. var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  33218. sp = STACKTOP;
  33219. $1 = ((($0)) + 104|0);
  33220. $2 = HEAP32[$1>>2]|0;
  33221. $3 = ($2|0)==(0);
  33222. if ($3) {
  33223. label = 3;
  33224. } else {
  33225. $4 = ((($0)) + 108|0);
  33226. $5 = HEAP32[$4>>2]|0;
  33227. $6 = ($5|0)<($2|0);
  33228. if ($6) {
  33229. label = 3;
  33230. } else {
  33231. label = 4;
  33232. }
  33233. }
  33234. if ((label|0) == 3) {
  33235. $7 = (___uflow($0)|0);
  33236. $8 = ($7|0)<(0);
  33237. if ($8) {
  33238. label = 4;
  33239. } else {
  33240. $10 = HEAP32[$1>>2]|0;
  33241. $11 = ($10|0)==(0);
  33242. $$phi$trans$insert = ((($0)) + 8|0);
  33243. if ($11) {
  33244. $$pre = HEAP32[$$phi$trans$insert>>2]|0;
  33245. $$phi$trans$insert28$phi$trans$insert = ((($0)) + 4|0);
  33246. $$pre29$pre = HEAP32[$$phi$trans$insert28$phi$trans$insert>>2]|0;
  33247. $$pre35 = ((($0)) + 108|0);
  33248. $$pre$phi34Z2D = $$pre35;$$sink = $$pre;$26 = $$pre;$29 = $$pre29$pre;
  33249. } else {
  33250. $12 = HEAP32[$$phi$trans$insert>>2]|0;
  33251. $13 = ((($0)) + 4|0);
  33252. $14 = HEAP32[$13>>2]|0;
  33253. $15 = $14;
  33254. $16 = (($12) - ($15))|0;
  33255. $17 = ((($0)) + 108|0);
  33256. $18 = HEAP32[$17>>2]|0;
  33257. $19 = (($10) - ($18))|0;
  33258. $20 = ($16|0)<($19|0);
  33259. $21 = $12;
  33260. if ($20) {
  33261. $$pre$phi34Z2D = $17;$$sink = $21;$26 = $21;$29 = $14;
  33262. } else {
  33263. $22 = (($19) + -1)|0;
  33264. $23 = (($14) + ($22)|0);
  33265. $$pre$phi34Z2D = $17;$$sink = $23;$26 = $21;$29 = $14;
  33266. }
  33267. }
  33268. $24 = ((($0)) + 100|0);
  33269. HEAP32[$24>>2] = $$sink;
  33270. $25 = ($26|0)==(0|0);
  33271. if (!($25)) {
  33272. $27 = $26;
  33273. $28 = $29;
  33274. $30 = HEAP32[$$pre$phi34Z2D>>2]|0;
  33275. $31 = (($27) + 1)|0;
  33276. $32 = (($31) - ($28))|0;
  33277. $33 = (($32) + ($30))|0;
  33278. HEAP32[$$pre$phi34Z2D>>2] = $33;
  33279. }
  33280. $34 = ((($29)) + -1|0);
  33281. $35 = HEAP8[$34>>0]|0;
  33282. $36 = $35&255;
  33283. $37 = ($36|0)==($7|0);
  33284. if ($37) {
  33285. $$0 = $7;
  33286. } else {
  33287. $38 = $7&255;
  33288. HEAP8[$34>>0] = $38;
  33289. $$0 = $7;
  33290. }
  33291. }
  33292. }
  33293. if ((label|0) == 4) {
  33294. $9 = ((($0)) + 100|0);
  33295. HEAP32[$9>>2] = 0;
  33296. $$0 = -1;
  33297. }
  33298. return ($$0|0);
  33299. }
  33300. function _isspace($0) {
  33301. $0 = $0|0;
  33302. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  33303. sp = STACKTOP;
  33304. $1 = ($0|0)==(32);
  33305. $2 = (($0) + -9)|0;
  33306. $3 = ($2>>>0)<(5);
  33307. $4 = $1 | $3;
  33308. $5 = $4&1;
  33309. return ($5|0);
  33310. }
  33311. function ___uflow($0) {
  33312. $0 = $0|0;
  33313. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  33314. sp = STACKTOP;
  33315. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  33316. $1 = sp;
  33317. $2 = (___toread($0)|0);
  33318. $3 = ($2|0)==(0);
  33319. if ($3) {
  33320. $4 = ((($0)) + 32|0);
  33321. $5 = HEAP32[$4>>2]|0;
  33322. $6 = (FUNCTION_TABLE_iiii[$5 & 15]($0,$1,1)|0);
  33323. $7 = ($6|0)==(1);
  33324. if ($7) {
  33325. $8 = HEAP8[$1>>0]|0;
  33326. $9 = $8&255;
  33327. $$0 = $9;
  33328. } else {
  33329. $$0 = -1;
  33330. }
  33331. } else {
  33332. $$0 = -1;
  33333. }
  33334. STACKTOP = sp;return ($$0|0);
  33335. }
  33336. function ___toread($0) {
  33337. $0 = $0|0;
  33338. 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;
  33339. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $sext = 0, label = 0, sp = 0;
  33340. sp = STACKTOP;
  33341. $1 = ((($0)) + 74|0);
  33342. $2 = HEAP8[$1>>0]|0;
  33343. $3 = $2 << 24 >> 24;
  33344. $4 = (($3) + 255)|0;
  33345. $5 = $4 | $3;
  33346. $6 = $5&255;
  33347. HEAP8[$1>>0] = $6;
  33348. $7 = ((($0)) + 20|0);
  33349. $8 = HEAP32[$7>>2]|0;
  33350. $9 = ((($0)) + 28|0);
  33351. $10 = HEAP32[$9>>2]|0;
  33352. $11 = ($8>>>0)>($10>>>0);
  33353. if ($11) {
  33354. $12 = ((($0)) + 36|0);
  33355. $13 = HEAP32[$12>>2]|0;
  33356. (FUNCTION_TABLE_iiii[$13 & 15]($0,0,0)|0);
  33357. }
  33358. $14 = ((($0)) + 16|0);
  33359. HEAP32[$14>>2] = 0;
  33360. HEAP32[$9>>2] = 0;
  33361. HEAP32[$7>>2] = 0;
  33362. $15 = HEAP32[$0>>2]|0;
  33363. $16 = $15 & 4;
  33364. $17 = ($16|0)==(0);
  33365. if ($17) {
  33366. $19 = ((($0)) + 44|0);
  33367. $20 = HEAP32[$19>>2]|0;
  33368. $21 = ((($0)) + 48|0);
  33369. $22 = HEAP32[$21>>2]|0;
  33370. $23 = (($20) + ($22)|0);
  33371. $24 = ((($0)) + 8|0);
  33372. HEAP32[$24>>2] = $23;
  33373. $25 = ((($0)) + 4|0);
  33374. HEAP32[$25>>2] = $23;
  33375. $26 = $15 << 27;
  33376. $sext = $26 >> 31;
  33377. $$0 = $sext;
  33378. } else {
  33379. $18 = $15 | 32;
  33380. HEAP32[$0>>2] = $18;
  33381. $$0 = -1;
  33382. }
  33383. return ($$0|0);
  33384. }
  33385. function _copysign($0,$1) {
  33386. $0 = +$0;
  33387. $1 = +$1;
  33388. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
  33389. sp = STACKTOP;
  33390. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  33391. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  33392. HEAPF64[tempDoublePtr>>3] = $1;$4 = HEAP32[tempDoublePtr>>2]|0;
  33393. $5 = HEAP32[tempDoublePtr+4>>2]|0;
  33394. $6 = $3 & 2147483647;
  33395. $7 = $5 & -2147483648;
  33396. $8 = $7 | $6;
  33397. HEAP32[tempDoublePtr>>2] = $2;HEAP32[tempDoublePtr+4>>2] = $8;$9 = +HEAPF64[tempDoublePtr>>3];
  33398. return (+$9);
  33399. }
  33400. function _strcmp($0,$1) {
  33401. $0 = $0|0;
  33402. $1 = $1|0;
  33403. 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;
  33404. var sp = 0;
  33405. sp = STACKTOP;
  33406. $2 = HEAP8[$0>>0]|0;
  33407. $3 = HEAP8[$1>>0]|0;
  33408. $4 = ($2<<24>>24)!=($3<<24>>24);
  33409. $5 = ($2<<24>>24)==(0);
  33410. $or$cond9 = $5 | $4;
  33411. if ($or$cond9) {
  33412. $$lcssa = $3;$$lcssa8 = $2;
  33413. } else {
  33414. $$011 = $1;$$0710 = $0;
  33415. while(1) {
  33416. $6 = ((($$0710)) + 1|0);
  33417. $7 = ((($$011)) + 1|0);
  33418. $8 = HEAP8[$6>>0]|0;
  33419. $9 = HEAP8[$7>>0]|0;
  33420. $10 = ($8<<24>>24)!=($9<<24>>24);
  33421. $11 = ($8<<24>>24)==(0);
  33422. $or$cond = $11 | $10;
  33423. if ($or$cond) {
  33424. $$lcssa = $9;$$lcssa8 = $8;
  33425. break;
  33426. } else {
  33427. $$011 = $7;$$0710 = $6;
  33428. }
  33429. }
  33430. }
  33431. $12 = $$lcssa8&255;
  33432. $13 = $$lcssa&255;
  33433. $14 = (($12) - ($13))|0;
  33434. return ($14|0);
  33435. }
  33436. function _memcmp($0,$1,$2) {
  33437. $0 = $0|0;
  33438. $1 = $1|0;
  33439. $2 = $2|0;
  33440. 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;
  33441. sp = STACKTOP;
  33442. $3 = ($2|0)==(0);
  33443. L1: do {
  33444. if ($3) {
  33445. $14 = 0;
  33446. } else {
  33447. $$01318 = $0;$$01417 = $2;$$019 = $1;
  33448. while(1) {
  33449. $4 = HEAP8[$$01318>>0]|0;
  33450. $5 = HEAP8[$$019>>0]|0;
  33451. $6 = ($4<<24>>24)==($5<<24>>24);
  33452. if (!($6)) {
  33453. break;
  33454. }
  33455. $7 = (($$01417) + -1)|0;
  33456. $8 = ((($$01318)) + 1|0);
  33457. $9 = ((($$019)) + 1|0);
  33458. $10 = ($7|0)==(0);
  33459. if ($10) {
  33460. $14 = 0;
  33461. break L1;
  33462. } else {
  33463. $$01318 = $8;$$01417 = $7;$$019 = $9;
  33464. }
  33465. }
  33466. $11 = $4&255;
  33467. $12 = $5&255;
  33468. $13 = (($11) - ($12))|0;
  33469. $14 = $13;
  33470. }
  33471. } while(0);
  33472. return ($14|0);
  33473. }
  33474. function _vfprintf($0,$1,$2) {
  33475. $0 = $0|0;
  33476. $1 = $1|0;
  33477. $2 = $2|0;
  33478. 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;
  33479. 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;
  33480. var $8 = 0, $9 = 0, $vacopy_currentptr = 0, dest = 0, label = 0, sp = 0, stop = 0;
  33481. sp = STACKTOP;
  33482. STACKTOP = STACKTOP + 224|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(224|0);
  33483. $3 = sp + 120|0;
  33484. $4 = sp + 80|0;
  33485. $5 = sp;
  33486. $6 = sp + 136|0;
  33487. dest=$4; stop=dest+40|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  33488. $vacopy_currentptr = HEAP32[$2>>2]|0;
  33489. HEAP32[$3>>2] = $vacopy_currentptr;
  33490. $7 = (_printf_core(0,$1,$3,$5,$4)|0);
  33491. $8 = ($7|0)<(0);
  33492. if ($8) {
  33493. $$0 = -1;
  33494. } else {
  33495. $9 = ((($0)) + 76|0);
  33496. $10 = HEAP32[$9>>2]|0;
  33497. $11 = ($10|0)>(-1);
  33498. if ($11) {
  33499. $12 = (___lockfile($0)|0);
  33500. $40 = $12;
  33501. } else {
  33502. $40 = 0;
  33503. }
  33504. $13 = HEAP32[$0>>2]|0;
  33505. $14 = $13 & 32;
  33506. $15 = ((($0)) + 74|0);
  33507. $16 = HEAP8[$15>>0]|0;
  33508. $17 = ($16<<24>>24)<(1);
  33509. if ($17) {
  33510. $18 = $13 & -33;
  33511. HEAP32[$0>>2] = $18;
  33512. }
  33513. $19 = ((($0)) + 48|0);
  33514. $20 = HEAP32[$19>>2]|0;
  33515. $21 = ($20|0)==(0);
  33516. if ($21) {
  33517. $23 = ((($0)) + 44|0);
  33518. $24 = HEAP32[$23>>2]|0;
  33519. HEAP32[$23>>2] = $6;
  33520. $25 = ((($0)) + 28|0);
  33521. HEAP32[$25>>2] = $6;
  33522. $26 = ((($0)) + 20|0);
  33523. HEAP32[$26>>2] = $6;
  33524. HEAP32[$19>>2] = 80;
  33525. $27 = ((($6)) + 80|0);
  33526. $28 = ((($0)) + 16|0);
  33527. HEAP32[$28>>2] = $27;
  33528. $29 = (_printf_core($0,$1,$3,$5,$4)|0);
  33529. $30 = ($24|0)==(0|0);
  33530. if ($30) {
  33531. $$1 = $29;
  33532. } else {
  33533. $31 = ((($0)) + 36|0);
  33534. $32 = HEAP32[$31>>2]|0;
  33535. (FUNCTION_TABLE_iiii[$32 & 15]($0,0,0)|0);
  33536. $33 = HEAP32[$26>>2]|0;
  33537. $34 = ($33|0)==(0|0);
  33538. $$ = $34 ? -1 : $29;
  33539. HEAP32[$23>>2] = $24;
  33540. HEAP32[$19>>2] = 0;
  33541. HEAP32[$28>>2] = 0;
  33542. HEAP32[$25>>2] = 0;
  33543. HEAP32[$26>>2] = 0;
  33544. $$1 = $$;
  33545. }
  33546. } else {
  33547. $22 = (_printf_core($0,$1,$3,$5,$4)|0);
  33548. $$1 = $22;
  33549. }
  33550. $35 = HEAP32[$0>>2]|0;
  33551. $36 = $35 & 32;
  33552. $37 = ($36|0)==(0);
  33553. $$1$ = $37 ? $$1 : -1;
  33554. $38 = $35 | $14;
  33555. HEAP32[$0>>2] = $38;
  33556. $39 = ($40|0)==(0);
  33557. if (!($39)) {
  33558. ___unlockfile($0);
  33559. }
  33560. $$0 = $$1$;
  33561. }
  33562. STACKTOP = sp;return ($$0|0);
  33563. }
  33564. function _printf_core($0,$1,$2,$3,$4) {
  33565. $0 = $0|0;
  33566. $1 = $1|0;
  33567. $2 = $2|0;
  33568. $3 = $3|0;
  33569. $4 = $4|0;
  33570. 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;
  33571. 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;
  33572. 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;
  33573. 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;
  33574. 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;
  33575. 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;
  33576. 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;
  33577. 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;
  33578. 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;
  33579. 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;
  33580. 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;
  33581. 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;
  33582. 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;
  33583. 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;
  33584. 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;
  33585. 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;
  33586. 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;
  33587. 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;
  33588. 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;
  33589. 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;
  33590. 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;
  33591. 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;
  33592. sp = STACKTOP;
  33593. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  33594. $5 = sp + 16|0;
  33595. $6 = sp;
  33596. $7 = sp + 24|0;
  33597. $8 = sp + 8|0;
  33598. $9 = sp + 20|0;
  33599. HEAP32[$5>>2] = $1;
  33600. $10 = ($0|0)!=(0|0);
  33601. $11 = ((($7)) + 40|0);
  33602. $12 = $11;
  33603. $13 = ((($7)) + 39|0);
  33604. $14 = ((($8)) + 4|0);
  33605. $$0243 = 0;$$0247 = 0;$$0269 = 0;$21 = $1;
  33606. L1: while(1) {
  33607. $15 = ($$0247|0)>(-1);
  33608. do {
  33609. if ($15) {
  33610. $16 = (2147483647 - ($$0247))|0;
  33611. $17 = ($$0243|0)>($16|0);
  33612. if ($17) {
  33613. $18 = (___errno_location()|0);
  33614. HEAP32[$18>>2] = 75;
  33615. $$1248 = -1;
  33616. break;
  33617. } else {
  33618. $19 = (($$0243) + ($$0247))|0;
  33619. $$1248 = $19;
  33620. break;
  33621. }
  33622. } else {
  33623. $$1248 = $$0247;
  33624. }
  33625. } while(0);
  33626. $20 = HEAP8[$21>>0]|0;
  33627. $22 = ($20<<24>>24)==(0);
  33628. if ($22) {
  33629. label = 87;
  33630. break;
  33631. } else {
  33632. $23 = $20;$25 = $21;
  33633. }
  33634. L9: while(1) {
  33635. switch ($23<<24>>24) {
  33636. case 37: {
  33637. $$0249306 = $25;$27 = $25;
  33638. label = 9;
  33639. break L9;
  33640. break;
  33641. }
  33642. case 0: {
  33643. $$0249$lcssa = $25;$39 = $25;
  33644. break L9;
  33645. break;
  33646. }
  33647. default: {
  33648. }
  33649. }
  33650. $24 = ((($25)) + 1|0);
  33651. HEAP32[$5>>2] = $24;
  33652. $$pre = HEAP8[$24>>0]|0;
  33653. $23 = $$pre;$25 = $24;
  33654. }
  33655. L12: do {
  33656. if ((label|0) == 9) {
  33657. while(1) {
  33658. label = 0;
  33659. $26 = ((($27)) + 1|0);
  33660. $28 = HEAP8[$26>>0]|0;
  33661. $29 = ($28<<24>>24)==(37);
  33662. if (!($29)) {
  33663. $$0249$lcssa = $$0249306;$39 = $27;
  33664. break L12;
  33665. }
  33666. $30 = ((($$0249306)) + 1|0);
  33667. $31 = ((($27)) + 2|0);
  33668. HEAP32[$5>>2] = $31;
  33669. $32 = HEAP8[$31>>0]|0;
  33670. $33 = ($32<<24>>24)==(37);
  33671. if ($33) {
  33672. $$0249306 = $30;$27 = $31;
  33673. label = 9;
  33674. } else {
  33675. $$0249$lcssa = $30;$39 = $31;
  33676. break;
  33677. }
  33678. }
  33679. }
  33680. } while(0);
  33681. $34 = $$0249$lcssa;
  33682. $35 = $21;
  33683. $36 = (($34) - ($35))|0;
  33684. if ($10) {
  33685. _out($0,$21,$36);
  33686. }
  33687. $37 = ($36|0)==(0);
  33688. if (!($37)) {
  33689. $$0269$phi = $$0269;$$0243 = $36;$$0247 = $$1248;$21 = $39;$$0269 = $$0269$phi;
  33690. continue;
  33691. }
  33692. $38 = ((($39)) + 1|0);
  33693. $40 = HEAP8[$38>>0]|0;
  33694. $41 = $40 << 24 >> 24;
  33695. $isdigittmp = (($41) + -48)|0;
  33696. $isdigit = ($isdigittmp>>>0)<(10);
  33697. if ($isdigit) {
  33698. $42 = ((($39)) + 2|0);
  33699. $43 = HEAP8[$42>>0]|0;
  33700. $44 = ($43<<24>>24)==(36);
  33701. $45 = ((($39)) + 3|0);
  33702. $$377 = $44 ? $45 : $38;
  33703. $$$0269 = $44 ? 1 : $$0269;
  33704. $isdigittmp$ = $44 ? $isdigittmp : -1;
  33705. $$0253 = $isdigittmp$;$$1270 = $$$0269;$storemerge = $$377;
  33706. } else {
  33707. $$0253 = -1;$$1270 = $$0269;$storemerge = $38;
  33708. }
  33709. HEAP32[$5>>2] = $storemerge;
  33710. $46 = HEAP8[$storemerge>>0]|0;
  33711. $47 = $46 << 24 >> 24;
  33712. $48 = (($47) + -32)|0;
  33713. $49 = ($48>>>0)<(32);
  33714. L24: do {
  33715. if ($49) {
  33716. $$0262311 = 0;$329 = $46;$51 = $48;$storemerge273310 = $storemerge;
  33717. while(1) {
  33718. $50 = 1 << $51;
  33719. $52 = $50 & 75913;
  33720. $53 = ($52|0)==(0);
  33721. if ($53) {
  33722. $$0262$lcssa = $$0262311;$$lcssa295 = $329;$62 = $storemerge273310;
  33723. break L24;
  33724. }
  33725. $54 = $50 | $$0262311;
  33726. $55 = ((($storemerge273310)) + 1|0);
  33727. HEAP32[$5>>2] = $55;
  33728. $56 = HEAP8[$55>>0]|0;
  33729. $57 = $56 << 24 >> 24;
  33730. $58 = (($57) + -32)|0;
  33731. $59 = ($58>>>0)<(32);
  33732. if ($59) {
  33733. $$0262311 = $54;$329 = $56;$51 = $58;$storemerge273310 = $55;
  33734. } else {
  33735. $$0262$lcssa = $54;$$lcssa295 = $56;$62 = $55;
  33736. break;
  33737. }
  33738. }
  33739. } else {
  33740. $$0262$lcssa = 0;$$lcssa295 = $46;$62 = $storemerge;
  33741. }
  33742. } while(0);
  33743. $60 = ($$lcssa295<<24>>24)==(42);
  33744. if ($60) {
  33745. $61 = ((($62)) + 1|0);
  33746. $63 = HEAP8[$61>>0]|0;
  33747. $64 = $63 << 24 >> 24;
  33748. $isdigittmp276 = (($64) + -48)|0;
  33749. $isdigit277 = ($isdigittmp276>>>0)<(10);
  33750. if ($isdigit277) {
  33751. $65 = ((($62)) + 2|0);
  33752. $66 = HEAP8[$65>>0]|0;
  33753. $67 = ($66<<24>>24)==(36);
  33754. if ($67) {
  33755. $68 = (($4) + ($isdigittmp276<<2)|0);
  33756. HEAP32[$68>>2] = 10;
  33757. $69 = HEAP8[$61>>0]|0;
  33758. $70 = $69 << 24 >> 24;
  33759. $71 = (($70) + -48)|0;
  33760. $72 = (($3) + ($71<<3)|0);
  33761. $73 = $72;
  33762. $74 = $73;
  33763. $75 = HEAP32[$74>>2]|0;
  33764. $76 = (($73) + 4)|0;
  33765. $77 = $76;
  33766. $78 = HEAP32[$77>>2]|0;
  33767. $79 = ((($62)) + 3|0);
  33768. $$0259 = $75;$$2271 = 1;$storemerge278 = $79;
  33769. } else {
  33770. label = 23;
  33771. }
  33772. } else {
  33773. label = 23;
  33774. }
  33775. if ((label|0) == 23) {
  33776. label = 0;
  33777. $80 = ($$1270|0)==(0);
  33778. if (!($80)) {
  33779. $$0 = -1;
  33780. break;
  33781. }
  33782. if ($10) {
  33783. $arglist_current = HEAP32[$2>>2]|0;
  33784. $81 = $arglist_current;
  33785. $82 = ((0) + 4|0);
  33786. $expanded4 = $82;
  33787. $expanded = (($expanded4) - 1)|0;
  33788. $83 = (($81) + ($expanded))|0;
  33789. $84 = ((0) + 4|0);
  33790. $expanded8 = $84;
  33791. $expanded7 = (($expanded8) - 1)|0;
  33792. $expanded6 = $expanded7 ^ -1;
  33793. $85 = $83 & $expanded6;
  33794. $86 = $85;
  33795. $87 = HEAP32[$86>>2]|0;
  33796. $arglist_next = ((($86)) + 4|0);
  33797. HEAP32[$2>>2] = $arglist_next;
  33798. $$0259 = $87;$$2271 = 0;$storemerge278 = $61;
  33799. } else {
  33800. $$0259 = 0;$$2271 = 0;$storemerge278 = $61;
  33801. }
  33802. }
  33803. HEAP32[$5>>2] = $storemerge278;
  33804. $88 = ($$0259|0)<(0);
  33805. $89 = $$0262$lcssa | 8192;
  33806. $90 = (0 - ($$0259))|0;
  33807. $$$0262 = $88 ? $89 : $$0262$lcssa;
  33808. $$$0259 = $88 ? $90 : $$0259;
  33809. $$1260 = $$$0259;$$1263 = $$$0262;$$3272 = $$2271;$94 = $storemerge278;
  33810. } else {
  33811. $91 = (_getint($5)|0);
  33812. $92 = ($91|0)<(0);
  33813. if ($92) {
  33814. $$0 = -1;
  33815. break;
  33816. }
  33817. $$pre346 = HEAP32[$5>>2]|0;
  33818. $$1260 = $91;$$1263 = $$0262$lcssa;$$3272 = $$1270;$94 = $$pre346;
  33819. }
  33820. $93 = HEAP8[$94>>0]|0;
  33821. $95 = ($93<<24>>24)==(46);
  33822. do {
  33823. if ($95) {
  33824. $96 = ((($94)) + 1|0);
  33825. $97 = HEAP8[$96>>0]|0;
  33826. $98 = ($97<<24>>24)==(42);
  33827. if (!($98)) {
  33828. $125 = ((($94)) + 1|0);
  33829. HEAP32[$5>>2] = $125;
  33830. $126 = (_getint($5)|0);
  33831. $$pre347$pre = HEAP32[$5>>2]|0;
  33832. $$0254 = $126;$$pre347 = $$pre347$pre;
  33833. break;
  33834. }
  33835. $99 = ((($94)) + 2|0);
  33836. $100 = HEAP8[$99>>0]|0;
  33837. $101 = $100 << 24 >> 24;
  33838. $isdigittmp274 = (($101) + -48)|0;
  33839. $isdigit275 = ($isdigittmp274>>>0)<(10);
  33840. if ($isdigit275) {
  33841. $102 = ((($94)) + 3|0);
  33842. $103 = HEAP8[$102>>0]|0;
  33843. $104 = ($103<<24>>24)==(36);
  33844. if ($104) {
  33845. $105 = (($4) + ($isdigittmp274<<2)|0);
  33846. HEAP32[$105>>2] = 10;
  33847. $106 = HEAP8[$99>>0]|0;
  33848. $107 = $106 << 24 >> 24;
  33849. $108 = (($107) + -48)|0;
  33850. $109 = (($3) + ($108<<3)|0);
  33851. $110 = $109;
  33852. $111 = $110;
  33853. $112 = HEAP32[$111>>2]|0;
  33854. $113 = (($110) + 4)|0;
  33855. $114 = $113;
  33856. $115 = HEAP32[$114>>2]|0;
  33857. $116 = ((($94)) + 4|0);
  33858. HEAP32[$5>>2] = $116;
  33859. $$0254 = $112;$$pre347 = $116;
  33860. break;
  33861. }
  33862. }
  33863. $117 = ($$3272|0)==(0);
  33864. if (!($117)) {
  33865. $$0 = -1;
  33866. break L1;
  33867. }
  33868. if ($10) {
  33869. $arglist_current2 = HEAP32[$2>>2]|0;
  33870. $118 = $arglist_current2;
  33871. $119 = ((0) + 4|0);
  33872. $expanded11 = $119;
  33873. $expanded10 = (($expanded11) - 1)|0;
  33874. $120 = (($118) + ($expanded10))|0;
  33875. $121 = ((0) + 4|0);
  33876. $expanded15 = $121;
  33877. $expanded14 = (($expanded15) - 1)|0;
  33878. $expanded13 = $expanded14 ^ -1;
  33879. $122 = $120 & $expanded13;
  33880. $123 = $122;
  33881. $124 = HEAP32[$123>>2]|0;
  33882. $arglist_next3 = ((($123)) + 4|0);
  33883. HEAP32[$2>>2] = $arglist_next3;
  33884. $330 = $124;
  33885. } else {
  33886. $330 = 0;
  33887. }
  33888. HEAP32[$5>>2] = $99;
  33889. $$0254 = $330;$$pre347 = $99;
  33890. } else {
  33891. $$0254 = -1;$$pre347 = $94;
  33892. }
  33893. } while(0);
  33894. $$0252 = 0;$128 = $$pre347;
  33895. while(1) {
  33896. $127 = HEAP8[$128>>0]|0;
  33897. $129 = $127 << 24 >> 24;
  33898. $130 = (($129) + -65)|0;
  33899. $131 = ($130>>>0)>(57);
  33900. if ($131) {
  33901. $$0 = -1;
  33902. break L1;
  33903. }
  33904. $132 = ((($128)) + 1|0);
  33905. HEAP32[$5>>2] = $132;
  33906. $133 = HEAP8[$128>>0]|0;
  33907. $134 = $133 << 24 >> 24;
  33908. $135 = (($134) + -65)|0;
  33909. $136 = ((16711 + (($$0252*58)|0)|0) + ($135)|0);
  33910. $137 = HEAP8[$136>>0]|0;
  33911. $138 = $137&255;
  33912. $139 = (($138) + -1)|0;
  33913. $140 = ($139>>>0)<(8);
  33914. if ($140) {
  33915. $$0252 = $138;$128 = $132;
  33916. } else {
  33917. break;
  33918. }
  33919. }
  33920. $141 = ($137<<24>>24)==(0);
  33921. if ($141) {
  33922. $$0 = -1;
  33923. break;
  33924. }
  33925. $142 = ($137<<24>>24)==(19);
  33926. $143 = ($$0253|0)>(-1);
  33927. do {
  33928. if ($142) {
  33929. if ($143) {
  33930. $$0 = -1;
  33931. break L1;
  33932. } else {
  33933. label = 49;
  33934. }
  33935. } else {
  33936. if ($143) {
  33937. $144 = (($4) + ($$0253<<2)|0);
  33938. HEAP32[$144>>2] = $138;
  33939. $145 = (($3) + ($$0253<<3)|0);
  33940. $146 = $145;
  33941. $147 = $146;
  33942. $148 = HEAP32[$147>>2]|0;
  33943. $149 = (($146) + 4)|0;
  33944. $150 = $149;
  33945. $151 = HEAP32[$150>>2]|0;
  33946. $152 = $6;
  33947. $153 = $152;
  33948. HEAP32[$153>>2] = $148;
  33949. $154 = (($152) + 4)|0;
  33950. $155 = $154;
  33951. HEAP32[$155>>2] = $151;
  33952. label = 49;
  33953. break;
  33954. }
  33955. if (!($10)) {
  33956. $$0 = 0;
  33957. break L1;
  33958. }
  33959. _pop_arg($6,$138,$2);
  33960. }
  33961. } while(0);
  33962. if ((label|0) == 49) {
  33963. label = 0;
  33964. if (!($10)) {
  33965. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  33966. continue;
  33967. }
  33968. }
  33969. $156 = HEAP8[$128>>0]|0;
  33970. $157 = $156 << 24 >> 24;
  33971. $158 = ($$0252|0)!=(0);
  33972. $159 = $157 & 15;
  33973. $160 = ($159|0)==(3);
  33974. $or$cond281 = $158 & $160;
  33975. $161 = $157 & -33;
  33976. $$0235 = $or$cond281 ? $161 : $157;
  33977. $162 = $$1263 & 8192;
  33978. $163 = ($162|0)==(0);
  33979. $164 = $$1263 & -65537;
  33980. $$1263$ = $163 ? $$1263 : $164;
  33981. L71: do {
  33982. switch ($$0235|0) {
  33983. case 110: {
  33984. $trunc = $$0252&255;
  33985. switch ($trunc<<24>>24) {
  33986. case 0: {
  33987. $171 = HEAP32[$6>>2]|0;
  33988. HEAP32[$171>>2] = $$1248;
  33989. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  33990. continue L1;
  33991. break;
  33992. }
  33993. case 1: {
  33994. $172 = HEAP32[$6>>2]|0;
  33995. HEAP32[$172>>2] = $$1248;
  33996. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  33997. continue L1;
  33998. break;
  33999. }
  34000. case 2: {
  34001. $173 = ($$1248|0)<(0);
  34002. $174 = $173 << 31 >> 31;
  34003. $175 = HEAP32[$6>>2]|0;
  34004. $176 = $175;
  34005. $177 = $176;
  34006. HEAP32[$177>>2] = $$1248;
  34007. $178 = (($176) + 4)|0;
  34008. $179 = $178;
  34009. HEAP32[$179>>2] = $174;
  34010. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34011. continue L1;
  34012. break;
  34013. }
  34014. case 3: {
  34015. $180 = $$1248&65535;
  34016. $181 = HEAP32[$6>>2]|0;
  34017. HEAP16[$181>>1] = $180;
  34018. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34019. continue L1;
  34020. break;
  34021. }
  34022. case 4: {
  34023. $182 = $$1248&255;
  34024. $183 = HEAP32[$6>>2]|0;
  34025. HEAP8[$183>>0] = $182;
  34026. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34027. continue L1;
  34028. break;
  34029. }
  34030. case 6: {
  34031. $184 = HEAP32[$6>>2]|0;
  34032. HEAP32[$184>>2] = $$1248;
  34033. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34034. continue L1;
  34035. break;
  34036. }
  34037. case 7: {
  34038. $185 = ($$1248|0)<(0);
  34039. $186 = $185 << 31 >> 31;
  34040. $187 = HEAP32[$6>>2]|0;
  34041. $188 = $187;
  34042. $189 = $188;
  34043. HEAP32[$189>>2] = $$1248;
  34044. $190 = (($188) + 4)|0;
  34045. $191 = $190;
  34046. HEAP32[$191>>2] = $186;
  34047. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34048. continue L1;
  34049. break;
  34050. }
  34051. default: {
  34052. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34053. continue L1;
  34054. }
  34055. }
  34056. break;
  34057. }
  34058. case 112: {
  34059. $192 = ($$0254>>>0)>(8);
  34060. $193 = $192 ? $$0254 : 8;
  34061. $194 = $$1263$ | 8;
  34062. $$1236 = 120;$$1255 = $193;$$3265 = $194;
  34063. label = 61;
  34064. break;
  34065. }
  34066. case 88: case 120: {
  34067. $$1236 = $$0235;$$1255 = $$0254;$$3265 = $$1263$;
  34068. label = 61;
  34069. break;
  34070. }
  34071. case 111: {
  34072. $210 = $6;
  34073. $211 = $210;
  34074. $212 = HEAP32[$211>>2]|0;
  34075. $213 = (($210) + 4)|0;
  34076. $214 = $213;
  34077. $215 = HEAP32[$214>>2]|0;
  34078. $216 = (_fmt_o($212,$215,$11)|0);
  34079. $217 = $$1263$ & 8;
  34080. $218 = ($217|0)==(0);
  34081. $219 = $216;
  34082. $220 = (($12) - ($219))|0;
  34083. $221 = ($$0254|0)>($220|0);
  34084. $222 = (($220) + 1)|0;
  34085. $223 = $218 | $221;
  34086. $$0254$$0254$ = $223 ? $$0254 : $222;
  34087. $$0228 = $216;$$1233 = 0;$$1238 = 17175;$$2256 = $$0254$$0254$;$$4266 = $$1263$;$248 = $212;$250 = $215;
  34088. label = 67;
  34089. break;
  34090. }
  34091. case 105: case 100: {
  34092. $224 = $6;
  34093. $225 = $224;
  34094. $226 = HEAP32[$225>>2]|0;
  34095. $227 = (($224) + 4)|0;
  34096. $228 = $227;
  34097. $229 = HEAP32[$228>>2]|0;
  34098. $230 = ($229|0)<(0);
  34099. if ($230) {
  34100. $231 = (_i64Subtract(0,0,($226|0),($229|0))|0);
  34101. $232 = tempRet0;
  34102. $233 = $6;
  34103. $234 = $233;
  34104. HEAP32[$234>>2] = $231;
  34105. $235 = (($233) + 4)|0;
  34106. $236 = $235;
  34107. HEAP32[$236>>2] = $232;
  34108. $$0232 = 1;$$0237 = 17175;$242 = $231;$243 = $232;
  34109. label = 66;
  34110. break L71;
  34111. } else {
  34112. $237 = $$1263$ & 2048;
  34113. $238 = ($237|0)==(0);
  34114. $239 = $$1263$ & 1;
  34115. $240 = ($239|0)==(0);
  34116. $$ = $240 ? 17175 : (17177);
  34117. $$$ = $238 ? $$ : (17176);
  34118. $241 = $$1263$ & 2049;
  34119. $narrow = ($241|0)!=(0);
  34120. $$284$ = $narrow&1;
  34121. $$0232 = $$284$;$$0237 = $$$;$242 = $226;$243 = $229;
  34122. label = 66;
  34123. break L71;
  34124. }
  34125. break;
  34126. }
  34127. case 117: {
  34128. $165 = $6;
  34129. $166 = $165;
  34130. $167 = HEAP32[$166>>2]|0;
  34131. $168 = (($165) + 4)|0;
  34132. $169 = $168;
  34133. $170 = HEAP32[$169>>2]|0;
  34134. $$0232 = 0;$$0237 = 17175;$242 = $167;$243 = $170;
  34135. label = 66;
  34136. break;
  34137. }
  34138. case 99: {
  34139. $259 = $6;
  34140. $260 = $259;
  34141. $261 = HEAP32[$260>>2]|0;
  34142. $262 = (($259) + 4)|0;
  34143. $263 = $262;
  34144. $264 = HEAP32[$263>>2]|0;
  34145. $265 = $261&255;
  34146. HEAP8[$13>>0] = $265;
  34147. $$2 = $13;$$2234 = 0;$$2239 = 17175;$$2251 = $11;$$5 = 1;$$6268 = $164;
  34148. break;
  34149. }
  34150. case 109: {
  34151. $266 = (___errno_location()|0);
  34152. $267 = HEAP32[$266>>2]|0;
  34153. $268 = (_strerror($267)|0);
  34154. $$1 = $268;
  34155. label = 71;
  34156. break;
  34157. }
  34158. case 115: {
  34159. $269 = HEAP32[$6>>2]|0;
  34160. $270 = ($269|0)!=(0|0);
  34161. $271 = $270 ? $269 : 17185;
  34162. $$1 = $271;
  34163. label = 71;
  34164. break;
  34165. }
  34166. case 67: {
  34167. $278 = $6;
  34168. $279 = $278;
  34169. $280 = HEAP32[$279>>2]|0;
  34170. $281 = (($278) + 4)|0;
  34171. $282 = $281;
  34172. $283 = HEAP32[$282>>2]|0;
  34173. HEAP32[$8>>2] = $280;
  34174. HEAP32[$14>>2] = 0;
  34175. HEAP32[$6>>2] = $8;
  34176. $$4258355 = -1;$331 = $8;
  34177. label = 75;
  34178. break;
  34179. }
  34180. case 83: {
  34181. $$pre349 = HEAP32[$6>>2]|0;
  34182. $284 = ($$0254|0)==(0);
  34183. if ($284) {
  34184. _pad_674($0,32,$$1260,0,$$1263$);
  34185. $$0240$lcssa357 = 0;
  34186. label = 84;
  34187. } else {
  34188. $$4258355 = $$0254;$331 = $$pre349;
  34189. label = 75;
  34190. }
  34191. break;
  34192. }
  34193. case 65: case 71: case 70: case 69: case 97: case 103: case 102: case 101: {
  34194. $306 = +HEAPF64[$6>>3];
  34195. $307 = (_fmt_fp($0,$306,$$1260,$$0254,$$1263$,$$0235)|0);
  34196. $$0243 = $307;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34197. continue L1;
  34198. break;
  34199. }
  34200. default: {
  34201. $$2 = $21;$$2234 = 0;$$2239 = 17175;$$2251 = $11;$$5 = $$0254;$$6268 = $$1263$;
  34202. }
  34203. }
  34204. } while(0);
  34205. L95: do {
  34206. if ((label|0) == 61) {
  34207. label = 0;
  34208. $195 = $6;
  34209. $196 = $195;
  34210. $197 = HEAP32[$196>>2]|0;
  34211. $198 = (($195) + 4)|0;
  34212. $199 = $198;
  34213. $200 = HEAP32[$199>>2]|0;
  34214. $201 = $$1236 & 32;
  34215. $202 = (_fmt_x($197,$200,$11,$201)|0);
  34216. $203 = ($197|0)==(0);
  34217. $204 = ($200|0)==(0);
  34218. $205 = $203 & $204;
  34219. $206 = $$3265 & 8;
  34220. $207 = ($206|0)==(0);
  34221. $or$cond283 = $207 | $205;
  34222. $208 = $$1236 >> 4;
  34223. $209 = (17175 + ($208)|0);
  34224. $$289 = $or$cond283 ? 17175 : $209;
  34225. $$290 = $or$cond283 ? 0 : 2;
  34226. $$0228 = $202;$$1233 = $$290;$$1238 = $$289;$$2256 = $$1255;$$4266 = $$3265;$248 = $197;$250 = $200;
  34227. label = 67;
  34228. }
  34229. else if ((label|0) == 66) {
  34230. label = 0;
  34231. $244 = (_fmt_u($242,$243,$11)|0);
  34232. $$0228 = $244;$$1233 = $$0232;$$1238 = $$0237;$$2256 = $$0254;$$4266 = $$1263$;$248 = $242;$250 = $243;
  34233. label = 67;
  34234. }
  34235. else if ((label|0) == 71) {
  34236. label = 0;
  34237. $272 = (_memchr($$1,0,$$0254)|0);
  34238. $273 = ($272|0)==(0|0);
  34239. $274 = $272;
  34240. $275 = $$1;
  34241. $276 = (($274) - ($275))|0;
  34242. $277 = (($$1) + ($$0254)|0);
  34243. $$3257 = $273 ? $$0254 : $276;
  34244. $$1250 = $273 ? $277 : $272;
  34245. $$2 = $$1;$$2234 = 0;$$2239 = 17175;$$2251 = $$1250;$$5 = $$3257;$$6268 = $164;
  34246. }
  34247. else if ((label|0) == 75) {
  34248. label = 0;
  34249. $$0229322 = $331;$$0240321 = 0;$$1244320 = 0;
  34250. while(1) {
  34251. $285 = HEAP32[$$0229322>>2]|0;
  34252. $286 = ($285|0)==(0);
  34253. if ($286) {
  34254. $$0240$lcssa = $$0240321;$$2245 = $$1244320;
  34255. break;
  34256. }
  34257. $287 = (_wctomb($9,$285)|0);
  34258. $288 = ($287|0)<(0);
  34259. $289 = (($$4258355) - ($$0240321))|0;
  34260. $290 = ($287>>>0)>($289>>>0);
  34261. $or$cond286 = $288 | $290;
  34262. if ($or$cond286) {
  34263. $$0240$lcssa = $$0240321;$$2245 = $287;
  34264. break;
  34265. }
  34266. $291 = ((($$0229322)) + 4|0);
  34267. $292 = (($287) + ($$0240321))|0;
  34268. $293 = ($$4258355>>>0)>($292>>>0);
  34269. if ($293) {
  34270. $$0229322 = $291;$$0240321 = $292;$$1244320 = $287;
  34271. } else {
  34272. $$0240$lcssa = $292;$$2245 = $287;
  34273. break;
  34274. }
  34275. }
  34276. $294 = ($$2245|0)<(0);
  34277. if ($294) {
  34278. $$0 = -1;
  34279. break L1;
  34280. }
  34281. _pad_674($0,32,$$1260,$$0240$lcssa,$$1263$);
  34282. $295 = ($$0240$lcssa|0)==(0);
  34283. if ($295) {
  34284. $$0240$lcssa357 = 0;
  34285. label = 84;
  34286. } else {
  34287. $$1230333 = $331;$$1241332 = 0;
  34288. while(1) {
  34289. $296 = HEAP32[$$1230333>>2]|0;
  34290. $297 = ($296|0)==(0);
  34291. if ($297) {
  34292. $$0240$lcssa357 = $$0240$lcssa;
  34293. label = 84;
  34294. break L95;
  34295. }
  34296. $298 = (_wctomb($9,$296)|0);
  34297. $299 = (($298) + ($$1241332))|0;
  34298. $300 = ($299|0)>($$0240$lcssa|0);
  34299. if ($300) {
  34300. $$0240$lcssa357 = $$0240$lcssa;
  34301. label = 84;
  34302. break L95;
  34303. }
  34304. $301 = ((($$1230333)) + 4|0);
  34305. _out($0,$9,$298);
  34306. $302 = ($299>>>0)<($$0240$lcssa>>>0);
  34307. if ($302) {
  34308. $$1230333 = $301;$$1241332 = $299;
  34309. } else {
  34310. $$0240$lcssa357 = $$0240$lcssa;
  34311. label = 84;
  34312. break;
  34313. }
  34314. }
  34315. }
  34316. }
  34317. } while(0);
  34318. if ((label|0) == 67) {
  34319. label = 0;
  34320. $245 = ($$2256|0)>(-1);
  34321. $246 = $$4266 & -65537;
  34322. $$$4266 = $245 ? $246 : $$4266;
  34323. $247 = ($248|0)!=(0);
  34324. $249 = ($250|0)!=(0);
  34325. $251 = $247 | $249;
  34326. $252 = ($$2256|0)!=(0);
  34327. $or$cond = $252 | $251;
  34328. $253 = $$0228;
  34329. $254 = (($12) - ($253))|0;
  34330. $255 = $251 ^ 1;
  34331. $256 = $255&1;
  34332. $257 = (($256) + ($254))|0;
  34333. $258 = ($$2256|0)>($257|0);
  34334. $$2256$ = $258 ? $$2256 : $257;
  34335. $$2256$$$2256 = $or$cond ? $$2256$ : $$2256;
  34336. $$0228$ = $or$cond ? $$0228 : $11;
  34337. $$2 = $$0228$;$$2234 = $$1233;$$2239 = $$1238;$$2251 = $11;$$5 = $$2256$$$2256;$$6268 = $$$4266;
  34338. }
  34339. else if ((label|0) == 84) {
  34340. label = 0;
  34341. $303 = $$1263$ ^ 8192;
  34342. _pad_674($0,32,$$1260,$$0240$lcssa357,$303);
  34343. $304 = ($$1260|0)>($$0240$lcssa357|0);
  34344. $305 = $304 ? $$1260 : $$0240$lcssa357;
  34345. $$0243 = $305;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34346. continue;
  34347. }
  34348. $308 = $$2251;
  34349. $309 = $$2;
  34350. $310 = (($308) - ($309))|0;
  34351. $311 = ($$5|0)<($310|0);
  34352. $$$5 = $311 ? $310 : $$5;
  34353. $312 = (($$$5) + ($$2234))|0;
  34354. $313 = ($$1260|0)<($312|0);
  34355. $$2261 = $313 ? $312 : $$1260;
  34356. _pad_674($0,32,$$2261,$312,$$6268);
  34357. _out($0,$$2239,$$2234);
  34358. $314 = $$6268 ^ 65536;
  34359. _pad_674($0,48,$$2261,$312,$314);
  34360. _pad_674($0,48,$$$5,$310,0);
  34361. _out($0,$$2,$310);
  34362. $315 = $$6268 ^ 8192;
  34363. _pad_674($0,32,$$2261,$312,$315);
  34364. $$0243 = $$2261;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34365. }
  34366. L114: do {
  34367. if ((label|0) == 87) {
  34368. $316 = ($0|0)==(0|0);
  34369. if ($316) {
  34370. $317 = ($$0269|0)==(0);
  34371. if ($317) {
  34372. $$0 = 0;
  34373. } else {
  34374. $$2242305 = 1;
  34375. while(1) {
  34376. $318 = (($4) + ($$2242305<<2)|0);
  34377. $319 = HEAP32[$318>>2]|0;
  34378. $320 = ($319|0)==(0);
  34379. if ($320) {
  34380. $$3303 = $$2242305;
  34381. break;
  34382. }
  34383. $321 = (($3) + ($$2242305<<3)|0);
  34384. _pop_arg($321,$319,$2);
  34385. $322 = (($$2242305) + 1)|0;
  34386. $323 = ($322|0)<(10);
  34387. if ($323) {
  34388. $$2242305 = $322;
  34389. } else {
  34390. $$0 = 1;
  34391. break L114;
  34392. }
  34393. }
  34394. while(1) {
  34395. $326 = (($4) + ($$3303<<2)|0);
  34396. $327 = HEAP32[$326>>2]|0;
  34397. $328 = ($327|0)==(0);
  34398. $325 = (($$3303) + 1)|0;
  34399. if (!($328)) {
  34400. $$0 = -1;
  34401. break L114;
  34402. }
  34403. $324 = ($325|0)<(10);
  34404. if ($324) {
  34405. $$3303 = $325;
  34406. } else {
  34407. $$0 = 1;
  34408. break;
  34409. }
  34410. }
  34411. }
  34412. } else {
  34413. $$0 = $$1248;
  34414. }
  34415. }
  34416. } while(0);
  34417. STACKTOP = sp;return ($$0|0);
  34418. }
  34419. function ___lockfile($0) {
  34420. $0 = $0|0;
  34421. var label = 0, sp = 0;
  34422. sp = STACKTOP;
  34423. return 0;
  34424. }
  34425. function ___unlockfile($0) {
  34426. $0 = $0|0;
  34427. var label = 0, sp = 0;
  34428. sp = STACKTOP;
  34429. return;
  34430. }
  34431. function _out($0,$1,$2) {
  34432. $0 = $0|0;
  34433. $1 = $1|0;
  34434. $2 = $2|0;
  34435. var $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  34436. sp = STACKTOP;
  34437. $3 = HEAP32[$0>>2]|0;
  34438. $4 = $3 & 32;
  34439. $5 = ($4|0)==(0);
  34440. if ($5) {
  34441. (___fwritex($1,$2,$0)|0);
  34442. }
  34443. return;
  34444. }
  34445. function _getint($0) {
  34446. $0 = $0|0;
  34447. 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;
  34448. sp = STACKTOP;
  34449. $1 = HEAP32[$0>>2]|0;
  34450. $2 = HEAP8[$1>>0]|0;
  34451. $3 = $2 << 24 >> 24;
  34452. $isdigittmp4 = (($3) + -48)|0;
  34453. $isdigit5 = ($isdigittmp4>>>0)<(10);
  34454. if ($isdigit5) {
  34455. $$06 = 0;$7 = $1;$isdigittmp7 = $isdigittmp4;
  34456. while(1) {
  34457. $4 = ($$06*10)|0;
  34458. $5 = (($isdigittmp7) + ($4))|0;
  34459. $6 = ((($7)) + 1|0);
  34460. HEAP32[$0>>2] = $6;
  34461. $8 = HEAP8[$6>>0]|0;
  34462. $9 = $8 << 24 >> 24;
  34463. $isdigittmp = (($9) + -48)|0;
  34464. $isdigit = ($isdigittmp>>>0)<(10);
  34465. if ($isdigit) {
  34466. $$06 = $5;$7 = $6;$isdigittmp7 = $isdigittmp;
  34467. } else {
  34468. $$0$lcssa = $5;
  34469. break;
  34470. }
  34471. }
  34472. } else {
  34473. $$0$lcssa = 0;
  34474. }
  34475. return ($$0$lcssa|0);
  34476. }
  34477. function _pop_arg($0,$1,$2) {
  34478. $0 = $0|0;
  34479. $1 = $1|0;
  34480. $2 = $2|0;
  34481. 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;
  34482. 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;
  34483. 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;
  34484. 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;
  34485. 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;
  34486. 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;
  34487. 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;
  34488. 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;
  34489. 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;
  34490. var $expanded88 = 0, $expanded90 = 0, $expanded91 = 0, $expanded93 = 0, $expanded94 = 0, $expanded95 = 0, label = 0, sp = 0;
  34491. sp = STACKTOP;
  34492. $3 = ($1>>>0)>(20);
  34493. L1: do {
  34494. if (!($3)) {
  34495. do {
  34496. switch ($1|0) {
  34497. case 9: {
  34498. $arglist_current = HEAP32[$2>>2]|0;
  34499. $4 = $arglist_current;
  34500. $5 = ((0) + 4|0);
  34501. $expanded28 = $5;
  34502. $expanded = (($expanded28) - 1)|0;
  34503. $6 = (($4) + ($expanded))|0;
  34504. $7 = ((0) + 4|0);
  34505. $expanded32 = $7;
  34506. $expanded31 = (($expanded32) - 1)|0;
  34507. $expanded30 = $expanded31 ^ -1;
  34508. $8 = $6 & $expanded30;
  34509. $9 = $8;
  34510. $10 = HEAP32[$9>>2]|0;
  34511. $arglist_next = ((($9)) + 4|0);
  34512. HEAP32[$2>>2] = $arglist_next;
  34513. HEAP32[$0>>2] = $10;
  34514. break L1;
  34515. break;
  34516. }
  34517. case 10: {
  34518. $arglist_current2 = HEAP32[$2>>2]|0;
  34519. $11 = $arglist_current2;
  34520. $12 = ((0) + 4|0);
  34521. $expanded35 = $12;
  34522. $expanded34 = (($expanded35) - 1)|0;
  34523. $13 = (($11) + ($expanded34))|0;
  34524. $14 = ((0) + 4|0);
  34525. $expanded39 = $14;
  34526. $expanded38 = (($expanded39) - 1)|0;
  34527. $expanded37 = $expanded38 ^ -1;
  34528. $15 = $13 & $expanded37;
  34529. $16 = $15;
  34530. $17 = HEAP32[$16>>2]|0;
  34531. $arglist_next3 = ((($16)) + 4|0);
  34532. HEAP32[$2>>2] = $arglist_next3;
  34533. $18 = ($17|0)<(0);
  34534. $19 = $18 << 31 >> 31;
  34535. $20 = $0;
  34536. $21 = $20;
  34537. HEAP32[$21>>2] = $17;
  34538. $22 = (($20) + 4)|0;
  34539. $23 = $22;
  34540. HEAP32[$23>>2] = $19;
  34541. break L1;
  34542. break;
  34543. }
  34544. case 11: {
  34545. $arglist_current5 = HEAP32[$2>>2]|0;
  34546. $24 = $arglist_current5;
  34547. $25 = ((0) + 4|0);
  34548. $expanded42 = $25;
  34549. $expanded41 = (($expanded42) - 1)|0;
  34550. $26 = (($24) + ($expanded41))|0;
  34551. $27 = ((0) + 4|0);
  34552. $expanded46 = $27;
  34553. $expanded45 = (($expanded46) - 1)|0;
  34554. $expanded44 = $expanded45 ^ -1;
  34555. $28 = $26 & $expanded44;
  34556. $29 = $28;
  34557. $30 = HEAP32[$29>>2]|0;
  34558. $arglist_next6 = ((($29)) + 4|0);
  34559. HEAP32[$2>>2] = $arglist_next6;
  34560. $31 = $0;
  34561. $32 = $31;
  34562. HEAP32[$32>>2] = $30;
  34563. $33 = (($31) + 4)|0;
  34564. $34 = $33;
  34565. HEAP32[$34>>2] = 0;
  34566. break L1;
  34567. break;
  34568. }
  34569. case 12: {
  34570. $arglist_current8 = HEAP32[$2>>2]|0;
  34571. $35 = $arglist_current8;
  34572. $36 = ((0) + 8|0);
  34573. $expanded49 = $36;
  34574. $expanded48 = (($expanded49) - 1)|0;
  34575. $37 = (($35) + ($expanded48))|0;
  34576. $38 = ((0) + 8|0);
  34577. $expanded53 = $38;
  34578. $expanded52 = (($expanded53) - 1)|0;
  34579. $expanded51 = $expanded52 ^ -1;
  34580. $39 = $37 & $expanded51;
  34581. $40 = $39;
  34582. $41 = $40;
  34583. $42 = $41;
  34584. $43 = HEAP32[$42>>2]|0;
  34585. $44 = (($41) + 4)|0;
  34586. $45 = $44;
  34587. $46 = HEAP32[$45>>2]|0;
  34588. $arglist_next9 = ((($40)) + 8|0);
  34589. HEAP32[$2>>2] = $arglist_next9;
  34590. $47 = $0;
  34591. $48 = $47;
  34592. HEAP32[$48>>2] = $43;
  34593. $49 = (($47) + 4)|0;
  34594. $50 = $49;
  34595. HEAP32[$50>>2] = $46;
  34596. break L1;
  34597. break;
  34598. }
  34599. case 13: {
  34600. $arglist_current11 = HEAP32[$2>>2]|0;
  34601. $51 = $arglist_current11;
  34602. $52 = ((0) + 4|0);
  34603. $expanded56 = $52;
  34604. $expanded55 = (($expanded56) - 1)|0;
  34605. $53 = (($51) + ($expanded55))|0;
  34606. $54 = ((0) + 4|0);
  34607. $expanded60 = $54;
  34608. $expanded59 = (($expanded60) - 1)|0;
  34609. $expanded58 = $expanded59 ^ -1;
  34610. $55 = $53 & $expanded58;
  34611. $56 = $55;
  34612. $57 = HEAP32[$56>>2]|0;
  34613. $arglist_next12 = ((($56)) + 4|0);
  34614. HEAP32[$2>>2] = $arglist_next12;
  34615. $58 = $57&65535;
  34616. $59 = $58 << 16 >> 16;
  34617. $60 = ($59|0)<(0);
  34618. $61 = $60 << 31 >> 31;
  34619. $62 = $0;
  34620. $63 = $62;
  34621. HEAP32[$63>>2] = $59;
  34622. $64 = (($62) + 4)|0;
  34623. $65 = $64;
  34624. HEAP32[$65>>2] = $61;
  34625. break L1;
  34626. break;
  34627. }
  34628. case 14: {
  34629. $arglist_current14 = HEAP32[$2>>2]|0;
  34630. $66 = $arglist_current14;
  34631. $67 = ((0) + 4|0);
  34632. $expanded63 = $67;
  34633. $expanded62 = (($expanded63) - 1)|0;
  34634. $68 = (($66) + ($expanded62))|0;
  34635. $69 = ((0) + 4|0);
  34636. $expanded67 = $69;
  34637. $expanded66 = (($expanded67) - 1)|0;
  34638. $expanded65 = $expanded66 ^ -1;
  34639. $70 = $68 & $expanded65;
  34640. $71 = $70;
  34641. $72 = HEAP32[$71>>2]|0;
  34642. $arglist_next15 = ((($71)) + 4|0);
  34643. HEAP32[$2>>2] = $arglist_next15;
  34644. $$mask31 = $72 & 65535;
  34645. $73 = $0;
  34646. $74 = $73;
  34647. HEAP32[$74>>2] = $$mask31;
  34648. $75 = (($73) + 4)|0;
  34649. $76 = $75;
  34650. HEAP32[$76>>2] = 0;
  34651. break L1;
  34652. break;
  34653. }
  34654. case 15: {
  34655. $arglist_current17 = HEAP32[$2>>2]|0;
  34656. $77 = $arglist_current17;
  34657. $78 = ((0) + 4|0);
  34658. $expanded70 = $78;
  34659. $expanded69 = (($expanded70) - 1)|0;
  34660. $79 = (($77) + ($expanded69))|0;
  34661. $80 = ((0) + 4|0);
  34662. $expanded74 = $80;
  34663. $expanded73 = (($expanded74) - 1)|0;
  34664. $expanded72 = $expanded73 ^ -1;
  34665. $81 = $79 & $expanded72;
  34666. $82 = $81;
  34667. $83 = HEAP32[$82>>2]|0;
  34668. $arglist_next18 = ((($82)) + 4|0);
  34669. HEAP32[$2>>2] = $arglist_next18;
  34670. $84 = $83&255;
  34671. $85 = $84 << 24 >> 24;
  34672. $86 = ($85|0)<(0);
  34673. $87 = $86 << 31 >> 31;
  34674. $88 = $0;
  34675. $89 = $88;
  34676. HEAP32[$89>>2] = $85;
  34677. $90 = (($88) + 4)|0;
  34678. $91 = $90;
  34679. HEAP32[$91>>2] = $87;
  34680. break L1;
  34681. break;
  34682. }
  34683. case 16: {
  34684. $arglist_current20 = HEAP32[$2>>2]|0;
  34685. $92 = $arglist_current20;
  34686. $93 = ((0) + 4|0);
  34687. $expanded77 = $93;
  34688. $expanded76 = (($expanded77) - 1)|0;
  34689. $94 = (($92) + ($expanded76))|0;
  34690. $95 = ((0) + 4|0);
  34691. $expanded81 = $95;
  34692. $expanded80 = (($expanded81) - 1)|0;
  34693. $expanded79 = $expanded80 ^ -1;
  34694. $96 = $94 & $expanded79;
  34695. $97 = $96;
  34696. $98 = HEAP32[$97>>2]|0;
  34697. $arglist_next21 = ((($97)) + 4|0);
  34698. HEAP32[$2>>2] = $arglist_next21;
  34699. $$mask = $98 & 255;
  34700. $99 = $0;
  34701. $100 = $99;
  34702. HEAP32[$100>>2] = $$mask;
  34703. $101 = (($99) + 4)|0;
  34704. $102 = $101;
  34705. HEAP32[$102>>2] = 0;
  34706. break L1;
  34707. break;
  34708. }
  34709. case 17: {
  34710. $arglist_current23 = HEAP32[$2>>2]|0;
  34711. $103 = $arglist_current23;
  34712. $104 = ((0) + 8|0);
  34713. $expanded84 = $104;
  34714. $expanded83 = (($expanded84) - 1)|0;
  34715. $105 = (($103) + ($expanded83))|0;
  34716. $106 = ((0) + 8|0);
  34717. $expanded88 = $106;
  34718. $expanded87 = (($expanded88) - 1)|0;
  34719. $expanded86 = $expanded87 ^ -1;
  34720. $107 = $105 & $expanded86;
  34721. $108 = $107;
  34722. $109 = +HEAPF64[$108>>3];
  34723. $arglist_next24 = ((($108)) + 8|0);
  34724. HEAP32[$2>>2] = $arglist_next24;
  34725. HEAPF64[$0>>3] = $109;
  34726. break L1;
  34727. break;
  34728. }
  34729. case 18: {
  34730. $arglist_current26 = HEAP32[$2>>2]|0;
  34731. $110 = $arglist_current26;
  34732. $111 = ((0) + 8|0);
  34733. $expanded91 = $111;
  34734. $expanded90 = (($expanded91) - 1)|0;
  34735. $112 = (($110) + ($expanded90))|0;
  34736. $113 = ((0) + 8|0);
  34737. $expanded95 = $113;
  34738. $expanded94 = (($expanded95) - 1)|0;
  34739. $expanded93 = $expanded94 ^ -1;
  34740. $114 = $112 & $expanded93;
  34741. $115 = $114;
  34742. $116 = +HEAPF64[$115>>3];
  34743. $arglist_next27 = ((($115)) + 8|0);
  34744. HEAP32[$2>>2] = $arglist_next27;
  34745. HEAPF64[$0>>3] = $116;
  34746. break L1;
  34747. break;
  34748. }
  34749. default: {
  34750. break L1;
  34751. }
  34752. }
  34753. } while(0);
  34754. }
  34755. } while(0);
  34756. return;
  34757. }
  34758. function _fmt_x($0,$1,$2,$3) {
  34759. $0 = $0|0;
  34760. $1 = $1|0;
  34761. $2 = $2|0;
  34762. $3 = $3|0;
  34763. 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;
  34764. var sp = 0;
  34765. sp = STACKTOP;
  34766. $4 = ($0|0)==(0);
  34767. $5 = ($1|0)==(0);
  34768. $6 = $4 & $5;
  34769. if ($6) {
  34770. $$05$lcssa = $2;
  34771. } else {
  34772. $$056 = $2;$15 = $1;$8 = $0;
  34773. while(1) {
  34774. $7 = $8 & 15;
  34775. $9 = (17223 + ($7)|0);
  34776. $10 = HEAP8[$9>>0]|0;
  34777. $11 = $10&255;
  34778. $12 = $11 | $3;
  34779. $13 = $12&255;
  34780. $14 = ((($$056)) + -1|0);
  34781. HEAP8[$14>>0] = $13;
  34782. $16 = (_bitshift64Lshr(($8|0),($15|0),4)|0);
  34783. $17 = tempRet0;
  34784. $18 = ($16|0)==(0);
  34785. $19 = ($17|0)==(0);
  34786. $20 = $18 & $19;
  34787. if ($20) {
  34788. $$05$lcssa = $14;
  34789. break;
  34790. } else {
  34791. $$056 = $14;$15 = $17;$8 = $16;
  34792. }
  34793. }
  34794. }
  34795. return ($$05$lcssa|0);
  34796. }
  34797. function _fmt_o($0,$1,$2) {
  34798. $0 = $0|0;
  34799. $1 = $1|0;
  34800. $2 = $2|0;
  34801. 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;
  34802. sp = STACKTOP;
  34803. $3 = ($0|0)==(0);
  34804. $4 = ($1|0)==(0);
  34805. $5 = $3 & $4;
  34806. if ($5) {
  34807. $$0$lcssa = $2;
  34808. } else {
  34809. $$06 = $2;$11 = $1;$7 = $0;
  34810. while(1) {
  34811. $6 = $7&255;
  34812. $8 = $6 & 7;
  34813. $9 = $8 | 48;
  34814. $10 = ((($$06)) + -1|0);
  34815. HEAP8[$10>>0] = $9;
  34816. $12 = (_bitshift64Lshr(($7|0),($11|0),3)|0);
  34817. $13 = tempRet0;
  34818. $14 = ($12|0)==(0);
  34819. $15 = ($13|0)==(0);
  34820. $16 = $14 & $15;
  34821. if ($16) {
  34822. $$0$lcssa = $10;
  34823. break;
  34824. } else {
  34825. $$06 = $10;$11 = $13;$7 = $12;
  34826. }
  34827. }
  34828. }
  34829. return ($$0$lcssa|0);
  34830. }
  34831. function _fmt_u($0,$1,$2) {
  34832. $0 = $0|0;
  34833. $1 = $1|0;
  34834. $2 = $2|0;
  34835. 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;
  34836. 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;
  34837. sp = STACKTOP;
  34838. $3 = ($1>>>0)>(0);
  34839. $4 = ($0>>>0)>(4294967295);
  34840. $5 = ($1|0)==(0);
  34841. $6 = $5 & $4;
  34842. $7 = $3 | $6;
  34843. if ($7) {
  34844. $$0914 = $2;$8 = $0;$9 = $1;
  34845. while(1) {
  34846. $10 = (___uremdi3(($8|0),($9|0),10,0)|0);
  34847. $11 = tempRet0;
  34848. $12 = $10&255;
  34849. $13 = $12 | 48;
  34850. $14 = ((($$0914)) + -1|0);
  34851. HEAP8[$14>>0] = $13;
  34852. $15 = (___udivdi3(($8|0),($9|0),10,0)|0);
  34853. $16 = tempRet0;
  34854. $17 = ($9>>>0)>(9);
  34855. $18 = ($8>>>0)>(4294967295);
  34856. $19 = ($9|0)==(9);
  34857. $20 = $19 & $18;
  34858. $21 = $17 | $20;
  34859. if ($21) {
  34860. $$0914 = $14;$8 = $15;$9 = $16;
  34861. } else {
  34862. break;
  34863. }
  34864. }
  34865. $$010$lcssa$off0 = $15;$$09$lcssa = $14;
  34866. } else {
  34867. $$010$lcssa$off0 = $0;$$09$lcssa = $2;
  34868. }
  34869. $22 = ($$010$lcssa$off0|0)==(0);
  34870. if ($22) {
  34871. $$1$lcssa = $$09$lcssa;
  34872. } else {
  34873. $$012 = $$010$lcssa$off0;$$111 = $$09$lcssa;
  34874. while(1) {
  34875. $23 = (($$012>>>0) % 10)&-1;
  34876. $24 = $23 | 48;
  34877. $25 = $24&255;
  34878. $26 = ((($$111)) + -1|0);
  34879. HEAP8[$26>>0] = $25;
  34880. $27 = (($$012>>>0) / 10)&-1;
  34881. $28 = ($$012>>>0)<(10);
  34882. if ($28) {
  34883. $$1$lcssa = $26;
  34884. break;
  34885. } else {
  34886. $$012 = $27;$$111 = $26;
  34887. }
  34888. }
  34889. }
  34890. return ($$1$lcssa|0);
  34891. }
  34892. function _strerror($0) {
  34893. $0 = $0|0;
  34894. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  34895. sp = STACKTOP;
  34896. $1 = (___pthread_self_105()|0);
  34897. $2 = ((($1)) + 188|0);
  34898. $3 = HEAP32[$2>>2]|0;
  34899. $4 = (___strerror_l($0,$3)|0);
  34900. return ($4|0);
  34901. }
  34902. function _memchr($0,$1,$2) {
  34903. $0 = $0|0;
  34904. $1 = $1|0;
  34905. $2 = $2|0;
  34906. 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;
  34907. 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;
  34908. 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;
  34909. sp = STACKTOP;
  34910. $3 = $1 & 255;
  34911. $4 = $0;
  34912. $5 = $4 & 3;
  34913. $6 = ($5|0)!=(0);
  34914. $7 = ($2|0)!=(0);
  34915. $or$cond53 = $7 & $6;
  34916. L1: do {
  34917. if ($or$cond53) {
  34918. $8 = $1&255;
  34919. $$03555 = $0;$$03654 = $2;
  34920. while(1) {
  34921. $9 = HEAP8[$$03555>>0]|0;
  34922. $10 = ($9<<24>>24)==($8<<24>>24);
  34923. if ($10) {
  34924. $$035$lcssa65 = $$03555;$$036$lcssa64 = $$03654;
  34925. label = 6;
  34926. break L1;
  34927. }
  34928. $11 = ((($$03555)) + 1|0);
  34929. $12 = (($$03654) + -1)|0;
  34930. $13 = $11;
  34931. $14 = $13 & 3;
  34932. $15 = ($14|0)!=(0);
  34933. $16 = ($12|0)!=(0);
  34934. $or$cond = $16 & $15;
  34935. if ($or$cond) {
  34936. $$03555 = $11;$$03654 = $12;
  34937. } else {
  34938. $$035$lcssa = $11;$$036$lcssa = $12;$$lcssa = $16;
  34939. label = 5;
  34940. break;
  34941. }
  34942. }
  34943. } else {
  34944. $$035$lcssa = $0;$$036$lcssa = $2;$$lcssa = $7;
  34945. label = 5;
  34946. }
  34947. } while(0);
  34948. if ((label|0) == 5) {
  34949. if ($$lcssa) {
  34950. $$035$lcssa65 = $$035$lcssa;$$036$lcssa64 = $$036$lcssa;
  34951. label = 6;
  34952. } else {
  34953. $$2 = $$035$lcssa;$$3 = 0;
  34954. }
  34955. }
  34956. L8: do {
  34957. if ((label|0) == 6) {
  34958. $17 = HEAP8[$$035$lcssa65>>0]|0;
  34959. $18 = $1&255;
  34960. $19 = ($17<<24>>24)==($18<<24>>24);
  34961. if ($19) {
  34962. $$2 = $$035$lcssa65;$$3 = $$036$lcssa64;
  34963. } else {
  34964. $20 = Math_imul($3, 16843009)|0;
  34965. $21 = ($$036$lcssa64>>>0)>(3);
  34966. L11: do {
  34967. if ($21) {
  34968. $$046 = $$035$lcssa65;$$13745 = $$036$lcssa64;
  34969. while(1) {
  34970. $22 = HEAP32[$$046>>2]|0;
  34971. $23 = $22 ^ $20;
  34972. $24 = (($23) + -16843009)|0;
  34973. $25 = $23 & -2139062144;
  34974. $26 = $25 ^ -2139062144;
  34975. $27 = $26 & $24;
  34976. $28 = ($27|0)==(0);
  34977. if (!($28)) {
  34978. break;
  34979. }
  34980. $29 = ((($$046)) + 4|0);
  34981. $30 = (($$13745) + -4)|0;
  34982. $31 = ($30>>>0)>(3);
  34983. if ($31) {
  34984. $$046 = $29;$$13745 = $30;
  34985. } else {
  34986. $$0$lcssa = $29;$$137$lcssa = $30;
  34987. label = 11;
  34988. break L11;
  34989. }
  34990. }
  34991. $$140 = $$046;$$23839 = $$13745;
  34992. } else {
  34993. $$0$lcssa = $$035$lcssa65;$$137$lcssa = $$036$lcssa64;
  34994. label = 11;
  34995. }
  34996. } while(0);
  34997. if ((label|0) == 11) {
  34998. $32 = ($$137$lcssa|0)==(0);
  34999. if ($32) {
  35000. $$2 = $$0$lcssa;$$3 = 0;
  35001. break;
  35002. } else {
  35003. $$140 = $$0$lcssa;$$23839 = $$137$lcssa;
  35004. }
  35005. }
  35006. while(1) {
  35007. $33 = HEAP8[$$140>>0]|0;
  35008. $34 = ($33<<24>>24)==($18<<24>>24);
  35009. if ($34) {
  35010. $$2 = $$140;$$3 = $$23839;
  35011. break L8;
  35012. }
  35013. $35 = ((($$140)) + 1|0);
  35014. $36 = (($$23839) + -1)|0;
  35015. $37 = ($36|0)==(0);
  35016. if ($37) {
  35017. $$2 = $35;$$3 = 0;
  35018. break;
  35019. } else {
  35020. $$140 = $35;$$23839 = $36;
  35021. }
  35022. }
  35023. }
  35024. }
  35025. } while(0);
  35026. $38 = ($$3|0)!=(0);
  35027. $39 = $38 ? $$2 : 0;
  35028. return ($39|0);
  35029. }
  35030. function _pad_674($0,$1,$2,$3,$4) {
  35031. $0 = $0|0;
  35032. $1 = $1|0;
  35033. $2 = $2|0;
  35034. $3 = $3|0;
  35035. $4 = $4|0;
  35036. 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;
  35037. sp = STACKTOP;
  35038. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  35039. $5 = sp;
  35040. $6 = $4 & 73728;
  35041. $7 = ($6|0)==(0);
  35042. $8 = ($2|0)>($3|0);
  35043. $or$cond = $8 & $7;
  35044. if ($or$cond) {
  35045. $9 = (($2) - ($3))|0;
  35046. $10 = ($9>>>0)<(256);
  35047. $11 = $10 ? $9 : 256;
  35048. _memset(($5|0),($1|0),($11|0))|0;
  35049. $12 = ($9>>>0)>(255);
  35050. if ($12) {
  35051. $13 = (($2) - ($3))|0;
  35052. $$011 = $9;
  35053. while(1) {
  35054. _out($0,$5,256);
  35055. $14 = (($$011) + -256)|0;
  35056. $15 = ($14>>>0)>(255);
  35057. if ($15) {
  35058. $$011 = $14;
  35059. } else {
  35060. break;
  35061. }
  35062. }
  35063. $16 = $13 & 255;
  35064. $$0$lcssa = $16;
  35065. } else {
  35066. $$0$lcssa = $9;
  35067. }
  35068. _out($0,$5,$$0$lcssa);
  35069. }
  35070. STACKTOP = sp;return;
  35071. }
  35072. function _wctomb($0,$1) {
  35073. $0 = $0|0;
  35074. $1 = $1|0;
  35075. var $$0 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  35076. sp = STACKTOP;
  35077. $2 = ($0|0)==(0|0);
  35078. if ($2) {
  35079. $$0 = 0;
  35080. } else {
  35081. $3 = (_wcrtomb($0,$1,0)|0);
  35082. $$0 = $3;
  35083. }
  35084. return ($$0|0);
  35085. }
  35086. function _fmt_fp($0,$1,$2,$3,$4,$5) {
  35087. $0 = $0|0;
  35088. $1 = +$1;
  35089. $2 = $2|0;
  35090. $3 = $3|0;
  35091. $4 = $4|0;
  35092. $5 = $5|0;
  35093. 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;
  35094. 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;
  35095. 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;
  35096. 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;
  35097. 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;
  35098. 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;
  35099. 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;
  35100. 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;
  35101. 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;
  35102. 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;
  35103. 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;
  35104. 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;
  35105. 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;
  35106. 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;
  35107. 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;
  35108. 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;
  35109. 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;
  35110. 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;
  35111. 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;
  35112. 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;
  35113. 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;
  35114. 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;
  35115. 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;
  35116. 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;
  35117. 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;
  35118. 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;
  35119. sp = STACKTOP;
  35120. STACKTOP = STACKTOP + 560|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(560|0);
  35121. $6 = sp + 8|0;
  35122. $7 = sp;
  35123. $8 = sp + 524|0;
  35124. $9 = $8;
  35125. $10 = sp + 512|0;
  35126. HEAP32[$7>>2] = 0;
  35127. $11 = ((($10)) + 12|0);
  35128. (___DOUBLE_BITS_675($1)|0);
  35129. $12 = tempRet0;
  35130. $13 = ($12|0)<(0);
  35131. if ($13) {
  35132. $14 = -$1;
  35133. $$0471 = $14;$$0520 = 1;$$0521 = 17192;
  35134. } else {
  35135. $15 = $4 & 2048;
  35136. $16 = ($15|0)==(0);
  35137. $17 = $4 & 1;
  35138. $18 = ($17|0)==(0);
  35139. $$ = $18 ? (17193) : (17198);
  35140. $$$ = $16 ? $$ : (17195);
  35141. $19 = $4 & 2049;
  35142. $narrow = ($19|0)!=(0);
  35143. $$534$ = $narrow&1;
  35144. $$0471 = $1;$$0520 = $$534$;$$0521 = $$$;
  35145. }
  35146. (___DOUBLE_BITS_675($$0471)|0);
  35147. $20 = tempRet0;
  35148. $21 = $20 & 2146435072;
  35149. $22 = ($21>>>0)<(2146435072);
  35150. $23 = (0)<(0);
  35151. $24 = ($21|0)==(2146435072);
  35152. $25 = $24 & $23;
  35153. $26 = $22 | $25;
  35154. do {
  35155. if ($26) {
  35156. $35 = (+_frexpl($$0471,$7));
  35157. $36 = $35 * 2.0;
  35158. $37 = $36 != 0.0;
  35159. if ($37) {
  35160. $38 = HEAP32[$7>>2]|0;
  35161. $39 = (($38) + -1)|0;
  35162. HEAP32[$7>>2] = $39;
  35163. }
  35164. $40 = $5 | 32;
  35165. $41 = ($40|0)==(97);
  35166. if ($41) {
  35167. $42 = $5 & 32;
  35168. $43 = ($42|0)==(0);
  35169. $44 = ((($$0521)) + 9|0);
  35170. $$0521$ = $43 ? $$0521 : $44;
  35171. $45 = $$0520 | 2;
  35172. $46 = ($3>>>0)>(11);
  35173. $47 = (12 - ($3))|0;
  35174. $48 = ($47|0)==(0);
  35175. $49 = $46 | $48;
  35176. do {
  35177. if ($49) {
  35178. $$1472 = $36;
  35179. } else {
  35180. $$0509582 = 8.0;$$1508583 = $47;
  35181. while(1) {
  35182. $50 = (($$1508583) + -1)|0;
  35183. $51 = $$0509582 * 16.0;
  35184. $52 = ($50|0)==(0);
  35185. if ($52) {
  35186. break;
  35187. } else {
  35188. $$0509582 = $51;$$1508583 = $50;
  35189. }
  35190. }
  35191. $53 = HEAP8[$$0521$>>0]|0;
  35192. $54 = ($53<<24>>24)==(45);
  35193. if ($54) {
  35194. $55 = -$36;
  35195. $56 = $55 - $51;
  35196. $57 = $51 + $56;
  35197. $58 = -$57;
  35198. $$1472 = $58;
  35199. break;
  35200. } else {
  35201. $59 = $36 + $51;
  35202. $60 = $59 - $51;
  35203. $$1472 = $60;
  35204. break;
  35205. }
  35206. }
  35207. } while(0);
  35208. $61 = HEAP32[$7>>2]|0;
  35209. $62 = ($61|0)<(0);
  35210. $63 = (0 - ($61))|0;
  35211. $64 = $62 ? $63 : $61;
  35212. $65 = ($64|0)<(0);
  35213. $66 = $65 << 31 >> 31;
  35214. $67 = (_fmt_u($64,$66,$11)|0);
  35215. $68 = ($67|0)==($11|0);
  35216. if ($68) {
  35217. $69 = ((($10)) + 11|0);
  35218. HEAP8[$69>>0] = 48;
  35219. $$0511 = $69;
  35220. } else {
  35221. $$0511 = $67;
  35222. }
  35223. $70 = $61 >> 31;
  35224. $71 = $70 & 2;
  35225. $72 = (($71) + 43)|0;
  35226. $73 = $72&255;
  35227. $74 = ((($$0511)) + -1|0);
  35228. HEAP8[$74>>0] = $73;
  35229. $75 = (($5) + 15)|0;
  35230. $76 = $75&255;
  35231. $77 = ((($$0511)) + -2|0);
  35232. HEAP8[$77>>0] = $76;
  35233. $notrhs = ($3|0)<(1);
  35234. $78 = $4 & 8;
  35235. $79 = ($78|0)==(0);
  35236. $$0523 = $8;$$2473 = $$1472;
  35237. while(1) {
  35238. $80 = (~~(($$2473)));
  35239. $81 = (17223 + ($80)|0);
  35240. $82 = HEAP8[$81>>0]|0;
  35241. $83 = $82&255;
  35242. $84 = $83 | $42;
  35243. $85 = $84&255;
  35244. $86 = ((($$0523)) + 1|0);
  35245. HEAP8[$$0523>>0] = $85;
  35246. $87 = (+($80|0));
  35247. $88 = $$2473 - $87;
  35248. $89 = $88 * 16.0;
  35249. $90 = $86;
  35250. $91 = (($90) - ($9))|0;
  35251. $92 = ($91|0)==(1);
  35252. if ($92) {
  35253. $notlhs = $89 == 0.0;
  35254. $or$cond3$not = $notrhs & $notlhs;
  35255. $or$cond = $79 & $or$cond3$not;
  35256. if ($or$cond) {
  35257. $$1524 = $86;
  35258. } else {
  35259. $93 = ((($$0523)) + 2|0);
  35260. HEAP8[$86>>0] = 46;
  35261. $$1524 = $93;
  35262. }
  35263. } else {
  35264. $$1524 = $86;
  35265. }
  35266. $94 = $89 != 0.0;
  35267. if ($94) {
  35268. $$0523 = $$1524;$$2473 = $89;
  35269. } else {
  35270. break;
  35271. }
  35272. }
  35273. $95 = ($3|0)!=(0);
  35274. $96 = $77;
  35275. $97 = $11;
  35276. $98 = $$1524;
  35277. $99 = (($98) - ($9))|0;
  35278. $100 = (($97) - ($96))|0;
  35279. $101 = (($99) + -2)|0;
  35280. $102 = ($101|0)<($3|0);
  35281. $or$cond537 = $95 & $102;
  35282. $103 = (($3) + 2)|0;
  35283. $$pn = $or$cond537 ? $103 : $99;
  35284. $$0525 = (($100) + ($45))|0;
  35285. $104 = (($$0525) + ($$pn))|0;
  35286. _pad_674($0,32,$2,$104,$4);
  35287. _out($0,$$0521$,$45);
  35288. $105 = $4 ^ 65536;
  35289. _pad_674($0,48,$2,$104,$105);
  35290. _out($0,$8,$99);
  35291. $106 = (($$pn) - ($99))|0;
  35292. _pad_674($0,48,$106,0,0);
  35293. _out($0,$77,$100);
  35294. $107 = $4 ^ 8192;
  35295. _pad_674($0,32,$2,$104,$107);
  35296. $$sink562 = $104;
  35297. break;
  35298. }
  35299. $108 = ($3|0)<(0);
  35300. $$539 = $108 ? 6 : $3;
  35301. if ($37) {
  35302. $109 = $36 * 268435456.0;
  35303. $110 = HEAP32[$7>>2]|0;
  35304. $111 = (($110) + -28)|0;
  35305. HEAP32[$7>>2] = $111;
  35306. $$3 = $109;$$pr = $111;
  35307. } else {
  35308. $$pre = HEAP32[$7>>2]|0;
  35309. $$3 = $36;$$pr = $$pre;
  35310. }
  35311. $112 = ($$pr|0)<(0);
  35312. $113 = ((($6)) + 288|0);
  35313. $$556 = $112 ? $6 : $113;
  35314. $$0498 = $$556;$$4 = $$3;
  35315. while(1) {
  35316. $114 = (~~(($$4))>>>0);
  35317. HEAP32[$$0498>>2] = $114;
  35318. $115 = ((($$0498)) + 4|0);
  35319. $116 = (+($114>>>0));
  35320. $117 = $$4 - $116;
  35321. $118 = $117 * 1.0E+9;
  35322. $119 = $118 != 0.0;
  35323. if ($119) {
  35324. $$0498 = $115;$$4 = $118;
  35325. } else {
  35326. break;
  35327. }
  35328. }
  35329. $120 = ($$pr|0)>(0);
  35330. if ($120) {
  35331. $$1482661 = $$556;$$1499660 = $115;$122 = $$pr;
  35332. while(1) {
  35333. $121 = ($122|0)<(29);
  35334. $123 = $121 ? $122 : 29;
  35335. $$0488653 = ((($$1499660)) + -4|0);
  35336. $124 = ($$0488653>>>0)<($$1482661>>>0);
  35337. if ($124) {
  35338. $$2483$ph = $$1482661;
  35339. } else {
  35340. $$0488655 = $$0488653;$$0497654 = 0;
  35341. while(1) {
  35342. $125 = HEAP32[$$0488655>>2]|0;
  35343. $126 = (_bitshift64Shl(($125|0),0,($123|0))|0);
  35344. $127 = tempRet0;
  35345. $128 = (_i64Add(($126|0),($127|0),($$0497654|0),0)|0);
  35346. $129 = tempRet0;
  35347. $130 = (___uremdi3(($128|0),($129|0),1000000000,0)|0);
  35348. $131 = tempRet0;
  35349. HEAP32[$$0488655>>2] = $130;
  35350. $132 = (___udivdi3(($128|0),($129|0),1000000000,0)|0);
  35351. $133 = tempRet0;
  35352. $$0488 = ((($$0488655)) + -4|0);
  35353. $134 = ($$0488>>>0)<($$1482661>>>0);
  35354. if ($134) {
  35355. break;
  35356. } else {
  35357. $$0488655 = $$0488;$$0497654 = $132;
  35358. }
  35359. }
  35360. $135 = ($132|0)==(0);
  35361. if ($135) {
  35362. $$2483$ph = $$1482661;
  35363. } else {
  35364. $136 = ((($$1482661)) + -4|0);
  35365. HEAP32[$136>>2] = $132;
  35366. $$2483$ph = $136;
  35367. }
  35368. }
  35369. $$2500 = $$1499660;
  35370. while(1) {
  35371. $137 = ($$2500>>>0)>($$2483$ph>>>0);
  35372. if (!($137)) {
  35373. break;
  35374. }
  35375. $138 = ((($$2500)) + -4|0);
  35376. $139 = HEAP32[$138>>2]|0;
  35377. $140 = ($139|0)==(0);
  35378. if ($140) {
  35379. $$2500 = $138;
  35380. } else {
  35381. break;
  35382. }
  35383. }
  35384. $141 = HEAP32[$7>>2]|0;
  35385. $142 = (($141) - ($123))|0;
  35386. HEAP32[$7>>2] = $142;
  35387. $143 = ($142|0)>(0);
  35388. if ($143) {
  35389. $$1482661 = $$2483$ph;$$1499660 = $$2500;$122 = $142;
  35390. } else {
  35391. $$1482$lcssa = $$2483$ph;$$1499$lcssa = $$2500;$$pr564 = $142;
  35392. break;
  35393. }
  35394. }
  35395. } else {
  35396. $$1482$lcssa = $$556;$$1499$lcssa = $115;$$pr564 = $$pr;
  35397. }
  35398. $144 = ($$pr564|0)<(0);
  35399. if ($144) {
  35400. $145 = (($$539) + 25)|0;
  35401. $146 = (($145|0) / 9)&-1;
  35402. $147 = (($146) + 1)|0;
  35403. $148 = ($40|0)==(102);
  35404. $$3484648 = $$1482$lcssa;$$3501647 = $$1499$lcssa;$150 = $$pr564;
  35405. while(1) {
  35406. $149 = (0 - ($150))|0;
  35407. $151 = ($149|0)<(9);
  35408. $152 = $151 ? $149 : 9;
  35409. $153 = ($$3484648>>>0)<($$3501647>>>0);
  35410. if ($153) {
  35411. $157 = 1 << $152;
  35412. $158 = (($157) + -1)|0;
  35413. $159 = 1000000000 >>> $152;
  35414. $$0487642 = 0;$$1489641 = $$3484648;
  35415. while(1) {
  35416. $160 = HEAP32[$$1489641>>2]|0;
  35417. $161 = $160 & $158;
  35418. $162 = $160 >>> $152;
  35419. $163 = (($162) + ($$0487642))|0;
  35420. HEAP32[$$1489641>>2] = $163;
  35421. $164 = Math_imul($161, $159)|0;
  35422. $165 = ((($$1489641)) + 4|0);
  35423. $166 = ($165>>>0)<($$3501647>>>0);
  35424. if ($166) {
  35425. $$0487642 = $164;$$1489641 = $165;
  35426. } else {
  35427. break;
  35428. }
  35429. }
  35430. $167 = HEAP32[$$3484648>>2]|0;
  35431. $168 = ($167|0)==(0);
  35432. $169 = ((($$3484648)) + 4|0);
  35433. $$$3484 = $168 ? $169 : $$3484648;
  35434. $170 = ($164|0)==(0);
  35435. if ($170) {
  35436. $$$3484692 = $$$3484;$$4502 = $$3501647;
  35437. } else {
  35438. $171 = ((($$3501647)) + 4|0);
  35439. HEAP32[$$3501647>>2] = $164;
  35440. $$$3484692 = $$$3484;$$4502 = $171;
  35441. }
  35442. } else {
  35443. $154 = HEAP32[$$3484648>>2]|0;
  35444. $155 = ($154|0)==(0);
  35445. $156 = ((($$3484648)) + 4|0);
  35446. $$$3484691 = $155 ? $156 : $$3484648;
  35447. $$$3484692 = $$$3484691;$$4502 = $$3501647;
  35448. }
  35449. $172 = $148 ? $$556 : $$$3484692;
  35450. $173 = $$4502;
  35451. $174 = $172;
  35452. $175 = (($173) - ($174))|0;
  35453. $176 = $175 >> 2;
  35454. $177 = ($176|0)>($147|0);
  35455. $178 = (($172) + ($147<<2)|0);
  35456. $$$4502 = $177 ? $178 : $$4502;
  35457. $179 = HEAP32[$7>>2]|0;
  35458. $180 = (($179) + ($152))|0;
  35459. HEAP32[$7>>2] = $180;
  35460. $181 = ($180|0)<(0);
  35461. if ($181) {
  35462. $$3484648 = $$$3484692;$$3501647 = $$$4502;$150 = $180;
  35463. } else {
  35464. $$3484$lcssa = $$$3484692;$$3501$lcssa = $$$4502;
  35465. break;
  35466. }
  35467. }
  35468. } else {
  35469. $$3484$lcssa = $$1482$lcssa;$$3501$lcssa = $$1499$lcssa;
  35470. }
  35471. $182 = ($$3484$lcssa>>>0)<($$3501$lcssa>>>0);
  35472. $183 = $$556;
  35473. if ($182) {
  35474. $184 = $$3484$lcssa;
  35475. $185 = (($183) - ($184))|0;
  35476. $186 = $185 >> 2;
  35477. $187 = ($186*9)|0;
  35478. $188 = HEAP32[$$3484$lcssa>>2]|0;
  35479. $189 = ($188>>>0)<(10);
  35480. if ($189) {
  35481. $$1515 = $187;
  35482. } else {
  35483. $$0514637 = $187;$$0530636 = 10;
  35484. while(1) {
  35485. $190 = ($$0530636*10)|0;
  35486. $191 = (($$0514637) + 1)|0;
  35487. $192 = ($188>>>0)<($190>>>0);
  35488. if ($192) {
  35489. $$1515 = $191;
  35490. break;
  35491. } else {
  35492. $$0514637 = $191;$$0530636 = $190;
  35493. }
  35494. }
  35495. }
  35496. } else {
  35497. $$1515 = 0;
  35498. }
  35499. $193 = ($40|0)!=(102);
  35500. $194 = $193 ? $$1515 : 0;
  35501. $195 = (($$539) - ($194))|0;
  35502. $196 = ($40|0)==(103);
  35503. $197 = ($$539|0)!=(0);
  35504. $198 = $197 & $196;
  35505. $$neg = $198 << 31 >> 31;
  35506. $199 = (($195) + ($$neg))|0;
  35507. $200 = $$3501$lcssa;
  35508. $201 = (($200) - ($183))|0;
  35509. $202 = $201 >> 2;
  35510. $203 = ($202*9)|0;
  35511. $204 = (($203) + -9)|0;
  35512. $205 = ($199|0)<($204|0);
  35513. if ($205) {
  35514. $206 = ((($$556)) + 4|0);
  35515. $207 = (($199) + 9216)|0;
  35516. $208 = (($207|0) / 9)&-1;
  35517. $209 = (($208) + -1024)|0;
  35518. $210 = (($206) + ($209<<2)|0);
  35519. $211 = (($207|0) % 9)&-1;
  35520. $$0527629 = (($211) + 1)|0;
  35521. $212 = ($$0527629|0)<(9);
  35522. if ($212) {
  35523. $$0527631 = $$0527629;$$1531630 = 10;
  35524. while(1) {
  35525. $213 = ($$1531630*10)|0;
  35526. $$0527 = (($$0527631) + 1)|0;
  35527. $exitcond = ($$0527|0)==(9);
  35528. if ($exitcond) {
  35529. $$1531$lcssa = $213;
  35530. break;
  35531. } else {
  35532. $$0527631 = $$0527;$$1531630 = $213;
  35533. }
  35534. }
  35535. } else {
  35536. $$1531$lcssa = 10;
  35537. }
  35538. $214 = HEAP32[$210>>2]|0;
  35539. $215 = (($214>>>0) % ($$1531$lcssa>>>0))&-1;
  35540. $216 = ($215|0)==(0);
  35541. $217 = ((($210)) + 4|0);
  35542. $218 = ($217|0)==($$3501$lcssa|0);
  35543. $or$cond541 = $218 & $216;
  35544. if ($or$cond541) {
  35545. $$4492 = $210;$$4518 = $$1515;$$8 = $$3484$lcssa;
  35546. } else {
  35547. $219 = (($214>>>0) / ($$1531$lcssa>>>0))&-1;
  35548. $220 = $219 & 1;
  35549. $221 = ($220|0)==(0);
  35550. $$542 = $221 ? 9007199254740992.0 : 9007199254740994.0;
  35551. $222 = (($$1531$lcssa|0) / 2)&-1;
  35552. $223 = ($215>>>0)<($222>>>0);
  35553. $224 = ($215|0)==($222|0);
  35554. $or$cond544 = $218 & $224;
  35555. $$559 = $or$cond544 ? 1.0 : 1.5;
  35556. $$$559 = $223 ? 0.5 : $$559;
  35557. $225 = ($$0520|0)==(0);
  35558. if ($225) {
  35559. $$1467 = $$$559;$$1469 = $$542;
  35560. } else {
  35561. $226 = HEAP8[$$0521>>0]|0;
  35562. $227 = ($226<<24>>24)==(45);
  35563. $228 = -$$542;
  35564. $229 = -$$$559;
  35565. $$$542 = $227 ? $228 : $$542;
  35566. $$$$559 = $227 ? $229 : $$$559;
  35567. $$1467 = $$$$559;$$1469 = $$$542;
  35568. }
  35569. $230 = (($214) - ($215))|0;
  35570. HEAP32[$210>>2] = $230;
  35571. $231 = $$1469 + $$1467;
  35572. $232 = $231 != $$1469;
  35573. if ($232) {
  35574. $233 = (($230) + ($$1531$lcssa))|0;
  35575. HEAP32[$210>>2] = $233;
  35576. $234 = ($233>>>0)>(999999999);
  35577. if ($234) {
  35578. $$5486623 = $$3484$lcssa;$$sink545622 = $210;
  35579. while(1) {
  35580. $235 = ((($$sink545622)) + -4|0);
  35581. HEAP32[$$sink545622>>2] = 0;
  35582. $236 = ($235>>>0)<($$5486623>>>0);
  35583. if ($236) {
  35584. $237 = ((($$5486623)) + -4|0);
  35585. HEAP32[$237>>2] = 0;
  35586. $$6 = $237;
  35587. } else {
  35588. $$6 = $$5486623;
  35589. }
  35590. $238 = HEAP32[$235>>2]|0;
  35591. $239 = (($238) + 1)|0;
  35592. HEAP32[$235>>2] = $239;
  35593. $240 = ($239>>>0)>(999999999);
  35594. if ($240) {
  35595. $$5486623 = $$6;$$sink545622 = $235;
  35596. } else {
  35597. $$5486$lcssa = $$6;$$sink545$lcssa = $235;
  35598. break;
  35599. }
  35600. }
  35601. } else {
  35602. $$5486$lcssa = $$3484$lcssa;$$sink545$lcssa = $210;
  35603. }
  35604. $241 = $$5486$lcssa;
  35605. $242 = (($183) - ($241))|0;
  35606. $243 = $242 >> 2;
  35607. $244 = ($243*9)|0;
  35608. $245 = HEAP32[$$5486$lcssa>>2]|0;
  35609. $246 = ($245>>>0)<(10);
  35610. if ($246) {
  35611. $$4492 = $$sink545$lcssa;$$4518 = $244;$$8 = $$5486$lcssa;
  35612. } else {
  35613. $$2516618 = $244;$$2532617 = 10;
  35614. while(1) {
  35615. $247 = ($$2532617*10)|0;
  35616. $248 = (($$2516618) + 1)|0;
  35617. $249 = ($245>>>0)<($247>>>0);
  35618. if ($249) {
  35619. $$4492 = $$sink545$lcssa;$$4518 = $248;$$8 = $$5486$lcssa;
  35620. break;
  35621. } else {
  35622. $$2516618 = $248;$$2532617 = $247;
  35623. }
  35624. }
  35625. }
  35626. } else {
  35627. $$4492 = $210;$$4518 = $$1515;$$8 = $$3484$lcssa;
  35628. }
  35629. }
  35630. $250 = ((($$4492)) + 4|0);
  35631. $251 = ($$3501$lcssa>>>0)>($250>>>0);
  35632. $$$3501 = $251 ? $250 : $$3501$lcssa;
  35633. $$5519$ph = $$4518;$$7505$ph = $$$3501;$$9$ph = $$8;
  35634. } else {
  35635. $$5519$ph = $$1515;$$7505$ph = $$3501$lcssa;$$9$ph = $$3484$lcssa;
  35636. }
  35637. $$7505 = $$7505$ph;
  35638. while(1) {
  35639. $252 = ($$7505>>>0)>($$9$ph>>>0);
  35640. if (!($252)) {
  35641. $$lcssa673 = 0;
  35642. break;
  35643. }
  35644. $253 = ((($$7505)) + -4|0);
  35645. $254 = HEAP32[$253>>2]|0;
  35646. $255 = ($254|0)==(0);
  35647. if ($255) {
  35648. $$7505 = $253;
  35649. } else {
  35650. $$lcssa673 = 1;
  35651. break;
  35652. }
  35653. }
  35654. $256 = (0 - ($$5519$ph))|0;
  35655. do {
  35656. if ($196) {
  35657. $not$ = $197 ^ 1;
  35658. $257 = $not$&1;
  35659. $$539$ = (($257) + ($$539))|0;
  35660. $258 = ($$539$|0)>($$5519$ph|0);
  35661. $259 = ($$5519$ph|0)>(-5);
  35662. $or$cond6 = $258 & $259;
  35663. if ($or$cond6) {
  35664. $260 = (($5) + -1)|0;
  35665. $$neg567 = (($$539$) + -1)|0;
  35666. $261 = (($$neg567) - ($$5519$ph))|0;
  35667. $$0479 = $260;$$2476 = $261;
  35668. } else {
  35669. $262 = (($5) + -2)|0;
  35670. $263 = (($$539$) + -1)|0;
  35671. $$0479 = $262;$$2476 = $263;
  35672. }
  35673. $264 = $4 & 8;
  35674. $265 = ($264|0)==(0);
  35675. if ($265) {
  35676. if ($$lcssa673) {
  35677. $266 = ((($$7505)) + -4|0);
  35678. $267 = HEAP32[$266>>2]|0;
  35679. $268 = ($267|0)==(0);
  35680. if ($268) {
  35681. $$2529 = 9;
  35682. } else {
  35683. $269 = (($267>>>0) % 10)&-1;
  35684. $270 = ($269|0)==(0);
  35685. if ($270) {
  35686. $$1528614 = 0;$$3533613 = 10;
  35687. while(1) {
  35688. $271 = ($$3533613*10)|0;
  35689. $272 = (($$1528614) + 1)|0;
  35690. $273 = (($267>>>0) % ($271>>>0))&-1;
  35691. $274 = ($273|0)==(0);
  35692. if ($274) {
  35693. $$1528614 = $272;$$3533613 = $271;
  35694. } else {
  35695. $$2529 = $272;
  35696. break;
  35697. }
  35698. }
  35699. } else {
  35700. $$2529 = 0;
  35701. }
  35702. }
  35703. } else {
  35704. $$2529 = 9;
  35705. }
  35706. $275 = $$0479 | 32;
  35707. $276 = ($275|0)==(102);
  35708. $277 = $$7505;
  35709. $278 = (($277) - ($183))|0;
  35710. $279 = $278 >> 2;
  35711. $280 = ($279*9)|0;
  35712. $281 = (($280) + -9)|0;
  35713. if ($276) {
  35714. $282 = (($281) - ($$2529))|0;
  35715. $283 = ($282|0)>(0);
  35716. $$546 = $283 ? $282 : 0;
  35717. $284 = ($$2476|0)<($$546|0);
  35718. $$2476$$547 = $284 ? $$2476 : $$546;
  35719. $$1480 = $$0479;$$3477 = $$2476$$547;$$pre$phi690Z2D = 0;
  35720. break;
  35721. } else {
  35722. $285 = (($281) + ($$5519$ph))|0;
  35723. $286 = (($285) - ($$2529))|0;
  35724. $287 = ($286|0)>(0);
  35725. $$548 = $287 ? $286 : 0;
  35726. $288 = ($$2476|0)<($$548|0);
  35727. $$2476$$549 = $288 ? $$2476 : $$548;
  35728. $$1480 = $$0479;$$3477 = $$2476$$549;$$pre$phi690Z2D = 0;
  35729. break;
  35730. }
  35731. } else {
  35732. $$1480 = $$0479;$$3477 = $$2476;$$pre$phi690Z2D = $264;
  35733. }
  35734. } else {
  35735. $$pre689 = $4 & 8;
  35736. $$1480 = $5;$$3477 = $$539;$$pre$phi690Z2D = $$pre689;
  35737. }
  35738. } while(0);
  35739. $289 = $$3477 | $$pre$phi690Z2D;
  35740. $290 = ($289|0)!=(0);
  35741. $291 = $290&1;
  35742. $292 = $$1480 | 32;
  35743. $293 = ($292|0)==(102);
  35744. if ($293) {
  35745. $294 = ($$5519$ph|0)>(0);
  35746. $295 = $294 ? $$5519$ph : 0;
  35747. $$2513 = 0;$$pn566 = $295;
  35748. } else {
  35749. $296 = ($$5519$ph|0)<(0);
  35750. $297 = $296 ? $256 : $$5519$ph;
  35751. $298 = ($297|0)<(0);
  35752. $299 = $298 << 31 >> 31;
  35753. $300 = (_fmt_u($297,$299,$11)|0);
  35754. $301 = $11;
  35755. $302 = $300;
  35756. $303 = (($301) - ($302))|0;
  35757. $304 = ($303|0)<(2);
  35758. if ($304) {
  35759. $$1512607 = $300;
  35760. while(1) {
  35761. $305 = ((($$1512607)) + -1|0);
  35762. HEAP8[$305>>0] = 48;
  35763. $306 = $305;
  35764. $307 = (($301) - ($306))|0;
  35765. $308 = ($307|0)<(2);
  35766. if ($308) {
  35767. $$1512607 = $305;
  35768. } else {
  35769. $$1512$lcssa = $305;
  35770. break;
  35771. }
  35772. }
  35773. } else {
  35774. $$1512$lcssa = $300;
  35775. }
  35776. $309 = $$5519$ph >> 31;
  35777. $310 = $309 & 2;
  35778. $311 = (($310) + 43)|0;
  35779. $312 = $311&255;
  35780. $313 = ((($$1512$lcssa)) + -1|0);
  35781. HEAP8[$313>>0] = $312;
  35782. $314 = $$1480&255;
  35783. $315 = ((($$1512$lcssa)) + -2|0);
  35784. HEAP8[$315>>0] = $314;
  35785. $316 = $315;
  35786. $317 = (($301) - ($316))|0;
  35787. $$2513 = $315;$$pn566 = $317;
  35788. }
  35789. $318 = (($$0520) + 1)|0;
  35790. $319 = (($318) + ($$3477))|0;
  35791. $$1526 = (($319) + ($291))|0;
  35792. $320 = (($$1526) + ($$pn566))|0;
  35793. _pad_674($0,32,$2,$320,$4);
  35794. _out($0,$$0521,$$0520);
  35795. $321 = $4 ^ 65536;
  35796. _pad_674($0,48,$2,$320,$321);
  35797. if ($293) {
  35798. $322 = ($$9$ph>>>0)>($$556>>>0);
  35799. $$0496$$9 = $322 ? $$556 : $$9$ph;
  35800. $323 = ((($8)) + 9|0);
  35801. $324 = $323;
  35802. $325 = ((($8)) + 8|0);
  35803. $$5493597 = $$0496$$9;
  35804. while(1) {
  35805. $326 = HEAP32[$$5493597>>2]|0;
  35806. $327 = (_fmt_u($326,0,$323)|0);
  35807. $328 = ($$5493597|0)==($$0496$$9|0);
  35808. if ($328) {
  35809. $334 = ($327|0)==($323|0);
  35810. if ($334) {
  35811. HEAP8[$325>>0] = 48;
  35812. $$1465 = $325;
  35813. } else {
  35814. $$1465 = $327;
  35815. }
  35816. } else {
  35817. $329 = ($327>>>0)>($8>>>0);
  35818. if ($329) {
  35819. $330 = $327;
  35820. $331 = (($330) - ($9))|0;
  35821. _memset(($8|0),48,($331|0))|0;
  35822. $$0464594 = $327;
  35823. while(1) {
  35824. $332 = ((($$0464594)) + -1|0);
  35825. $333 = ($332>>>0)>($8>>>0);
  35826. if ($333) {
  35827. $$0464594 = $332;
  35828. } else {
  35829. $$1465 = $332;
  35830. break;
  35831. }
  35832. }
  35833. } else {
  35834. $$1465 = $327;
  35835. }
  35836. }
  35837. $335 = $$1465;
  35838. $336 = (($324) - ($335))|0;
  35839. _out($0,$$1465,$336);
  35840. $337 = ((($$5493597)) + 4|0);
  35841. $338 = ($337>>>0)>($$556>>>0);
  35842. if ($338) {
  35843. break;
  35844. } else {
  35845. $$5493597 = $337;
  35846. }
  35847. }
  35848. $339 = ($289|0)==(0);
  35849. if (!($339)) {
  35850. _out($0,17239,1);
  35851. }
  35852. $340 = ($337>>>0)<($$7505>>>0);
  35853. $341 = ($$3477|0)>(0);
  35854. $342 = $340 & $341;
  35855. if ($342) {
  35856. $$4478590 = $$3477;$$6494589 = $337;
  35857. while(1) {
  35858. $343 = HEAP32[$$6494589>>2]|0;
  35859. $344 = (_fmt_u($343,0,$323)|0);
  35860. $345 = ($344>>>0)>($8>>>0);
  35861. if ($345) {
  35862. $346 = $344;
  35863. $347 = (($346) - ($9))|0;
  35864. _memset(($8|0),48,($347|0))|0;
  35865. $$0463584 = $344;
  35866. while(1) {
  35867. $348 = ((($$0463584)) + -1|0);
  35868. $349 = ($348>>>0)>($8>>>0);
  35869. if ($349) {
  35870. $$0463584 = $348;
  35871. } else {
  35872. $$0463$lcssa = $348;
  35873. break;
  35874. }
  35875. }
  35876. } else {
  35877. $$0463$lcssa = $344;
  35878. }
  35879. $350 = ($$4478590|0)<(9);
  35880. $351 = $350 ? $$4478590 : 9;
  35881. _out($0,$$0463$lcssa,$351);
  35882. $352 = ((($$6494589)) + 4|0);
  35883. $353 = (($$4478590) + -9)|0;
  35884. $354 = ($352>>>0)<($$7505>>>0);
  35885. $355 = ($$4478590|0)>(9);
  35886. $356 = $354 & $355;
  35887. if ($356) {
  35888. $$4478590 = $353;$$6494589 = $352;
  35889. } else {
  35890. $$4478$lcssa = $353;
  35891. break;
  35892. }
  35893. }
  35894. } else {
  35895. $$4478$lcssa = $$3477;
  35896. }
  35897. $357 = (($$4478$lcssa) + 9)|0;
  35898. _pad_674($0,48,$357,9,0);
  35899. } else {
  35900. $358 = ((($$9$ph)) + 4|0);
  35901. $$7505$ = $$lcssa673 ? $$7505 : $358;
  35902. $359 = ($$3477|0)>(-1);
  35903. if ($359) {
  35904. $360 = ((($8)) + 9|0);
  35905. $361 = ($$pre$phi690Z2D|0)==(0);
  35906. $362 = $360;
  35907. $363 = (0 - ($9))|0;
  35908. $364 = ((($8)) + 8|0);
  35909. $$5602 = $$3477;$$7495601 = $$9$ph;
  35910. while(1) {
  35911. $365 = HEAP32[$$7495601>>2]|0;
  35912. $366 = (_fmt_u($365,0,$360)|0);
  35913. $367 = ($366|0)==($360|0);
  35914. if ($367) {
  35915. HEAP8[$364>>0] = 48;
  35916. $$0 = $364;
  35917. } else {
  35918. $$0 = $366;
  35919. }
  35920. $368 = ($$7495601|0)==($$9$ph|0);
  35921. do {
  35922. if ($368) {
  35923. $372 = ((($$0)) + 1|0);
  35924. _out($0,$$0,1);
  35925. $373 = ($$5602|0)<(1);
  35926. $or$cond554 = $361 & $373;
  35927. if ($or$cond554) {
  35928. $$2 = $372;
  35929. break;
  35930. }
  35931. _out($0,17239,1);
  35932. $$2 = $372;
  35933. } else {
  35934. $369 = ($$0>>>0)>($8>>>0);
  35935. if (!($369)) {
  35936. $$2 = $$0;
  35937. break;
  35938. }
  35939. $scevgep684 = (($$0) + ($363)|0);
  35940. $scevgep684685 = $scevgep684;
  35941. _memset(($8|0),48,($scevgep684685|0))|0;
  35942. $$1598 = $$0;
  35943. while(1) {
  35944. $370 = ((($$1598)) + -1|0);
  35945. $371 = ($370>>>0)>($8>>>0);
  35946. if ($371) {
  35947. $$1598 = $370;
  35948. } else {
  35949. $$2 = $370;
  35950. break;
  35951. }
  35952. }
  35953. }
  35954. } while(0);
  35955. $374 = $$2;
  35956. $375 = (($362) - ($374))|0;
  35957. $376 = ($$5602|0)>($375|0);
  35958. $377 = $376 ? $375 : $$5602;
  35959. _out($0,$$2,$377);
  35960. $378 = (($$5602) - ($375))|0;
  35961. $379 = ((($$7495601)) + 4|0);
  35962. $380 = ($379>>>0)<($$7505$>>>0);
  35963. $381 = ($378|0)>(-1);
  35964. $382 = $380 & $381;
  35965. if ($382) {
  35966. $$5602 = $378;$$7495601 = $379;
  35967. } else {
  35968. $$5$lcssa = $378;
  35969. break;
  35970. }
  35971. }
  35972. } else {
  35973. $$5$lcssa = $$3477;
  35974. }
  35975. $383 = (($$5$lcssa) + 18)|0;
  35976. _pad_674($0,48,$383,18,0);
  35977. $384 = $11;
  35978. $385 = $$2513;
  35979. $386 = (($384) - ($385))|0;
  35980. _out($0,$$2513,$386);
  35981. }
  35982. $387 = $4 ^ 8192;
  35983. _pad_674($0,32,$2,$320,$387);
  35984. $$sink562 = $320;
  35985. } else {
  35986. $27 = $5 & 32;
  35987. $28 = ($27|0)!=(0);
  35988. $29 = $28 ? 17211 : 17215;
  35989. $30 = ($$0471 != $$0471) | (0.0 != 0.0);
  35990. $31 = $28 ? 19142 : 17219;
  35991. $$0510 = $30 ? $31 : $29;
  35992. $32 = (($$0520) + 3)|0;
  35993. $33 = $4 & -65537;
  35994. _pad_674($0,32,$2,$32,$33);
  35995. _out($0,$$0521,$$0520);
  35996. _out($0,$$0510,3);
  35997. $34 = $4 ^ 8192;
  35998. _pad_674($0,32,$2,$32,$34);
  35999. $$sink562 = $32;
  36000. }
  36001. } while(0);
  36002. $388 = ($$sink562|0)<($2|0);
  36003. $$555 = $388 ? $2 : $$sink562;
  36004. STACKTOP = sp;return ($$555|0);
  36005. }
  36006. function ___DOUBLE_BITS_675($0) {
  36007. $0 = +$0;
  36008. var $1 = 0, $2 = 0, label = 0, sp = 0;
  36009. sp = STACKTOP;
  36010. HEAPF64[tempDoublePtr>>3] = $0;$1 = HEAP32[tempDoublePtr>>2]|0;
  36011. $2 = HEAP32[tempDoublePtr+4>>2]|0;
  36012. tempRet0 = ($2);
  36013. return ($1|0);
  36014. }
  36015. function _frexpl($0,$1) {
  36016. $0 = +$0;
  36017. $1 = $1|0;
  36018. var $2 = 0.0, label = 0, sp = 0;
  36019. sp = STACKTOP;
  36020. $2 = (+_frexp($0,$1));
  36021. return (+$2);
  36022. }
  36023. function _frexp($0,$1) {
  36024. $0 = +$0;
  36025. $1 = $1|0;
  36026. 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;
  36027. var sp = 0;
  36028. sp = STACKTOP;
  36029. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  36030. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  36031. $4 = (_bitshift64Lshr(($2|0),($3|0),52)|0);
  36032. $5 = tempRet0;
  36033. $6 = $4&65535;
  36034. $trunc$clear = $6 & 2047;
  36035. switch ($trunc$clear<<16>>16) {
  36036. case 0: {
  36037. $7 = $0 != 0.0;
  36038. if ($7) {
  36039. $8 = $0 * 1.8446744073709552E+19;
  36040. $9 = (+_frexp($8,$1));
  36041. $10 = HEAP32[$1>>2]|0;
  36042. $11 = (($10) + -64)|0;
  36043. $$016 = $9;$storemerge = $11;
  36044. } else {
  36045. $$016 = $0;$storemerge = 0;
  36046. }
  36047. HEAP32[$1>>2] = $storemerge;
  36048. $$0 = $$016;
  36049. break;
  36050. }
  36051. case 2047: {
  36052. $$0 = $0;
  36053. break;
  36054. }
  36055. default: {
  36056. $12 = $4 & 2047;
  36057. $13 = (($12) + -1022)|0;
  36058. HEAP32[$1>>2] = $13;
  36059. $14 = $3 & -2146435073;
  36060. $15 = $14 | 1071644672;
  36061. HEAP32[tempDoublePtr>>2] = $2;HEAP32[tempDoublePtr+4>>2] = $15;$16 = +HEAPF64[tempDoublePtr>>3];
  36062. $$0 = $16;
  36063. }
  36064. }
  36065. return (+$$0);
  36066. }
  36067. function _wcrtomb($0,$1,$2) {
  36068. $0 = $0|0;
  36069. $1 = $1|0;
  36070. $2 = $2|0;
  36071. 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;
  36072. 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;
  36073. 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;
  36074. sp = STACKTOP;
  36075. $3 = ($0|0)==(0|0);
  36076. do {
  36077. if ($3) {
  36078. $$0 = 1;
  36079. } else {
  36080. $4 = ($1>>>0)<(128);
  36081. if ($4) {
  36082. $5 = $1&255;
  36083. HEAP8[$0>>0] = $5;
  36084. $$0 = 1;
  36085. break;
  36086. }
  36087. $6 = (___pthread_self_448()|0);
  36088. $7 = ((($6)) + 188|0);
  36089. $8 = HEAP32[$7>>2]|0;
  36090. $9 = HEAP32[$8>>2]|0;
  36091. $not$ = ($9|0)==(0|0);
  36092. if ($not$) {
  36093. $10 = $1 & -128;
  36094. $11 = ($10|0)==(57216);
  36095. if ($11) {
  36096. $13 = $1&255;
  36097. HEAP8[$0>>0] = $13;
  36098. $$0 = 1;
  36099. break;
  36100. } else {
  36101. $12 = (___errno_location()|0);
  36102. HEAP32[$12>>2] = 84;
  36103. $$0 = -1;
  36104. break;
  36105. }
  36106. }
  36107. $14 = ($1>>>0)<(2048);
  36108. if ($14) {
  36109. $15 = $1 >>> 6;
  36110. $16 = $15 | 192;
  36111. $17 = $16&255;
  36112. $18 = ((($0)) + 1|0);
  36113. HEAP8[$0>>0] = $17;
  36114. $19 = $1 & 63;
  36115. $20 = $19 | 128;
  36116. $21 = $20&255;
  36117. HEAP8[$18>>0] = $21;
  36118. $$0 = 2;
  36119. break;
  36120. }
  36121. $22 = ($1>>>0)<(55296);
  36122. $23 = $1 & -8192;
  36123. $24 = ($23|0)==(57344);
  36124. $or$cond = $22 | $24;
  36125. if ($or$cond) {
  36126. $25 = $1 >>> 12;
  36127. $26 = $25 | 224;
  36128. $27 = $26&255;
  36129. $28 = ((($0)) + 1|0);
  36130. HEAP8[$0>>0] = $27;
  36131. $29 = $1 >>> 6;
  36132. $30 = $29 & 63;
  36133. $31 = $30 | 128;
  36134. $32 = $31&255;
  36135. $33 = ((($0)) + 2|0);
  36136. HEAP8[$28>>0] = $32;
  36137. $34 = $1 & 63;
  36138. $35 = $34 | 128;
  36139. $36 = $35&255;
  36140. HEAP8[$33>>0] = $36;
  36141. $$0 = 3;
  36142. break;
  36143. }
  36144. $37 = (($1) + -65536)|0;
  36145. $38 = ($37>>>0)<(1048576);
  36146. if ($38) {
  36147. $39 = $1 >>> 18;
  36148. $40 = $39 | 240;
  36149. $41 = $40&255;
  36150. $42 = ((($0)) + 1|0);
  36151. HEAP8[$0>>0] = $41;
  36152. $43 = $1 >>> 12;
  36153. $44 = $43 & 63;
  36154. $45 = $44 | 128;
  36155. $46 = $45&255;
  36156. $47 = ((($0)) + 2|0);
  36157. HEAP8[$42>>0] = $46;
  36158. $48 = $1 >>> 6;
  36159. $49 = $48 & 63;
  36160. $50 = $49 | 128;
  36161. $51 = $50&255;
  36162. $52 = ((($0)) + 3|0);
  36163. HEAP8[$47>>0] = $51;
  36164. $53 = $1 & 63;
  36165. $54 = $53 | 128;
  36166. $55 = $54&255;
  36167. HEAP8[$52>>0] = $55;
  36168. $$0 = 4;
  36169. break;
  36170. } else {
  36171. $56 = (___errno_location()|0);
  36172. HEAP32[$56>>2] = 84;
  36173. $$0 = -1;
  36174. break;
  36175. }
  36176. }
  36177. } while(0);
  36178. return ($$0|0);
  36179. }
  36180. function ___pthread_self_448() {
  36181. var $0 = 0, label = 0, sp = 0;
  36182. sp = STACKTOP;
  36183. $0 = (_pthread_self()|0);
  36184. return ($0|0);
  36185. }
  36186. function ___pthread_self_105() {
  36187. var $0 = 0, label = 0, sp = 0;
  36188. sp = STACKTOP;
  36189. $0 = (_pthread_self()|0);
  36190. return ($0|0);
  36191. }
  36192. function ___strerror_l($0,$1) {
  36193. $0 = $0|0;
  36194. $1 = $1|0;
  36195. 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;
  36196. var label = 0, sp = 0;
  36197. sp = STACKTOP;
  36198. $$016 = 0;
  36199. while(1) {
  36200. $3 = (17241 + ($$016)|0);
  36201. $4 = HEAP8[$3>>0]|0;
  36202. $5 = $4&255;
  36203. $6 = ($5|0)==($0|0);
  36204. if ($6) {
  36205. label = 2;
  36206. break;
  36207. }
  36208. $7 = (($$016) + 1)|0;
  36209. $8 = ($7|0)==(87);
  36210. if ($8) {
  36211. $$01214 = 17329;$$115 = 87;
  36212. label = 5;
  36213. break;
  36214. } else {
  36215. $$016 = $7;
  36216. }
  36217. }
  36218. if ((label|0) == 2) {
  36219. $2 = ($$016|0)==(0);
  36220. if ($2) {
  36221. $$012$lcssa = 17329;
  36222. } else {
  36223. $$01214 = 17329;$$115 = $$016;
  36224. label = 5;
  36225. }
  36226. }
  36227. if ((label|0) == 5) {
  36228. while(1) {
  36229. label = 0;
  36230. $$113 = $$01214;
  36231. while(1) {
  36232. $9 = HEAP8[$$113>>0]|0;
  36233. $10 = ($9<<24>>24)==(0);
  36234. $11 = ((($$113)) + 1|0);
  36235. if ($10) {
  36236. break;
  36237. } else {
  36238. $$113 = $11;
  36239. }
  36240. }
  36241. $12 = (($$115) + -1)|0;
  36242. $13 = ($12|0)==(0);
  36243. if ($13) {
  36244. $$012$lcssa = $11;
  36245. break;
  36246. } else {
  36247. $$01214 = $11;$$115 = $12;
  36248. label = 5;
  36249. }
  36250. }
  36251. }
  36252. $14 = ((($1)) + 20|0);
  36253. $15 = HEAP32[$14>>2]|0;
  36254. $16 = (___lctrans($$012$lcssa,$15)|0);
  36255. return ($16|0);
  36256. }
  36257. function ___lctrans($0,$1) {
  36258. $0 = $0|0;
  36259. $1 = $1|0;
  36260. var $2 = 0, label = 0, sp = 0;
  36261. sp = STACKTOP;
  36262. $2 = (___lctrans_impl($0,$1)|0);
  36263. return ($2|0);
  36264. }
  36265. function ___lctrans_impl($0,$1) {
  36266. $0 = $0|0;
  36267. $1 = $1|0;
  36268. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  36269. sp = STACKTOP;
  36270. $2 = ($1|0)==(0|0);
  36271. if ($2) {
  36272. $$0 = 0;
  36273. } else {
  36274. $3 = HEAP32[$1>>2]|0;
  36275. $4 = ((($1)) + 4|0);
  36276. $5 = HEAP32[$4>>2]|0;
  36277. $6 = (___mo_lookup($3,$5,$0)|0);
  36278. $$0 = $6;
  36279. }
  36280. $7 = ($$0|0)!=(0|0);
  36281. $8 = $7 ? $$0 : $0;
  36282. return ($8|0);
  36283. }
  36284. function ___mo_lookup($0,$1,$2) {
  36285. $0 = $0|0;
  36286. $1 = $1|0;
  36287. $2 = $2|0;
  36288. 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;
  36289. 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;
  36290. 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;
  36291. 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;
  36292. sp = STACKTOP;
  36293. $3 = HEAP32[$0>>2]|0;
  36294. $4 = (($3) + 1794895138)|0;
  36295. $5 = ((($0)) + 8|0);
  36296. $6 = HEAP32[$5>>2]|0;
  36297. $7 = (_swapc($6,$4)|0);
  36298. $8 = ((($0)) + 12|0);
  36299. $9 = HEAP32[$8>>2]|0;
  36300. $10 = (_swapc($9,$4)|0);
  36301. $11 = ((($0)) + 16|0);
  36302. $12 = HEAP32[$11>>2]|0;
  36303. $13 = (_swapc($12,$4)|0);
  36304. $14 = $1 >>> 2;
  36305. $15 = ($7>>>0)<($14>>>0);
  36306. L1: do {
  36307. if ($15) {
  36308. $16 = $7 << 2;
  36309. $17 = (($1) - ($16))|0;
  36310. $18 = ($10>>>0)<($17>>>0);
  36311. $19 = ($13>>>0)<($17>>>0);
  36312. $or$cond = $18 & $19;
  36313. if ($or$cond) {
  36314. $20 = $13 | $10;
  36315. $21 = $20 & 3;
  36316. $22 = ($21|0)==(0);
  36317. if ($22) {
  36318. $23 = $10 >>> 2;
  36319. $24 = $13 >>> 2;
  36320. $$090 = 0;$$094 = $7;
  36321. while(1) {
  36322. $25 = $$094 >>> 1;
  36323. $26 = (($$090) + ($25))|0;
  36324. $27 = $26 << 1;
  36325. $28 = (($27) + ($23))|0;
  36326. $29 = (($0) + ($28<<2)|0);
  36327. $30 = HEAP32[$29>>2]|0;
  36328. $31 = (_swapc($30,$4)|0);
  36329. $32 = (($28) + 1)|0;
  36330. $33 = (($0) + ($32<<2)|0);
  36331. $34 = HEAP32[$33>>2]|0;
  36332. $35 = (_swapc($34,$4)|0);
  36333. $36 = ($35>>>0)<($1>>>0);
  36334. $37 = (($1) - ($35))|0;
  36335. $38 = ($31>>>0)<($37>>>0);
  36336. $or$cond102 = $36 & $38;
  36337. if (!($or$cond102)) {
  36338. $$4 = 0;
  36339. break L1;
  36340. }
  36341. $39 = (($35) + ($31))|0;
  36342. $40 = (($0) + ($39)|0);
  36343. $41 = HEAP8[$40>>0]|0;
  36344. $42 = ($41<<24>>24)==(0);
  36345. if (!($42)) {
  36346. $$4 = 0;
  36347. break L1;
  36348. }
  36349. $43 = (($0) + ($35)|0);
  36350. $44 = (_strcmp($2,$43)|0);
  36351. $45 = ($44|0)==(0);
  36352. if ($45) {
  36353. break;
  36354. }
  36355. $62 = ($$094|0)==(1);
  36356. $63 = ($44|0)<(0);
  36357. $64 = (($$094) - ($25))|0;
  36358. $$195 = $63 ? $25 : $64;
  36359. $$191 = $63 ? $$090 : $26;
  36360. if ($62) {
  36361. $$4 = 0;
  36362. break L1;
  36363. } else {
  36364. $$090 = $$191;$$094 = $$195;
  36365. }
  36366. }
  36367. $46 = (($27) + ($24))|0;
  36368. $47 = (($0) + ($46<<2)|0);
  36369. $48 = HEAP32[$47>>2]|0;
  36370. $49 = (_swapc($48,$4)|0);
  36371. $50 = (($46) + 1)|0;
  36372. $51 = (($0) + ($50<<2)|0);
  36373. $52 = HEAP32[$51>>2]|0;
  36374. $53 = (_swapc($52,$4)|0);
  36375. $54 = ($53>>>0)<($1>>>0);
  36376. $55 = (($1) - ($53))|0;
  36377. $56 = ($49>>>0)<($55>>>0);
  36378. $or$cond104 = $54 & $56;
  36379. if ($or$cond104) {
  36380. $57 = (($0) + ($53)|0);
  36381. $58 = (($53) + ($49))|0;
  36382. $59 = (($0) + ($58)|0);
  36383. $60 = HEAP8[$59>>0]|0;
  36384. $61 = ($60<<24>>24)==(0);
  36385. $$ = $61 ? $57 : 0;
  36386. $$4 = $$;
  36387. } else {
  36388. $$4 = 0;
  36389. }
  36390. } else {
  36391. $$4 = 0;
  36392. }
  36393. } else {
  36394. $$4 = 0;
  36395. }
  36396. } else {
  36397. $$4 = 0;
  36398. }
  36399. } while(0);
  36400. return ($$4|0);
  36401. }
  36402. function _swapc($0,$1) {
  36403. $0 = $0|0;
  36404. $1 = $1|0;
  36405. var $$ = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  36406. sp = STACKTOP;
  36407. $2 = ($1|0)==(0);
  36408. $3 = (_llvm_bswap_i32(($0|0))|0);
  36409. $$ = $2 ? $0 : $3;
  36410. return ($$|0);
  36411. }
  36412. function ___fwritex($0,$1,$2) {
  36413. $0 = $0|0;
  36414. $1 = $1|0;
  36415. $2 = $2|0;
  36416. 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;
  36417. 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;
  36418. var label = 0, sp = 0;
  36419. sp = STACKTOP;
  36420. $3 = ((($2)) + 16|0);
  36421. $4 = HEAP32[$3>>2]|0;
  36422. $5 = ($4|0)==(0|0);
  36423. if ($5) {
  36424. $7 = (___towrite($2)|0);
  36425. $8 = ($7|0)==(0);
  36426. if ($8) {
  36427. $$pre = HEAP32[$3>>2]|0;
  36428. $12 = $$pre;
  36429. label = 5;
  36430. } else {
  36431. $$1 = 0;
  36432. }
  36433. } else {
  36434. $6 = $4;
  36435. $12 = $6;
  36436. label = 5;
  36437. }
  36438. L5: do {
  36439. if ((label|0) == 5) {
  36440. $9 = ((($2)) + 20|0);
  36441. $10 = HEAP32[$9>>2]|0;
  36442. $11 = (($12) - ($10))|0;
  36443. $13 = ($11>>>0)<($1>>>0);
  36444. $14 = $10;
  36445. if ($13) {
  36446. $15 = ((($2)) + 36|0);
  36447. $16 = HEAP32[$15>>2]|0;
  36448. $17 = (FUNCTION_TABLE_iiii[$16 & 15]($2,$0,$1)|0);
  36449. $$1 = $17;
  36450. break;
  36451. }
  36452. $18 = ((($2)) + 75|0);
  36453. $19 = HEAP8[$18>>0]|0;
  36454. $20 = ($19<<24>>24)>(-1);
  36455. L10: do {
  36456. if ($20) {
  36457. $$038 = $1;
  36458. while(1) {
  36459. $21 = ($$038|0)==(0);
  36460. if ($21) {
  36461. $$139 = 0;$$141 = $0;$$143 = $1;$31 = $14;
  36462. break L10;
  36463. }
  36464. $22 = (($$038) + -1)|0;
  36465. $23 = (($0) + ($22)|0);
  36466. $24 = HEAP8[$23>>0]|0;
  36467. $25 = ($24<<24>>24)==(10);
  36468. if ($25) {
  36469. break;
  36470. } else {
  36471. $$038 = $22;
  36472. }
  36473. }
  36474. $26 = ((($2)) + 36|0);
  36475. $27 = HEAP32[$26>>2]|0;
  36476. $28 = (FUNCTION_TABLE_iiii[$27 & 15]($2,$0,$$038)|0);
  36477. $29 = ($28>>>0)<($$038>>>0);
  36478. if ($29) {
  36479. $$1 = $28;
  36480. break L5;
  36481. }
  36482. $30 = (($0) + ($$038)|0);
  36483. $$042 = (($1) - ($$038))|0;
  36484. $$pre47 = HEAP32[$9>>2]|0;
  36485. $$139 = $$038;$$141 = $30;$$143 = $$042;$31 = $$pre47;
  36486. } else {
  36487. $$139 = 0;$$141 = $0;$$143 = $1;$31 = $14;
  36488. }
  36489. } while(0);
  36490. _memcpy(($31|0),($$141|0),($$143|0))|0;
  36491. $32 = HEAP32[$9>>2]|0;
  36492. $33 = (($32) + ($$143)|0);
  36493. HEAP32[$9>>2] = $33;
  36494. $34 = (($$139) + ($$143))|0;
  36495. $$1 = $34;
  36496. }
  36497. } while(0);
  36498. return ($$1|0);
  36499. }
  36500. function ___towrite($0) {
  36501. $0 = $0|0;
  36502. 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;
  36503. var $9 = 0, label = 0, sp = 0;
  36504. sp = STACKTOP;
  36505. $1 = ((($0)) + 74|0);
  36506. $2 = HEAP8[$1>>0]|0;
  36507. $3 = $2 << 24 >> 24;
  36508. $4 = (($3) + 255)|0;
  36509. $5 = $4 | $3;
  36510. $6 = $5&255;
  36511. HEAP8[$1>>0] = $6;
  36512. $7 = HEAP32[$0>>2]|0;
  36513. $8 = $7 & 8;
  36514. $9 = ($8|0)==(0);
  36515. if ($9) {
  36516. $11 = ((($0)) + 8|0);
  36517. HEAP32[$11>>2] = 0;
  36518. $12 = ((($0)) + 4|0);
  36519. HEAP32[$12>>2] = 0;
  36520. $13 = ((($0)) + 44|0);
  36521. $14 = HEAP32[$13>>2]|0;
  36522. $15 = ((($0)) + 28|0);
  36523. HEAP32[$15>>2] = $14;
  36524. $16 = ((($0)) + 20|0);
  36525. HEAP32[$16>>2] = $14;
  36526. $17 = ((($0)) + 48|0);
  36527. $18 = HEAP32[$17>>2]|0;
  36528. $19 = (($14) + ($18)|0);
  36529. $20 = ((($0)) + 16|0);
  36530. HEAP32[$20>>2] = $19;
  36531. $$0 = 0;
  36532. } else {
  36533. $10 = $7 | 32;
  36534. HEAP32[$0>>2] = $10;
  36535. $$0 = -1;
  36536. }
  36537. return ($$0|0);
  36538. }
  36539. function ___floatscan($0,$1,$2) {
  36540. $0 = $0|0;
  36541. $1 = $1|0;
  36542. $2 = $2|0;
  36543. var $$0 = 0, $$0105$ph = 0, $$0106$ph = 0, $$0107$lcssa = 0, $$0107127 = 0, $$0113 = 0, $$0114 = 0.0, $$1$lcssa = 0, $$1108 = 0, $$1128 = 0, $$2 = 0, $$2109125 = 0, $$3110 = 0, $$3126 = 0, $$4 = 0, $$4111 = 0, $$5 = 0, $$6 = 0, $$in = 0, $$old8 = 0;
  36544. var $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0;
  36545. var $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0.0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0.0, $14 = 0, $15 = 0;
  36546. var $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0;
  36547. 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;
  36548. var $53 = 0.0, $54 = 0.0, $55 = 0.0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0;
  36549. 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;
  36550. var $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $or$cond = 0, $or$cond5 = 0, $or$cond7 = 0, $or$cond9 = 0, label = 0, sp = 0;
  36551. sp = STACKTOP;
  36552. switch ($1|0) {
  36553. case 0: {
  36554. $$0105$ph = -149;$$0106$ph = 24;
  36555. label = 4;
  36556. break;
  36557. }
  36558. case 1: {
  36559. $$0105$ph = -1074;$$0106$ph = 53;
  36560. label = 4;
  36561. break;
  36562. }
  36563. case 2: {
  36564. $$0105$ph = -1074;$$0106$ph = 53;
  36565. label = 4;
  36566. break;
  36567. }
  36568. default: {
  36569. $$0114 = 0.0;
  36570. }
  36571. }
  36572. L4: do {
  36573. if ((label|0) == 4) {
  36574. $3 = ((($0)) + 4|0);
  36575. $4 = ((($0)) + 100|0);
  36576. while(1) {
  36577. $5 = HEAP32[$3>>2]|0;
  36578. $6 = HEAP32[$4>>2]|0;
  36579. $7 = ($5>>>0)<($6>>>0);
  36580. if ($7) {
  36581. $8 = ((($5)) + 1|0);
  36582. HEAP32[$3>>2] = $8;
  36583. $9 = HEAP8[$5>>0]|0;
  36584. $10 = $9&255;
  36585. $12 = $10;
  36586. } else {
  36587. $11 = (___shgetc($0)|0);
  36588. $12 = $11;
  36589. }
  36590. $13 = (_isspace($12)|0);
  36591. $14 = ($13|0)==(0);
  36592. if ($14) {
  36593. break;
  36594. }
  36595. }
  36596. L13: do {
  36597. switch ($12|0) {
  36598. case 43: case 45: {
  36599. $15 = ($12|0)==(45);
  36600. $16 = $15&1;
  36601. $17 = $16 << 1;
  36602. $18 = (1 - ($17))|0;
  36603. $19 = HEAP32[$3>>2]|0;
  36604. $20 = HEAP32[$4>>2]|0;
  36605. $21 = ($19>>>0)<($20>>>0);
  36606. if ($21) {
  36607. $22 = ((($19)) + 1|0);
  36608. HEAP32[$3>>2] = $22;
  36609. $23 = HEAP8[$19>>0]|0;
  36610. $24 = $23&255;
  36611. $$0 = $24;$$0113 = $18;
  36612. break L13;
  36613. } else {
  36614. $25 = (___shgetc($0)|0);
  36615. $$0 = $25;$$0113 = $18;
  36616. break L13;
  36617. }
  36618. break;
  36619. }
  36620. default: {
  36621. $$0 = $12;$$0113 = 1;
  36622. }
  36623. }
  36624. } while(0);
  36625. $$0107127 = 0;$$1128 = $$0;
  36626. while(1) {
  36627. $26 = $$1128 | 32;
  36628. $27 = (19133 + ($$0107127)|0);
  36629. $28 = HEAP8[$27>>0]|0;
  36630. $29 = $28 << 24 >> 24;
  36631. $30 = ($26|0)==($29|0);
  36632. if (!($30)) {
  36633. $$0107$lcssa = $$0107127;$$1$lcssa = $$1128;
  36634. break;
  36635. }
  36636. $31 = ($$0107127>>>0)<(7);
  36637. do {
  36638. if ($31) {
  36639. $32 = HEAP32[$3>>2]|0;
  36640. $33 = HEAP32[$4>>2]|0;
  36641. $34 = ($32>>>0)<($33>>>0);
  36642. if ($34) {
  36643. $35 = ((($32)) + 1|0);
  36644. HEAP32[$3>>2] = $35;
  36645. $36 = HEAP8[$32>>0]|0;
  36646. $37 = $36&255;
  36647. $$2 = $37;
  36648. break;
  36649. } else {
  36650. $38 = (___shgetc($0)|0);
  36651. $$2 = $38;
  36652. break;
  36653. }
  36654. } else {
  36655. $$2 = $$1128;
  36656. }
  36657. } while(0);
  36658. $39 = (($$0107127) + 1)|0;
  36659. $40 = ($39>>>0)<(8);
  36660. if ($40) {
  36661. $$0107127 = $39;$$1128 = $$2;
  36662. } else {
  36663. $$0107$lcssa = $39;$$1$lcssa = $$2;
  36664. break;
  36665. }
  36666. }
  36667. L29: do {
  36668. switch ($$0107$lcssa|0) {
  36669. case 8: {
  36670. break;
  36671. }
  36672. case 3: {
  36673. label = 23;
  36674. break;
  36675. }
  36676. default: {
  36677. $41 = ($$0107$lcssa>>>0)>(3);
  36678. $42 = ($2|0)!=(0);
  36679. $or$cond5 = $42 & $41;
  36680. if ($or$cond5) {
  36681. $43 = ($$0107$lcssa|0)==(8);
  36682. if ($43) {
  36683. break L29;
  36684. } else {
  36685. label = 23;
  36686. break L29;
  36687. }
  36688. }
  36689. $56 = ($$0107$lcssa|0)==(0);
  36690. L34: do {
  36691. if ($56) {
  36692. $$2109125 = 0;$$3126 = $$1$lcssa;
  36693. while(1) {
  36694. $57 = $$3126 | 32;
  36695. $58 = (19142 + ($$2109125)|0);
  36696. $59 = HEAP8[$58>>0]|0;
  36697. $60 = $59 << 24 >> 24;
  36698. $61 = ($57|0)==($60|0);
  36699. if (!($61)) {
  36700. $$3110 = $$2109125;$$5 = $$3126;
  36701. break L34;
  36702. }
  36703. $62 = ($$2109125>>>0)<(2);
  36704. do {
  36705. if ($62) {
  36706. $63 = HEAP32[$3>>2]|0;
  36707. $64 = HEAP32[$4>>2]|0;
  36708. $65 = ($63>>>0)<($64>>>0);
  36709. if ($65) {
  36710. $66 = ((($63)) + 1|0);
  36711. HEAP32[$3>>2] = $66;
  36712. $67 = HEAP8[$63>>0]|0;
  36713. $68 = $67&255;
  36714. $$4 = $68;
  36715. break;
  36716. } else {
  36717. $69 = (___shgetc($0)|0);
  36718. $$4 = $69;
  36719. break;
  36720. }
  36721. } else {
  36722. $$4 = $$3126;
  36723. }
  36724. } while(0);
  36725. $70 = (($$2109125) + 1)|0;
  36726. $71 = ($70>>>0)<(3);
  36727. if ($71) {
  36728. $$2109125 = $70;$$3126 = $$4;
  36729. } else {
  36730. $$3110 = $70;$$5 = $$4;
  36731. break;
  36732. }
  36733. }
  36734. } else {
  36735. $$3110 = $$0107$lcssa;$$5 = $$1$lcssa;
  36736. }
  36737. } while(0);
  36738. switch ($$3110|0) {
  36739. case 3: {
  36740. $72 = HEAP32[$3>>2]|0;
  36741. $73 = HEAP32[$4>>2]|0;
  36742. $74 = ($72>>>0)<($73>>>0);
  36743. if ($74) {
  36744. $75 = ((($72)) + 1|0);
  36745. HEAP32[$3>>2] = $75;
  36746. $76 = HEAP8[$72>>0]|0;
  36747. $77 = $76&255;
  36748. $80 = $77;
  36749. } else {
  36750. $78 = (___shgetc($0)|0);
  36751. $80 = $78;
  36752. }
  36753. $79 = ($80|0)==(40);
  36754. if ($79) {
  36755. $$4111 = 1;
  36756. } else {
  36757. $81 = HEAP32[$4>>2]|0;
  36758. $82 = ($81|0)==(0|0);
  36759. if ($82) {
  36760. $$0114 = nan;
  36761. break L4;
  36762. }
  36763. $83 = HEAP32[$3>>2]|0;
  36764. $84 = ((($83)) + -1|0);
  36765. HEAP32[$3>>2] = $84;
  36766. $$0114 = nan;
  36767. break L4;
  36768. }
  36769. while(1) {
  36770. $85 = HEAP32[$3>>2]|0;
  36771. $86 = HEAP32[$4>>2]|0;
  36772. $87 = ($85>>>0)<($86>>>0);
  36773. if ($87) {
  36774. $88 = ((($85)) + 1|0);
  36775. HEAP32[$3>>2] = $88;
  36776. $89 = HEAP8[$85>>0]|0;
  36777. $90 = $89&255;
  36778. $93 = $90;
  36779. } else {
  36780. $91 = (___shgetc($0)|0);
  36781. $93 = $91;
  36782. }
  36783. $92 = (($93) + -48)|0;
  36784. $94 = ($92>>>0)<(10);
  36785. $95 = (($93) + -65)|0;
  36786. $96 = ($95>>>0)<(26);
  36787. $or$cond = $94 | $96;
  36788. if (!($or$cond)) {
  36789. $97 = (($93) + -97)|0;
  36790. $98 = ($97>>>0)<(26);
  36791. $99 = ($93|0)==(95);
  36792. $or$cond7 = $99 | $98;
  36793. if (!($or$cond7)) {
  36794. break;
  36795. }
  36796. }
  36797. $111 = (($$4111) + 1)|0;
  36798. $$4111 = $111;
  36799. }
  36800. $100 = ($93|0)==(41);
  36801. if ($100) {
  36802. $$0114 = nan;
  36803. break L4;
  36804. }
  36805. $101 = HEAP32[$4>>2]|0;
  36806. $102 = ($101|0)==(0|0);
  36807. if (!($102)) {
  36808. $103 = HEAP32[$3>>2]|0;
  36809. $104 = ((($103)) + -1|0);
  36810. HEAP32[$3>>2] = $104;
  36811. }
  36812. if (!($42)) {
  36813. $106 = (___errno_location()|0);
  36814. HEAP32[$106>>2] = 22;
  36815. ___shlim($0,0);
  36816. $$0114 = 0.0;
  36817. break L4;
  36818. }
  36819. $105 = ($$4111|0)==(0);
  36820. if ($105) {
  36821. $$0114 = nan;
  36822. break L4;
  36823. } else {
  36824. $$in = $$4111;
  36825. }
  36826. while(1) {
  36827. $107 = (($$in) + -1)|0;
  36828. if (!($102)) {
  36829. $108 = HEAP32[$3>>2]|0;
  36830. $109 = ((($108)) + -1|0);
  36831. HEAP32[$3>>2] = $109;
  36832. }
  36833. $110 = ($107|0)==(0);
  36834. if ($110) {
  36835. $$0114 = nan;
  36836. break L4;
  36837. } else {
  36838. $$in = $107;
  36839. }
  36840. }
  36841. break;
  36842. }
  36843. case 0: {
  36844. $117 = ($$5|0)==(48);
  36845. if ($117) {
  36846. $118 = HEAP32[$3>>2]|0;
  36847. $119 = HEAP32[$4>>2]|0;
  36848. $120 = ($118>>>0)<($119>>>0);
  36849. if ($120) {
  36850. $121 = ((($118)) + 1|0);
  36851. HEAP32[$3>>2] = $121;
  36852. $122 = HEAP8[$118>>0]|0;
  36853. $123 = $122&255;
  36854. $126 = $123;
  36855. } else {
  36856. $124 = (___shgetc($0)|0);
  36857. $126 = $124;
  36858. }
  36859. $125 = $126 | 32;
  36860. $127 = ($125|0)==(120);
  36861. if ($127) {
  36862. $128 = (+_hexfloat($0,$$0106$ph,$$0105$ph,$$0113,$2));
  36863. $$0114 = $128;
  36864. break L4;
  36865. }
  36866. $129 = HEAP32[$4>>2]|0;
  36867. $130 = ($129|0)==(0|0);
  36868. if ($130) {
  36869. $$6 = 48;
  36870. } else {
  36871. $131 = HEAP32[$3>>2]|0;
  36872. $132 = ((($131)) + -1|0);
  36873. HEAP32[$3>>2] = $132;
  36874. $$6 = 48;
  36875. }
  36876. } else {
  36877. $$6 = $$5;
  36878. }
  36879. $133 = (+_decfloat($0,$$6,$$0106$ph,$$0105$ph,$$0113,$2));
  36880. $$0114 = $133;
  36881. break L4;
  36882. break;
  36883. }
  36884. default: {
  36885. $112 = HEAP32[$4>>2]|0;
  36886. $113 = ($112|0)==(0|0);
  36887. if (!($113)) {
  36888. $114 = HEAP32[$3>>2]|0;
  36889. $115 = ((($114)) + -1|0);
  36890. HEAP32[$3>>2] = $115;
  36891. }
  36892. $116 = (___errno_location()|0);
  36893. HEAP32[$116>>2] = 22;
  36894. ___shlim($0,0);
  36895. $$0114 = 0.0;
  36896. break L4;
  36897. }
  36898. }
  36899. }
  36900. }
  36901. } while(0);
  36902. if ((label|0) == 23) {
  36903. $44 = HEAP32[$4>>2]|0;
  36904. $45 = ($44|0)==(0|0);
  36905. if (!($45)) {
  36906. $46 = HEAP32[$3>>2]|0;
  36907. $47 = ((($46)) + -1|0);
  36908. HEAP32[$3>>2] = $47;
  36909. }
  36910. $48 = ($2|0)!=(0);
  36911. $49 = ($$0107$lcssa>>>0)>(3);
  36912. $or$cond9 = $48 & $49;
  36913. if ($or$cond9) {
  36914. $$1108 = $$0107$lcssa;
  36915. while(1) {
  36916. if (!($45)) {
  36917. $50 = HEAP32[$3>>2]|0;
  36918. $51 = ((($50)) + -1|0);
  36919. HEAP32[$3>>2] = $51;
  36920. }
  36921. $52 = (($$1108) + -1)|0;
  36922. $$old8 = ($52>>>0)>(3);
  36923. if ($$old8) {
  36924. $$1108 = $52;
  36925. } else {
  36926. break;
  36927. }
  36928. }
  36929. }
  36930. }
  36931. $53 = (+($$0113|0));
  36932. $54 = $53 * inf;
  36933. $55 = $54;
  36934. $$0114 = $55;
  36935. }
  36936. } while(0);
  36937. return (+$$0114);
  36938. }
  36939. function _hexfloat($0,$1,$2,$3,$4) {
  36940. $0 = $0|0;
  36941. $1 = $1|0;
  36942. $2 = $2|0;
  36943. $3 = $3|0;
  36944. $4 = $4|0;
  36945. var $$0 = 0, $$0133 = 0, $$0142 = 0, $$0146 = 0, $$0148 = 0, $$0148$ = 0, $$0151 = 0.0, $$0152 = 0.0, $$0155 = 0.0, $$0155$ = 0.0, $$0159 = 0, $$0165 = 0.0, $$0166 = 0, $$0166169 = 0, $$0166170 = 0, $$1$ph = 0, $$1147 = 0, $$1149 = 0, $$1153 = 0.0, $$1156 = 0.0;
  36946. var $$1160 = 0, $$2 = 0, $$2$lcssa = 0, $$2144 = 0, $$2150 = 0, $$2154 = 0.0, $$2157 = 0.0, $$2161 = 0, $$3145 = 0, $$3158$lcssa = 0.0, $$3158179 = 0.0, $$3162$lcssa = 0, $$3162183 = 0, $$4 = 0.0, $$4163$lcssa = 0, $$4163178 = 0, $$5 = 0.0, $$5164 = 0, $$6 = 0, $$pn = 0.0;
  36947. var $$pre = 0.0, $$pre$phiZ2D = 0.0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0;
  36948. var $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0;
  36949. var $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0.0, $143 = 0.0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0;
  36950. var $152 = 0, $153 = 0.0, $154 = 0.0, $155 = 0.0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0.0, $167 = 0.0, $168 = 0.0, $169 = 0, $17 = 0;
  36951. var $170 = 0, $171 = 0.0, $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0;
  36952. var $189 = 0, $19 = 0, $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0.0, $197 = 0, $198 = 0.0, $199 = 0.0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0, $205 = 0.0, $206 = 0.0;
  36953. var $207 = 0.0, $208 = 0.0, $209 = 0.0, $21 = 0, $210 = 0.0, $211 = 0, $212 = 0, $213 = 0.0, $214 = 0, $215 = 0, $216 = 0, $217 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0;
  36954. var $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0;
  36955. var $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0.0, $67 = 0.0;
  36956. var $68 = 0.0, $69 = 0.0, $7 = 0, $70 = 0, $71 = 0, $72 = 0.0, $73 = 0.0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0;
  36957. var $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0.0, $96 = 0.0, $97 = 0, $98 = 0, $99 = 0, $not$ = 0, $or$cond = 0, $or$cond168 = 0, $or$cond206 = 0, $or$cond4 = 0;
  36958. var $or$cond6 = 0, label = 0, sp = 0;
  36959. sp = STACKTOP;
  36960. $5 = ((($0)) + 4|0);
  36961. $6 = HEAP32[$5>>2]|0;
  36962. $7 = ((($0)) + 100|0);
  36963. $8 = HEAP32[$7>>2]|0;
  36964. $9 = ($6>>>0)<($8>>>0);
  36965. if ($9) {
  36966. $10 = ((($6)) + 1|0);
  36967. HEAP32[$5>>2] = $10;
  36968. $11 = HEAP8[$6>>0]|0;
  36969. $12 = $11&255;
  36970. $$0 = $12;$$0142 = 0;
  36971. } else {
  36972. $13 = (___shgetc($0)|0);
  36973. $$0 = $13;$$0142 = 0;
  36974. }
  36975. L4: while(1) {
  36976. switch ($$0|0) {
  36977. case 46: {
  36978. label = 8;
  36979. break L4;
  36980. break;
  36981. }
  36982. case 48: {
  36983. break;
  36984. }
  36985. default: {
  36986. $$0146 = 0;$$0148 = 0;$$0152 = 1.0;$$0155 = 0.0;$$0159 = 0;$$2 = $$0;$$2144 = $$0142;$101 = 0;$53 = 0;$55 = 0;$99 = 0;
  36987. break L4;
  36988. }
  36989. }
  36990. $14 = HEAP32[$5>>2]|0;
  36991. $15 = HEAP32[$7>>2]|0;
  36992. $16 = ($14>>>0)<($15>>>0);
  36993. if ($16) {
  36994. $17 = ((($14)) + 1|0);
  36995. HEAP32[$5>>2] = $17;
  36996. $18 = HEAP8[$14>>0]|0;
  36997. $19 = $18&255;
  36998. $$0 = $19;$$0142 = 1;
  36999. continue;
  37000. } else {
  37001. $20 = (___shgetc($0)|0);
  37002. $$0 = $20;$$0142 = 1;
  37003. continue;
  37004. }
  37005. }
  37006. if ((label|0) == 8) {
  37007. $21 = HEAP32[$5>>2]|0;
  37008. $22 = HEAP32[$7>>2]|0;
  37009. $23 = ($21>>>0)<($22>>>0);
  37010. if ($23) {
  37011. $24 = ((($21)) + 1|0);
  37012. HEAP32[$5>>2] = $24;
  37013. $25 = HEAP8[$21>>0]|0;
  37014. $26 = $25&255;
  37015. $$1$ph = $26;
  37016. } else {
  37017. $27 = (___shgetc($0)|0);
  37018. $$1$ph = $27;
  37019. }
  37020. $28 = ($$1$ph|0)==(48);
  37021. if ($28) {
  37022. $36 = 0;$37 = 0;
  37023. while(1) {
  37024. $29 = HEAP32[$5>>2]|0;
  37025. $30 = HEAP32[$7>>2]|0;
  37026. $31 = ($29>>>0)<($30>>>0);
  37027. if ($31) {
  37028. $32 = ((($29)) + 1|0);
  37029. HEAP32[$5>>2] = $32;
  37030. $33 = HEAP8[$29>>0]|0;
  37031. $34 = $33&255;
  37032. $41 = $34;
  37033. } else {
  37034. $35 = (___shgetc($0)|0);
  37035. $41 = $35;
  37036. }
  37037. $38 = (_i64Add(($36|0),($37|0),-1,-1)|0);
  37038. $39 = tempRet0;
  37039. $40 = ($41|0)==(48);
  37040. if ($40) {
  37041. $36 = $38;$37 = $39;
  37042. } else {
  37043. $$0146 = 1;$$0148 = 0;$$0152 = 1.0;$$0155 = 0.0;$$0159 = 0;$$2 = $41;$$2144 = 1;$101 = $39;$53 = 0;$55 = 0;$99 = $38;
  37044. break;
  37045. }
  37046. }
  37047. } else {
  37048. $$0146 = 1;$$0148 = 0;$$0152 = 1.0;$$0155 = 0.0;$$0159 = 0;$$2 = $$1$ph;$$2144 = $$0142;$101 = 0;$53 = 0;$55 = 0;$99 = 0;
  37049. }
  37050. }
  37051. while(1) {
  37052. $42 = (($$2) + -48)|0;
  37053. $43 = ($42>>>0)<(10);
  37054. $44 = ($$2|0)==(46);
  37055. if (!($43)) {
  37056. $45 = $$2 | 32;
  37057. $46 = (($45) + -97)|0;
  37058. $47 = ($46>>>0)<(6);
  37059. $or$cond6 = $44 | $47;
  37060. if (!($or$cond6)) {
  37061. $$2$lcssa = $$2;
  37062. break;
  37063. }
  37064. }
  37065. if ($44) {
  37066. $48 = ($$0146|0)==(0);
  37067. if ($48) {
  37068. $$1147 = 1;$$2150 = $$0148;$$2154 = $$0152;$$2157 = $$0155;$$2161 = $$0159;$$3145 = $$2144;$214 = $55;$215 = $53;$216 = $55;$217 = $53;
  37069. } else {
  37070. $$2$lcssa = 46;
  37071. break;
  37072. }
  37073. } else {
  37074. $49 = ($$2|0)>(57);
  37075. $50 = $$2 | 32;
  37076. $51 = (($50) + -87)|0;
  37077. $$0133 = $49 ? $51 : $42;
  37078. $52 = ($53|0)<(0);
  37079. $54 = ($55>>>0)<(8);
  37080. $56 = ($53|0)==(0);
  37081. $57 = $56 & $54;
  37082. $58 = $52 | $57;
  37083. do {
  37084. if ($58) {
  37085. $59 = $$0159 << 4;
  37086. $60 = (($$0133) + ($59))|0;
  37087. $$1149 = $$0148;$$1153 = $$0152;$$1156 = $$0155;$$1160 = $60;
  37088. } else {
  37089. $61 = ($53|0)<(0);
  37090. $62 = ($55>>>0)<(14);
  37091. $63 = ($53|0)==(0);
  37092. $64 = $63 & $62;
  37093. $65 = $61 | $64;
  37094. if ($65) {
  37095. $66 = (+($$0133|0));
  37096. $67 = $$0152 * 0.0625;
  37097. $68 = $67 * $66;
  37098. $69 = $$0155 + $68;
  37099. $$1149 = $$0148;$$1153 = $67;$$1156 = $69;$$1160 = $$0159;
  37100. break;
  37101. } else {
  37102. $70 = ($$0133|0)==(0);
  37103. $71 = ($$0148|0)!=(0);
  37104. $or$cond = $71 | $70;
  37105. $72 = $$0152 * 0.5;
  37106. $73 = $$0155 + $72;
  37107. $$0155$ = $or$cond ? $$0155 : $73;
  37108. $$0148$ = $or$cond ? $$0148 : 1;
  37109. $$1149 = $$0148$;$$1153 = $$0152;$$1156 = $$0155$;$$1160 = $$0159;
  37110. break;
  37111. }
  37112. }
  37113. } while(0);
  37114. $74 = (_i64Add(($55|0),($53|0),1,0)|0);
  37115. $75 = tempRet0;
  37116. $$1147 = $$0146;$$2150 = $$1149;$$2154 = $$1153;$$2157 = $$1156;$$2161 = $$1160;$$3145 = 1;$214 = $99;$215 = $101;$216 = $74;$217 = $75;
  37117. }
  37118. $76 = HEAP32[$5>>2]|0;
  37119. $77 = HEAP32[$7>>2]|0;
  37120. $78 = ($76>>>0)<($77>>>0);
  37121. if ($78) {
  37122. $79 = ((($76)) + 1|0);
  37123. HEAP32[$5>>2] = $79;
  37124. $80 = HEAP8[$76>>0]|0;
  37125. $81 = $80&255;
  37126. $$0146 = $$1147;$$0148 = $$2150;$$0152 = $$2154;$$0155 = $$2157;$$0159 = $$2161;$$2 = $81;$$2144 = $$3145;$101 = $215;$53 = $217;$55 = $216;$99 = $214;
  37127. continue;
  37128. } else {
  37129. $82 = (___shgetc($0)|0);
  37130. $$0146 = $$1147;$$0148 = $$2150;$$0152 = $$2154;$$0155 = $$2157;$$0159 = $$2161;$$2 = $82;$$2144 = $$3145;$101 = $215;$53 = $217;$55 = $216;$99 = $214;
  37131. continue;
  37132. }
  37133. }
  37134. $83 = ($$2144|0)==(0);
  37135. do {
  37136. if ($83) {
  37137. $84 = HEAP32[$7>>2]|0;
  37138. $85 = ($84|0)!=(0|0);
  37139. if ($85) {
  37140. $86 = HEAP32[$5>>2]|0;
  37141. $87 = ((($86)) + -1|0);
  37142. HEAP32[$5>>2] = $87;
  37143. }
  37144. $88 = ($4|0)==(0);
  37145. if ($88) {
  37146. ___shlim($0,0);
  37147. } else {
  37148. if ($85) {
  37149. $89 = HEAP32[$5>>2]|0;
  37150. $90 = ((($89)) + -1|0);
  37151. HEAP32[$5>>2] = $90;
  37152. }
  37153. $91 = ($$0146|0)==(0);
  37154. $92 = ($84|0)==(0|0);
  37155. $or$cond206 = $91 | $92;
  37156. if (!($or$cond206)) {
  37157. $93 = HEAP32[$5>>2]|0;
  37158. $94 = ((($93)) + -1|0);
  37159. HEAP32[$5>>2] = $94;
  37160. }
  37161. }
  37162. $95 = (+($3|0));
  37163. $96 = $95 * 0.0;
  37164. $$0165 = $96;
  37165. } else {
  37166. $97 = ($$0146|0)==(0);
  37167. $98 = $97 ? $55 : $99;
  37168. $100 = $97 ? $53 : $101;
  37169. $102 = ($53|0)<(0);
  37170. $103 = ($55>>>0)<(8);
  37171. $104 = ($53|0)==(0);
  37172. $105 = $104 & $103;
  37173. $106 = $102 | $105;
  37174. if ($106) {
  37175. $$3162183 = $$0159;$108 = $55;$109 = $53;
  37176. while(1) {
  37177. $107 = $$3162183 << 4;
  37178. $110 = (_i64Add(($108|0),($109|0),1,0)|0);
  37179. $111 = tempRet0;
  37180. $112 = ($111|0)<(0);
  37181. $113 = ($110>>>0)<(8);
  37182. $114 = ($111|0)==(0);
  37183. $115 = $114 & $113;
  37184. $116 = $112 | $115;
  37185. if ($116) {
  37186. $$3162183 = $107;$108 = $110;$109 = $111;
  37187. } else {
  37188. $$3162$lcssa = $107;
  37189. break;
  37190. }
  37191. }
  37192. } else {
  37193. $$3162$lcssa = $$0159;
  37194. }
  37195. $117 = $$2$lcssa | 32;
  37196. $118 = ($117|0)==(112);
  37197. if ($118) {
  37198. $119 = (_scanexp($0,$4)|0);
  37199. $120 = tempRet0;
  37200. $121 = ($119|0)==(0);
  37201. $122 = ($120|0)==(-2147483648);
  37202. $123 = $121 & $122;
  37203. if ($123) {
  37204. $124 = ($4|0)==(0);
  37205. if ($124) {
  37206. ___shlim($0,0);
  37207. $$0165 = 0.0;
  37208. break;
  37209. }
  37210. $125 = HEAP32[$7>>2]|0;
  37211. $126 = ($125|0)==(0|0);
  37212. if ($126) {
  37213. $137 = 0;$138 = 0;
  37214. } else {
  37215. $127 = HEAP32[$5>>2]|0;
  37216. $128 = ((($127)) + -1|0);
  37217. HEAP32[$5>>2] = $128;
  37218. $137 = 0;$138 = 0;
  37219. }
  37220. } else {
  37221. $137 = $119;$138 = $120;
  37222. }
  37223. } else {
  37224. $129 = HEAP32[$7>>2]|0;
  37225. $130 = ($129|0)==(0|0);
  37226. if ($130) {
  37227. $137 = 0;$138 = 0;
  37228. } else {
  37229. $131 = HEAP32[$5>>2]|0;
  37230. $132 = ((($131)) + -1|0);
  37231. HEAP32[$5>>2] = $132;
  37232. $137 = 0;$138 = 0;
  37233. }
  37234. }
  37235. $133 = (_bitshift64Shl(($98|0),($100|0),2)|0);
  37236. $134 = tempRet0;
  37237. $135 = (_i64Add(($133|0),($134|0),-32,-1)|0);
  37238. $136 = tempRet0;
  37239. $139 = (_i64Add(($135|0),($136|0),($137|0),($138|0))|0);
  37240. $140 = tempRet0;
  37241. $141 = ($$3162$lcssa|0)==(0);
  37242. if ($141) {
  37243. $142 = (+($3|0));
  37244. $143 = $142 * 0.0;
  37245. $$0165 = $143;
  37246. break;
  37247. }
  37248. $144 = (0 - ($2))|0;
  37249. $145 = ($144|0)<(0);
  37250. $146 = $145 << 31 >> 31;
  37251. $147 = ($140|0)>($146|0);
  37252. $148 = ($139>>>0)>($144>>>0);
  37253. $149 = ($140|0)==($146|0);
  37254. $150 = $149 & $148;
  37255. $151 = $147 | $150;
  37256. if ($151) {
  37257. $152 = (___errno_location()|0);
  37258. HEAP32[$152>>2] = 34;
  37259. $153 = (+($3|0));
  37260. $154 = $153 * 1.7976931348623157E+308;
  37261. $155 = $154 * 1.7976931348623157E+308;
  37262. $$0165 = $155;
  37263. break;
  37264. }
  37265. $156 = (($2) + -106)|0;
  37266. $157 = ($156|0)<(0);
  37267. $158 = $157 << 31 >> 31;
  37268. $159 = ($140|0)<($158|0);
  37269. $160 = ($139>>>0)<($156>>>0);
  37270. $161 = ($140|0)==($158|0);
  37271. $162 = $161 & $160;
  37272. $163 = $159 | $162;
  37273. if ($163) {
  37274. $165 = (___errno_location()|0);
  37275. HEAP32[$165>>2] = 34;
  37276. $166 = (+($3|0));
  37277. $167 = $166 * 2.2250738585072014E-308;
  37278. $168 = $167 * 2.2250738585072014E-308;
  37279. $$0165 = $168;
  37280. break;
  37281. }
  37282. $164 = ($$3162$lcssa|0)>(-1);
  37283. if ($164) {
  37284. $$3158179 = $$0155;$$4163178 = $$3162$lcssa;$173 = $139;$174 = $140;
  37285. while(1) {
  37286. $169 = !($$3158179 >= 0.5);
  37287. $170 = $$4163178 << 1;
  37288. $171 = $$3158179 + -1.0;
  37289. $not$ = $169 ^ 1;
  37290. $172 = $not$&1;
  37291. $$5164 = $170 | $172;
  37292. $$pn = $169 ? $$3158179 : $171;
  37293. $$4 = $$3158179 + $$pn;
  37294. $175 = (_i64Add(($173|0),($174|0),-1,-1)|0);
  37295. $176 = tempRet0;
  37296. $177 = ($$5164|0)>(-1);
  37297. if ($177) {
  37298. $$3158179 = $$4;$$4163178 = $$5164;$173 = $175;$174 = $176;
  37299. } else {
  37300. $$3158$lcssa = $$4;$$4163$lcssa = $$5164;$184 = $175;$185 = $176;
  37301. break;
  37302. }
  37303. }
  37304. } else {
  37305. $$3158$lcssa = $$0155;$$4163$lcssa = $$3162$lcssa;$184 = $139;$185 = $140;
  37306. }
  37307. $178 = ($1|0)<(0);
  37308. $179 = $178 << 31 >> 31;
  37309. $180 = ($2|0)<(0);
  37310. $181 = $180 << 31 >> 31;
  37311. $182 = (_i64Subtract(32,0,($2|0),($181|0))|0);
  37312. $183 = tempRet0;
  37313. $186 = (_i64Add(($182|0),($183|0),($184|0),($185|0))|0);
  37314. $187 = tempRet0;
  37315. $188 = ($179|0)>($187|0);
  37316. $189 = ($1>>>0)>($186>>>0);
  37317. $190 = ($179|0)==($187|0);
  37318. $191 = $190 & $189;
  37319. $192 = $188 | $191;
  37320. if ($192) {
  37321. $193 = ($186|0)>(0);
  37322. if ($193) {
  37323. $$0166 = $186;
  37324. label = 59;
  37325. } else {
  37326. $$0166170 = 0;$197 = 84;
  37327. label = 61;
  37328. }
  37329. } else {
  37330. $$0166 = $1;
  37331. label = 59;
  37332. }
  37333. if ((label|0) == 59) {
  37334. $194 = ($$0166|0)<(53);
  37335. $195 = (84 - ($$0166))|0;
  37336. if ($194) {
  37337. $$0166170 = $$0166;$197 = $195;
  37338. label = 61;
  37339. } else {
  37340. $$pre = (+($3|0));
  37341. $$0151 = 0.0;$$0166169 = $$0166;$$pre$phiZ2D = $$pre;
  37342. }
  37343. }
  37344. if ((label|0) == 61) {
  37345. $196 = (+($3|0));
  37346. $198 = (+_scalbn(1.0,$197));
  37347. $199 = (+_copysignl($198,$196));
  37348. $$0151 = $199;$$0166169 = $$0166170;$$pre$phiZ2D = $196;
  37349. }
  37350. $200 = ($$0166169|0)<(32);
  37351. $201 = $$3158$lcssa != 0.0;
  37352. $or$cond4 = $201 & $200;
  37353. $202 = $$4163$lcssa & 1;
  37354. $203 = ($202|0)==(0);
  37355. $or$cond168 = $203 & $or$cond4;
  37356. $204 = $or$cond168&1;
  37357. $$6 = (($204) + ($$4163$lcssa))|0;
  37358. $$5 = $or$cond168 ? 0.0 : $$3158$lcssa;
  37359. $205 = (+($$6>>>0));
  37360. $206 = $$pre$phiZ2D * $205;
  37361. $207 = $$0151 + $206;
  37362. $208 = $$pre$phiZ2D * $$5;
  37363. $209 = $208 + $207;
  37364. $210 = $209 - $$0151;
  37365. $211 = $210 != 0.0;
  37366. if (!($211)) {
  37367. $212 = (___errno_location()|0);
  37368. HEAP32[$212>>2] = 34;
  37369. }
  37370. $213 = (+_scalbnl($210,$184));
  37371. $$0165 = $213;
  37372. }
  37373. } while(0);
  37374. return (+$$0165);
  37375. }
  37376. function _decfloat($0,$1,$2,$3,$4,$5) {
  37377. $0 = $0|0;
  37378. $1 = $1|0;
  37379. $2 = $2|0;
  37380. $3 = $3|0;
  37381. $4 = $4|0;
  37382. $5 = $5|0;
  37383. var $$ = 0, $$$0345 = 0, $$$0350 = 0, $$$0385 = 0, $$$0401 = 0, $$$5355 = 0, $$$5390 = 0, $$0329 = 0, $$0332490 = 0, $$0333 = 0, $$0334 = 0, $$0336486 = 0, $$0340496 = 0, $$0341$lcssa = 0, $$0341463 = 0, $$0341464 = 0, $$0341465 = 0, $$0341513 = 0, $$0345$lcssa = 0, $$0345467 = 0;
  37384. var $$0345468 = 0, $$0345469 = 0, $$0345512 = 0, $$0350$lcssa554 = 0, $$0350494 = 0, $$0360 = 0.0, $$0361 = 0.0, $$0365484 = 0.0, $$0372 = 0, $$0380 = 0, $$0380$ph = 0, $$0385$lcssa553 = 0, $$0385493 = 0, $$0393 = 0, $$0396 = 0, $$0401$lcssa = 0, $$0401473 = 0, $$0401474 = 0, $$0401475 = 0, $$0401509 = 0;
  37385. var $$1 = 0.0, $$10 = 0, $$1330$be = 0, $$1330$ph = 0, $$1335 = 0, $$1337 = 0, $$1362 = 0.0, $$1366 = 0.0, $$1373 = 0, $$1373$ph448 = 0, $$1381 = 0, $$1381$ph = 0, $$1381$ph558 = 0, $$1394$lcssa = 0, $$1394511 = 0, $$2 = 0, $$2343 = 0, $$2347 = 0, $$2352$ph449 = 0, $$2367 = 0.0;
  37386. var $$2371$v = 0, $$2374 = 0, $$2387$ph447 = 0, $$2395 = 0, $$2398 = 0, $$2403 = 0, $$3$be = 0, $$3$lcssa = 0, $$3344503 = 0, $$3348 = 0, $$3364 = 0.0, $$3368 = 0.0, $$3375 = 0, $$3383 = 0, $$3399$lcssa = 0, $$3399510 = 0, $$3514 = 0, $$413 = 0, $$425 = 0, $$4349495 = 0;
  37387. var $$4354 = 0, $$4354$ph = 0, $$4354$ph559 = 0, $$4376 = 0, $$4384 = 0, $$4389$ph = 0, $$4389$ph445 = 0, $$4400 = 0, $$4485 = 0, $$5 = 0, $$5$in = 0, $$5355488 = 0, $$5390487 = 0, $$6378$ph = 0, $$6489 = 0, $$9483 = 0, $$neg442 = 0, $$neg443 = 0, $$pre = 0, $$promoted = 0;
  37388. var $$sink = 0, $$sink421$off0 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0.0, $103 = 0.0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0;
  37389. var $116 = 0, $117 = 0, $118 = 0, $119 = 0.0, $12 = 0, $120 = 0.0, $121 = 0.0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0.0, $132 = 0.0, $133 = 0.0;
  37390. var $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0.0, $144 = 0.0, $145 = 0.0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0;
  37391. var $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0.0, $159 = 0.0, $16 = 0, $160 = 0.0, $161 = 0, $162 = 0.0, $163 = 0.0, $164 = 0.0, $165 = 0, $166 = 0, $167 = 0, $168 = 0.0, $169 = 0.0, $17 = 0;
  37392. var $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0.0, $177 = 0.0, $178 = 0.0, $179 = 0, $18 = 0, $180 = 0.0, $181 = 0.0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0;
  37393. var $189 = 0, $19 = 0, $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0, $199 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0, $205 = 0, $206 = 0;
  37394. 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;
  37395. 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;
  37396. 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;
  37397. 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;
  37398. 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;
  37399. var $298 = 0, $299 = 0, $30 = 0, $300 = 0, $301 = 0, $302 = 0, $303 = 0.0, $304 = 0, $305 = 0, $306 = 0.0, $307 = 0.0, $308 = 0, $309 = 0.0, $31 = 0, $310 = 0.0, $311 = 0, $312 = 0, $313 = 0, $314 = 0, $315 = 0;
  37400. var $316 = 0, $317 = 0.0, $318 = 0.0, $319 = 0, $32 = 0, $320 = 0.0, $321 = 0.0, $322 = 0.0, $323 = 0.0, $324 = 0, $325 = 0, $326 = 0, $327 = 0, $328 = 0, $329 = 0, $33 = 0, $330 = 0, $331 = 0, $332 = 0, $333 = 0;
  37401. var $334 = 0.0, $335 = 0.0, $336 = 0, $337 = 0.0, $338 = 0.0, $339 = 0, $34 = 0, $340 = 0, $341 = 0, $342 = 0.0, $343 = 0.0, $344 = 0.0, $345 = 0.0, $346 = 0, $347 = 0, $348 = 0.0, $349 = 0, $35 = 0, $350 = 0.0, $351 = 0.0;
  37402. var $352 = 0.0, $353 = 0, $354 = 0, $355 = 0, $356 = 0.0, $357 = 0, $358 = 0.0, $359 = 0, $36 = 0, $360 = 0, $361 = 0, $362 = 0, $363 = 0, $364 = 0, $365 = 0.0, $366 = 0, $367 = 0, $368 = 0, $369 = 0, $37 = 0;
  37403. var $370 = 0, $371 = 0, $372 = 0, $373 = 0, $374 = 0, $375 = 0, $376 = 0, $377 = 0, $378 = 0, $379 = 0, $38 = 0, $380 = 0, $381 = 0, $382 = 0, $383 = 0, $384 = 0, $385 = 0, $39 = 0, $40 = 0, $41 = 0;
  37404. var $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0;
  37405. 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;
  37406. 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;
  37407. var $98 = 0, $99 = 0, $cond = 0, $exitcond = 0, $exitcond551 = 0, $narrow = 0, $not$ = 0, $or$cond = 0, $or$cond11 = 0, $or$cond14 = 0, $or$cond415 = 0, $or$cond417 = 0, $or$cond419 = 0, $or$cond420 = 0, $or$cond422 = 0, $or$cond422$not = 0, $or$cond423 = 0, $or$cond426 = 0, $or$cond5 = 0, $sum = 0;
  37408. var label = 0, sp = 0;
  37409. sp = STACKTOP;
  37410. STACKTOP = STACKTOP + 512|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(512|0);
  37411. $6 = sp;
  37412. $sum = (($3) + ($2))|0;
  37413. $7 = (0 - ($sum))|0;
  37414. $8 = ((($0)) + 4|0);
  37415. $9 = ((($0)) + 100|0);
  37416. $$0329 = $1;$$0396 = 0;
  37417. L1: while(1) {
  37418. switch ($$0329|0) {
  37419. case 46: {
  37420. label = 6;
  37421. break L1;
  37422. break;
  37423. }
  37424. case 48: {
  37425. break;
  37426. }
  37427. default: {
  37428. $$0393 = 0;$$2 = $$0329;$$2398 = $$0396;$366 = 0;$367 = 0;
  37429. break L1;
  37430. }
  37431. }
  37432. $10 = HEAP32[$8>>2]|0;
  37433. $11 = HEAP32[$9>>2]|0;
  37434. $12 = ($10>>>0)<($11>>>0);
  37435. if ($12) {
  37436. $13 = ((($10)) + 1|0);
  37437. HEAP32[$8>>2] = $13;
  37438. $14 = HEAP8[$10>>0]|0;
  37439. $15 = $14&255;
  37440. $$0329 = $15;$$0396 = 1;
  37441. continue;
  37442. } else {
  37443. $16 = (___shgetc($0)|0);
  37444. $$0329 = $16;$$0396 = 1;
  37445. continue;
  37446. }
  37447. }
  37448. if ((label|0) == 6) {
  37449. $17 = HEAP32[$8>>2]|0;
  37450. $18 = HEAP32[$9>>2]|0;
  37451. $19 = ($17>>>0)<($18>>>0);
  37452. if ($19) {
  37453. $20 = ((($17)) + 1|0);
  37454. HEAP32[$8>>2] = $20;
  37455. $21 = HEAP8[$17>>0]|0;
  37456. $22 = $21&255;
  37457. $$1330$ph = $22;
  37458. } else {
  37459. $23 = (___shgetc($0)|0);
  37460. $$1330$ph = $23;
  37461. }
  37462. $24 = ($$1330$ph|0)==(48);
  37463. if ($24) {
  37464. $25 = 0;$26 = 0;
  37465. while(1) {
  37466. $27 = (_i64Add(($25|0),($26|0),-1,-1)|0);
  37467. $28 = tempRet0;
  37468. $29 = HEAP32[$8>>2]|0;
  37469. $30 = HEAP32[$9>>2]|0;
  37470. $31 = ($29>>>0)<($30>>>0);
  37471. if ($31) {
  37472. $32 = ((($29)) + 1|0);
  37473. HEAP32[$8>>2] = $32;
  37474. $33 = HEAP8[$29>>0]|0;
  37475. $34 = $33&255;
  37476. $$1330$be = $34;
  37477. } else {
  37478. $35 = (___shgetc($0)|0);
  37479. $$1330$be = $35;
  37480. }
  37481. $36 = ($$1330$be|0)==(48);
  37482. if ($36) {
  37483. $25 = $27;$26 = $28;
  37484. } else {
  37485. $$0393 = 1;$$2 = $$1330$be;$$2398 = 1;$366 = $27;$367 = $28;
  37486. break;
  37487. }
  37488. }
  37489. } else {
  37490. $$0393 = 1;$$2 = $$1330$ph;$$2398 = $$0396;$366 = 0;$367 = 0;
  37491. }
  37492. }
  37493. HEAP32[$6>>2] = 0;
  37494. $37 = (($$2) + -48)|0;
  37495. $38 = ($37>>>0)<(10);
  37496. $39 = ($$2|0)==(46);
  37497. $40 = $39 | $38;
  37498. L20: do {
  37499. if ($40) {
  37500. $41 = ((($6)) + 496|0);
  37501. $$0341513 = 0;$$0345512 = 0;$$0401509 = 0;$$1394511 = $$0393;$$3399510 = $$2398;$$3514 = $$2;$368 = $39;$369 = $37;$370 = $366;$371 = $367;$44 = 0;$45 = 0;
  37502. L22: while(1) {
  37503. do {
  37504. if ($368) {
  37505. $cond = ($$1394511|0)==(0);
  37506. if ($cond) {
  37507. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = 1;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $44;$373 = $45;$374 = $44;$375 = $45;
  37508. } else {
  37509. break L22;
  37510. }
  37511. } else {
  37512. $43 = ($$0345512|0)<(125);
  37513. $46 = (_i64Add(($44|0),($45|0),1,0)|0);
  37514. $47 = tempRet0;
  37515. $48 = ($$3514|0)!=(48);
  37516. if (!($43)) {
  37517. if (!($48)) {
  37518. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = $$1394511;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  37519. break;
  37520. }
  37521. $57 = HEAP32[$41>>2]|0;
  37522. $58 = $57 | 1;
  37523. HEAP32[$41>>2] = $58;
  37524. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = $$1394511;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  37525. break;
  37526. }
  37527. $$$0401 = $48 ? $46 : $$0401509;
  37528. $49 = ($$0341513|0)==(0);
  37529. $$pre = (($6) + ($$0345512<<2)|0);
  37530. if ($49) {
  37531. $$sink = $369;
  37532. } else {
  37533. $50 = HEAP32[$$pre>>2]|0;
  37534. $51 = ($50*10)|0;
  37535. $52 = (($$3514) + -48)|0;
  37536. $53 = (($52) + ($51))|0;
  37537. $$sink = $53;
  37538. }
  37539. HEAP32[$$pre>>2] = $$sink;
  37540. $54 = (($$0341513) + 1)|0;
  37541. $55 = ($54|0)==(9);
  37542. $56 = $55&1;
  37543. $$$0345 = (($56) + ($$0345512))|0;
  37544. $$413 = $55 ? 0 : $54;
  37545. $$2343 = $$413;$$2347 = $$$0345;$$2395 = $$1394511;$$2403 = $$$0401;$$4400 = 1;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  37546. }
  37547. } while(0);
  37548. $59 = HEAP32[$8>>2]|0;
  37549. $60 = HEAP32[$9>>2]|0;
  37550. $61 = ($59>>>0)<($60>>>0);
  37551. if ($61) {
  37552. $62 = ((($59)) + 1|0);
  37553. HEAP32[$8>>2] = $62;
  37554. $63 = HEAP8[$59>>0]|0;
  37555. $64 = $63&255;
  37556. $$3$be = $64;
  37557. } else {
  37558. $65 = (___shgetc($0)|0);
  37559. $$3$be = $65;
  37560. }
  37561. $66 = (($$3$be) + -48)|0;
  37562. $67 = ($66>>>0)<(10);
  37563. $68 = ($$3$be|0)==(46);
  37564. $69 = $68 | $67;
  37565. if ($69) {
  37566. $$0341513 = $$2343;$$0345512 = $$2347;$$0401509 = $$2403;$$1394511 = $$2395;$$3399510 = $$4400;$$3514 = $$3$be;$368 = $68;$369 = $66;$370 = $372;$371 = $373;$44 = $374;$45 = $375;
  37567. } else {
  37568. $$0341$lcssa = $$2343;$$0345$lcssa = $$2347;$$0401$lcssa = $$2403;$$1394$lcssa = $$2395;$$3$lcssa = $$3$be;$$3399$lcssa = $$4400;$72 = $372;$73 = $374;$75 = $373;$76 = $375;
  37569. label = 29;
  37570. break L20;
  37571. }
  37572. }
  37573. $42 = ($$3399510|0)!=(0);
  37574. $$0341465 = $$0341513;$$0345469 = $$0345512;$$0401475 = $$0401509;$376 = $44;$377 = $45;$378 = $370;$379 = $371;$380 = $42;
  37575. label = 37;
  37576. } else {
  37577. $$0341$lcssa = 0;$$0345$lcssa = 0;$$0401$lcssa = 0;$$1394$lcssa = $$0393;$$3$lcssa = $$2;$$3399$lcssa = $$2398;$72 = $366;$73 = 0;$75 = $367;$76 = 0;
  37578. label = 29;
  37579. }
  37580. } while(0);
  37581. do {
  37582. if ((label|0) == 29) {
  37583. $70 = ($$1394$lcssa|0)==(0);
  37584. $71 = $70 ? $73 : $72;
  37585. $74 = $70 ? $76 : $75;
  37586. $77 = ($$3399$lcssa|0)!=(0);
  37587. $78 = $$3$lcssa | 32;
  37588. $79 = ($78|0)==(101);
  37589. $or$cond415 = $77 & $79;
  37590. if (!($or$cond415)) {
  37591. $94 = ($$3$lcssa|0)>(-1);
  37592. if ($94) {
  37593. $$0341465 = $$0341$lcssa;$$0345469 = $$0345$lcssa;$$0401475 = $$0401$lcssa;$376 = $73;$377 = $76;$378 = $71;$379 = $74;$380 = $77;
  37594. label = 37;
  37595. break;
  37596. } else {
  37597. $$0341464 = $$0341$lcssa;$$0345468 = $$0345$lcssa;$$0401474 = $$0401$lcssa;$381 = $73;$382 = $76;$383 = $77;$384 = $71;$385 = $74;
  37598. label = 39;
  37599. break;
  37600. }
  37601. }
  37602. $80 = (_scanexp($0,$5)|0);
  37603. $81 = tempRet0;
  37604. $82 = ($80|0)==(0);
  37605. $83 = ($81|0)==(-2147483648);
  37606. $84 = $82 & $83;
  37607. if ($84) {
  37608. $85 = ($5|0)==(0);
  37609. if ($85) {
  37610. ___shlim($0,0);
  37611. $$1 = 0.0;
  37612. break;
  37613. }
  37614. $86 = HEAP32[$9>>2]|0;
  37615. $87 = ($86|0)==(0|0);
  37616. if ($87) {
  37617. $90 = 0;$91 = 0;
  37618. } else {
  37619. $88 = HEAP32[$8>>2]|0;
  37620. $89 = ((($88)) + -1|0);
  37621. HEAP32[$8>>2] = $89;
  37622. $90 = 0;$91 = 0;
  37623. }
  37624. } else {
  37625. $90 = $80;$91 = $81;
  37626. }
  37627. $92 = (_i64Add(($90|0),($91|0),($71|0),($74|0))|0);
  37628. $93 = tempRet0;
  37629. $$0341463 = $$0341$lcssa;$$0345467 = $$0345$lcssa;$$0401473 = $$0401$lcssa;$105 = $92;$106 = $73;$108 = $93;$109 = $76;
  37630. label = 41;
  37631. }
  37632. } while(0);
  37633. if ((label|0) == 37) {
  37634. $95 = HEAP32[$9>>2]|0;
  37635. $96 = ($95|0)==(0|0);
  37636. if ($96) {
  37637. $$0341464 = $$0341465;$$0345468 = $$0345469;$$0401474 = $$0401475;$381 = $376;$382 = $377;$383 = $380;$384 = $378;$385 = $379;
  37638. label = 39;
  37639. } else {
  37640. $97 = HEAP32[$8>>2]|0;
  37641. $98 = ((($97)) + -1|0);
  37642. HEAP32[$8>>2] = $98;
  37643. if ($380) {
  37644. $$0341463 = $$0341465;$$0345467 = $$0345469;$$0401473 = $$0401475;$105 = $378;$106 = $376;$108 = $379;$109 = $377;
  37645. label = 41;
  37646. } else {
  37647. label = 40;
  37648. }
  37649. }
  37650. }
  37651. if ((label|0) == 39) {
  37652. if ($383) {
  37653. $$0341463 = $$0341464;$$0345467 = $$0345468;$$0401473 = $$0401474;$105 = $384;$106 = $381;$108 = $385;$109 = $382;
  37654. label = 41;
  37655. } else {
  37656. label = 40;
  37657. }
  37658. }
  37659. do {
  37660. if ((label|0) == 40) {
  37661. $99 = (___errno_location()|0);
  37662. HEAP32[$99>>2] = 22;
  37663. ___shlim($0,0);
  37664. $$1 = 0.0;
  37665. }
  37666. else if ((label|0) == 41) {
  37667. $100 = HEAP32[$6>>2]|0;
  37668. $101 = ($100|0)==(0);
  37669. if ($101) {
  37670. $102 = (+($4|0));
  37671. $103 = $102 * 0.0;
  37672. $$1 = $103;
  37673. break;
  37674. }
  37675. $104 = ($105|0)==($106|0);
  37676. $107 = ($108|0)==($109|0);
  37677. $110 = $104 & $107;
  37678. $111 = ($109|0)<(0);
  37679. $112 = ($106>>>0)<(10);
  37680. $113 = ($109|0)==(0);
  37681. $114 = $113 & $112;
  37682. $115 = $111 | $114;
  37683. $or$cond = $115 & $110;
  37684. if ($or$cond) {
  37685. $116 = ($2|0)>(30);
  37686. $117 = $100 >>> $2;
  37687. $118 = ($117|0)==(0);
  37688. $or$cond417 = $116 | $118;
  37689. if ($or$cond417) {
  37690. $119 = (+($4|0));
  37691. $120 = (+($100>>>0));
  37692. $121 = $119 * $120;
  37693. $$1 = $121;
  37694. break;
  37695. }
  37696. }
  37697. $122 = (($3|0) / -2)&-1;
  37698. $123 = ($122|0)<(0);
  37699. $124 = $123 << 31 >> 31;
  37700. $125 = ($108|0)>($124|0);
  37701. $126 = ($105>>>0)>($122>>>0);
  37702. $127 = ($108|0)==($124|0);
  37703. $128 = $127 & $126;
  37704. $129 = $125 | $128;
  37705. if ($129) {
  37706. $130 = (___errno_location()|0);
  37707. HEAP32[$130>>2] = 34;
  37708. $131 = (+($4|0));
  37709. $132 = $131 * 1.7976931348623157E+308;
  37710. $133 = $132 * 1.7976931348623157E+308;
  37711. $$1 = $133;
  37712. break;
  37713. }
  37714. $134 = (($3) + -106)|0;
  37715. $135 = ($134|0)<(0);
  37716. $136 = $135 << 31 >> 31;
  37717. $137 = ($108|0)<($136|0);
  37718. $138 = ($105>>>0)<($134>>>0);
  37719. $139 = ($108|0)==($136|0);
  37720. $140 = $139 & $138;
  37721. $141 = $137 | $140;
  37722. if ($141) {
  37723. $142 = (___errno_location()|0);
  37724. HEAP32[$142>>2] = 34;
  37725. $143 = (+($4|0));
  37726. $144 = $143 * 2.2250738585072014E-308;
  37727. $145 = $144 * 2.2250738585072014E-308;
  37728. $$1 = $145;
  37729. break;
  37730. }
  37731. $146 = ($$0341463|0)==(0);
  37732. if ($146) {
  37733. $$3348 = $$0345467;
  37734. } else {
  37735. $147 = ($$0341463|0)<(9);
  37736. if ($147) {
  37737. $148 = (($6) + ($$0345467<<2)|0);
  37738. $$promoted = HEAP32[$148>>2]|0;
  37739. $$3344503 = $$0341463;$150 = $$promoted;
  37740. while(1) {
  37741. $149 = ($150*10)|0;
  37742. $151 = (($$3344503) + 1)|0;
  37743. $exitcond551 = ($151|0)==(9);
  37744. if ($exitcond551) {
  37745. break;
  37746. } else {
  37747. $$3344503 = $151;$150 = $149;
  37748. }
  37749. }
  37750. HEAP32[$148>>2] = $149;
  37751. }
  37752. $152 = (($$0345467) + 1)|0;
  37753. $$3348 = $152;
  37754. }
  37755. $153 = ($$0401473|0)<(9);
  37756. if ($153) {
  37757. $154 = ($$0401473|0)<=($105|0);
  37758. $155 = ($105|0)<(18);
  37759. $or$cond5 = $154 & $155;
  37760. if ($or$cond5) {
  37761. $156 = ($105|0)==(9);
  37762. $157 = HEAP32[$6>>2]|0;
  37763. if ($156) {
  37764. $158 = (+($4|0));
  37765. $159 = (+($157>>>0));
  37766. $160 = $158 * $159;
  37767. $$1 = $160;
  37768. break;
  37769. }
  37770. $161 = ($105|0)<(9);
  37771. if ($161) {
  37772. $162 = (+($4|0));
  37773. $163 = (+($157>>>0));
  37774. $164 = $162 * $163;
  37775. $165 = (8 - ($105))|0;
  37776. $166 = (4200 + ($165<<2)|0);
  37777. $167 = HEAP32[$166>>2]|0;
  37778. $168 = (+($167|0));
  37779. $169 = $164 / $168;
  37780. $$1 = $169;
  37781. break;
  37782. }
  37783. $$neg442 = Math_imul($105, -3)|0;
  37784. $$neg443 = (($2) + 27)|0;
  37785. $170 = (($$neg443) + ($$neg442))|0;
  37786. $171 = ($170|0)>(30);
  37787. $172 = $157 >>> $170;
  37788. $173 = ($172|0)==(0);
  37789. $or$cond419 = $171 | $173;
  37790. if ($or$cond419) {
  37791. $174 = (($105) + -10)|0;
  37792. $175 = (4200 + ($174<<2)|0);
  37793. $176 = (+($4|0));
  37794. $177 = (+($157>>>0));
  37795. $178 = $176 * $177;
  37796. $179 = HEAP32[$175>>2]|0;
  37797. $180 = (+($179|0));
  37798. $181 = $178 * $180;
  37799. $$1 = $181;
  37800. break;
  37801. }
  37802. }
  37803. }
  37804. $182 = (($105|0) % 9)&-1;
  37805. $183 = ($182|0)==(0);
  37806. if ($183) {
  37807. $$0380$ph = 0;$$1373$ph448 = $$3348;$$2352$ph449 = 0;$$2387$ph447 = $105;
  37808. } else {
  37809. $184 = ($105|0)>(-1);
  37810. $185 = (($182) + 9)|0;
  37811. $186 = $184 ? $182 : $185;
  37812. $187 = (8 - ($186))|0;
  37813. $188 = (4200 + ($187<<2)|0);
  37814. $189 = HEAP32[$188>>2]|0;
  37815. $190 = ($$3348|0)==(0);
  37816. if ($190) {
  37817. $$0350$lcssa554 = 0;$$0372 = 0;$$0385$lcssa553 = $105;
  37818. } else {
  37819. $191 = (1000000000 / ($189|0))&-1;
  37820. $$0340496 = 0;$$0350494 = 0;$$0385493 = $105;$$4349495 = 0;
  37821. while(1) {
  37822. $192 = (($6) + ($$4349495<<2)|0);
  37823. $193 = HEAP32[$192>>2]|0;
  37824. $194 = (($193>>>0) % ($189>>>0))&-1;
  37825. $195 = (($193>>>0) / ($189>>>0))&-1;
  37826. $196 = (($195) + ($$0340496))|0;
  37827. HEAP32[$192>>2] = $196;
  37828. $197 = Math_imul($191, $194)|0;
  37829. $198 = ($$4349495|0)==($$0350494|0);
  37830. $199 = ($196|0)==(0);
  37831. $or$cond420 = $198 & $199;
  37832. $200 = (($$0350494) + 1)|0;
  37833. $201 = $200 & 127;
  37834. $202 = (($$0385493) + -9)|0;
  37835. $$$0385 = $or$cond420 ? $202 : $$0385493;
  37836. $$$0350 = $or$cond420 ? $201 : $$0350494;
  37837. $203 = (($$4349495) + 1)|0;
  37838. $204 = ($203|0)==($$3348|0);
  37839. if ($204) {
  37840. break;
  37841. } else {
  37842. $$0340496 = $197;$$0350494 = $$$0350;$$0385493 = $$$0385;$$4349495 = $203;
  37843. }
  37844. }
  37845. $205 = ($197|0)==(0);
  37846. if ($205) {
  37847. $$0350$lcssa554 = $$$0350;$$0372 = $$3348;$$0385$lcssa553 = $$$0385;
  37848. } else {
  37849. $206 = (($6) + ($$3348<<2)|0);
  37850. $207 = (($$3348) + 1)|0;
  37851. HEAP32[$206>>2] = $197;
  37852. $$0350$lcssa554 = $$$0350;$$0372 = $207;$$0385$lcssa553 = $$$0385;
  37853. }
  37854. }
  37855. $208 = (9 - ($186))|0;
  37856. $209 = (($208) + ($$0385$lcssa553))|0;
  37857. $$0380$ph = 0;$$1373$ph448 = $$0372;$$2352$ph449 = $$0350$lcssa554;$$2387$ph447 = $209;
  37858. }
  37859. L101: while(1) {
  37860. $210 = ($$2387$ph447|0)<(18);
  37861. $211 = ($$2387$ph447|0)==(18);
  37862. $212 = (($6) + ($$2352$ph449<<2)|0);
  37863. $$0380 = $$0380$ph;$$1373 = $$1373$ph448;
  37864. while(1) {
  37865. if (!($210)) {
  37866. if (!($211)) {
  37867. $$1381$ph = $$0380;$$4354$ph = $$2352$ph449;$$4389$ph445 = $$2387$ph447;$$6378$ph = $$1373;
  37868. break L101;
  37869. }
  37870. $213 = HEAP32[$212>>2]|0;
  37871. $214 = ($213>>>0)<(9007199);
  37872. if (!($214)) {
  37873. $$1381$ph = $$0380;$$4354$ph = $$2352$ph449;$$4389$ph445 = 18;$$6378$ph = $$1373;
  37874. break L101;
  37875. }
  37876. }
  37877. $215 = (($$1373) + 127)|0;
  37878. $$0334 = 0;$$2374 = $$1373;$$5$in = $215;
  37879. while(1) {
  37880. $$5 = $$5$in & 127;
  37881. $216 = (($6) + ($$5<<2)|0);
  37882. $217 = HEAP32[$216>>2]|0;
  37883. $218 = (_bitshift64Shl(($217|0),0,29)|0);
  37884. $219 = tempRet0;
  37885. $220 = (_i64Add(($218|0),($219|0),($$0334|0),0)|0);
  37886. $221 = tempRet0;
  37887. $222 = ($221>>>0)>(0);
  37888. $223 = ($220>>>0)>(1000000000);
  37889. $224 = ($221|0)==(0);
  37890. $225 = $224 & $223;
  37891. $226 = $222 | $225;
  37892. if ($226) {
  37893. $227 = (___udivdi3(($220|0),($221|0),1000000000,0)|0);
  37894. $228 = tempRet0;
  37895. $229 = (___uremdi3(($220|0),($221|0),1000000000,0)|0);
  37896. $230 = tempRet0;
  37897. $$1335 = $227;$$sink421$off0 = $229;
  37898. } else {
  37899. $$1335 = 0;$$sink421$off0 = $220;
  37900. }
  37901. HEAP32[$216>>2] = $$sink421$off0;
  37902. $231 = (($$2374) + 127)|0;
  37903. $232 = $231 & 127;
  37904. $233 = ($$5|0)!=($232|0);
  37905. $234 = ($$5|0)==($$2352$ph449|0);
  37906. $or$cond422 = $233 | $234;
  37907. $or$cond422$not = $or$cond422 ^ 1;
  37908. $235 = ($$sink421$off0|0)==(0);
  37909. $or$cond423 = $235 & $or$cond422$not;
  37910. $$3375 = $or$cond423 ? $$5 : $$2374;
  37911. $236 = (($$5) + -1)|0;
  37912. if ($234) {
  37913. break;
  37914. } else {
  37915. $$0334 = $$1335;$$2374 = $$3375;$$5$in = $236;
  37916. }
  37917. }
  37918. $237 = (($$0380) + -29)|0;
  37919. $238 = ($$1335|0)==(0);
  37920. if ($238) {
  37921. $$0380 = $237;$$1373 = $$3375;
  37922. } else {
  37923. break;
  37924. }
  37925. }
  37926. $239 = (($$2387$ph447) + 9)|0;
  37927. $240 = (($$2352$ph449) + 127)|0;
  37928. $241 = $240 & 127;
  37929. $242 = ($241|0)==($$3375|0);
  37930. $243 = (($$3375) + 127)|0;
  37931. $244 = $243 & 127;
  37932. $245 = (($$3375) + 126)|0;
  37933. $246 = $245 & 127;
  37934. $247 = (($6) + ($246<<2)|0);
  37935. if ($242) {
  37936. $248 = (($6) + ($244<<2)|0);
  37937. $249 = HEAP32[$248>>2]|0;
  37938. $250 = HEAP32[$247>>2]|0;
  37939. $251 = $250 | $249;
  37940. HEAP32[$247>>2] = $251;
  37941. $$4376 = $244;
  37942. } else {
  37943. $$4376 = $$3375;
  37944. }
  37945. $252 = (($6) + ($241<<2)|0);
  37946. HEAP32[$252>>2] = $$1335;
  37947. $$0380$ph = $237;$$1373$ph448 = $$4376;$$2352$ph449 = $241;$$2387$ph447 = $239;
  37948. }
  37949. L119: while(1) {
  37950. $289 = (($$6378$ph) + 1)|0;
  37951. $287 = $289 & 127;
  37952. $290 = (($$6378$ph) + 127)|0;
  37953. $291 = $290 & 127;
  37954. $292 = (($6) + ($291<<2)|0);
  37955. $$1381$ph558 = $$1381$ph;$$4354$ph559 = $$4354$ph;$$4389$ph = $$4389$ph445;
  37956. while(1) {
  37957. $265 = ($$4389$ph|0)==(18);
  37958. $293 = ($$4389$ph|0)>(27);
  37959. $$425 = $293 ? 9 : 1;
  37960. $$1381 = $$1381$ph558;$$4354 = $$4354$ph559;
  37961. while(1) {
  37962. $$0336486 = 0;
  37963. while(1) {
  37964. $253 = (($$0336486) + ($$4354))|0;
  37965. $254 = $253 & 127;
  37966. $255 = ($254|0)==($$6378$ph|0);
  37967. if ($255) {
  37968. $$1337 = 2;
  37969. label = 88;
  37970. break;
  37971. }
  37972. $256 = (($6) + ($254<<2)|0);
  37973. $257 = HEAP32[$256>>2]|0;
  37974. $258 = (4232 + ($$0336486<<2)|0);
  37975. $259 = HEAP32[$258>>2]|0;
  37976. $260 = ($257>>>0)<($259>>>0);
  37977. if ($260) {
  37978. $$1337 = 2;
  37979. label = 88;
  37980. break;
  37981. }
  37982. $261 = ($257>>>0)>($259>>>0);
  37983. if ($261) {
  37984. break;
  37985. }
  37986. $262 = (($$0336486) + 1)|0;
  37987. $263 = ($262|0)<(2);
  37988. if ($263) {
  37989. $$0336486 = $262;
  37990. } else {
  37991. $$1337 = $262;
  37992. label = 88;
  37993. break;
  37994. }
  37995. }
  37996. if ((label|0) == 88) {
  37997. label = 0;
  37998. $264 = ($$1337|0)==(2);
  37999. $or$cond11 = $265 & $264;
  38000. if ($or$cond11) {
  38001. $$0365484 = 0.0;$$4485 = 0;$$9483 = $$6378$ph;
  38002. break L119;
  38003. }
  38004. }
  38005. $266 = (($$425) + ($$1381))|0;
  38006. $267 = ($$4354|0)==($$6378$ph|0);
  38007. if ($267) {
  38008. $$1381 = $266;$$4354 = $$6378$ph;
  38009. } else {
  38010. break;
  38011. }
  38012. }
  38013. $268 = 1 << $$425;
  38014. $269 = (($268) + -1)|0;
  38015. $270 = 1000000000 >>> $$425;
  38016. $$0332490 = 0;$$5355488 = $$4354;$$5390487 = $$4389$ph;$$6489 = $$4354;
  38017. while(1) {
  38018. $271 = (($6) + ($$6489<<2)|0);
  38019. $272 = HEAP32[$271>>2]|0;
  38020. $273 = $272 & $269;
  38021. $274 = $272 >>> $$425;
  38022. $275 = (($274) + ($$0332490))|0;
  38023. HEAP32[$271>>2] = $275;
  38024. $276 = Math_imul($273, $270)|0;
  38025. $277 = ($$6489|0)==($$5355488|0);
  38026. $278 = ($275|0)==(0);
  38027. $or$cond426 = $277 & $278;
  38028. $279 = (($$5355488) + 1)|0;
  38029. $280 = $279 & 127;
  38030. $281 = (($$5390487) + -9)|0;
  38031. $$$5390 = $or$cond426 ? $281 : $$5390487;
  38032. $$$5355 = $or$cond426 ? $280 : $$5355488;
  38033. $282 = (($$6489) + 1)|0;
  38034. $283 = $282 & 127;
  38035. $284 = ($283|0)==($$6378$ph|0);
  38036. if ($284) {
  38037. break;
  38038. } else {
  38039. $$0332490 = $276;$$5355488 = $$$5355;$$5390487 = $$$5390;$$6489 = $283;
  38040. }
  38041. }
  38042. $285 = ($276|0)==(0);
  38043. if ($285) {
  38044. $$1381$ph558 = $266;$$4354$ph559 = $$$5355;$$4389$ph = $$$5390;
  38045. continue;
  38046. }
  38047. $286 = ($287|0)==($$$5355|0);
  38048. if (!($286)) {
  38049. break;
  38050. }
  38051. $294 = HEAP32[$292>>2]|0;
  38052. $295 = $294 | 1;
  38053. HEAP32[$292>>2] = $295;
  38054. $$1381$ph558 = $266;$$4354$ph559 = $$$5355;$$4389$ph = $$$5390;
  38055. }
  38056. $288 = (($6) + ($$6378$ph<<2)|0);
  38057. HEAP32[$288>>2] = $276;
  38058. $$1381$ph = $266;$$4354$ph = $$$5355;$$4389$ph445 = $$$5390;$$6378$ph = $287;
  38059. }
  38060. while(1) {
  38061. $296 = (($$4485) + ($$4354))|0;
  38062. $297 = $296 & 127;
  38063. $298 = ($297|0)==($$9483|0);
  38064. $299 = (($$9483) + 1)|0;
  38065. $300 = $299 & 127;
  38066. if ($298) {
  38067. $301 = (($300) + -1)|0;
  38068. $302 = (($6) + ($301<<2)|0);
  38069. HEAP32[$302>>2] = 0;
  38070. $$10 = $300;
  38071. } else {
  38072. $$10 = $$9483;
  38073. }
  38074. $303 = $$0365484 * 1.0E+9;
  38075. $304 = (($6) + ($297<<2)|0);
  38076. $305 = HEAP32[$304>>2]|0;
  38077. $306 = (+($305>>>0));
  38078. $307 = $303 + $306;
  38079. $308 = (($$4485) + 1)|0;
  38080. $exitcond = ($308|0)==(2);
  38081. if ($exitcond) {
  38082. break;
  38083. } else {
  38084. $$0365484 = $307;$$4485 = $308;$$9483 = $$10;
  38085. }
  38086. }
  38087. $309 = (+($4|0));
  38088. $310 = $309 * $307;
  38089. $311 = (($$1381) + 53)|0;
  38090. $312 = (($311) - ($3))|0;
  38091. $313 = ($312|0)<($2|0);
  38092. $314 = ($312|0)>(0);
  38093. $$ = $314 ? $312 : 0;
  38094. $$0333 = $313 ? $$ : $2;
  38095. $315 = ($$0333|0)<(53);
  38096. if ($315) {
  38097. $316 = (105 - ($$0333))|0;
  38098. $317 = (+_scalbn(1.0,$316));
  38099. $318 = (+_copysignl($317,$310));
  38100. $319 = (53 - ($$0333))|0;
  38101. $320 = (+_scalbn(1.0,$319));
  38102. $321 = (+_fmodl($310,$320));
  38103. $322 = $310 - $321;
  38104. $323 = $318 + $322;
  38105. $$0360 = $318;$$0361 = $321;$$1366 = $323;
  38106. } else {
  38107. $$0360 = 0.0;$$0361 = 0.0;$$1366 = $310;
  38108. }
  38109. $324 = (($$4354) + 2)|0;
  38110. $325 = $324 & 127;
  38111. $326 = ($325|0)==($$10|0);
  38112. if ($326) {
  38113. $$3364 = $$0361;
  38114. } else {
  38115. $327 = (($6) + ($325<<2)|0);
  38116. $328 = HEAP32[$327>>2]|0;
  38117. $329 = ($328>>>0)<(500000000);
  38118. do {
  38119. if ($329) {
  38120. $330 = ($328|0)==(0);
  38121. if ($330) {
  38122. $331 = (($$4354) + 3)|0;
  38123. $332 = $331 & 127;
  38124. $333 = ($332|0)==($$10|0);
  38125. if ($333) {
  38126. $$1362 = $$0361;
  38127. break;
  38128. }
  38129. }
  38130. $334 = $309 * 0.25;
  38131. $335 = $334 + $$0361;
  38132. $$1362 = $335;
  38133. } else {
  38134. $336 = ($328|0)==(500000000);
  38135. if (!($336)) {
  38136. $337 = $309 * 0.75;
  38137. $338 = $337 + $$0361;
  38138. $$1362 = $338;
  38139. break;
  38140. }
  38141. $339 = (($$4354) + 3)|0;
  38142. $340 = $339 & 127;
  38143. $341 = ($340|0)==($$10|0);
  38144. if ($341) {
  38145. $342 = $309 * 0.5;
  38146. $343 = $342 + $$0361;
  38147. $$1362 = $343;
  38148. break;
  38149. } else {
  38150. $344 = $309 * 0.75;
  38151. $345 = $344 + $$0361;
  38152. $$1362 = $345;
  38153. break;
  38154. }
  38155. }
  38156. } while(0);
  38157. $346 = (53 - ($$0333))|0;
  38158. $347 = ($346|0)>(1);
  38159. if ($347) {
  38160. $348 = (+_fmodl($$1362,1.0));
  38161. $349 = $348 != 0.0;
  38162. if ($349) {
  38163. $$3364 = $$1362;
  38164. } else {
  38165. $350 = $$1362 + 1.0;
  38166. $$3364 = $350;
  38167. }
  38168. } else {
  38169. $$3364 = $$1362;
  38170. }
  38171. }
  38172. $351 = $$1366 + $$3364;
  38173. $352 = $351 - $$0360;
  38174. $353 = $311 & 2147483647;
  38175. $354 = (-2 - ($sum))|0;
  38176. $355 = ($353|0)>($354|0);
  38177. do {
  38178. if ($355) {
  38179. $356 = (+Math_abs((+$352)));
  38180. $357 = !($356 >= 9007199254740992.0);
  38181. $358 = $352 * 0.5;
  38182. $not$ = $357 ^ 1;
  38183. $359 = $not$&1;
  38184. $$3383 = (($359) + ($$1381))|0;
  38185. $$2367 = $357 ? $352 : $358;
  38186. $360 = (($$3383) + 50)|0;
  38187. $361 = ($360|0)>($7|0);
  38188. if (!($361)) {
  38189. $362 = ($$0333|0)!=($312|0);
  38190. $narrow = $362 | $357;
  38191. $$2371$v = $313 & $narrow;
  38192. $363 = $$3364 != 0.0;
  38193. $or$cond14 = $363 & $$2371$v;
  38194. if (!($or$cond14)) {
  38195. $$3368 = $$2367;$$4384 = $$3383;
  38196. break;
  38197. }
  38198. }
  38199. $364 = (___errno_location()|0);
  38200. HEAP32[$364>>2] = 34;
  38201. $$3368 = $$2367;$$4384 = $$3383;
  38202. } else {
  38203. $$3368 = $352;$$4384 = $$1381;
  38204. }
  38205. } while(0);
  38206. $365 = (+_scalbnl($$3368,$$4384));
  38207. $$1 = $365;
  38208. }
  38209. } while(0);
  38210. STACKTOP = sp;return (+$$1);
  38211. }
  38212. function _scanexp($0,$1) {
  38213. $0 = $0|0;
  38214. $1 = $1|0;
  38215. var $$0 = 0, $$04861 = 0, $$049 = 0, $$1$be = 0, $$160 = 0, $$2$be = 0, $$2$lcssa = 0, $$254 = 0, $$3$be = 0, $$lcssa = 0, $$pre = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0;
  38216. 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;
  38217. 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;
  38218. 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;
  38219. 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;
  38220. var $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $or$cond3 = 0, label = 0, sp = 0;
  38221. sp = STACKTOP;
  38222. $2 = ((($0)) + 4|0);
  38223. $3 = HEAP32[$2>>2]|0;
  38224. $4 = ((($0)) + 100|0);
  38225. $5 = HEAP32[$4>>2]|0;
  38226. $6 = ($3>>>0)<($5>>>0);
  38227. if ($6) {
  38228. $7 = ((($3)) + 1|0);
  38229. HEAP32[$2>>2] = $7;
  38230. $8 = HEAP8[$3>>0]|0;
  38231. $9 = $8&255;
  38232. $11 = $9;
  38233. } else {
  38234. $10 = (___shgetc($0)|0);
  38235. $11 = $10;
  38236. }
  38237. switch ($11|0) {
  38238. case 43: case 45: {
  38239. $12 = ($11|0)==(45);
  38240. $13 = $12&1;
  38241. $14 = HEAP32[$2>>2]|0;
  38242. $15 = HEAP32[$4>>2]|0;
  38243. $16 = ($14>>>0)<($15>>>0);
  38244. if ($16) {
  38245. $17 = ((($14)) + 1|0);
  38246. HEAP32[$2>>2] = $17;
  38247. $18 = HEAP8[$14>>0]|0;
  38248. $19 = $18&255;
  38249. $22 = $19;
  38250. } else {
  38251. $20 = (___shgetc($0)|0);
  38252. $22 = $20;
  38253. }
  38254. $21 = (($22) + -48)|0;
  38255. $23 = ($21>>>0)>(9);
  38256. $24 = ($1|0)!=(0);
  38257. $or$cond3 = $24 & $23;
  38258. if ($or$cond3) {
  38259. $25 = HEAP32[$4>>2]|0;
  38260. $26 = ($25|0)==(0|0);
  38261. if ($26) {
  38262. $$0 = $13;$$049 = $22;
  38263. } else {
  38264. $27 = HEAP32[$2>>2]|0;
  38265. $28 = ((($27)) + -1|0);
  38266. HEAP32[$2>>2] = $28;
  38267. $$0 = $13;$$049 = $22;
  38268. }
  38269. } else {
  38270. $$0 = $13;$$049 = $22;
  38271. }
  38272. break;
  38273. }
  38274. default: {
  38275. $$0 = 0;$$049 = $11;
  38276. }
  38277. }
  38278. $29 = (($$049) + -48)|0;
  38279. $30 = ($29>>>0)>(9);
  38280. if ($30) {
  38281. $31 = HEAP32[$4>>2]|0;
  38282. $32 = ($31|0)==(0|0);
  38283. if ($32) {
  38284. $100 = -2147483648;$101 = 0;
  38285. } else {
  38286. $33 = HEAP32[$2>>2]|0;
  38287. $34 = ((($33)) + -1|0);
  38288. HEAP32[$2>>2] = $34;
  38289. $100 = -2147483648;$101 = 0;
  38290. }
  38291. } else {
  38292. $$04861 = 0;$$160 = $$049;
  38293. while(1) {
  38294. $35 = ($$04861*10)|0;
  38295. $36 = (($$160) + -48)|0;
  38296. $37 = (($36) + ($35))|0;
  38297. $38 = HEAP32[$2>>2]|0;
  38298. $39 = HEAP32[$4>>2]|0;
  38299. $40 = ($38>>>0)<($39>>>0);
  38300. if ($40) {
  38301. $41 = ((($38)) + 1|0);
  38302. HEAP32[$2>>2] = $41;
  38303. $42 = HEAP8[$38>>0]|0;
  38304. $43 = $42&255;
  38305. $$1$be = $43;
  38306. } else {
  38307. $44 = (___shgetc($0)|0);
  38308. $$1$be = $44;
  38309. }
  38310. $45 = (($$1$be) + -48)|0;
  38311. $46 = ($45>>>0)<(10);
  38312. $47 = ($37|0)<(214748364);
  38313. $48 = $46 & $47;
  38314. if ($48) {
  38315. $$04861 = $37;$$160 = $$1$be;
  38316. } else {
  38317. break;
  38318. }
  38319. }
  38320. $49 = ($37|0)<(0);
  38321. $50 = $49 << 31 >> 31;
  38322. $51 = (($$1$be) + -48)|0;
  38323. $52 = ($51>>>0)<(10);
  38324. if ($52) {
  38325. $$254 = $$1$be;$56 = $37;$57 = $50;
  38326. while(1) {
  38327. $58 = (___muldi3(($56|0),($57|0),10,0)|0);
  38328. $59 = tempRet0;
  38329. $60 = ($$254|0)<(0);
  38330. $61 = $60 << 31 >> 31;
  38331. $62 = (_i64Add(($$254|0),($61|0),-48,-1)|0);
  38332. $63 = tempRet0;
  38333. $64 = (_i64Add(($62|0),($63|0),($58|0),($59|0))|0);
  38334. $65 = tempRet0;
  38335. $66 = HEAP32[$2>>2]|0;
  38336. $67 = HEAP32[$4>>2]|0;
  38337. $68 = ($66>>>0)<($67>>>0);
  38338. if ($68) {
  38339. $69 = ((($66)) + 1|0);
  38340. HEAP32[$2>>2] = $69;
  38341. $70 = HEAP8[$66>>0]|0;
  38342. $71 = $70&255;
  38343. $$2$be = $71;
  38344. } else {
  38345. $72 = (___shgetc($0)|0);
  38346. $$2$be = $72;
  38347. }
  38348. $73 = (($$2$be) + -48)|0;
  38349. $74 = ($73>>>0)<(10);
  38350. $75 = ($65|0)<(21474836);
  38351. $76 = ($64>>>0)<(2061584302);
  38352. $77 = ($65|0)==(21474836);
  38353. $78 = $77 & $76;
  38354. $79 = $75 | $78;
  38355. $80 = $74 & $79;
  38356. if ($80) {
  38357. $$254 = $$2$be;$56 = $64;$57 = $65;
  38358. } else {
  38359. $$2$lcssa = $$2$be;$94 = $64;$95 = $65;
  38360. break;
  38361. }
  38362. }
  38363. } else {
  38364. $$2$lcssa = $$1$be;$94 = $37;$95 = $50;
  38365. }
  38366. $53 = (($$2$lcssa) + -48)|0;
  38367. $54 = ($53>>>0)<(10);
  38368. $55 = HEAP32[$4>>2]|0;
  38369. if ($54) {
  38370. $83 = $55;
  38371. while(1) {
  38372. $81 = HEAP32[$2>>2]|0;
  38373. $82 = ($81>>>0)<($83>>>0);
  38374. if ($82) {
  38375. $84 = ((($81)) + 1|0);
  38376. HEAP32[$2>>2] = $84;
  38377. $85 = HEAP8[$81>>0]|0;
  38378. $86 = $85&255;
  38379. $$3$be = $86;$102 = $83;
  38380. } else {
  38381. $87 = (___shgetc($0)|0);
  38382. $$pre = HEAP32[$4>>2]|0;
  38383. $$3$be = $87;$102 = $$pre;
  38384. }
  38385. $88 = (($$3$be) + -48)|0;
  38386. $89 = ($88>>>0)<(10);
  38387. if ($89) {
  38388. $83 = $102;
  38389. } else {
  38390. $$lcssa = $102;
  38391. break;
  38392. }
  38393. }
  38394. } else {
  38395. $$lcssa = $55;
  38396. }
  38397. $90 = ($$lcssa|0)==(0|0);
  38398. if (!($90)) {
  38399. $91 = HEAP32[$2>>2]|0;
  38400. $92 = ((($91)) + -1|0);
  38401. HEAP32[$2>>2] = $92;
  38402. }
  38403. $93 = ($$0|0)!=(0);
  38404. $96 = (_i64Subtract(0,0,($94|0),($95|0))|0);
  38405. $97 = tempRet0;
  38406. $98 = $93 ? $96 : $94;
  38407. $99 = $93 ? $97 : $95;
  38408. $100 = $99;$101 = $98;
  38409. }
  38410. tempRet0 = ($100);
  38411. return ($101|0);
  38412. }
  38413. function _scalbn($0,$1) {
  38414. $0 = +$0;
  38415. $1 = $1|0;
  38416. var $$ = 0, $$$ = 0, $$0 = 0.0, $$020 = 0, $$1 = 0, $$1$ = 0, $$21 = 0.0, $$22 = 0.0, $10 = 0.0, $11 = 0, $12 = 0, $13 = 0.0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0.0, $2 = 0, $20 = 0.0;
  38417. var $3 = 0.0, $4 = 0, $5 = 0, $6 = 0.0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  38418. sp = STACKTOP;
  38419. $2 = ($1|0)>(1023);
  38420. if ($2) {
  38421. $3 = $0 * 8.9884656743115795E+307;
  38422. $4 = (($1) + -1023)|0;
  38423. $5 = ($4|0)>(1023);
  38424. $6 = $3 * 8.9884656743115795E+307;
  38425. $7 = (($1) + -2046)|0;
  38426. $8 = ($7|0)<(1023);
  38427. $$ = $8 ? $7 : 1023;
  38428. $$$ = $5 ? $$ : $4;
  38429. $$21 = $5 ? $6 : $3;
  38430. $$0 = $$21;$$020 = $$$;
  38431. } else {
  38432. $9 = ($1|0)<(-1022);
  38433. if ($9) {
  38434. $10 = $0 * 2.2250738585072014E-308;
  38435. $11 = (($1) + 1022)|0;
  38436. $12 = ($11|0)<(-1022);
  38437. $13 = $10 * 2.2250738585072014E-308;
  38438. $14 = (($1) + 2044)|0;
  38439. $15 = ($14|0)>(-1022);
  38440. $$1 = $15 ? $14 : -1022;
  38441. $$1$ = $12 ? $$1 : $11;
  38442. $$22 = $12 ? $13 : $10;
  38443. $$0 = $$22;$$020 = $$1$;
  38444. } else {
  38445. $$0 = $0;$$020 = $1;
  38446. }
  38447. }
  38448. $16 = (($$020) + 1023)|0;
  38449. $17 = (_bitshift64Shl(($16|0),0,52)|0);
  38450. $18 = tempRet0;
  38451. HEAP32[tempDoublePtr>>2] = $17;HEAP32[tempDoublePtr+4>>2] = $18;$19 = +HEAPF64[tempDoublePtr>>3];
  38452. $20 = $$0 * $19;
  38453. return (+$20);
  38454. }
  38455. function _copysignl($0,$1) {
  38456. $0 = +$0;
  38457. $1 = +$1;
  38458. var $2 = 0.0, label = 0, sp = 0;
  38459. sp = STACKTOP;
  38460. $2 = (+_copysign($0,$1));
  38461. return (+$2);
  38462. }
  38463. function _fmodl($0,$1) {
  38464. $0 = +$0;
  38465. $1 = +$1;
  38466. var $2 = 0.0, label = 0, sp = 0;
  38467. sp = STACKTOP;
  38468. $2 = (+_fmod($0,$1));
  38469. return (+$2);
  38470. }
  38471. function _scalbnl($0,$1) {
  38472. $0 = +$0;
  38473. $1 = $1|0;
  38474. var $2 = 0.0, label = 0, sp = 0;
  38475. sp = STACKTOP;
  38476. $2 = (+_scalbn($0,$1));
  38477. return (+$2);
  38478. }
  38479. function _fmod($0,$1) {
  38480. $0 = +$0;
  38481. $1 = +$1;
  38482. var $$ = 0.0, $$070 = 0.0, $$071$lcssa = 0, $$07194 = 0, $$073$lcssa = 0, $$073100 = 0, $$172$ph = 0, $$174 = 0, $$275$lcssa = 0, $$27586 = 0, $$376$lcssa = 0, $$37683 = 0, $$lcssa = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0.0, $104 = 0, $105 = 0;
  38483. 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;
  38484. var $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0.0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0;
  38485. var $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0, $154 = 0.0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0;
  38486. var $160 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0.0, $28 = 0.0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0;
  38487. var $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0.0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0;
  38488. 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;
  38489. 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;
  38490. var $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $or$cond = 0, label = 0, sp = 0;
  38491. sp = STACKTOP;
  38492. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  38493. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  38494. HEAPF64[tempDoublePtr>>3] = $1;$4 = HEAP32[tempDoublePtr>>2]|0;
  38495. $5 = HEAP32[tempDoublePtr+4>>2]|0;
  38496. $6 = (_bitshift64Lshr(($2|0),($3|0),52)|0);
  38497. $7 = tempRet0;
  38498. $8 = $6 & 2047;
  38499. $9 = (_bitshift64Lshr(($4|0),($5|0),52)|0);
  38500. $10 = tempRet0;
  38501. $11 = $9 & 2047;
  38502. $12 = $3 & -2147483648;
  38503. $13 = (_bitshift64Shl(($4|0),($5|0),1)|0);
  38504. $14 = tempRet0;
  38505. $15 = ($13|0)==(0);
  38506. $16 = ($14|0)==(0);
  38507. $17 = $15 & $16;
  38508. L1: do {
  38509. if ($17) {
  38510. label = 3;
  38511. } else {
  38512. $18 = (___DOUBLE_BITS_272($1)|0);
  38513. $19 = tempRet0;
  38514. $20 = $19 & 2147483647;
  38515. $21 = ($20>>>0)>(2146435072);
  38516. $22 = ($18>>>0)>(0);
  38517. $23 = ($20|0)==(2146435072);
  38518. $24 = $23 & $22;
  38519. $25 = $21 | $24;
  38520. $26 = ($8|0)==(2047);
  38521. $or$cond = $26 | $25;
  38522. if ($or$cond) {
  38523. label = 3;
  38524. } else {
  38525. $29 = (_bitshift64Shl(($2|0),($3|0),1)|0);
  38526. $30 = tempRet0;
  38527. $31 = ($30>>>0)>($14>>>0);
  38528. $32 = ($29>>>0)>($13>>>0);
  38529. $33 = ($30|0)==($14|0);
  38530. $34 = $33 & $32;
  38531. $35 = $31 | $34;
  38532. if (!($35)) {
  38533. $36 = ($29|0)==($13|0);
  38534. $37 = ($30|0)==($14|0);
  38535. $38 = $36 & $37;
  38536. $39 = $0 * 0.0;
  38537. $$ = $38 ? $39 : $0;
  38538. return (+$$);
  38539. }
  38540. $40 = ($8|0)==(0);
  38541. if ($40) {
  38542. $41 = (_bitshift64Shl(($2|0),($3|0),12)|0);
  38543. $42 = tempRet0;
  38544. $43 = ($42|0)>(-1);
  38545. $44 = ($41>>>0)>(4294967295);
  38546. $45 = ($42|0)==(-1);
  38547. $46 = $45 & $44;
  38548. $47 = $43 | $46;
  38549. if ($47) {
  38550. $$073100 = 0;$49 = $41;$50 = $42;
  38551. while(1) {
  38552. $48 = (($$073100) + -1)|0;
  38553. $51 = (_bitshift64Shl(($49|0),($50|0),1)|0);
  38554. $52 = tempRet0;
  38555. $53 = ($52|0)>(-1);
  38556. $54 = ($51>>>0)>(4294967295);
  38557. $55 = ($52|0)==(-1);
  38558. $56 = $55 & $54;
  38559. $57 = $53 | $56;
  38560. if ($57) {
  38561. $$073100 = $48;$49 = $51;$50 = $52;
  38562. } else {
  38563. $$073$lcssa = $48;
  38564. break;
  38565. }
  38566. }
  38567. } else {
  38568. $$073$lcssa = 0;
  38569. }
  38570. $58 = (1 - ($$073$lcssa))|0;
  38571. $59 = (_bitshift64Shl(($2|0),($3|0),($58|0))|0);
  38572. $60 = tempRet0;
  38573. $$174 = $$073$lcssa;$87 = $59;$88 = $60;
  38574. } else {
  38575. $61 = $3 & 1048575;
  38576. $62 = $61 | 1048576;
  38577. $$174 = $8;$87 = $2;$88 = $62;
  38578. }
  38579. $63 = ($11|0)==(0);
  38580. if ($63) {
  38581. $64 = (_bitshift64Shl(($4|0),($5|0),12)|0);
  38582. $65 = tempRet0;
  38583. $66 = ($65|0)>(-1);
  38584. $67 = ($64>>>0)>(4294967295);
  38585. $68 = ($65|0)==(-1);
  38586. $69 = $68 & $67;
  38587. $70 = $66 | $69;
  38588. if ($70) {
  38589. $$07194 = 0;$72 = $64;$73 = $65;
  38590. while(1) {
  38591. $71 = (($$07194) + -1)|0;
  38592. $74 = (_bitshift64Shl(($72|0),($73|0),1)|0);
  38593. $75 = tempRet0;
  38594. $76 = ($75|0)>(-1);
  38595. $77 = ($74>>>0)>(4294967295);
  38596. $78 = ($75|0)==(-1);
  38597. $79 = $78 & $77;
  38598. $80 = $76 | $79;
  38599. if ($80) {
  38600. $$07194 = $71;$72 = $74;$73 = $75;
  38601. } else {
  38602. $$071$lcssa = $71;
  38603. break;
  38604. }
  38605. }
  38606. } else {
  38607. $$071$lcssa = 0;
  38608. }
  38609. $81 = (1 - ($$071$lcssa))|0;
  38610. $82 = (_bitshift64Shl(($4|0),($5|0),($81|0))|0);
  38611. $83 = tempRet0;
  38612. $$172$ph = $$071$lcssa;$89 = $82;$90 = $83;
  38613. } else {
  38614. $84 = $5 & 1048575;
  38615. $85 = $84 | 1048576;
  38616. $$172$ph = $11;$89 = $4;$90 = $85;
  38617. }
  38618. $86 = ($$174|0)>($$172$ph|0);
  38619. $91 = (_i64Subtract(($87|0),($88|0),($89|0),($90|0))|0);
  38620. $92 = tempRet0;
  38621. $93 = ($92|0)>(-1);
  38622. $94 = ($91>>>0)>(4294967295);
  38623. $95 = ($92|0)==(-1);
  38624. $96 = $95 & $94;
  38625. $97 = $93 | $96;
  38626. L23: do {
  38627. if ($86) {
  38628. $$27586 = $$174;$101 = $92;$156 = $97;$157 = $87;$158 = $88;$99 = $91;
  38629. while(1) {
  38630. if ($156) {
  38631. $98 = ($99|0)==(0);
  38632. $100 = ($101|0)==(0);
  38633. $102 = $98 & $100;
  38634. if ($102) {
  38635. break;
  38636. } else {
  38637. $104 = $99;$105 = $101;
  38638. }
  38639. } else {
  38640. $104 = $157;$105 = $158;
  38641. }
  38642. $106 = (_bitshift64Shl(($104|0),($105|0),1)|0);
  38643. $107 = tempRet0;
  38644. $108 = (($$27586) + -1)|0;
  38645. $109 = ($108|0)>($$172$ph|0);
  38646. $110 = (_i64Subtract(($106|0),($107|0),($89|0),($90|0))|0);
  38647. $111 = tempRet0;
  38648. $112 = ($111|0)>(-1);
  38649. $113 = ($110>>>0)>(4294967295);
  38650. $114 = ($111|0)==(-1);
  38651. $115 = $114 & $113;
  38652. $116 = $112 | $115;
  38653. if ($109) {
  38654. $$27586 = $108;$101 = $111;$156 = $116;$157 = $106;$158 = $107;$99 = $110;
  38655. } else {
  38656. $$275$lcssa = $108;$$lcssa = $116;$118 = $110;$120 = $111;$159 = $106;$160 = $107;
  38657. break L23;
  38658. }
  38659. }
  38660. $103 = $0 * 0.0;
  38661. $$070 = $103;
  38662. break L1;
  38663. } else {
  38664. $$275$lcssa = $$174;$$lcssa = $97;$118 = $91;$120 = $92;$159 = $87;$160 = $88;
  38665. }
  38666. } while(0);
  38667. if ($$lcssa) {
  38668. $117 = ($118|0)==(0);
  38669. $119 = ($120|0)==(0);
  38670. $121 = $117 & $119;
  38671. if ($121) {
  38672. $129 = $0 * 0.0;
  38673. $$070 = $129;
  38674. break;
  38675. } else {
  38676. $123 = $120;$125 = $118;
  38677. }
  38678. } else {
  38679. $123 = $160;$125 = $159;
  38680. }
  38681. $122 = ($123>>>0)<(1048576);
  38682. $124 = ($125>>>0)<(0);
  38683. $126 = ($123|0)==(1048576);
  38684. $127 = $126 & $124;
  38685. $128 = $122 | $127;
  38686. if ($128) {
  38687. $$37683 = $$275$lcssa;$130 = $125;$131 = $123;
  38688. while(1) {
  38689. $132 = (_bitshift64Shl(($130|0),($131|0),1)|0);
  38690. $133 = tempRet0;
  38691. $134 = (($$37683) + -1)|0;
  38692. $135 = ($133>>>0)<(1048576);
  38693. $136 = ($132>>>0)<(0);
  38694. $137 = ($133|0)==(1048576);
  38695. $138 = $137 & $136;
  38696. $139 = $135 | $138;
  38697. if ($139) {
  38698. $$37683 = $134;$130 = $132;$131 = $133;
  38699. } else {
  38700. $$376$lcssa = $134;$141 = $132;$142 = $133;
  38701. break;
  38702. }
  38703. }
  38704. } else {
  38705. $$376$lcssa = $$275$lcssa;$141 = $125;$142 = $123;
  38706. }
  38707. $140 = ($$376$lcssa|0)>(0);
  38708. if ($140) {
  38709. $143 = (_i64Add(($141|0),($142|0),0,-1048576)|0);
  38710. $144 = tempRet0;
  38711. $145 = (_bitshift64Shl(($$376$lcssa|0),0,52)|0);
  38712. $146 = tempRet0;
  38713. $147 = $143 | $145;
  38714. $148 = $144 | $146;
  38715. $153 = $148;$155 = $147;
  38716. } else {
  38717. $149 = (1 - ($$376$lcssa))|0;
  38718. $150 = (_bitshift64Lshr(($141|0),($142|0),($149|0))|0);
  38719. $151 = tempRet0;
  38720. $153 = $151;$155 = $150;
  38721. }
  38722. $152 = $153 | $12;
  38723. HEAP32[tempDoublePtr>>2] = $155;HEAP32[tempDoublePtr+4>>2] = $152;$154 = +HEAPF64[tempDoublePtr>>3];
  38724. $$070 = $154;
  38725. }
  38726. }
  38727. } while(0);
  38728. if ((label|0) == 3) {
  38729. $27 = $0 * $1;
  38730. $28 = $27 / $27;
  38731. $$070 = $28;
  38732. }
  38733. return (+$$070);
  38734. }
  38735. function ___DOUBLE_BITS_272($0) {
  38736. $0 = +$0;
  38737. var $1 = 0, $2 = 0, label = 0, sp = 0;
  38738. sp = STACKTOP;
  38739. HEAPF64[tempDoublePtr>>3] = $0;$1 = HEAP32[tempDoublePtr>>2]|0;
  38740. $2 = HEAP32[tempDoublePtr+4>>2]|0;
  38741. tempRet0 = ($2);
  38742. return ($1|0);
  38743. }
  38744. function _strlen($0) {
  38745. $0 = $0|0;
  38746. 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;
  38747. 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;
  38748. sp = STACKTOP;
  38749. $1 = $0;
  38750. $2 = $1 & 3;
  38751. $3 = ($2|0)==(0);
  38752. L1: do {
  38753. if ($3) {
  38754. $$015$lcssa = $0;
  38755. label = 4;
  38756. } else {
  38757. $$01519 = $0;$23 = $1;
  38758. while(1) {
  38759. $4 = HEAP8[$$01519>>0]|0;
  38760. $5 = ($4<<24>>24)==(0);
  38761. if ($5) {
  38762. $$sink = $23;
  38763. break L1;
  38764. }
  38765. $6 = ((($$01519)) + 1|0);
  38766. $7 = $6;
  38767. $8 = $7 & 3;
  38768. $9 = ($8|0)==(0);
  38769. if ($9) {
  38770. $$015$lcssa = $6;
  38771. label = 4;
  38772. break;
  38773. } else {
  38774. $$01519 = $6;$23 = $7;
  38775. }
  38776. }
  38777. }
  38778. } while(0);
  38779. if ((label|0) == 4) {
  38780. $$0 = $$015$lcssa;
  38781. while(1) {
  38782. $10 = HEAP32[$$0>>2]|0;
  38783. $11 = (($10) + -16843009)|0;
  38784. $12 = $10 & -2139062144;
  38785. $13 = $12 ^ -2139062144;
  38786. $14 = $13 & $11;
  38787. $15 = ($14|0)==(0);
  38788. $16 = ((($$0)) + 4|0);
  38789. if ($15) {
  38790. $$0 = $16;
  38791. } else {
  38792. break;
  38793. }
  38794. }
  38795. $17 = $10&255;
  38796. $18 = ($17<<24>>24)==(0);
  38797. if ($18) {
  38798. $$1$lcssa = $$0;
  38799. } else {
  38800. $$pn = $$0;
  38801. while(1) {
  38802. $19 = ((($$pn)) + 1|0);
  38803. $$pre = HEAP8[$19>>0]|0;
  38804. $20 = ($$pre<<24>>24)==(0);
  38805. if ($20) {
  38806. $$1$lcssa = $19;
  38807. break;
  38808. } else {
  38809. $$pn = $19;
  38810. }
  38811. }
  38812. }
  38813. $21 = $$1$lcssa;
  38814. $$sink = $21;
  38815. }
  38816. $22 = (($$sink) - ($1))|0;
  38817. return ($22|0);
  38818. }
  38819. function _strchr($0,$1) {
  38820. $0 = $0|0;
  38821. $1 = $1|0;
  38822. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  38823. sp = STACKTOP;
  38824. $2 = (___strchrnul($0,$1)|0);
  38825. $3 = HEAP8[$2>>0]|0;
  38826. $4 = $1&255;
  38827. $5 = ($3<<24>>24)==($4<<24>>24);
  38828. $6 = $5 ? $2 : 0;
  38829. return ($6|0);
  38830. }
  38831. function ___strchrnul($0,$1) {
  38832. $0 = $0|0;
  38833. $1 = $1|0;
  38834. 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;
  38835. 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;
  38836. 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;
  38837. sp = STACKTOP;
  38838. $2 = $1 & 255;
  38839. $3 = ($2|0)==(0);
  38840. L1: do {
  38841. if ($3) {
  38842. $8 = (_strlen($0)|0);
  38843. $9 = (($0) + ($8)|0);
  38844. $$0 = $9;
  38845. } else {
  38846. $4 = $0;
  38847. $5 = $4 & 3;
  38848. $6 = ($5|0)==(0);
  38849. if ($6) {
  38850. $$030$lcssa = $0;
  38851. } else {
  38852. $7 = $1&255;
  38853. $$03039 = $0;
  38854. while(1) {
  38855. $10 = HEAP8[$$03039>>0]|0;
  38856. $11 = ($10<<24>>24)==(0);
  38857. $12 = ($10<<24>>24)==($7<<24>>24);
  38858. $or$cond = $11 | $12;
  38859. if ($or$cond) {
  38860. $$0 = $$03039;
  38861. break L1;
  38862. }
  38863. $13 = ((($$03039)) + 1|0);
  38864. $14 = $13;
  38865. $15 = $14 & 3;
  38866. $16 = ($15|0)==(0);
  38867. if ($16) {
  38868. $$030$lcssa = $13;
  38869. break;
  38870. } else {
  38871. $$03039 = $13;
  38872. }
  38873. }
  38874. }
  38875. $17 = Math_imul($2, 16843009)|0;
  38876. $18 = HEAP32[$$030$lcssa>>2]|0;
  38877. $19 = (($18) + -16843009)|0;
  38878. $20 = $18 & -2139062144;
  38879. $21 = $20 ^ -2139062144;
  38880. $22 = $21 & $19;
  38881. $23 = ($22|0)==(0);
  38882. L10: do {
  38883. if ($23) {
  38884. $$02936 = $$030$lcssa;$25 = $18;
  38885. while(1) {
  38886. $24 = $25 ^ $17;
  38887. $26 = (($24) + -16843009)|0;
  38888. $27 = $24 & -2139062144;
  38889. $28 = $27 ^ -2139062144;
  38890. $29 = $28 & $26;
  38891. $30 = ($29|0)==(0);
  38892. if (!($30)) {
  38893. $$029$lcssa = $$02936;
  38894. break L10;
  38895. }
  38896. $31 = ((($$02936)) + 4|0);
  38897. $32 = HEAP32[$31>>2]|0;
  38898. $33 = (($32) + -16843009)|0;
  38899. $34 = $32 & -2139062144;
  38900. $35 = $34 ^ -2139062144;
  38901. $36 = $35 & $33;
  38902. $37 = ($36|0)==(0);
  38903. if ($37) {
  38904. $$02936 = $31;$25 = $32;
  38905. } else {
  38906. $$029$lcssa = $31;
  38907. break;
  38908. }
  38909. }
  38910. } else {
  38911. $$029$lcssa = $$030$lcssa;
  38912. }
  38913. } while(0);
  38914. $38 = $1&255;
  38915. $$1 = $$029$lcssa;
  38916. while(1) {
  38917. $39 = HEAP8[$$1>>0]|0;
  38918. $40 = ($39<<24>>24)==(0);
  38919. $41 = ($39<<24>>24)==($38<<24>>24);
  38920. $or$cond33 = $40 | $41;
  38921. $42 = ((($$1)) + 1|0);
  38922. if ($or$cond33) {
  38923. $$0 = $$1;
  38924. break;
  38925. } else {
  38926. $$1 = $42;
  38927. }
  38928. }
  38929. }
  38930. } while(0);
  38931. return ($$0|0);
  38932. }
  38933. function _mbrtowc($0,$1,$2,$3) {
  38934. $0 = $0|0;
  38935. $1 = $1|0;
  38936. $2 = $2|0;
  38937. $3 = $3|0;
  38938. var $$ = 0, $$0 = 0, $$03952 = 0, $$04051 = 0, $$04350 = 0, $$1 = 0, $$141 = 0, $$144 = 0, $$2 = 0, $$47 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0;
  38939. var $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0;
  38940. var $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0;
  38941. var $not$ = 0, label = 0, sp = 0;
  38942. sp = STACKTOP;
  38943. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  38944. $4 = sp;
  38945. $5 = ($3|0)==(0|0);
  38946. $$ = $5 ? 21844 : $3;
  38947. $6 = HEAP32[$$>>2]|0;
  38948. $7 = ($1|0)==(0|0);
  38949. L1: do {
  38950. if ($7) {
  38951. $8 = ($6|0)==(0);
  38952. if ($8) {
  38953. $$0 = 0;
  38954. } else {
  38955. label = 17;
  38956. }
  38957. } else {
  38958. $9 = ($0|0)==(0|0);
  38959. $$47 = $9 ? $4 : $0;
  38960. $10 = ($2|0)==(0);
  38961. if ($10) {
  38962. $$0 = -2;
  38963. } else {
  38964. $11 = ($6|0)==(0);
  38965. if ($11) {
  38966. $12 = HEAP8[$1>>0]|0;
  38967. $13 = ($12<<24>>24)>(-1);
  38968. if ($13) {
  38969. $14 = $12&255;
  38970. HEAP32[$$47>>2] = $14;
  38971. $15 = ($12<<24>>24)!=(0);
  38972. $16 = $15&1;
  38973. $$0 = $16;
  38974. break;
  38975. }
  38976. $17 = (___pthread_self_439()|0);
  38977. $18 = ((($17)) + 188|0);
  38978. $19 = HEAP32[$18>>2]|0;
  38979. $20 = HEAP32[$19>>2]|0;
  38980. $not$ = ($20|0)==(0|0);
  38981. $21 = HEAP8[$1>>0]|0;
  38982. if ($not$) {
  38983. $22 = $21 << 24 >> 24;
  38984. $23 = $22 & 57343;
  38985. HEAP32[$$47>>2] = $23;
  38986. $$0 = 1;
  38987. break;
  38988. }
  38989. $24 = $21&255;
  38990. $25 = (($24) + -194)|0;
  38991. $26 = ($25>>>0)>(50);
  38992. if ($26) {
  38993. label = 17;
  38994. break;
  38995. }
  38996. $27 = ((($1)) + 1|0);
  38997. $28 = (3620 + ($25<<2)|0);
  38998. $29 = HEAP32[$28>>2]|0;
  38999. $30 = (($2) + -1)|0;
  39000. $31 = ($30|0)==(0);
  39001. if ($31) {
  39002. $$2 = $29;
  39003. } else {
  39004. $$03952 = $27;$$04051 = $29;$$04350 = $30;
  39005. label = 11;
  39006. }
  39007. } else {
  39008. $$03952 = $1;$$04051 = $6;$$04350 = $2;
  39009. label = 11;
  39010. }
  39011. L14: do {
  39012. if ((label|0) == 11) {
  39013. $32 = HEAP8[$$03952>>0]|0;
  39014. $33 = $32&255;
  39015. $34 = $33 >>> 3;
  39016. $35 = (($34) + -16)|0;
  39017. $36 = $$04051 >> 26;
  39018. $37 = (($34) + ($36))|0;
  39019. $38 = $35 | $37;
  39020. $39 = ($38>>>0)>(7);
  39021. if ($39) {
  39022. label = 17;
  39023. break L1;
  39024. } else {
  39025. $$1 = $$03952;$$141 = $$04051;$$144 = $$04350;$43 = $32;
  39026. }
  39027. while(1) {
  39028. $40 = $$141 << 6;
  39029. $41 = ((($$1)) + 1|0);
  39030. $42 = $43&255;
  39031. $44 = (($42) + -128)|0;
  39032. $45 = $44 | $40;
  39033. $46 = (($$144) + -1)|0;
  39034. $47 = ($45|0)<(0);
  39035. if (!($47)) {
  39036. break;
  39037. }
  39038. $49 = ($46|0)==(0);
  39039. if ($49) {
  39040. $$2 = $45;
  39041. break L14;
  39042. }
  39043. $50 = HEAP8[$41>>0]|0;
  39044. $51 = $50 & -64;
  39045. $52 = ($51<<24>>24)==(-128);
  39046. if ($52) {
  39047. $$1 = $41;$$141 = $45;$$144 = $46;$43 = $50;
  39048. } else {
  39049. label = 17;
  39050. break L1;
  39051. }
  39052. }
  39053. HEAP32[$$>>2] = 0;
  39054. HEAP32[$$47>>2] = $45;
  39055. $48 = (($2) - ($46))|0;
  39056. $$0 = $48;
  39057. break L1;
  39058. }
  39059. } while(0);
  39060. HEAP32[$$>>2] = $$2;
  39061. $$0 = -2;
  39062. }
  39063. }
  39064. } while(0);
  39065. if ((label|0) == 17) {
  39066. HEAP32[$$>>2] = 0;
  39067. $53 = (___errno_location()|0);
  39068. HEAP32[$53>>2] = 84;
  39069. $$0 = -1;
  39070. }
  39071. STACKTOP = sp;return ($$0|0);
  39072. }
  39073. function ___pthread_self_439() {
  39074. var $0 = 0, label = 0, sp = 0;
  39075. sp = STACKTOP;
  39076. $0 = (_pthread_self()|0);
  39077. return ($0|0);
  39078. }
  39079. function _strcpy($0,$1) {
  39080. $0 = $0|0;
  39081. $1 = $1|0;
  39082. var label = 0, sp = 0;
  39083. sp = STACKTOP;
  39084. (___stpcpy($0,$1)|0);
  39085. return ($0|0);
  39086. }
  39087. function ___stpcpy($0,$1) {
  39088. $0 = $0|0;
  39089. $1 = $1|0;
  39090. 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;
  39091. 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;
  39092. var $35 = 0, $36 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  39093. sp = STACKTOP;
  39094. $2 = $1;
  39095. $3 = $0;
  39096. $4 = $2 ^ $3;
  39097. $5 = $4 & 3;
  39098. $6 = ($5|0)==(0);
  39099. L1: do {
  39100. if ($6) {
  39101. $7 = $2 & 3;
  39102. $8 = ($7|0)==(0);
  39103. if ($8) {
  39104. $$026$lcssa = $1;$$027$lcssa = $0;
  39105. } else {
  39106. $$02642 = $1;$$02741 = $0;
  39107. while(1) {
  39108. $9 = HEAP8[$$02642>>0]|0;
  39109. HEAP8[$$02741>>0] = $9;
  39110. $10 = ($9<<24>>24)==(0);
  39111. if ($10) {
  39112. $$029 = $$02741;
  39113. break L1;
  39114. }
  39115. $11 = ((($$02642)) + 1|0);
  39116. $12 = ((($$02741)) + 1|0);
  39117. $13 = $11;
  39118. $14 = $13 & 3;
  39119. $15 = ($14|0)==(0);
  39120. if ($15) {
  39121. $$026$lcssa = $11;$$027$lcssa = $12;
  39122. break;
  39123. } else {
  39124. $$02642 = $11;$$02741 = $12;
  39125. }
  39126. }
  39127. }
  39128. $16 = HEAP32[$$026$lcssa>>2]|0;
  39129. $17 = (($16) + -16843009)|0;
  39130. $18 = $16 & -2139062144;
  39131. $19 = $18 ^ -2139062144;
  39132. $20 = $19 & $17;
  39133. $21 = ($20|0)==(0);
  39134. if ($21) {
  39135. $$02536 = $$027$lcssa;$$037 = $$026$lcssa;$24 = $16;
  39136. while(1) {
  39137. $22 = ((($$037)) + 4|0);
  39138. $23 = ((($$02536)) + 4|0);
  39139. HEAP32[$$02536>>2] = $24;
  39140. $25 = HEAP32[$22>>2]|0;
  39141. $26 = (($25) + -16843009)|0;
  39142. $27 = $25 & -2139062144;
  39143. $28 = $27 ^ -2139062144;
  39144. $29 = $28 & $26;
  39145. $30 = ($29|0)==(0);
  39146. if ($30) {
  39147. $$02536 = $23;$$037 = $22;$24 = $25;
  39148. } else {
  39149. $$0$lcssa = $22;$$025$lcssa = $23;
  39150. break;
  39151. }
  39152. }
  39153. } else {
  39154. $$0$lcssa = $$026$lcssa;$$025$lcssa = $$027$lcssa;
  39155. }
  39156. $$1$ph = $$0$lcssa;$$128$ph = $$025$lcssa;
  39157. label = 8;
  39158. } else {
  39159. $$1$ph = $1;$$128$ph = $0;
  39160. label = 8;
  39161. }
  39162. } while(0);
  39163. if ((label|0) == 8) {
  39164. $31 = HEAP8[$$1$ph>>0]|0;
  39165. HEAP8[$$128$ph>>0] = $31;
  39166. $32 = ($31<<24>>24)==(0);
  39167. if ($32) {
  39168. $$029 = $$128$ph;
  39169. } else {
  39170. $$12834 = $$128$ph;$$135 = $$1$ph;
  39171. while(1) {
  39172. $33 = ((($$135)) + 1|0);
  39173. $34 = ((($$12834)) + 1|0);
  39174. $35 = HEAP8[$33>>0]|0;
  39175. HEAP8[$34>>0] = $35;
  39176. $36 = ($35<<24>>24)==(0);
  39177. if ($36) {
  39178. $$029 = $34;
  39179. break;
  39180. } else {
  39181. $$12834 = $34;$$135 = $33;
  39182. }
  39183. }
  39184. }
  39185. }
  39186. return ($$029|0);
  39187. }
  39188. function ___unlist_locked_file($0) {
  39189. $0 = $0|0;
  39190. 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;
  39191. sp = STACKTOP;
  39192. $1 = ((($0)) + 68|0);
  39193. $2 = HEAP32[$1>>2]|0;
  39194. $3 = ($2|0)==(0);
  39195. if (!($3)) {
  39196. $4 = ((($0)) + 116|0);
  39197. $5 = HEAP32[$4>>2]|0;
  39198. $6 = ($5|0)==(0|0);
  39199. $$pre = ((($0)) + 112|0);
  39200. if (!($6)) {
  39201. $7 = HEAP32[$$pre>>2]|0;
  39202. $8 = ((($5)) + 112|0);
  39203. HEAP32[$8>>2] = $7;
  39204. }
  39205. $9 = HEAP32[$$pre>>2]|0;
  39206. $10 = ($9|0)==(0|0);
  39207. if ($10) {
  39208. $12 = (___pthread_self_607()|0);
  39209. $13 = ((($12)) + 232|0);
  39210. $$sink = $13;
  39211. } else {
  39212. $11 = ((($9)) + 116|0);
  39213. $$sink = $11;
  39214. }
  39215. HEAP32[$$sink>>2] = $5;
  39216. }
  39217. return;
  39218. }
  39219. function ___pthread_self_607() {
  39220. var $0 = 0, label = 0, sp = 0;
  39221. sp = STACKTOP;
  39222. $0 = (_pthread_self()|0);
  39223. return ($0|0);
  39224. }
  39225. function _fopen($0,$1) {
  39226. $0 = $0|0;
  39227. $1 = $1|0;
  39228. 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;
  39229. var $vararg_ptr2 = 0, $vararg_ptr6 = 0, $vararg_ptr7 = 0, label = 0, sp = 0;
  39230. sp = STACKTOP;
  39231. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  39232. $vararg_buffer8 = sp + 32|0;
  39233. $vararg_buffer3 = sp + 16|0;
  39234. $vararg_buffer = sp;
  39235. $2 = HEAP8[$1>>0]|0;
  39236. $3 = $2 << 24 >> 24;
  39237. $memchr = (_memchr(19146,$3,4)|0);
  39238. $4 = ($memchr|0)==(0|0);
  39239. if ($4) {
  39240. $5 = (___errno_location()|0);
  39241. HEAP32[$5>>2] = 22;
  39242. $$0 = 0;
  39243. } else {
  39244. $6 = (___fmodeflags($1)|0);
  39245. $7 = $0;
  39246. $8 = $6 | 32768;
  39247. HEAP32[$vararg_buffer>>2] = $7;
  39248. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  39249. HEAP32[$vararg_ptr1>>2] = $8;
  39250. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  39251. HEAP32[$vararg_ptr2>>2] = 438;
  39252. $9 = (___syscall5(5,($vararg_buffer|0))|0);
  39253. $10 = (___syscall_ret($9)|0);
  39254. $11 = ($10|0)<(0);
  39255. if ($11) {
  39256. $$0 = 0;
  39257. } else {
  39258. $12 = $6 & 524288;
  39259. $13 = ($12|0)==(0);
  39260. if (!($13)) {
  39261. HEAP32[$vararg_buffer3>>2] = $10;
  39262. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  39263. HEAP32[$vararg_ptr6>>2] = 2;
  39264. $vararg_ptr7 = ((($vararg_buffer3)) + 8|0);
  39265. HEAP32[$vararg_ptr7>>2] = 1;
  39266. (___syscall221(221,($vararg_buffer3|0))|0);
  39267. }
  39268. $14 = (___fdopen($10,$1)|0);
  39269. $15 = ($14|0)==(0|0);
  39270. if ($15) {
  39271. HEAP32[$vararg_buffer8>>2] = $10;
  39272. (___syscall6(6,($vararg_buffer8|0))|0);
  39273. $$0 = 0;
  39274. } else {
  39275. $$0 = $14;
  39276. }
  39277. }
  39278. }
  39279. STACKTOP = sp;return ($$0|0);
  39280. }
  39281. function ___fmodeflags($0) {
  39282. $0 = $0|0;
  39283. 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;
  39284. var $8 = 0, $9 = 0, $not$ = 0, label = 0, sp = 0;
  39285. sp = STACKTOP;
  39286. $1 = (_strchr($0,43)|0);
  39287. $2 = ($1|0)==(0|0);
  39288. $3 = HEAP8[$0>>0]|0;
  39289. $not$ = ($3<<24>>24)!=(114);
  39290. $$ = $not$&1;
  39291. $$0 = $2 ? $$ : 2;
  39292. $4 = (_strchr($0,120)|0);
  39293. $5 = ($4|0)==(0|0);
  39294. $6 = $$0 | 128;
  39295. $$0$ = $5 ? $$0 : $6;
  39296. $7 = (_strchr($0,101)|0);
  39297. $8 = ($7|0)==(0|0);
  39298. $9 = $$0$ | 524288;
  39299. $$2 = $8 ? $$0$ : $9;
  39300. $10 = ($3<<24>>24)==(114);
  39301. $11 = $$2 | 64;
  39302. $$2$ = $10 ? $$2 : $11;
  39303. $12 = ($3<<24>>24)==(119);
  39304. $13 = $$2$ | 512;
  39305. $$4 = $12 ? $13 : $$2$;
  39306. $14 = ($3<<24>>24)==(97);
  39307. $15 = $$4 | 1024;
  39308. $$$4 = $14 ? $15 : $$4;
  39309. return ($$$4|0);
  39310. }
  39311. function ___fdopen($0,$1) {
  39312. $0 = $0|0;
  39313. $1 = $1|0;
  39314. 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;
  39315. 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;
  39316. 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;
  39317. sp = STACKTOP;
  39318. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  39319. $vararg_buffer12 = sp + 40|0;
  39320. $vararg_buffer7 = sp + 24|0;
  39321. $vararg_buffer3 = sp + 16|0;
  39322. $vararg_buffer = sp;
  39323. $2 = sp + 56|0;
  39324. $3 = HEAP8[$1>>0]|0;
  39325. $4 = $3 << 24 >> 24;
  39326. $memchr = (_memchr(19146,$4,4)|0);
  39327. $5 = ($memchr|0)==(0|0);
  39328. if ($5) {
  39329. $6 = (___errno_location()|0);
  39330. HEAP32[$6>>2] = 22;
  39331. $$0 = 0;
  39332. } else {
  39333. $7 = (_malloc(1156)|0);
  39334. $8 = ($7|0)==(0|0);
  39335. if ($8) {
  39336. $$0 = 0;
  39337. } else {
  39338. dest=$7; stop=dest+124|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  39339. $9 = (_strchr($1,43)|0);
  39340. $10 = ($9|0)==(0|0);
  39341. if ($10) {
  39342. $11 = ($3<<24>>24)==(114);
  39343. $12 = $11 ? 8 : 4;
  39344. HEAP32[$7>>2] = $12;
  39345. }
  39346. $13 = (_strchr($1,101)|0);
  39347. $14 = ($13|0)==(0|0);
  39348. if ($14) {
  39349. $16 = $3;
  39350. } else {
  39351. HEAP32[$vararg_buffer>>2] = $0;
  39352. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  39353. HEAP32[$vararg_ptr1>>2] = 2;
  39354. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  39355. HEAP32[$vararg_ptr2>>2] = 1;
  39356. (___syscall221(221,($vararg_buffer|0))|0);
  39357. $$pre = HEAP8[$1>>0]|0;
  39358. $16 = $$pre;
  39359. }
  39360. $15 = ($16<<24>>24)==(97);
  39361. if ($15) {
  39362. HEAP32[$vararg_buffer3>>2] = $0;
  39363. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  39364. HEAP32[$vararg_ptr6>>2] = 3;
  39365. $17 = (___syscall221(221,($vararg_buffer3|0))|0);
  39366. $18 = $17 & 1024;
  39367. $19 = ($18|0)==(0);
  39368. if ($19) {
  39369. $20 = $17 | 1024;
  39370. HEAP32[$vararg_buffer7>>2] = $0;
  39371. $vararg_ptr10 = ((($vararg_buffer7)) + 4|0);
  39372. HEAP32[$vararg_ptr10>>2] = 4;
  39373. $vararg_ptr11 = ((($vararg_buffer7)) + 8|0);
  39374. HEAP32[$vararg_ptr11>>2] = $20;
  39375. (___syscall221(221,($vararg_buffer7|0))|0);
  39376. }
  39377. $21 = HEAP32[$7>>2]|0;
  39378. $22 = $21 | 128;
  39379. HEAP32[$7>>2] = $22;
  39380. $29 = $22;
  39381. } else {
  39382. $$pre31 = HEAP32[$7>>2]|0;
  39383. $29 = $$pre31;
  39384. }
  39385. $23 = ((($7)) + 60|0);
  39386. HEAP32[$23>>2] = $0;
  39387. $24 = ((($7)) + 132|0);
  39388. $25 = ((($7)) + 44|0);
  39389. HEAP32[$25>>2] = $24;
  39390. $26 = ((($7)) + 48|0);
  39391. HEAP32[$26>>2] = 1024;
  39392. $27 = ((($7)) + 75|0);
  39393. HEAP8[$27>>0] = -1;
  39394. $28 = $29 & 8;
  39395. $30 = ($28|0)==(0);
  39396. if ($30) {
  39397. $31 = $2;
  39398. HEAP32[$vararg_buffer12>>2] = $0;
  39399. $vararg_ptr15 = ((($vararg_buffer12)) + 4|0);
  39400. HEAP32[$vararg_ptr15>>2] = 21523;
  39401. $vararg_ptr16 = ((($vararg_buffer12)) + 8|0);
  39402. HEAP32[$vararg_ptr16>>2] = $31;
  39403. $32 = (___syscall54(54,($vararg_buffer12|0))|0);
  39404. $33 = ($32|0)==(0);
  39405. if ($33) {
  39406. HEAP8[$27>>0] = 10;
  39407. }
  39408. }
  39409. $34 = ((($7)) + 32|0);
  39410. HEAP32[$34>>2] = 10;
  39411. $35 = ((($7)) + 36|0);
  39412. HEAP32[$35>>2] = 9;
  39413. $36 = ((($7)) + 40|0);
  39414. HEAP32[$36>>2] = 3;
  39415. $37 = ((($7)) + 12|0);
  39416. HEAP32[$37>>2] = 2;
  39417. $38 = HEAP32[(21784)>>2]|0;
  39418. $39 = ($38|0)==(0);
  39419. if ($39) {
  39420. $40 = ((($7)) + 76|0);
  39421. HEAP32[$40>>2] = -1;
  39422. }
  39423. $41 = (___ofl_add($7)|0);
  39424. $$0 = $7;
  39425. }
  39426. }
  39427. STACKTOP = sp;return ($$0|0);
  39428. }
  39429. function ___ofl_add($0) {
  39430. $0 = $0|0;
  39431. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  39432. sp = STACKTOP;
  39433. $1 = (___ofl_lock()|0);
  39434. $2 = HEAP32[$1>>2]|0;
  39435. $3 = ((($0)) + 56|0);
  39436. HEAP32[$3>>2] = $2;
  39437. $4 = HEAP32[$1>>2]|0;
  39438. $5 = ($4|0)==(0|0);
  39439. if (!($5)) {
  39440. $6 = ((($4)) + 52|0);
  39441. HEAP32[$6>>2] = $0;
  39442. }
  39443. HEAP32[$1>>2] = $0;
  39444. ___ofl_unlock();
  39445. return ($0|0);
  39446. }
  39447. function ___ofl_lock() {
  39448. var label = 0, sp = 0;
  39449. sp = STACKTOP;
  39450. ___lock((21848|0));
  39451. return (21856|0);
  39452. }
  39453. function ___ofl_unlock() {
  39454. var label = 0, sp = 0;
  39455. sp = STACKTOP;
  39456. ___unlock((21848|0));
  39457. return;
  39458. }
  39459. function _fclose($0) {
  39460. $0 = $0|0;
  39461. 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;
  39462. 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;
  39463. sp = STACKTOP;
  39464. $1 = ((($0)) + 76|0);
  39465. $2 = HEAP32[$1>>2]|0;
  39466. $3 = ($2|0)>(-1);
  39467. if ($3) {
  39468. $4 = (___lockfile($0)|0);
  39469. $29 = $4;
  39470. } else {
  39471. $29 = 0;
  39472. }
  39473. ___unlist_locked_file($0);
  39474. $5 = HEAP32[$0>>2]|0;
  39475. $6 = $5 & 1;
  39476. $7 = ($6|0)!=(0);
  39477. if (!($7)) {
  39478. $8 = (___ofl_lock()|0);
  39479. $9 = ((($0)) + 52|0);
  39480. $10 = HEAP32[$9>>2]|0;
  39481. $11 = ($10|0)==(0|0);
  39482. $12 = $10;
  39483. $$pre = ((($0)) + 56|0);
  39484. if (!($11)) {
  39485. $13 = HEAP32[$$pre>>2]|0;
  39486. $14 = ((($10)) + 56|0);
  39487. HEAP32[$14>>2] = $13;
  39488. }
  39489. $15 = HEAP32[$$pre>>2]|0;
  39490. $16 = ($15|0)==(0|0);
  39491. if (!($16)) {
  39492. $17 = ((($15)) + 52|0);
  39493. HEAP32[$17>>2] = $12;
  39494. }
  39495. $18 = HEAP32[$8>>2]|0;
  39496. $19 = ($18|0)==($0|0);
  39497. if ($19) {
  39498. HEAP32[$8>>2] = $15;
  39499. }
  39500. ___ofl_unlock();
  39501. }
  39502. $20 = (_fflush($0)|0);
  39503. $21 = ((($0)) + 12|0);
  39504. $22 = HEAP32[$21>>2]|0;
  39505. $23 = (FUNCTION_TABLE_ii[$22 & 15]($0)|0);
  39506. $24 = $23 | $20;
  39507. $25 = ((($0)) + 92|0);
  39508. $26 = HEAP32[$25>>2]|0;
  39509. $27 = ($26|0)==(0|0);
  39510. if (!($27)) {
  39511. _free($26);
  39512. }
  39513. if ($7) {
  39514. $28 = ($29|0)==(0);
  39515. if (!($28)) {
  39516. ___unlockfile($0);
  39517. }
  39518. } else {
  39519. _free($0);
  39520. }
  39521. return ($24|0);
  39522. }
  39523. function _fflush($0) {
  39524. $0 = $0|0;
  39525. 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;
  39526. 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;
  39527. sp = STACKTOP;
  39528. $1 = ($0|0)==(0|0);
  39529. do {
  39530. if ($1) {
  39531. $8 = HEAP32[1049]|0;
  39532. $9 = ($8|0)==(0|0);
  39533. if ($9) {
  39534. $29 = 0;
  39535. } else {
  39536. $10 = HEAP32[1049]|0;
  39537. $11 = (_fflush($10)|0);
  39538. $29 = $11;
  39539. }
  39540. $12 = (___ofl_lock()|0);
  39541. $$02325 = HEAP32[$12>>2]|0;
  39542. $13 = ($$02325|0)==(0|0);
  39543. if ($13) {
  39544. $$024$lcssa = $29;
  39545. } else {
  39546. $$02327 = $$02325;$$02426 = $29;
  39547. while(1) {
  39548. $14 = ((($$02327)) + 76|0);
  39549. $15 = HEAP32[$14>>2]|0;
  39550. $16 = ($15|0)>(-1);
  39551. if ($16) {
  39552. $17 = (___lockfile($$02327)|0);
  39553. $26 = $17;
  39554. } else {
  39555. $26 = 0;
  39556. }
  39557. $18 = ((($$02327)) + 20|0);
  39558. $19 = HEAP32[$18>>2]|0;
  39559. $20 = ((($$02327)) + 28|0);
  39560. $21 = HEAP32[$20>>2]|0;
  39561. $22 = ($19>>>0)>($21>>>0);
  39562. if ($22) {
  39563. $23 = (___fflush_unlocked($$02327)|0);
  39564. $24 = $23 | $$02426;
  39565. $$1 = $24;
  39566. } else {
  39567. $$1 = $$02426;
  39568. }
  39569. $25 = ($26|0)==(0);
  39570. if (!($25)) {
  39571. ___unlockfile($$02327);
  39572. }
  39573. $27 = ((($$02327)) + 56|0);
  39574. $$023 = HEAP32[$27>>2]|0;
  39575. $28 = ($$023|0)==(0|0);
  39576. if ($28) {
  39577. $$024$lcssa = $$1;
  39578. break;
  39579. } else {
  39580. $$02327 = $$023;$$02426 = $$1;
  39581. }
  39582. }
  39583. }
  39584. ___ofl_unlock();
  39585. $$0 = $$024$lcssa;
  39586. } else {
  39587. $2 = ((($0)) + 76|0);
  39588. $3 = HEAP32[$2>>2]|0;
  39589. $4 = ($3|0)>(-1);
  39590. if (!($4)) {
  39591. $5 = (___fflush_unlocked($0)|0);
  39592. $$0 = $5;
  39593. break;
  39594. }
  39595. $6 = (___lockfile($0)|0);
  39596. $phitmp = ($6|0)==(0);
  39597. $7 = (___fflush_unlocked($0)|0);
  39598. if ($phitmp) {
  39599. $$0 = $7;
  39600. } else {
  39601. ___unlockfile($0);
  39602. $$0 = $7;
  39603. }
  39604. }
  39605. } while(0);
  39606. return ($$0|0);
  39607. }
  39608. function ___fflush_unlocked($0) {
  39609. $0 = $0|0;
  39610. 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;
  39611. var $9 = 0, label = 0, sp = 0;
  39612. sp = STACKTOP;
  39613. $1 = ((($0)) + 20|0);
  39614. $2 = HEAP32[$1>>2]|0;
  39615. $3 = ((($0)) + 28|0);
  39616. $4 = HEAP32[$3>>2]|0;
  39617. $5 = ($2>>>0)>($4>>>0);
  39618. if ($5) {
  39619. $6 = ((($0)) + 36|0);
  39620. $7 = HEAP32[$6>>2]|0;
  39621. (FUNCTION_TABLE_iiii[$7 & 15]($0,0,0)|0);
  39622. $8 = HEAP32[$1>>2]|0;
  39623. $9 = ($8|0)==(0|0);
  39624. if ($9) {
  39625. $$0 = -1;
  39626. } else {
  39627. label = 3;
  39628. }
  39629. } else {
  39630. label = 3;
  39631. }
  39632. if ((label|0) == 3) {
  39633. $10 = ((($0)) + 4|0);
  39634. $11 = HEAP32[$10>>2]|0;
  39635. $12 = ((($0)) + 8|0);
  39636. $13 = HEAP32[$12>>2]|0;
  39637. $14 = ($11>>>0)<($13>>>0);
  39638. if ($14) {
  39639. $15 = $11;
  39640. $16 = $13;
  39641. $17 = (($15) - ($16))|0;
  39642. $18 = ((($0)) + 40|0);
  39643. $19 = HEAP32[$18>>2]|0;
  39644. (FUNCTION_TABLE_iiii[$19 & 15]($0,$17,1)|0);
  39645. }
  39646. $20 = ((($0)) + 16|0);
  39647. HEAP32[$20>>2] = 0;
  39648. HEAP32[$3>>2] = 0;
  39649. HEAP32[$1>>2] = 0;
  39650. HEAP32[$12>>2] = 0;
  39651. HEAP32[$10>>2] = 0;
  39652. $$0 = 0;
  39653. }
  39654. return ($$0|0);
  39655. }
  39656. function _fgets($0,$1,$2) {
  39657. $0 = $0|0;
  39658. $1 = $1|0;
  39659. $2 = $2|0;
  39660. var $$0 = 0, $$06266 = 0, $$063 = 0, $$064 = 0, $$1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0;
  39661. 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;
  39662. var $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond3 = 0;
  39663. var $sext$mask = 0, label = 0, sp = 0;
  39664. sp = STACKTOP;
  39665. $3 = ((($2)) + 76|0);
  39666. $4 = HEAP32[$3>>2]|0;
  39667. $5 = ($4|0)>(-1);
  39668. if ($5) {
  39669. $6 = (___lockfile($2)|0);
  39670. $17 = $6;
  39671. } else {
  39672. $17 = 0;
  39673. }
  39674. $7 = (($1) + -1)|0;
  39675. $8 = ($1|0)<(2);
  39676. $9 = ($7|0)!=(0);
  39677. if ($8) {
  39678. $10 = ((($2)) + 74|0);
  39679. $11 = HEAP8[$10>>0]|0;
  39680. $12 = $11 << 24 >> 24;
  39681. $13 = (($12) + 255)|0;
  39682. $14 = $13 | $12;
  39683. $15 = $14&255;
  39684. HEAP8[$10>>0] = $15;
  39685. $16 = ($17|0)==(0);
  39686. if (!($16)) {
  39687. ___unlockfile($2);
  39688. }
  39689. if ($9) {
  39690. $$0 = 0;
  39691. } else {
  39692. HEAP8[$0>>0] = 0;
  39693. $$0 = $0;
  39694. }
  39695. } else {
  39696. L11: do {
  39697. if ($9) {
  39698. $18 = ((($2)) + 4|0);
  39699. $19 = ((($2)) + 8|0);
  39700. $$063 = $7;$$064 = $0;
  39701. while(1) {
  39702. $20 = HEAP32[$18>>2]|0;
  39703. $21 = HEAP32[$19>>2]|0;
  39704. $22 = $20;
  39705. $23 = (($21) - ($22))|0;
  39706. $24 = (_memchr($20,10,$23)|0);
  39707. $25 = ($24|0)==(0|0);
  39708. $26 = $24;
  39709. $27 = (1 - ($22))|0;
  39710. $28 = (($27) + ($26))|0;
  39711. $29 = $25 ? $23 : $28;
  39712. $30 = ($29>>>0)<($$063>>>0);
  39713. $31 = $30 ? $29 : $$063;
  39714. _memcpy(($$064|0),($20|0),($31|0))|0;
  39715. $32 = HEAP32[$18>>2]|0;
  39716. $33 = (($32) + ($31)|0);
  39717. HEAP32[$18>>2] = $33;
  39718. $34 = (($$064) + ($31)|0);
  39719. $35 = (($$063) - ($31))|0;
  39720. $36 = ($35|0)!=(0);
  39721. $or$cond = $25 & $36;
  39722. if (!($or$cond)) {
  39723. $$1 = $34;
  39724. label = 17;
  39725. break L11;
  39726. }
  39727. $37 = HEAP32[$19>>2]|0;
  39728. $38 = ($33>>>0)<($37>>>0);
  39729. if ($38) {
  39730. $39 = ((($33)) + 1|0);
  39731. HEAP32[$18>>2] = $39;
  39732. $40 = HEAP8[$33>>0]|0;
  39733. $41 = $40&255;
  39734. $50 = $41;
  39735. } else {
  39736. $42 = (___uflow($2)|0);
  39737. $43 = ($42|0)<(0);
  39738. if ($43) {
  39739. break;
  39740. } else {
  39741. $50 = $42;
  39742. }
  39743. }
  39744. $48 = (($35) + -1)|0;
  39745. $49 = $50&255;
  39746. $51 = ((($34)) + 1|0);
  39747. HEAP8[$34>>0] = $49;
  39748. $sext$mask = $50 & 255;
  39749. $52 = ($sext$mask|0)!=(10);
  39750. $53 = ($48|0)!=(0);
  39751. $or$cond3 = $53 & $52;
  39752. if ($or$cond3) {
  39753. $$063 = $48;$$064 = $51;
  39754. } else {
  39755. $$1 = $51;
  39756. label = 17;
  39757. break L11;
  39758. }
  39759. }
  39760. $44 = ($34|0)==($0|0);
  39761. if ($44) {
  39762. $$06266 = 0;
  39763. } else {
  39764. $45 = HEAP32[$2>>2]|0;
  39765. $46 = $45 & 16;
  39766. $47 = ($46|0)==(0);
  39767. if ($47) {
  39768. $$06266 = 0;
  39769. } else {
  39770. $$1 = $34;
  39771. label = 17;
  39772. }
  39773. }
  39774. } else {
  39775. $$1 = $0;
  39776. label = 17;
  39777. }
  39778. } while(0);
  39779. if ((label|0) == 17) {
  39780. $54 = ($0|0)==(0|0);
  39781. if ($54) {
  39782. $$06266 = 0;
  39783. } else {
  39784. HEAP8[$$1>>0] = 0;
  39785. $$06266 = $0;
  39786. }
  39787. }
  39788. $55 = ($17|0)==(0);
  39789. if ($55) {
  39790. $$0 = $$06266;
  39791. } else {
  39792. ___unlockfile($2);
  39793. $$0 = $$06266;
  39794. }
  39795. }
  39796. return ($$0|0);
  39797. }
  39798. function _feof($0) {
  39799. $0 = $0|0;
  39800. 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;
  39801. sp = STACKTOP;
  39802. $1 = ((($0)) + 76|0);
  39803. $2 = HEAP32[$1>>2]|0;
  39804. $3 = ($2|0)>(-1);
  39805. if ($3) {
  39806. $6 = (___lockfile($0)|0);
  39807. $phitmp = ($6|0)==(0);
  39808. $7 = HEAP32[$0>>2]|0;
  39809. $8 = $7 >>> 4;
  39810. $$lobit = $8 & 1;
  39811. if ($phitmp) {
  39812. $$lobit9 = $$lobit;
  39813. } else {
  39814. ___unlockfile($0);
  39815. $$lobit9 = $$lobit;
  39816. }
  39817. } else {
  39818. $4 = HEAP32[$0>>2]|0;
  39819. $5 = $4 >>> 4;
  39820. $$lobit8 = $5 & 1;
  39821. $$lobit9 = $$lobit8;
  39822. }
  39823. return ($$lobit9|0);
  39824. }
  39825. function _sscanf($0,$1,$varargs) {
  39826. $0 = $0|0;
  39827. $1 = $1|0;
  39828. $varargs = $varargs|0;
  39829. var $2 = 0, $3 = 0, label = 0, sp = 0;
  39830. sp = STACKTOP;
  39831. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  39832. $2 = sp;
  39833. HEAP32[$2>>2] = $varargs;
  39834. $3 = (_vsscanf($0,$1,$2)|0);
  39835. STACKTOP = sp;return ($3|0);
  39836. }
  39837. function _vsscanf($0,$1,$2) {
  39838. $0 = $0|0;
  39839. $1 = $1|0;
  39840. $2 = $2|0;
  39841. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, dest = 0, label = 0, sp = 0, stop = 0;
  39842. sp = STACKTOP;
  39843. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  39844. $3 = sp;
  39845. dest=$3; stop=dest+124|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  39846. $4 = ((($3)) + 32|0);
  39847. HEAP32[$4>>2] = 11;
  39848. $5 = ((($3)) + 44|0);
  39849. HEAP32[$5>>2] = $0;
  39850. $6 = ((($3)) + 76|0);
  39851. HEAP32[$6>>2] = -1;
  39852. $7 = ((($3)) + 84|0);
  39853. HEAP32[$7>>2] = $0;
  39854. $8 = (_vfscanf($3,$1,$2)|0);
  39855. STACKTOP = sp;return ($8|0);
  39856. }
  39857. function _do_read($0,$1,$2) {
  39858. $0 = $0|0;
  39859. $1 = $1|0;
  39860. $2 = $2|0;
  39861. var $3 = 0, label = 0, sp = 0;
  39862. sp = STACKTOP;
  39863. $3 = (___string_read($0,$1,$2)|0);
  39864. return ($3|0);
  39865. }
  39866. function _vfscanf($0,$1,$2) {
  39867. $0 = $0|0;
  39868. $1 = $1|0;
  39869. $2 = $2|0;
  39870. var $$ = 0, $$$0266 = 0, $$$0268 = 0, $$$0305 = 0, $$$3 = 0, $$0266$lcssa = 0, $$0266417 = 0, $$0268 = 0, $$0272 = 0, $$0273429 = 0, $$0276$ph = 0, $$0278$ph = 0, $$0278$ph$phi = 0, $$0278$ph336 = 0, $$0283428 = 0, $$0286420 = 0, $$0288$ = 0, $$0288425 = 0, $$0292 = 0, $$0293 = 0;
  39871. var $$0305423 = 0, $$10 = 0, $$11 = 0, $$1267 = 0, $$1271 = 0, $$1274 = 0, $$1277$ph = 0, $$1279 = 0, $$1284 = 0, $$1289 = 0, $$2 = 0, $$2275 = 0, $$2280 = 0, $$2280$ph = 0, $$2280$ph$phi = 0, $$2285 = 0, $$2290 = 0, $$2307$ph = 0, $$3$lcssa = 0, $$319 = 0;
  39872. var $$320 = 0, $$321 = 0, $$322 = 0, $$327 = 0, $$328$le439 = 0, $$328$le441 = 0, $$3281 = 0, $$3291 = 0, $$3416 = 0, $$4282 = 0, $$4309 = 0, $$5 = 0, $$5299 = 0, $$5310 = 0, $$6 = 0, $$6311 = 0, $$7 = 0, $$7$ph = 0, $$7312 = 0, $$8 = 0;
  39873. var $$8313 = 0, $$9 = 0, $$9314 = 0, $$9314$ph = 0, $$lcssa355 = 0, $$not = 0, $$old4 = 0, $$ph = 0, $$ph353 = 0, $$pre = 0, $$pre$phi516Z2D = 0, $$pre507 = 0, $$pre509 = 0, $$pre511 = 0, $$pre512 = 0, $$pre513 = 0, $$pre514 = 0, $$pre515 = 0, $$sink443 = 0, $$sroa$2$0$$sroa_idx13 = 0;
  39874. var $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0;
  39875. var $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0;
  39876. var $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0;
  39877. var $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0, $17 = 0, $170 = 0, $171 = 0;
  39878. var $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0, $189 = 0, $19 = 0;
  39879. var $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0, $199 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0, $205 = 0, $206 = 0, $207 = 0, $208 = 0;
  39880. var $209 = 0, $21 = 0, $210 = 0, $211 = 0, $212 = 0, $213 = 0, $214 = 0, $215 = 0, $216 = 0, $217 = 0, $218 = 0, $219 = 0, $22 = 0, $220 = 0, $221 = 0, $222 = 0, $223 = 0, $224 = 0, $225 = 0, $226 = 0;
  39881. var $227 = 0, $228 = 0, $229 = 0, $23 = 0, $230 = 0, $231 = 0, $232 = 0, $233 = 0, $234 = 0, $235 = 0, $236 = 0, $237 = 0, $238 = 0, $239 = 0, $24 = 0, $240 = 0, $241 = 0, $242 = 0, $243 = 0, $244 = 0;
  39882. var $245 = 0, $246 = 0, $247 = 0, $248 = 0, $249 = 0, $25 = 0, $250 = 0, $251 = 0, $252 = 0, $253 = 0, $254 = 0, $255 = 0, $256 = 0, $257 = 0, $258 = 0, $259 = 0, $26 = 0, $260 = 0, $261 = 0, $262 = 0;
  39883. var $263 = 0, $264 = 0, $265 = 0, $266 = 0, $267 = 0, $268 = 0, $269 = 0, $27 = 0, $270 = 0, $271 = 0, $272 = 0, $273 = 0, $274 = 0, $275 = 0, $276 = 0, $277 = 0, $278 = 0, $279 = 0, $28 = 0, $280 = 0;
  39884. var $281 = 0, $282 = 0, $283 = 0, $284 = 0, $285 = 0.0, $286 = 0, $287 = 0, $288 = 0, $289 = 0, $29 = 0, $290 = 0, $291 = 0, $292 = 0.0, $293 = 0, $294 = 0, $295 = 0, $296 = 0, $297 = 0, $298 = 0, $299 = 0;
  39885. var $3 = 0, $30 = 0, $300 = 0, $301 = 0, $302 = 0, $303 = 0, $304 = 0, $305 = 0, $306 = 0, $307 = 0, $308 = 0, $309 = 0, $31 = 0, $310 = 0, $311 = 0, $312 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0;
  39886. var $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0;
  39887. var $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0;
  39888. var $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0;
  39889. var $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $arglist_current = 0, $arglist_next = 0, $expanded = 0, $expanded1 = 0, $expanded3 = 0, $expanded4 = 0, $expanded5 = 0, $factor = 0, $factor331 = 0, $isdigit = 0;
  39890. var $isdigit316 = 0, $isdigit316415 = 0, $isdigittmp = 0, $isdigittmp315 = 0, $isdigittmp315414 = 0, $narrow = 0, $narrow469 = 0, $or$cond = 0, $or$cond3 = 0, $or$cond318 = 0, $or$cond5 = 0, $trunc = 0, label = 0, sp = 0;
  39891. sp = STACKTOP;
  39892. STACKTOP = STACKTOP + 288|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(288|0);
  39893. $3 = sp + 8|0;
  39894. $4 = sp + 17|0;
  39895. $5 = sp;
  39896. $6 = sp + 16|0;
  39897. $7 = ((($0)) + 76|0);
  39898. $8 = HEAP32[$7>>2]|0;
  39899. $9 = ($8|0)>(-1);
  39900. if ($9) {
  39901. $10 = (___lockfile($0)|0);
  39902. $306 = $10;
  39903. } else {
  39904. $306 = 0;
  39905. }
  39906. $11 = HEAP8[$1>>0]|0;
  39907. $12 = ($11<<24>>24)==(0);
  39908. L4: do {
  39909. if ($12) {
  39910. $$3291 = 0;
  39911. } else {
  39912. $13 = ((($0)) + 4|0);
  39913. $14 = ((($0)) + 100|0);
  39914. $15 = ((($0)) + 108|0);
  39915. $16 = ((($0)) + 8|0);
  39916. $17 = ((($4)) + 10|0);
  39917. $18 = ((($4)) + 33|0);
  39918. $$sroa$2$0$$sroa_idx13 = ((($3)) + 4|0);
  39919. $19 = ((($4)) + 46|0);
  39920. $20 = ((($4)) + 94|0);
  39921. $21 = ((($4)) + 1|0);
  39922. $22 = ((($4)) + 1|0);
  39923. $$0273429 = $1;$$0283428 = 0;$$0288425 = 0;$$0305423 = 0;$102 = 0;$24 = $11;
  39924. L6: while(1) {
  39925. $23 = $24&255;
  39926. $25 = (_isspace($23)|0);
  39927. $26 = ($25|0)==(0);
  39928. L8: do {
  39929. if ($26) {
  39930. $53 = ($24<<24>>24)==(37);
  39931. L10: do {
  39932. if ($53) {
  39933. $54 = ((($$0273429)) + 1|0);
  39934. $55 = HEAP8[$54>>0]|0;
  39935. L12: do {
  39936. switch ($55<<24>>24) {
  39937. case 37: {
  39938. break L10;
  39939. break;
  39940. }
  39941. case 42: {
  39942. $76 = ((($$0273429)) + 2|0);
  39943. $$0293 = 0;$$2275 = $76;
  39944. break;
  39945. }
  39946. default: {
  39947. $77 = $55&255;
  39948. $isdigittmp = (($77) + -48)|0;
  39949. $isdigit = ($isdigittmp>>>0)<(10);
  39950. if ($isdigit) {
  39951. $78 = ((($$0273429)) + 2|0);
  39952. $79 = HEAP8[$78>>0]|0;
  39953. $80 = ($79<<24>>24)==(36);
  39954. if ($80) {
  39955. $81 = (_arg_n($2,$isdigittmp)|0);
  39956. $82 = ((($$0273429)) + 3|0);
  39957. $$0293 = $81;$$2275 = $82;
  39958. break L12;
  39959. }
  39960. }
  39961. $arglist_current = HEAP32[$2>>2]|0;
  39962. $83 = $arglist_current;
  39963. $84 = ((0) + 4|0);
  39964. $expanded1 = $84;
  39965. $expanded = (($expanded1) - 1)|0;
  39966. $85 = (($83) + ($expanded))|0;
  39967. $86 = ((0) + 4|0);
  39968. $expanded5 = $86;
  39969. $expanded4 = (($expanded5) - 1)|0;
  39970. $expanded3 = $expanded4 ^ -1;
  39971. $87 = $85 & $expanded3;
  39972. $88 = $87;
  39973. $89 = HEAP32[$88>>2]|0;
  39974. $arglist_next = ((($88)) + 4|0);
  39975. HEAP32[$2>>2] = $arglist_next;
  39976. $$0293 = $89;$$2275 = $54;
  39977. }
  39978. }
  39979. } while(0);
  39980. $90 = HEAP8[$$2275>>0]|0;
  39981. $91 = $90&255;
  39982. $isdigittmp315414 = (($91) + -48)|0;
  39983. $isdigit316415 = ($isdigittmp315414>>>0)<(10);
  39984. if ($isdigit316415) {
  39985. $$0266417 = 0;$$3416 = $$2275;$95 = $91;
  39986. while(1) {
  39987. $92 = ($$0266417*10)|0;
  39988. $93 = (($92) + -48)|0;
  39989. $94 = (($93) + ($95))|0;
  39990. $96 = ((($$3416)) + 1|0);
  39991. $97 = HEAP8[$96>>0]|0;
  39992. $98 = $97&255;
  39993. $isdigittmp315 = (($98) + -48)|0;
  39994. $isdigit316 = ($isdigittmp315>>>0)<(10);
  39995. if ($isdigit316) {
  39996. $$0266417 = $94;$$3416 = $96;$95 = $98;
  39997. } else {
  39998. $$0266$lcssa = $94;$$3$lcssa = $96;$$lcssa355 = $97;
  39999. break;
  40000. }
  40001. }
  40002. } else {
  40003. $$0266$lcssa = 0;$$3$lcssa = $$2275;$$lcssa355 = $90;
  40004. }
  40005. $99 = ($$lcssa355<<24>>24)==(109);
  40006. $100 = ($$0293|0)!=(0|0);
  40007. $101 = ((($$3$lcssa)) + 1|0);
  40008. $$$0305 = $99 ? 0 : $$0305423;
  40009. $$327 = $99 ? 0 : $102;
  40010. $$$3 = $99 ? $101 : $$3$lcssa;
  40011. $narrow = $100 & $99;
  40012. $103 = ((($$$3)) + 1|0);
  40013. $104 = HEAP8[$$$3>>0]|0;
  40014. switch ($104<<24>>24) {
  40015. case 104: {
  40016. $105 = HEAP8[$103>>0]|0;
  40017. $106 = ($105<<24>>24)==(104);
  40018. $107 = ((($$$3)) + 2|0);
  40019. $$319 = $106 ? $107 : $103;
  40020. $$320 = $106 ? -2 : -1;
  40021. $$0268 = $$320;$$5 = $$319;
  40022. break;
  40023. }
  40024. case 108: {
  40025. $108 = HEAP8[$103>>0]|0;
  40026. $109 = ($108<<24>>24)==(108);
  40027. $110 = ((($$$3)) + 2|0);
  40028. $$321 = $109 ? $110 : $103;
  40029. $$322 = $109 ? 3 : 1;
  40030. $$0268 = $$322;$$5 = $$321;
  40031. break;
  40032. }
  40033. case 106: {
  40034. $$0268 = 3;$$5 = $103;
  40035. break;
  40036. }
  40037. case 116: case 122: {
  40038. $$0268 = 1;$$5 = $103;
  40039. break;
  40040. }
  40041. case 76: {
  40042. $$0268 = 2;$$5 = $103;
  40043. break;
  40044. }
  40045. case 110: case 112: case 67: case 83: case 91: case 99: case 115: case 88: case 71: case 70: case 69: case 65: case 103: case 102: case 101: case 97: case 120: case 117: case 111: case 105: case 100: {
  40046. $$0268 = 0;$$5 = $$$3;
  40047. break;
  40048. }
  40049. default: {
  40050. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  40051. label = 137;
  40052. break L6;
  40053. }
  40054. }
  40055. $111 = HEAP8[$$5>>0]|0;
  40056. $112 = $111&255;
  40057. $113 = $112 & 47;
  40058. $114 = ($113|0)==(3);
  40059. $115 = $112 | 32;
  40060. $$ = $114 ? $115 : $112;
  40061. $$$0268 = $114 ? 1 : $$0268;
  40062. $trunc = $$&255;
  40063. switch ($trunc<<24>>24) {
  40064. case 99: {
  40065. $116 = ($$0266$lcssa|0)>(1);
  40066. $$$0266 = $116 ? $$0266$lcssa : 1;
  40067. $$1267 = $$$0266;$$1284 = $$0283428;
  40068. break;
  40069. }
  40070. case 91: {
  40071. $$1267 = $$0266$lcssa;$$1284 = $$0283428;
  40072. break;
  40073. }
  40074. case 110: {
  40075. $117 = ($$0283428|0)<(0);
  40076. $118 = $117 << 31 >> 31;
  40077. _store_int($$0293,$$$0268,$$0283428,$118);
  40078. $$11 = $$5;$$1289 = $$0288425;$$2285 = $$0283428;$$6311 = $$$0305;$307 = $$327;
  40079. break L8;
  40080. break;
  40081. }
  40082. default: {
  40083. ___shlim($0,0);
  40084. while(1) {
  40085. $119 = HEAP32[$13>>2]|0;
  40086. $120 = HEAP32[$14>>2]|0;
  40087. $121 = ($119>>>0)<($120>>>0);
  40088. if ($121) {
  40089. $122 = ((($119)) + 1|0);
  40090. HEAP32[$13>>2] = $122;
  40091. $123 = HEAP8[$119>>0]|0;
  40092. $124 = $123&255;
  40093. $126 = $124;
  40094. } else {
  40095. $125 = (___shgetc($0)|0);
  40096. $126 = $125;
  40097. }
  40098. $127 = (_isspace($126)|0);
  40099. $128 = ($127|0)==(0);
  40100. if ($128) {
  40101. break;
  40102. }
  40103. }
  40104. $129 = HEAP32[$14>>2]|0;
  40105. $130 = ($129|0)==(0|0);
  40106. if ($130) {
  40107. $$pre507 = HEAP32[$13>>2]|0;
  40108. $138 = $$pre507;
  40109. } else {
  40110. $131 = HEAP32[$13>>2]|0;
  40111. $132 = ((($131)) + -1|0);
  40112. HEAP32[$13>>2] = $132;
  40113. $133 = $132;
  40114. $138 = $133;
  40115. }
  40116. $134 = HEAP32[$15>>2]|0;
  40117. $135 = HEAP32[$16>>2]|0;
  40118. $136 = (($134) + ($$0283428))|0;
  40119. $137 = (($136) + ($138))|0;
  40120. $139 = (($137) - ($135))|0;
  40121. $$1267 = $$0266$lcssa;$$1284 = $139;
  40122. }
  40123. }
  40124. ___shlim($0,$$1267);
  40125. $140 = HEAP32[$13>>2]|0;
  40126. $141 = HEAP32[$14>>2]|0;
  40127. $142 = ($140>>>0)<($141>>>0);
  40128. if ($142) {
  40129. $143 = ((($140)) + 1|0);
  40130. HEAP32[$13>>2] = $143;
  40131. $147 = $141;
  40132. } else {
  40133. $144 = (___shgetc($0)|0);
  40134. $145 = ($144|0)<(0);
  40135. if ($145) {
  40136. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  40137. label = 137;
  40138. break L6;
  40139. }
  40140. $$pre509 = HEAP32[$14>>2]|0;
  40141. $147 = $$pre509;
  40142. }
  40143. $146 = ($147|0)==(0|0);
  40144. if (!($146)) {
  40145. $148 = HEAP32[$13>>2]|0;
  40146. $149 = ((($148)) + -1|0);
  40147. HEAP32[$13>>2] = $149;
  40148. }
  40149. L55: do {
  40150. switch ($trunc<<24>>24) {
  40151. case 91: case 99: case 115: {
  40152. $150 = ($$|0)==(99);
  40153. $151 = $$ | 16;
  40154. $152 = ($151|0)==(115);
  40155. L57: do {
  40156. if ($152) {
  40157. $153 = ($$|0)==(115);
  40158. _memset(($21|0),-1,256)|0;
  40159. HEAP8[$4>>0] = 0;
  40160. if ($153) {
  40161. HEAP8[$18>>0] = 0;
  40162. ;HEAP8[$17>>0]=0|0;HEAP8[$17+1>>0]=0|0;HEAP8[$17+2>>0]=0|0;HEAP8[$17+3>>0]=0|0;HEAP8[$17+4>>0]=0|0;
  40163. $$9 = $$5;
  40164. } else {
  40165. $$9 = $$5;
  40166. }
  40167. } else {
  40168. $154 = ((($$5)) + 1|0);
  40169. $155 = HEAP8[$154>>0]|0;
  40170. $156 = ($155<<24>>24)==(94);
  40171. $157 = ((($$5)) + 2|0);
  40172. $$0292 = $156&1;
  40173. $$6 = $156 ? $157 : $154;
  40174. $158 = $156&1;
  40175. _memset(($22|0),($158|0),256)|0;
  40176. HEAP8[$4>>0] = 0;
  40177. $159 = HEAP8[$$6>>0]|0;
  40178. switch ($159<<24>>24) {
  40179. case 45: {
  40180. $$sink443 = $19;
  40181. label = 64;
  40182. break;
  40183. }
  40184. case 93: {
  40185. $$sink443 = $20;
  40186. label = 64;
  40187. break;
  40188. }
  40189. default: {
  40190. $$pre514 = $$0292 ^ 1;
  40191. $$pre515 = $$pre514&255;
  40192. $$7$ph = $$6;$$pre$phi516Z2D = $$pre515;
  40193. }
  40194. }
  40195. if ((label|0) == 64) {
  40196. label = 0;
  40197. $160 = ((($$6)) + 1|0);
  40198. $161 = $$0292 ^ 1;
  40199. $162 = $161&255;
  40200. HEAP8[$$sink443>>0] = $162;
  40201. $$7$ph = $160;$$pre$phi516Z2D = $162;
  40202. }
  40203. $$7 = $$7$ph;
  40204. while(1) {
  40205. $163 = HEAP8[$$7>>0]|0;
  40206. L69: do {
  40207. switch ($163<<24>>24) {
  40208. case 0: {
  40209. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  40210. label = 137;
  40211. break L6;
  40212. break;
  40213. }
  40214. case 93: {
  40215. $$9 = $$7;
  40216. break L57;
  40217. break;
  40218. }
  40219. case 45: {
  40220. $164 = ((($$7)) + 1|0);
  40221. $165 = HEAP8[$164>>0]|0;
  40222. switch ($165<<24>>24) {
  40223. case 93: case 0: {
  40224. $$8 = $$7;$176 = 45;
  40225. break L69;
  40226. break;
  40227. }
  40228. default: {
  40229. }
  40230. }
  40231. $166 = ((($$7)) + -1|0);
  40232. $167 = HEAP8[$166>>0]|0;
  40233. $168 = ($167&255)<($165&255);
  40234. if ($168) {
  40235. $169 = $167&255;
  40236. $$0286420 = $169;
  40237. while(1) {
  40238. $170 = (($$0286420) + 1)|0;
  40239. $171 = (($4) + ($170)|0);
  40240. HEAP8[$171>>0] = $$pre$phi516Z2D;
  40241. $172 = HEAP8[$164>>0]|0;
  40242. $173 = $172&255;
  40243. $174 = ($170|0)<($173|0);
  40244. if ($174) {
  40245. $$0286420 = $170;
  40246. } else {
  40247. $$8 = $164;$176 = $172;
  40248. break;
  40249. }
  40250. }
  40251. } else {
  40252. $$8 = $164;$176 = $165;
  40253. }
  40254. break;
  40255. }
  40256. default: {
  40257. $$8 = $$7;$176 = $163;
  40258. }
  40259. }
  40260. } while(0);
  40261. $175 = $176&255;
  40262. $177 = (($175) + 1)|0;
  40263. $178 = (($4) + ($177)|0);
  40264. HEAP8[$178>>0] = $$pre$phi516Z2D;
  40265. $179 = ((($$8)) + 1|0);
  40266. $$7 = $179;
  40267. }
  40268. }
  40269. } while(0);
  40270. $180 = (($$1267) + 1)|0;
  40271. $181 = $150 ? $180 : 31;
  40272. $182 = ($$$0268|0)==(1);
  40273. L77: do {
  40274. if ($182) {
  40275. if ($narrow) {
  40276. $183 = $181 << 2;
  40277. $184 = (_malloc($183)|0);
  40278. $185 = ($184|0)==(0|0);
  40279. if ($185) {
  40280. $$7312 = 0;$309 = 0;$narrow469 = 1;
  40281. label = 137;
  40282. break L6;
  40283. } else {
  40284. $311 = $184;
  40285. }
  40286. } else {
  40287. $311 = $$0293;
  40288. }
  40289. HEAP32[$3>>2] = 0;
  40290. HEAP32[$$sroa$2$0$$sroa_idx13>>2] = 0;
  40291. $$0276$ph = $181;$$0278$ph = 0;$$ph = $311;
  40292. L82: while(1) {
  40293. $186 = ($$ph|0)==(0|0);
  40294. $$0278$ph336 = $$0278$ph;
  40295. while(1) {
  40296. L86: while(1) {
  40297. $187 = HEAP32[$13>>2]|0;
  40298. $188 = HEAP32[$14>>2]|0;
  40299. $189 = ($187>>>0)<($188>>>0);
  40300. if ($189) {
  40301. $190 = ((($187)) + 1|0);
  40302. HEAP32[$13>>2] = $190;
  40303. $191 = HEAP8[$187>>0]|0;
  40304. $192 = $191&255;
  40305. $195 = $192;
  40306. } else {
  40307. $193 = (___shgetc($0)|0);
  40308. $195 = $193;
  40309. }
  40310. $194 = (($195) + 1)|0;
  40311. $196 = (($4) + ($194)|0);
  40312. $197 = HEAP8[$196>>0]|0;
  40313. $198 = ($197<<24>>24)==(0);
  40314. if ($198) {
  40315. break L82;
  40316. }
  40317. $199 = $195&255;
  40318. HEAP8[$6>>0] = $199;
  40319. $200 = (_mbrtowc($5,$6,1,$3)|0);
  40320. switch ($200|0) {
  40321. case -1: {
  40322. $$7312 = 0;$309 = $$ph;$narrow469 = $narrow;
  40323. label = 137;
  40324. break L6;
  40325. break;
  40326. }
  40327. case -2: {
  40328. break;
  40329. }
  40330. default: {
  40331. break L86;
  40332. }
  40333. }
  40334. }
  40335. if ($186) {
  40336. $$1279 = $$0278$ph336;
  40337. } else {
  40338. $201 = (($$ph) + ($$0278$ph336<<2)|0);
  40339. $202 = (($$0278$ph336) + 1)|0;
  40340. $203 = HEAP32[$5>>2]|0;
  40341. HEAP32[$201>>2] = $203;
  40342. $$1279 = $202;
  40343. }
  40344. $204 = ($$1279|0)==($$0276$ph|0);
  40345. $or$cond = $narrow & $204;
  40346. if ($or$cond) {
  40347. break;
  40348. } else {
  40349. $$0278$ph336 = $$1279;
  40350. }
  40351. }
  40352. $factor331 = $$0276$ph << 1;
  40353. $205 = $factor331 | 1;
  40354. $206 = $205 << 2;
  40355. $207 = (_realloc($$ph,$206)|0);
  40356. $208 = ($207|0)==(0|0);
  40357. if ($208) {
  40358. $$7312 = 0;$309 = $$ph;$narrow469 = 1;
  40359. label = 137;
  40360. break L6;
  40361. } else {
  40362. $$0278$ph$phi = $$0276$ph;$$0276$ph = $205;$$ph = $207;$$0278$ph = $$0278$ph$phi;
  40363. }
  40364. }
  40365. $209 = (_mbsinit($3)|0);
  40366. $210 = ($209|0)==(0);
  40367. if ($210) {
  40368. $$7312 = 0;$309 = $$ph;$narrow469 = $narrow;
  40369. label = 137;
  40370. break L6;
  40371. } else {
  40372. $$4282 = $$0278$ph336;$$4309 = 0;$$5299 = $$ph;$312 = $$ph;
  40373. }
  40374. } else {
  40375. if ($narrow) {
  40376. $211 = (_malloc($181)|0);
  40377. $212 = ($211|0)==(0|0);
  40378. if ($212) {
  40379. $$7312 = 0;$309 = 0;$narrow469 = 1;
  40380. label = 137;
  40381. break L6;
  40382. } else {
  40383. $$1277$ph = $181;$$2280$ph = 0;$$2307$ph = $211;
  40384. }
  40385. while(1) {
  40386. $$2280 = $$2280$ph;
  40387. while(1) {
  40388. $213 = HEAP32[$13>>2]|0;
  40389. $214 = HEAP32[$14>>2]|0;
  40390. $215 = ($213>>>0)<($214>>>0);
  40391. if ($215) {
  40392. $216 = ((($213)) + 1|0);
  40393. HEAP32[$13>>2] = $216;
  40394. $217 = HEAP8[$213>>0]|0;
  40395. $218 = $217&255;
  40396. $221 = $218;
  40397. } else {
  40398. $219 = (___shgetc($0)|0);
  40399. $221 = $219;
  40400. }
  40401. $220 = (($221) + 1)|0;
  40402. $222 = (($4) + ($220)|0);
  40403. $223 = HEAP8[$222>>0]|0;
  40404. $224 = ($223<<24>>24)==(0);
  40405. if ($224) {
  40406. $$4282 = $$2280;$$4309 = $$2307$ph;$$5299 = 0;$312 = 0;
  40407. break L77;
  40408. }
  40409. $225 = $221&255;
  40410. $226 = (($$2280) + 1)|0;
  40411. $227 = (($$2307$ph) + ($$2280)|0);
  40412. HEAP8[$227>>0] = $225;
  40413. $228 = ($226|0)==($$1277$ph|0);
  40414. if ($228) {
  40415. break;
  40416. } else {
  40417. $$2280 = $226;
  40418. }
  40419. }
  40420. $factor = $$1277$ph << 1;
  40421. $229 = $factor | 1;
  40422. $230 = (_realloc($$2307$ph,$229)|0);
  40423. $231 = ($230|0)==(0|0);
  40424. if ($231) {
  40425. $$7312 = $$2307$ph;$309 = 0;$narrow469 = 1;
  40426. label = 137;
  40427. break L6;
  40428. } else {
  40429. $$2280$ph$phi = $$1277$ph;$$1277$ph = $229;$$2307$ph = $230;$$2280$ph = $$2280$ph$phi;
  40430. }
  40431. }
  40432. }
  40433. $232 = ($$0293|0)==(0|0);
  40434. if ($232) {
  40435. $250 = $147;
  40436. while(1) {
  40437. $248 = HEAP32[$13>>2]|0;
  40438. $249 = ($248>>>0)<($250>>>0);
  40439. if ($249) {
  40440. $251 = ((($248)) + 1|0);
  40441. HEAP32[$13>>2] = $251;
  40442. $252 = HEAP8[$248>>0]|0;
  40443. $253 = $252&255;
  40444. $256 = $253;
  40445. } else {
  40446. $254 = (___shgetc($0)|0);
  40447. $256 = $254;
  40448. }
  40449. $255 = (($256) + 1)|0;
  40450. $257 = (($4) + ($255)|0);
  40451. $258 = HEAP8[$257>>0]|0;
  40452. $259 = ($258<<24>>24)==(0);
  40453. if ($259) {
  40454. $$4282 = 0;$$4309 = 0;$$5299 = 0;$312 = 0;
  40455. break L77;
  40456. }
  40457. $$pre512 = HEAP32[$14>>2]|0;
  40458. $250 = $$pre512;
  40459. }
  40460. } else {
  40461. $$3281 = 0;$235 = $147;
  40462. while(1) {
  40463. $233 = HEAP32[$13>>2]|0;
  40464. $234 = ($233>>>0)<($235>>>0);
  40465. if ($234) {
  40466. $236 = ((($233)) + 1|0);
  40467. HEAP32[$13>>2] = $236;
  40468. $237 = HEAP8[$233>>0]|0;
  40469. $238 = $237&255;
  40470. $241 = $238;
  40471. } else {
  40472. $239 = (___shgetc($0)|0);
  40473. $241 = $239;
  40474. }
  40475. $240 = (($241) + 1)|0;
  40476. $242 = (($4) + ($240)|0);
  40477. $243 = HEAP8[$242>>0]|0;
  40478. $244 = ($243<<24>>24)==(0);
  40479. if ($244) {
  40480. $$4282 = $$3281;$$4309 = $$0293;$$5299 = 0;$312 = 0;
  40481. break L77;
  40482. }
  40483. $245 = $241&255;
  40484. $246 = (($$3281) + 1)|0;
  40485. $247 = (($$0293) + ($$3281)|0);
  40486. HEAP8[$247>>0] = $245;
  40487. $$pre511 = HEAP32[$14>>2]|0;
  40488. $$3281 = $246;$235 = $$pre511;
  40489. }
  40490. }
  40491. }
  40492. } while(0);
  40493. $260 = HEAP32[$14>>2]|0;
  40494. $261 = ($260|0)==(0|0);
  40495. if ($261) {
  40496. $$pre513 = HEAP32[$13>>2]|0;
  40497. $268 = $$pre513;
  40498. } else {
  40499. $262 = HEAP32[$13>>2]|0;
  40500. $263 = ((($262)) + -1|0);
  40501. HEAP32[$13>>2] = $263;
  40502. $264 = $263;
  40503. $268 = $264;
  40504. }
  40505. $265 = HEAP32[$15>>2]|0;
  40506. $266 = HEAP32[$16>>2]|0;
  40507. $267 = (($268) - ($266))|0;
  40508. $269 = (($267) + ($265))|0;
  40509. $270 = ($269|0)==(0);
  40510. if ($270) {
  40511. $$9314$ph = $$4309;$$ph353 = $312;
  40512. label = 139;
  40513. break L6;
  40514. }
  40515. $$not = $150 ^ 1;
  40516. $271 = ($269|0)==($$1267|0);
  40517. $or$cond318 = $271 | $$not;
  40518. if (!($or$cond318)) {
  40519. $$9314$ph = $$4309;$$ph353 = $312;
  40520. label = 139;
  40521. break L6;
  40522. }
  40523. do {
  40524. if ($narrow) {
  40525. if ($182) {
  40526. HEAP32[$$0293>>2] = $$5299;
  40527. break;
  40528. } else {
  40529. HEAP32[$$0293>>2] = $$4309;
  40530. break;
  40531. }
  40532. }
  40533. } while(0);
  40534. if ($150) {
  40535. $$10 = $$9;$$5310 = $$4309;$310 = $312;
  40536. } else {
  40537. $272 = ($$5299|0)==(0|0);
  40538. if (!($272)) {
  40539. $273 = (($$5299) + ($$4282<<2)|0);
  40540. HEAP32[$273>>2] = 0;
  40541. }
  40542. $274 = ($$4309|0)==(0|0);
  40543. if ($274) {
  40544. $$10 = $$9;$$5310 = 0;$310 = $312;
  40545. break L55;
  40546. }
  40547. $275 = (($$4309) + ($$4282)|0);
  40548. HEAP8[$275>>0] = 0;
  40549. $$10 = $$9;$$5310 = $$4309;$310 = $312;
  40550. }
  40551. break;
  40552. }
  40553. case 120: case 88: case 112: {
  40554. $$0272 = 16;
  40555. label = 125;
  40556. break;
  40557. }
  40558. case 111: {
  40559. $$0272 = 8;
  40560. label = 125;
  40561. break;
  40562. }
  40563. case 117: case 100: {
  40564. $$0272 = 10;
  40565. label = 125;
  40566. break;
  40567. }
  40568. case 105: {
  40569. $$0272 = 0;
  40570. label = 125;
  40571. break;
  40572. }
  40573. case 71: case 103: case 70: case 102: case 69: case 101: case 65: case 97: {
  40574. $285 = (+___floatscan($0,$$$0268,0));
  40575. $286 = HEAP32[$15>>2]|0;
  40576. $287 = HEAP32[$13>>2]|0;
  40577. $288 = HEAP32[$16>>2]|0;
  40578. $289 = (($288) - ($287))|0;
  40579. $290 = ($286|0)==($289|0);
  40580. if ($290) {
  40581. $$9314$ph = $$$0305;$$ph353 = $$327;
  40582. label = 139;
  40583. break L6;
  40584. }
  40585. $291 = ($$0293|0)==(0|0);
  40586. if ($291) {
  40587. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40588. } else {
  40589. switch ($$$0268|0) {
  40590. case 0: {
  40591. $292 = $285;
  40592. HEAPF32[$$0293>>2] = $292;
  40593. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40594. break L55;
  40595. break;
  40596. }
  40597. case 1: {
  40598. HEAPF64[$$0293>>3] = $285;
  40599. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40600. break L55;
  40601. break;
  40602. }
  40603. case 2: {
  40604. HEAPF64[$$0293>>3] = $285;
  40605. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40606. break L55;
  40607. break;
  40608. }
  40609. default: {
  40610. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40611. break L55;
  40612. }
  40613. }
  40614. }
  40615. break;
  40616. }
  40617. default: {
  40618. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40619. }
  40620. }
  40621. } while(0);
  40622. do {
  40623. if ((label|0) == 125) {
  40624. label = 0;
  40625. $276 = (___intscan($0,$$0272,0,-1,-1)|0);
  40626. $277 = tempRet0;
  40627. $278 = HEAP32[$15>>2]|0;
  40628. $279 = HEAP32[$13>>2]|0;
  40629. $280 = HEAP32[$16>>2]|0;
  40630. $281 = (($280) - ($279))|0;
  40631. $282 = ($278|0)==($281|0);
  40632. if ($282) {
  40633. $$9314$ph = $$$0305;$$ph353 = $$327;
  40634. label = 139;
  40635. break L6;
  40636. }
  40637. $283 = ($$|0)==(112);
  40638. $or$cond3 = $100 & $283;
  40639. if ($or$cond3) {
  40640. $284 = $276;
  40641. HEAP32[$$0293>>2] = $284;
  40642. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40643. break;
  40644. } else {
  40645. _store_int($$0293,$$$0268,$276,$277);
  40646. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40647. break;
  40648. }
  40649. }
  40650. } while(0);
  40651. $293 = HEAP32[$15>>2]|0;
  40652. $294 = HEAP32[$13>>2]|0;
  40653. $295 = HEAP32[$16>>2]|0;
  40654. $296 = (($293) + ($$1284))|0;
  40655. $297 = (($296) + ($294))|0;
  40656. $298 = (($297) - ($295))|0;
  40657. $299 = $100&1;
  40658. $$0288$ = (($299) + ($$0288425))|0;
  40659. $$11 = $$10;$$1289 = $$0288$;$$2285 = $298;$$6311 = $$5310;$307 = $310;
  40660. break L8;
  40661. }
  40662. } while(0);
  40663. $56 = $53&1;
  40664. $57 = (($$0273429) + ($56)|0);
  40665. ___shlim($0,0);
  40666. $58 = HEAP32[$13>>2]|0;
  40667. $59 = HEAP32[$14>>2]|0;
  40668. $60 = ($58>>>0)<($59>>>0);
  40669. if ($60) {
  40670. $61 = ((($58)) + 1|0);
  40671. HEAP32[$13>>2] = $61;
  40672. $62 = HEAP8[$58>>0]|0;
  40673. $63 = $62&255;
  40674. $68 = $63;
  40675. } else {
  40676. $64 = (___shgetc($0)|0);
  40677. $68 = $64;
  40678. }
  40679. $65 = HEAP8[$57>>0]|0;
  40680. $66 = $65&255;
  40681. $67 = ($68|0)==($66|0);
  40682. if (!($67)) {
  40683. label = 22;
  40684. break L6;
  40685. }
  40686. $75 = (($$0283428) + 1)|0;
  40687. $$11 = $57;$$1289 = $$0288425;$$2285 = $75;$$6311 = $$0305423;$307 = $102;
  40688. } else {
  40689. $$1274 = $$0273429;
  40690. while(1) {
  40691. $27 = ((($$1274)) + 1|0);
  40692. $28 = HEAP8[$27>>0]|0;
  40693. $29 = $28&255;
  40694. $30 = (_isspace($29)|0);
  40695. $31 = ($30|0)==(0);
  40696. if ($31) {
  40697. break;
  40698. } else {
  40699. $$1274 = $27;
  40700. }
  40701. }
  40702. ___shlim($0,0);
  40703. while(1) {
  40704. $32 = HEAP32[$13>>2]|0;
  40705. $33 = HEAP32[$14>>2]|0;
  40706. $34 = ($32>>>0)<($33>>>0);
  40707. if ($34) {
  40708. $35 = ((($32)) + 1|0);
  40709. HEAP32[$13>>2] = $35;
  40710. $36 = HEAP8[$32>>0]|0;
  40711. $37 = $36&255;
  40712. $39 = $37;
  40713. } else {
  40714. $38 = (___shgetc($0)|0);
  40715. $39 = $38;
  40716. }
  40717. $40 = (_isspace($39)|0);
  40718. $41 = ($40|0)==(0);
  40719. if ($41) {
  40720. break;
  40721. }
  40722. }
  40723. $42 = HEAP32[$14>>2]|0;
  40724. $43 = ($42|0)==(0|0);
  40725. if ($43) {
  40726. $$pre = HEAP32[$13>>2]|0;
  40727. $51 = $$pre;
  40728. } else {
  40729. $44 = HEAP32[$13>>2]|0;
  40730. $45 = ((($44)) + -1|0);
  40731. HEAP32[$13>>2] = $45;
  40732. $46 = $45;
  40733. $51 = $46;
  40734. }
  40735. $47 = HEAP32[$15>>2]|0;
  40736. $48 = HEAP32[$16>>2]|0;
  40737. $49 = (($47) + ($$0283428))|0;
  40738. $50 = (($49) + ($51))|0;
  40739. $52 = (($50) - ($48))|0;
  40740. $$11 = $$1274;$$1289 = $$0288425;$$2285 = $52;$$6311 = $$0305423;$307 = $102;
  40741. }
  40742. } while(0);
  40743. $300 = ((($$11)) + 1|0);
  40744. $301 = HEAP8[$300>>0]|0;
  40745. $302 = ($301<<24>>24)==(0);
  40746. if ($302) {
  40747. $$3291 = $$1289;
  40748. break L4;
  40749. } else {
  40750. $$0273429 = $300;$$0283428 = $$2285;$$0288425 = $$1289;$$0305423 = $$6311;$102 = $307;$24 = $301;
  40751. }
  40752. }
  40753. if ((label|0) == 22) {
  40754. $69 = HEAP32[$14>>2]|0;
  40755. $70 = ($69|0)==(0|0);
  40756. if (!($70)) {
  40757. $71 = HEAP32[$13>>2]|0;
  40758. $72 = ((($71)) + -1|0);
  40759. HEAP32[$13>>2] = $72;
  40760. }
  40761. $73 = ($68|0)>(-1);
  40762. $74 = ($$0288425|0)!=(0);
  40763. $or$cond5 = $74 | $73;
  40764. if ($or$cond5) {
  40765. $$3291 = $$0288425;
  40766. break;
  40767. } else {
  40768. $$1271 = 0;$$8313 = $$0305423;$308 = $102;
  40769. label = 138;
  40770. }
  40771. }
  40772. else if ((label|0) == 137) {
  40773. $$328$le441 = $narrow469&1;
  40774. $$old4 = ($$0288425|0)==(0);
  40775. if ($$old4) {
  40776. $$1271 = $$328$le441;$$8313 = $$7312;$308 = $309;
  40777. label = 138;
  40778. } else {
  40779. $$2 = $$328$le441;$$2290 = $$0288425;$$9314 = $$7312;$304 = $309;
  40780. }
  40781. }
  40782. else if ((label|0) == 139) {
  40783. $$328$le439 = $narrow&1;
  40784. $$2 = $$328$le439;$$2290 = $$0288425;$$9314 = $$9314$ph;$304 = $$ph353;
  40785. }
  40786. if ((label|0) == 138) {
  40787. $$2 = $$1271;$$2290 = -1;$$9314 = $$8313;$304 = $308;
  40788. }
  40789. $303 = ($$2|0)==(0);
  40790. if ($303) {
  40791. $$3291 = $$2290;
  40792. } else {
  40793. _free($$9314);
  40794. _free($304);
  40795. $$3291 = $$2290;
  40796. }
  40797. }
  40798. } while(0);
  40799. $305 = ($306|0)==(0);
  40800. if (!($305)) {
  40801. ___unlockfile($0);
  40802. }
  40803. STACKTOP = sp;return ($$3291|0);
  40804. }
  40805. function _arg_n($0,$1) {
  40806. $0 = $0|0;
  40807. $1 = $1|0;
  40808. var $$0 = 0, $10 = 0, $11 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $arglist_current = 0, $arglist_next = 0, $expanded = 0, $expanded1 = 0, $expanded3 = 0, $expanded4 = 0, $expanded5 = 0, $vacopy_currentptr = 0, label = 0;
  40809. var sp = 0;
  40810. sp = STACKTOP;
  40811. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  40812. $2 = sp;
  40813. $vacopy_currentptr = HEAP32[$0>>2]|0;
  40814. HEAP32[$2>>2] = $vacopy_currentptr;
  40815. $$0 = $1;
  40816. while(1) {
  40817. $3 = ($$0>>>0)>(1);
  40818. $arglist_current = HEAP32[$2>>2]|0;
  40819. $4 = $arglist_current;
  40820. $5 = ((0) + 4|0);
  40821. $expanded1 = $5;
  40822. $expanded = (($expanded1) - 1)|0;
  40823. $6 = (($4) + ($expanded))|0;
  40824. $7 = ((0) + 4|0);
  40825. $expanded5 = $7;
  40826. $expanded4 = (($expanded5) - 1)|0;
  40827. $expanded3 = $expanded4 ^ -1;
  40828. $8 = $6 & $expanded3;
  40829. $9 = $8;
  40830. $10 = HEAP32[$9>>2]|0;
  40831. $arglist_next = ((($9)) + 4|0);
  40832. HEAP32[$2>>2] = $arglist_next;
  40833. $11 = (($$0) + -1)|0;
  40834. if ($3) {
  40835. $$0 = $11;
  40836. } else {
  40837. break;
  40838. }
  40839. }
  40840. STACKTOP = sp;return ($10|0);
  40841. }
  40842. function _store_int($0,$1,$2,$3) {
  40843. $0 = $0|0;
  40844. $1 = $1|0;
  40845. $2 = $2|0;
  40846. $3 = $3|0;
  40847. var $10 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  40848. sp = STACKTOP;
  40849. $4 = ($0|0)==(0|0);
  40850. L1: do {
  40851. if (!($4)) {
  40852. switch ($1|0) {
  40853. case -2: {
  40854. $5 = $2&255;
  40855. HEAP8[$0>>0] = $5;
  40856. break L1;
  40857. break;
  40858. }
  40859. case -1: {
  40860. $6 = $2&65535;
  40861. HEAP16[$0>>1] = $6;
  40862. break L1;
  40863. break;
  40864. }
  40865. case 0: {
  40866. HEAP32[$0>>2] = $2;
  40867. break L1;
  40868. break;
  40869. }
  40870. case 1: {
  40871. HEAP32[$0>>2] = $2;
  40872. break L1;
  40873. break;
  40874. }
  40875. case 3: {
  40876. $7 = $0;
  40877. $8 = $7;
  40878. HEAP32[$8>>2] = $2;
  40879. $9 = (($7) + 4)|0;
  40880. $10 = $9;
  40881. HEAP32[$10>>2] = $3;
  40882. break L1;
  40883. break;
  40884. }
  40885. default: {
  40886. break L1;
  40887. }
  40888. }
  40889. }
  40890. } while(0);
  40891. return;
  40892. }
  40893. function _mbsinit($0) {
  40894. $0 = $0|0;
  40895. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  40896. sp = STACKTOP;
  40897. $1 = ($0|0)==(0|0);
  40898. if ($1) {
  40899. $5 = 1;
  40900. } else {
  40901. $2 = HEAP32[$0>>2]|0;
  40902. $3 = ($2|0)==(0);
  40903. $5 = $3;
  40904. }
  40905. $4 = $5&1;
  40906. return ($4|0);
  40907. }
  40908. function ___string_read($0,$1,$2) {
  40909. $0 = $0|0;
  40910. $1 = $1|0;
  40911. $2 = $2|0;
  40912. var $$027 = 0, $$027$ = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  40913. sp = STACKTOP;
  40914. $3 = ((($0)) + 84|0);
  40915. $4 = HEAP32[$3>>2]|0;
  40916. $5 = (($2) + 256)|0;
  40917. $6 = (_memchr($4,0,$5)|0);
  40918. $7 = ($6|0)==(0|0);
  40919. $8 = $6;
  40920. $9 = $4;
  40921. $10 = (($8) - ($9))|0;
  40922. $$027 = $7 ? $5 : $10;
  40923. $11 = ($$027>>>0)<($2>>>0);
  40924. $$027$ = $11 ? $$027 : $2;
  40925. _memcpy(($1|0),($4|0),($$027$|0))|0;
  40926. $12 = (($4) + ($$027$)|0);
  40927. $13 = ((($0)) + 4|0);
  40928. HEAP32[$13>>2] = $12;
  40929. $14 = (($4) + ($$027)|0);
  40930. $15 = ((($0)) + 8|0);
  40931. HEAP32[$15>>2] = $14;
  40932. HEAP32[$3>>2] = $14;
  40933. return ($$027$|0);
  40934. }
  40935. function _fseek($0,$1,$2) {
  40936. $0 = $0|0;
  40937. $1 = $1|0;
  40938. $2 = $2|0;
  40939. var $3 = 0, label = 0, sp = 0;
  40940. sp = STACKTOP;
  40941. $3 = (___fseeko($0,$1,$2)|0);
  40942. return ($3|0);
  40943. }
  40944. function ___fseeko($0,$1,$2) {
  40945. $0 = $0|0;
  40946. $1 = $1|0;
  40947. $2 = $2|0;
  40948. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $phitmp = 0, label = 0, sp = 0;
  40949. sp = STACKTOP;
  40950. $3 = ((($0)) + 76|0);
  40951. $4 = HEAP32[$3>>2]|0;
  40952. $5 = ($4|0)>(-1);
  40953. if ($5) {
  40954. $7 = (___lockfile($0)|0);
  40955. $phitmp = ($7|0)==(0);
  40956. $8 = (___fseeko_unlocked($0,$1,$2)|0);
  40957. if ($phitmp) {
  40958. $9 = $8;
  40959. } else {
  40960. ___unlockfile($0);
  40961. $9 = $8;
  40962. }
  40963. } else {
  40964. $6 = (___fseeko_unlocked($0,$1,$2)|0);
  40965. $9 = $6;
  40966. }
  40967. return ($9|0);
  40968. }
  40969. function ___fseeko_unlocked($0,$1,$2) {
  40970. $0 = $0|0;
  40971. $1 = $1|0;
  40972. $2 = $2|0;
  40973. 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;
  40974. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  40975. sp = STACKTOP;
  40976. $3 = ($2|0)==(1);
  40977. if ($3) {
  40978. $4 = ((($0)) + 8|0);
  40979. $5 = HEAP32[$4>>2]|0;
  40980. $6 = ((($0)) + 4|0);
  40981. $7 = HEAP32[$6>>2]|0;
  40982. $8 = (($1) - ($5))|0;
  40983. $9 = (($8) + ($7))|0;
  40984. $$019 = $9;
  40985. } else {
  40986. $$019 = $1;
  40987. }
  40988. $10 = ((($0)) + 20|0);
  40989. $11 = HEAP32[$10>>2]|0;
  40990. $12 = ((($0)) + 28|0);
  40991. $13 = HEAP32[$12>>2]|0;
  40992. $14 = ($11>>>0)>($13>>>0);
  40993. if ($14) {
  40994. $15 = ((($0)) + 36|0);
  40995. $16 = HEAP32[$15>>2]|0;
  40996. (FUNCTION_TABLE_iiii[$16 & 15]($0,0,0)|0);
  40997. $17 = HEAP32[$10>>2]|0;
  40998. $18 = ($17|0)==(0|0);
  40999. if ($18) {
  41000. $$0 = -1;
  41001. } else {
  41002. label = 5;
  41003. }
  41004. } else {
  41005. label = 5;
  41006. }
  41007. if ((label|0) == 5) {
  41008. $19 = ((($0)) + 16|0);
  41009. HEAP32[$19>>2] = 0;
  41010. HEAP32[$12>>2] = 0;
  41011. HEAP32[$10>>2] = 0;
  41012. $20 = ((($0)) + 40|0);
  41013. $21 = HEAP32[$20>>2]|0;
  41014. $22 = (FUNCTION_TABLE_iiii[$21 & 15]($0,$$019,$2)|0);
  41015. $23 = ($22|0)<(0);
  41016. if ($23) {
  41017. $$0 = -1;
  41018. } else {
  41019. $24 = ((($0)) + 8|0);
  41020. HEAP32[$24>>2] = 0;
  41021. $25 = ((($0)) + 4|0);
  41022. HEAP32[$25>>2] = 0;
  41023. $26 = HEAP32[$0>>2]|0;
  41024. $27 = $26 & -17;
  41025. HEAP32[$0>>2] = $27;
  41026. $$0 = 0;
  41027. }
  41028. }
  41029. return ($$0|0);
  41030. }
  41031. function _strstr($0,$1) {
  41032. $0 = $0|0;
  41033. $1 = $1|0;
  41034. 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;
  41035. 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;
  41036. sp = STACKTOP;
  41037. $2 = HEAP8[$1>>0]|0;
  41038. $3 = ($2<<24>>24)==(0);
  41039. do {
  41040. if ($3) {
  41041. $$0 = $0;
  41042. } else {
  41043. $4 = $2 << 24 >> 24;
  41044. $5 = (_strchr($0,$4)|0);
  41045. $6 = ($5|0)==(0|0);
  41046. if ($6) {
  41047. $$0 = 0;
  41048. } else {
  41049. $7 = ((($1)) + 1|0);
  41050. $8 = HEAP8[$7>>0]|0;
  41051. $9 = ($8<<24>>24)==(0);
  41052. if ($9) {
  41053. $$0 = $5;
  41054. } else {
  41055. $10 = ((($5)) + 1|0);
  41056. $11 = HEAP8[$10>>0]|0;
  41057. $12 = ($11<<24>>24)==(0);
  41058. if ($12) {
  41059. $$0 = 0;
  41060. } else {
  41061. $13 = ((($1)) + 2|0);
  41062. $14 = HEAP8[$13>>0]|0;
  41063. $15 = ($14<<24>>24)==(0);
  41064. if ($15) {
  41065. $16 = (_twobyte_strstr($5,$1)|0);
  41066. $$0 = $16;
  41067. break;
  41068. }
  41069. $17 = ((($5)) + 2|0);
  41070. $18 = HEAP8[$17>>0]|0;
  41071. $19 = ($18<<24>>24)==(0);
  41072. if ($19) {
  41073. $$0 = 0;
  41074. } else {
  41075. $20 = ((($1)) + 3|0);
  41076. $21 = HEAP8[$20>>0]|0;
  41077. $22 = ($21<<24>>24)==(0);
  41078. if ($22) {
  41079. $23 = (_threebyte_strstr($5,$1)|0);
  41080. $$0 = $23;
  41081. break;
  41082. }
  41083. $24 = ((($5)) + 3|0);
  41084. $25 = HEAP8[$24>>0]|0;
  41085. $26 = ($25<<24>>24)==(0);
  41086. if ($26) {
  41087. $$0 = 0;
  41088. } else {
  41089. $27 = ((($1)) + 4|0);
  41090. $28 = HEAP8[$27>>0]|0;
  41091. $29 = ($28<<24>>24)==(0);
  41092. if ($29) {
  41093. $30 = (_fourbyte_strstr($5,$1)|0);
  41094. $$0 = $30;
  41095. break;
  41096. } else {
  41097. $31 = (_twoway_strstr($5,$1)|0);
  41098. $$0 = $31;
  41099. break;
  41100. }
  41101. }
  41102. }
  41103. }
  41104. }
  41105. }
  41106. }
  41107. } while(0);
  41108. return ($$0|0);
  41109. }
  41110. function _twobyte_strstr($0,$1) {
  41111. $0 = $0|0;
  41112. $1 = $1|0;
  41113. 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;
  41114. var label = 0, sp = 0;
  41115. sp = STACKTOP;
  41116. $2 = HEAP8[$1>>0]|0;
  41117. $3 = $2&255;
  41118. $4 = $3 << 8;
  41119. $5 = ((($1)) + 1|0);
  41120. $6 = HEAP8[$5>>0]|0;
  41121. $7 = $6&255;
  41122. $8 = $4 | $7;
  41123. $9 = HEAP8[$0>>0]|0;
  41124. $10 = $9&255;
  41125. $$sink$in = $10;$$sink17$sink = $0;
  41126. while(1) {
  41127. $11 = ((($$sink17$sink)) + 1|0);
  41128. $12 = HEAP8[$11>>0]|0;
  41129. $13 = ($12<<24>>24)==(0);
  41130. if ($13) {
  41131. $$lcssa = 0;
  41132. break;
  41133. }
  41134. $$sink = $$sink$in << 8;
  41135. $14 = $12&255;
  41136. $$sink$masked = $$sink & 65280;
  41137. $15 = $14 | $$sink$masked;
  41138. $16 = ($15|0)==($8|0);
  41139. if ($16) {
  41140. $$lcssa = $$sink17$sink;
  41141. break;
  41142. } else {
  41143. $$sink$in = $15;$$sink17$sink = $11;
  41144. }
  41145. }
  41146. return ($$lcssa|0);
  41147. }
  41148. function _threebyte_strstr($0,$1) {
  41149. $0 = $0|0;
  41150. $1 = $1|0;
  41151. 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;
  41152. 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;
  41153. var $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond18 = 0, label = 0, sp = 0;
  41154. sp = STACKTOP;
  41155. $2 = HEAP8[$1>>0]|0;
  41156. $3 = $2&255;
  41157. $4 = $3 << 24;
  41158. $5 = ((($1)) + 1|0);
  41159. $6 = HEAP8[$5>>0]|0;
  41160. $7 = $6&255;
  41161. $8 = $7 << 16;
  41162. $9 = $8 | $4;
  41163. $10 = ((($1)) + 2|0);
  41164. $11 = HEAP8[$10>>0]|0;
  41165. $12 = $11&255;
  41166. $13 = $12 << 8;
  41167. $14 = $9 | $13;
  41168. $15 = HEAP8[$0>>0]|0;
  41169. $16 = $15&255;
  41170. $17 = $16 << 24;
  41171. $18 = ((($0)) + 1|0);
  41172. $19 = HEAP8[$18>>0]|0;
  41173. $20 = $19&255;
  41174. $21 = $20 << 16;
  41175. $22 = $21 | $17;
  41176. $23 = ((($0)) + 2|0);
  41177. $24 = HEAP8[$23>>0]|0;
  41178. $25 = $24&255;
  41179. $26 = $25 << 8;
  41180. $27 = $22 | $26;
  41181. $28 = ($24<<24>>24)!=(0);
  41182. $$not17 = $28 ^ 1;
  41183. $29 = ($27|0)==($14|0);
  41184. $or$cond18 = $29 | $$not17;
  41185. if ($or$cond18) {
  41186. $$016$lcssa = $23;$$lcssa = $28;
  41187. } else {
  41188. $$01619 = $23;$$020 = $27;
  41189. while(1) {
  41190. $30 = ((($$01619)) + 1|0);
  41191. $31 = HEAP8[$30>>0]|0;
  41192. $32 = $31&255;
  41193. $33 = $32 | $$020;
  41194. $34 = $33 << 8;
  41195. $35 = ($31<<24>>24)!=(0);
  41196. $$not = $35 ^ 1;
  41197. $36 = ($34|0)==($14|0);
  41198. $or$cond = $36 | $$not;
  41199. if ($or$cond) {
  41200. $$016$lcssa = $30;$$lcssa = $35;
  41201. break;
  41202. } else {
  41203. $$01619 = $30;$$020 = $34;
  41204. }
  41205. }
  41206. }
  41207. $37 = ((($$016$lcssa)) + -2|0);
  41208. $38 = $$lcssa ? $37 : 0;
  41209. return ($38|0);
  41210. }
  41211. function _fourbyte_strstr($0,$1) {
  41212. $0 = $0|0;
  41213. $1 = $1|0;
  41214. 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;
  41215. 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;
  41216. 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;
  41217. sp = STACKTOP;
  41218. $2 = HEAP8[$1>>0]|0;
  41219. $3 = $2&255;
  41220. $4 = $3 << 24;
  41221. $5 = ((($1)) + 1|0);
  41222. $6 = HEAP8[$5>>0]|0;
  41223. $7 = $6&255;
  41224. $8 = $7 << 16;
  41225. $9 = $8 | $4;
  41226. $10 = ((($1)) + 2|0);
  41227. $11 = HEAP8[$10>>0]|0;
  41228. $12 = $11&255;
  41229. $13 = $12 << 8;
  41230. $14 = $9 | $13;
  41231. $15 = ((($1)) + 3|0);
  41232. $16 = HEAP8[$15>>0]|0;
  41233. $17 = $16&255;
  41234. $18 = $14 | $17;
  41235. $19 = HEAP8[$0>>0]|0;
  41236. $20 = $19&255;
  41237. $21 = $20 << 24;
  41238. $22 = ((($0)) + 1|0);
  41239. $23 = HEAP8[$22>>0]|0;
  41240. $24 = $23&255;
  41241. $25 = $24 << 16;
  41242. $26 = $25 | $21;
  41243. $27 = ((($0)) + 2|0);
  41244. $28 = HEAP8[$27>>0]|0;
  41245. $29 = $28&255;
  41246. $30 = $29 << 8;
  41247. $31 = $26 | $30;
  41248. $32 = ((($0)) + 3|0);
  41249. $33 = HEAP8[$32>>0]|0;
  41250. $34 = $33&255;
  41251. $35 = $34 | $31;
  41252. $36 = ($33<<24>>24)!=(0);
  41253. $$not22 = $36 ^ 1;
  41254. $37 = ($35|0)==($18|0);
  41255. $or$cond23 = $37 | $$not22;
  41256. if ($or$cond23) {
  41257. $$lcssa = $36;$$sink21$lcssa = $32;
  41258. } else {
  41259. $$sink2124 = $32;$39 = $35;
  41260. while(1) {
  41261. $38 = $39 << 8;
  41262. $40 = ((($$sink2124)) + 1|0);
  41263. $41 = HEAP8[$40>>0]|0;
  41264. $42 = $41&255;
  41265. $43 = $42 | $38;
  41266. $44 = ($41<<24>>24)!=(0);
  41267. $$not = $44 ^ 1;
  41268. $45 = ($43|0)==($18|0);
  41269. $or$cond = $45 | $$not;
  41270. if ($or$cond) {
  41271. $$lcssa = $44;$$sink21$lcssa = $40;
  41272. break;
  41273. } else {
  41274. $$sink2124 = $40;$39 = $43;
  41275. }
  41276. }
  41277. }
  41278. $46 = ((($$sink21$lcssa)) + -3|0);
  41279. $47 = $$lcssa ? $46 : 0;
  41280. return ($47|0);
  41281. }
  41282. function _twoway_strstr($0,$1) {
  41283. $0 = $0|0;
  41284. $1 = $1|0;
  41285. 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;
  41286. 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;
  41287. 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;
  41288. 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;
  41289. 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;
  41290. 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;
  41291. 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;
  41292. 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;
  41293. 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;
  41294. sp = STACKTOP;
  41295. STACKTOP = STACKTOP + 1056|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1056|0);
  41296. $2 = sp + 1024|0;
  41297. $3 = sp;
  41298. ;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;
  41299. $4 = HEAP8[$1>>0]|0;
  41300. $cond265 = ($4<<24>>24)==(0);
  41301. L1: do {
  41302. if ($cond265) {
  41303. $$0175$ph$ph$lcssa220323 = 1;$$0185$ph$lcssa322 = -1;$$0187$lcssa320321 = 0;$$1176$ph$ph$lcssa211 = 1;$$1186$ph$lcssa = -1;
  41304. label = 27;
  41305. } else {
  41306. $5 = $4&255;
  41307. $$0187266 = 0;$12 = $4;$20 = $5;
  41308. while(1) {
  41309. $8 = (($0) + ($$0187266)|0);
  41310. $9 = HEAP8[$8>>0]|0;
  41311. $10 = ($9<<24>>24)==(0);
  41312. if ($10) {
  41313. $$3 = 0;
  41314. break L1;
  41315. }
  41316. $11 = $12 & 31;
  41317. $13 = $11&255;
  41318. $14 = 1 << $13;
  41319. $div188 = ($12&255) >>> 5;
  41320. $15 = $div188&255;
  41321. $16 = (($2) + ($15<<2)|0);
  41322. $17 = HEAP32[$16>>2]|0;
  41323. $18 = $17 | $14;
  41324. HEAP32[$16>>2] = $18;
  41325. $7 = (($$0187266) + 1)|0;
  41326. $19 = (($3) + ($20<<2)|0);
  41327. HEAP32[$19>>2] = $7;
  41328. $21 = (($1) + ($7)|0);
  41329. $22 = HEAP8[$21>>0]|0;
  41330. $23 = $22&255;
  41331. $cond = ($22<<24>>24)==(0);
  41332. if ($cond) {
  41333. break;
  41334. } else {
  41335. $$0187266 = $7;$12 = $22;$20 = $23;
  41336. }
  41337. }
  41338. $6 = ($7>>>0)>(1);
  41339. if ($6) {
  41340. $$0183$ph262 = 0;$$0185$ph261 = -1;$129 = 1;
  41341. L7: while(1) {
  41342. $$0175$ph$ph256 = 1;$$0183$ph200$ph255 = $$0183$ph262;$132 = $129;
  41343. while(1) {
  41344. $$0183$ph200250 = $$0183$ph200$ph255;$131 = $132;
  41345. L11: while(1) {
  41346. $$0179244 = 1;$31 = $131;
  41347. while(1) {
  41348. $27 = (($$0179244) + ($$0185$ph261))|0;
  41349. $28 = (($1) + ($27)|0);
  41350. $29 = HEAP8[$28>>0]|0;
  41351. $30 = (($1) + ($31)|0);
  41352. $32 = HEAP8[$30>>0]|0;
  41353. $33 = ($29<<24>>24)==($32<<24>>24);
  41354. if (!($33)) {
  41355. break L11;
  41356. }
  41357. $34 = ($$0179244|0)==($$0175$ph$ph256|0);
  41358. $25 = (($$0179244) + 1)|0;
  41359. if ($34) {
  41360. break;
  41361. }
  41362. $24 = (($25) + ($$0183$ph200250))|0;
  41363. $26 = ($24>>>0)<($7>>>0);
  41364. if ($26) {
  41365. $$0179244 = $25;$31 = $24;
  41366. } else {
  41367. $$0175$ph$ph$lcssa220 = $$0175$ph$ph256;$$0185$ph$lcssa = $$0185$ph261;
  41368. break L7;
  41369. }
  41370. }
  41371. $35 = (($$0175$ph$ph256) + ($$0183$ph200250))|0;
  41372. $36 = (($35) + 1)|0;
  41373. $37 = ($36>>>0)<($7>>>0);
  41374. if ($37) {
  41375. $$0183$ph200250 = $35;$131 = $36;
  41376. } else {
  41377. $$0175$ph$ph$lcssa220 = $$0175$ph$ph256;$$0185$ph$lcssa = $$0185$ph261;
  41378. break L7;
  41379. }
  41380. }
  41381. $38 = ($29&255)>($32&255);
  41382. $39 = (($31) - ($$0185$ph261))|0;
  41383. if (!($38)) {
  41384. break;
  41385. }
  41386. $43 = (($31) + 1)|0;
  41387. $44 = ($43>>>0)<($7>>>0);
  41388. if ($44) {
  41389. $$0175$ph$ph256 = $39;$$0183$ph200$ph255 = $31;$132 = $43;
  41390. } else {
  41391. $$0175$ph$ph$lcssa220 = $39;$$0185$ph$lcssa = $$0185$ph261;
  41392. break L7;
  41393. }
  41394. }
  41395. $40 = (($$0183$ph200250) + 1)|0;
  41396. $41 = (($$0183$ph200250) + 2)|0;
  41397. $42 = ($41>>>0)<($7>>>0);
  41398. if ($42) {
  41399. $$0183$ph262 = $40;$$0185$ph261 = $$0183$ph200250;$129 = $41;
  41400. } else {
  41401. $$0175$ph$ph$lcssa220 = 1;$$0185$ph$lcssa = $$0183$ph200250;
  41402. break;
  41403. }
  41404. }
  41405. if ($6) {
  41406. $$1184$ph241 = 0;$$1186$ph240 = -1;$130 = 1;
  41407. while(1) {
  41408. $$1176$ph$ph235 = 1;$$1184$ph196$ph234 = $$1184$ph241;$134 = $130;
  41409. while(1) {
  41410. $$1184$ph196229 = $$1184$ph196$ph234;$133 = $134;
  41411. L26: while(1) {
  41412. $$1180224 = 1;$52 = $133;
  41413. while(1) {
  41414. $48 = (($$1180224) + ($$1186$ph240))|0;
  41415. $49 = (($1) + ($48)|0);
  41416. $50 = HEAP8[$49>>0]|0;
  41417. $51 = (($1) + ($52)|0);
  41418. $53 = HEAP8[$51>>0]|0;
  41419. $54 = ($50<<24>>24)==($53<<24>>24);
  41420. if (!($54)) {
  41421. break L26;
  41422. }
  41423. $55 = ($$1180224|0)==($$1176$ph$ph235|0);
  41424. $46 = (($$1180224) + 1)|0;
  41425. if ($55) {
  41426. break;
  41427. }
  41428. $45 = (($46) + ($$1184$ph196229))|0;
  41429. $47 = ($45>>>0)<($7>>>0);
  41430. if ($47) {
  41431. $$1180224 = $46;$52 = $45;
  41432. } else {
  41433. $$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;
  41434. label = 27;
  41435. break L1;
  41436. }
  41437. }
  41438. $56 = (($$1176$ph$ph235) + ($$1184$ph196229))|0;
  41439. $57 = (($56) + 1)|0;
  41440. $58 = ($57>>>0)<($7>>>0);
  41441. if ($58) {
  41442. $$1184$ph196229 = $56;$133 = $57;
  41443. } else {
  41444. $$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;
  41445. label = 27;
  41446. break L1;
  41447. }
  41448. }
  41449. $59 = ($50&255)<($53&255);
  41450. $60 = (($52) - ($$1186$ph240))|0;
  41451. if (!($59)) {
  41452. break;
  41453. }
  41454. $64 = (($52) + 1)|0;
  41455. $65 = ($64>>>0)<($7>>>0);
  41456. if ($65) {
  41457. $$1176$ph$ph235 = $60;$$1184$ph196$ph234 = $52;$134 = $64;
  41458. } else {
  41459. $$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;
  41460. label = 27;
  41461. break L1;
  41462. }
  41463. }
  41464. $61 = (($$1184$ph196229) + 1)|0;
  41465. $62 = (($$1184$ph196229) + 2)|0;
  41466. $63 = ($62>>>0)<($7>>>0);
  41467. if ($63) {
  41468. $$1184$ph241 = $61;$$1186$ph240 = $$1184$ph196229;$130 = $62;
  41469. } else {
  41470. $$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;
  41471. label = 27;
  41472. break;
  41473. }
  41474. }
  41475. } else {
  41476. $$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;
  41477. label = 27;
  41478. }
  41479. } else {
  41480. $$0175$ph$ph$lcssa220323 = 1;$$0185$ph$lcssa322 = -1;$$0187$lcssa320321 = $7;$$1176$ph$ph$lcssa211 = 1;$$1186$ph$lcssa = -1;
  41481. label = 27;
  41482. }
  41483. }
  41484. } while(0);
  41485. L36: do {
  41486. if ((label|0) == 27) {
  41487. $66 = (($$1186$ph$lcssa) + 1)|0;
  41488. $67 = (($$0185$ph$lcssa322) + 1)|0;
  41489. $68 = ($66>>>0)>($67>>>0);
  41490. $$1176$$0175 = $68 ? $$1176$ph$ph$lcssa211 : $$0175$ph$ph$lcssa220323;
  41491. $$1186$$0185 = $68 ? $$1186$ph$lcssa : $$0185$ph$lcssa322;
  41492. $69 = (($1) + ($$1176$$0175)|0);
  41493. $70 = (($$1186$$0185) + 1)|0;
  41494. $71 = (_memcmp($1,$69,$70)|0);
  41495. $72 = ($71|0)==(0);
  41496. if ($72) {
  41497. $77 = (($$0187$lcssa320321) - ($$1176$$0175))|0;
  41498. $$0168 = $77;$$3178 = $$1176$$0175;
  41499. } else {
  41500. $73 = (($$0187$lcssa320321) - ($$1186$$0185))|0;
  41501. $74 = (($73) + -1)|0;
  41502. $75 = ($$1186$$0185>>>0)>($74>>>0);
  41503. $$1186$$0185$ = $75 ? $$1186$$0185 : $74;
  41504. $76 = (($$1186$$0185$) + 1)|0;
  41505. $$0168 = 0;$$3178 = $76;
  41506. }
  41507. $78 = $$0187$lcssa320321 | 63;
  41508. $79 = (($$0187$lcssa320321) + -1)|0;
  41509. $80 = ($$0168|0)!=(0);
  41510. $81 = (($$0187$lcssa320321) - ($$3178))|0;
  41511. $$0166 = $0;$$0169 = 0;$$0170 = $0;
  41512. while(1) {
  41513. $82 = $$0170;
  41514. $83 = $$0166;
  41515. $84 = (($82) - ($83))|0;
  41516. $85 = ($84>>>0)<($$0187$lcssa320321>>>0);
  41517. do {
  41518. if ($85) {
  41519. $86 = (_memchr($$0170,0,$78)|0);
  41520. $87 = ($86|0)==(0|0);
  41521. if ($87) {
  41522. $91 = (($$0170) + ($78)|0);
  41523. $$3173 = $91;
  41524. break;
  41525. } else {
  41526. $88 = $86;
  41527. $89 = (($88) - ($83))|0;
  41528. $90 = ($89>>>0)<($$0187$lcssa320321>>>0);
  41529. if ($90) {
  41530. $$3 = 0;
  41531. break L36;
  41532. } else {
  41533. $$3173 = $86;
  41534. break;
  41535. }
  41536. }
  41537. } else {
  41538. $$3173 = $$0170;
  41539. }
  41540. } while(0);
  41541. $92 = (($$0166) + ($79)|0);
  41542. $93 = HEAP8[$92>>0]|0;
  41543. $div = ($93&255) >>> 5;
  41544. $94 = $div&255;
  41545. $95 = (($2) + ($94<<2)|0);
  41546. $96 = HEAP32[$95>>2]|0;
  41547. $97 = $93 & 31;
  41548. $98 = $97&255;
  41549. $99 = 1 << $98;
  41550. $100 = $99 & $96;
  41551. $101 = ($100|0)==(0);
  41552. L50: do {
  41553. if ($101) {
  41554. $$0169$be = 0;$$2181$sink = $$0187$lcssa320321;
  41555. } else {
  41556. $102 = $93&255;
  41557. $103 = (($3) + ($102<<2)|0);
  41558. $104 = HEAP32[$103>>2]|0;
  41559. $105 = (($$0187$lcssa320321) - ($104))|0;
  41560. $106 = ($105|0)==(0);
  41561. if (!($106)) {
  41562. $107 = ($$0169|0)!=(0);
  41563. $or$cond = $80 & $107;
  41564. $108 = ($105>>>0)<($$3178>>>0);
  41565. $or$cond190 = $or$cond & $108;
  41566. $$2181 = $or$cond190 ? $81 : $105;
  41567. $$0169$be = 0;$$2181$sink = $$2181;
  41568. break;
  41569. }
  41570. $110 = ($70>>>0)>($$0169>>>0);
  41571. $111 = $110 ? $70 : $$0169;
  41572. $112 = (($1) + ($111)|0);
  41573. $113 = HEAP8[$112>>0]|0;
  41574. $cond191222 = ($113<<24>>24)==(0);
  41575. L55: do {
  41576. if ($cond191222) {
  41577. $$4 = $70;
  41578. } else {
  41579. $$3182223 = $111;$117 = $113;
  41580. while(1) {
  41581. $114 = (($$0166) + ($$3182223)|0);
  41582. $115 = HEAP8[$114>>0]|0;
  41583. $116 = ($117<<24>>24)==($115<<24>>24);
  41584. if (!($116)) {
  41585. break;
  41586. }
  41587. $118 = (($$3182223) + 1)|0;
  41588. $119 = (($1) + ($118)|0);
  41589. $120 = HEAP8[$119>>0]|0;
  41590. $cond191 = ($120<<24>>24)==(0);
  41591. if ($cond191) {
  41592. $$4 = $70;
  41593. break L55;
  41594. } else {
  41595. $$3182223 = $118;$117 = $120;
  41596. }
  41597. }
  41598. $121 = (($$3182223) - ($$1186$$0185))|0;
  41599. $$0169$be = 0;$$2181$sink = $121;
  41600. break L50;
  41601. }
  41602. } while(0);
  41603. while(1) {
  41604. $122 = ($$4>>>0)>($$0169>>>0);
  41605. if (!($122)) {
  41606. $$3 = $$0166;
  41607. break L36;
  41608. }
  41609. $123 = (($$4) + -1)|0;
  41610. $124 = (($1) + ($123)|0);
  41611. $125 = HEAP8[$124>>0]|0;
  41612. $126 = (($$0166) + ($123)|0);
  41613. $127 = HEAP8[$126>>0]|0;
  41614. $128 = ($125<<24>>24)==($127<<24>>24);
  41615. if ($128) {
  41616. $$4 = $123;
  41617. } else {
  41618. $$0169$be = $$0168;$$2181$sink = $$3178;
  41619. break;
  41620. }
  41621. }
  41622. }
  41623. } while(0);
  41624. $109 = (($$0166) + ($$2181$sink)|0);
  41625. $$0166 = $109;$$0169 = $$0169$be;$$0170 = $$3173;
  41626. }
  41627. }
  41628. } while(0);
  41629. STACKTOP = sp;return ($$3|0);
  41630. }
  41631. function _strrchr($0,$1) {
  41632. $0 = $0|0;
  41633. $1 = $1|0;
  41634. var $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  41635. sp = STACKTOP;
  41636. $2 = (_strlen($0)|0);
  41637. $3 = (($2) + 1)|0;
  41638. $4 = (___memrchr($0,$1,$3)|0);
  41639. return ($4|0);
  41640. }
  41641. function ___memrchr($0,$1,$2) {
  41642. $0 = $0|0;
  41643. $1 = $1|0;
  41644. $2 = $2|0;
  41645. var $$0 = 0, $$09 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  41646. sp = STACKTOP;
  41647. $3 = $1&255;
  41648. $$09 = $2;
  41649. while(1) {
  41650. $4 = (($$09) + -1)|0;
  41651. $5 = ($$09|0)==(0);
  41652. if ($5) {
  41653. $$0 = 0;
  41654. break;
  41655. }
  41656. $6 = (($0) + ($4)|0);
  41657. $7 = HEAP8[$6>>0]|0;
  41658. $8 = ($7<<24>>24)==($3<<24>>24);
  41659. if ($8) {
  41660. $$0 = $6;
  41661. break;
  41662. } else {
  41663. $$09 = $4;
  41664. }
  41665. }
  41666. return ($$0|0);
  41667. }
  41668. function _strspn($0,$1) {
  41669. $0 = $0|0;
  41670. $1 = $1|0;
  41671. 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;
  41672. 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;
  41673. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $div = 0, $div21 = 0, label = 0, sp = 0;
  41674. sp = STACKTOP;
  41675. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  41676. $2 = sp;
  41677. ;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;
  41678. $3 = HEAP8[$1>>0]|0;
  41679. $4 = ($3<<24>>24)==(0);
  41680. do {
  41681. if ($4) {
  41682. $$0 = 0;
  41683. } else {
  41684. $5 = ((($1)) + 1|0);
  41685. $6 = HEAP8[$5>>0]|0;
  41686. $7 = ($6<<24>>24)==(0);
  41687. if ($7) {
  41688. $$020 = $0;
  41689. while(1) {
  41690. $8 = HEAP8[$$020>>0]|0;
  41691. $9 = ($8<<24>>24)==($3<<24>>24);
  41692. $10 = ((($$020)) + 1|0);
  41693. if ($9) {
  41694. $$020 = $10;
  41695. } else {
  41696. break;
  41697. }
  41698. }
  41699. $11 = $$020;
  41700. $12 = $0;
  41701. $13 = (($11) - ($12))|0;
  41702. $$0 = $13;
  41703. break;
  41704. } else {
  41705. $$01925 = $1;$17 = $3;
  41706. }
  41707. while(1) {
  41708. $16 = $17 & 31;
  41709. $18 = $16&255;
  41710. $19 = 1 << $18;
  41711. $div21 = ($17&255) >>> 5;
  41712. $20 = $div21&255;
  41713. $21 = (($2) + ($20<<2)|0);
  41714. $22 = HEAP32[$21>>2]|0;
  41715. $23 = $22 | $19;
  41716. HEAP32[$21>>2] = $23;
  41717. $24 = ((($$01925)) + 1|0);
  41718. $25 = HEAP8[$24>>0]|0;
  41719. $26 = ($25<<24>>24)==(0);
  41720. if ($26) {
  41721. break;
  41722. } else {
  41723. $$01925 = $24;$17 = $25;
  41724. }
  41725. }
  41726. $14 = HEAP8[$0>>0]|0;
  41727. $15 = ($14<<24>>24)==(0);
  41728. L10: do {
  41729. if ($15) {
  41730. $$1$lcssa = $0;
  41731. } else {
  41732. $$123 = $0;$27 = $14;
  41733. while(1) {
  41734. $div = ($27&255) >>> 5;
  41735. $28 = $div&255;
  41736. $29 = (($2) + ($28<<2)|0);
  41737. $30 = HEAP32[$29>>2]|0;
  41738. $31 = $27 & 31;
  41739. $32 = $31&255;
  41740. $33 = 1 << $32;
  41741. $34 = $30 & $33;
  41742. $35 = ($34|0)==(0);
  41743. if ($35) {
  41744. $$1$lcssa = $$123;
  41745. break L10;
  41746. }
  41747. $36 = ((($$123)) + 1|0);
  41748. $37 = HEAP8[$36>>0]|0;
  41749. $38 = ($37<<24>>24)==(0);
  41750. if ($38) {
  41751. $$1$lcssa = $36;
  41752. break;
  41753. } else {
  41754. $$123 = $36;$27 = $37;
  41755. }
  41756. }
  41757. }
  41758. } while(0);
  41759. $39 = $$1$lcssa;
  41760. $40 = $0;
  41761. $41 = (($39) - ($40))|0;
  41762. $$0 = $41;
  41763. }
  41764. } while(0);
  41765. STACKTOP = sp;return ($$0|0);
  41766. }
  41767. function _srand($0) {
  41768. $0 = $0|0;
  41769. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  41770. sp = STACKTOP;
  41771. $1 = (($0) + -1)|0;
  41772. $2 = 19416;
  41773. $3 = $2;
  41774. HEAP32[$3>>2] = $1;
  41775. $4 = (($2) + 4)|0;
  41776. $5 = $4;
  41777. HEAP32[$5>>2] = 0;
  41778. return;
  41779. }
  41780. function _fread($0,$1,$2,$3) {
  41781. $0 = $0|0;
  41782. $1 = $1|0;
  41783. $2 = $2|0;
  41784. $3 = $3|0;
  41785. 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;
  41786. 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;
  41787. var $42 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  41788. sp = STACKTOP;
  41789. $4 = Math_imul($2, $1)|0;
  41790. $5 = ($1|0)==(0);
  41791. $$ = $5 ? 0 : $2;
  41792. $6 = ((($3)) + 76|0);
  41793. $7 = HEAP32[$6>>2]|0;
  41794. $8 = ($7|0)>(-1);
  41795. if ($8) {
  41796. $9 = (___lockfile($3)|0);
  41797. $36 = $9;
  41798. } else {
  41799. $36 = 0;
  41800. }
  41801. $10 = ((($3)) + 74|0);
  41802. $11 = HEAP8[$10>>0]|0;
  41803. $12 = $11 << 24 >> 24;
  41804. $13 = (($12) + 255)|0;
  41805. $14 = $13 | $12;
  41806. $15 = $14&255;
  41807. HEAP8[$10>>0] = $15;
  41808. $16 = ((($3)) + 8|0);
  41809. $17 = HEAP32[$16>>2]|0;
  41810. $18 = ((($3)) + 4|0);
  41811. $19 = HEAP32[$18>>2]|0;
  41812. $20 = $19;
  41813. $21 = (($17) - ($20))|0;
  41814. $22 = ($21|0)>(0);
  41815. $23 = ($21>>>0)<($4>>>0);
  41816. $$57 = $23 ? $21 : $4;
  41817. if ($22) {
  41818. $24 = (($4) - ($$57))|0;
  41819. $25 = (($0) + ($$57)|0);
  41820. _memcpy(($0|0),($19|0),($$57|0))|0;
  41821. $26 = (($19) + ($$57)|0);
  41822. HEAP32[$18>>2] = $26;
  41823. $$054$ph = $24;$$056$ph = $25;
  41824. } else {
  41825. $$054$ph = $4;$$056$ph = $0;
  41826. }
  41827. $27 = ($$054$ph|0)==(0);
  41828. L7: do {
  41829. if ($27) {
  41830. label = 13;
  41831. } else {
  41832. $28 = ((($3)) + 32|0);
  41833. $$05460 = $$054$ph;$$05659 = $$056$ph;
  41834. while(1) {
  41835. $29 = (___toread($3)|0);
  41836. $30 = ($29|0)==(0);
  41837. if (!($30)) {
  41838. break;
  41839. }
  41840. $31 = HEAP32[$28>>2]|0;
  41841. $32 = (FUNCTION_TABLE_iiii[$31 & 15]($3,$$05659,$$05460)|0);
  41842. $33 = (($32) + 1)|0;
  41843. $34 = ($33>>>0)<(2);
  41844. if ($34) {
  41845. break;
  41846. }
  41847. $39 = (($$05460) - ($32))|0;
  41848. $40 = (($$05659) + ($32)|0);
  41849. $41 = ($39|0)==(0);
  41850. if ($41) {
  41851. label = 13;
  41852. break L7;
  41853. } else {
  41854. $$05460 = $39;$$05659 = $40;
  41855. }
  41856. }
  41857. $35 = ($36|0)==(0);
  41858. if (!($35)) {
  41859. ___unlockfile($3);
  41860. }
  41861. $37 = (($4) - ($$05460))|0;
  41862. $38 = (($37>>>0) / ($1>>>0))&-1;
  41863. $$0 = $38;
  41864. }
  41865. } while(0);
  41866. if ((label|0) == 13) {
  41867. $42 = ($36|0)==(0);
  41868. if ($42) {
  41869. $$0 = $$;
  41870. } else {
  41871. ___unlockfile($3);
  41872. $$0 = $$;
  41873. }
  41874. }
  41875. return ($$0|0);
  41876. }
  41877. function _vprintf($0,$1) {
  41878. $0 = $0|0;
  41879. $1 = $1|0;
  41880. var $2 = 0, $3 = 0, label = 0, sp = 0;
  41881. sp = STACKTOP;
  41882. $2 = HEAP32[1017]|0;
  41883. $3 = (_vfprintf($2,$0,$1)|0);
  41884. return ($3|0);
  41885. }
  41886. function _strcspn($0,$1) {
  41887. $0 = $0|0;
  41888. $1 = $1|0;
  41889. 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;
  41890. 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;
  41891. var $div20 = 0, label = 0, sp = 0;
  41892. sp = STACKTOP;
  41893. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  41894. $2 = sp;
  41895. $3 = HEAP8[$1>>0]|0;
  41896. $4 = ($3<<24>>24)==(0);
  41897. L1: do {
  41898. if ($4) {
  41899. label = 3;
  41900. } else {
  41901. $5 = ((($1)) + 1|0);
  41902. $6 = HEAP8[$5>>0]|0;
  41903. $7 = ($6<<24>>24)==(0);
  41904. if ($7) {
  41905. label = 3;
  41906. } else {
  41907. ;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;
  41908. $$01824 = $1;$13 = $3;
  41909. while(1) {
  41910. $12 = $13 & 31;
  41911. $14 = $12&255;
  41912. $15 = 1 << $14;
  41913. $div20 = ($13&255) >>> 5;
  41914. $16 = $div20&255;
  41915. $17 = (($2) + ($16<<2)|0);
  41916. $18 = HEAP32[$17>>2]|0;
  41917. $19 = $18 | $15;
  41918. HEAP32[$17>>2] = $19;
  41919. $20 = ((($$01824)) + 1|0);
  41920. $21 = HEAP8[$20>>0]|0;
  41921. $22 = ($21<<24>>24)==(0);
  41922. if ($22) {
  41923. break;
  41924. } else {
  41925. $$01824 = $20;$13 = $21;
  41926. }
  41927. }
  41928. $10 = HEAP8[$0>>0]|0;
  41929. $11 = ($10<<24>>24)==(0);
  41930. if ($11) {
  41931. $$019$sink = $0;
  41932. } else {
  41933. $$01922 = $0;$23 = $10;
  41934. while(1) {
  41935. $div = ($23&255) >>> 5;
  41936. $24 = $div&255;
  41937. $25 = (($2) + ($24<<2)|0);
  41938. $26 = HEAP32[$25>>2]|0;
  41939. $27 = $23 & 31;
  41940. $28 = $27&255;
  41941. $29 = 1 << $28;
  41942. $30 = $26 & $29;
  41943. $31 = ($30|0)==(0);
  41944. if (!($31)) {
  41945. $$019$sink = $$01922;
  41946. break L1;
  41947. }
  41948. $32 = ((($$01922)) + 1|0);
  41949. $33 = HEAP8[$32>>0]|0;
  41950. $34 = ($33<<24>>24)==(0);
  41951. if ($34) {
  41952. $$019$sink = $32;
  41953. break;
  41954. } else {
  41955. $$01922 = $32;$23 = $33;
  41956. }
  41957. }
  41958. }
  41959. }
  41960. }
  41961. } while(0);
  41962. if ((label|0) == 3) {
  41963. $8 = $3 << 24 >> 24;
  41964. $9 = (___strchrnul($0,$8)|0);
  41965. $$019$sink = $9;
  41966. }
  41967. $35 = $$019$sink;
  41968. $36 = $0;
  41969. $37 = (($35) - ($36))|0;
  41970. STACKTOP = sp;return ($37|0);
  41971. }
  41972. function _strcat($0,$1) {
  41973. $0 = $0|0;
  41974. $1 = $1|0;
  41975. var $2 = 0, $3 = 0, label = 0, sp = 0;
  41976. sp = STACKTOP;
  41977. $2 = (_strlen($0)|0);
  41978. $3 = (($0) + ($2)|0);
  41979. (_strcpy($3,$1)|0);
  41980. return ($0|0);
  41981. }
  41982. function _strncat($0,$1,$2) {
  41983. $0 = $0|0;
  41984. $1 = $1|0;
  41985. $2 = $2|0;
  41986. var $$0$lcssa = 0, $$01013 = 0, $$01112 = 0, $$014 = 0, $10 = 0, $11 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  41987. sp = STACKTOP;
  41988. $3 = (_strlen($0)|0);
  41989. $4 = (($0) + ($3)|0);
  41990. $5 = ($2|0)==(0);
  41991. L1: do {
  41992. if ($5) {
  41993. $$0$lcssa = $4;
  41994. } else {
  41995. $$01013 = $2;$$01112 = $1;$$014 = $4;
  41996. while(1) {
  41997. $6 = HEAP8[$$01112>>0]|0;
  41998. $7 = ($6<<24>>24)==(0);
  41999. if ($7) {
  42000. $$0$lcssa = $$014;
  42001. break L1;
  42002. }
  42003. $8 = (($$01013) + -1)|0;
  42004. $9 = ((($$01112)) + 1|0);
  42005. $10 = ((($$014)) + 1|0);
  42006. HEAP8[$$014>>0] = $6;
  42007. $11 = ($8|0)==(0);
  42008. if ($11) {
  42009. $$0$lcssa = $10;
  42010. break;
  42011. } else {
  42012. $$01013 = $8;$$01112 = $9;$$014 = $10;
  42013. }
  42014. }
  42015. }
  42016. } while(0);
  42017. HEAP8[$$0$lcssa>>0] = 0;
  42018. return ($0|0);
  42019. }
  42020. function _strtok($0,$1) {
  42021. $0 = $0|0;
  42022. $1 = $1|0;
  42023. 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;
  42024. sp = STACKTOP;
  42025. $2 = ($0|0)==(0|0);
  42026. if ($2) {
  42027. $3 = HEAP32[5465]|0;
  42028. $4 = ($3|0)==(0|0);
  42029. if ($4) {
  42030. $$0 = 0;
  42031. } else {
  42032. $$010 = $3;
  42033. label = 3;
  42034. }
  42035. } else {
  42036. $$010 = $0;
  42037. label = 3;
  42038. }
  42039. do {
  42040. if ((label|0) == 3) {
  42041. $5 = (_strspn($$010,$1)|0);
  42042. $6 = (($$010) + ($5)|0);
  42043. $7 = HEAP8[$6>>0]|0;
  42044. $8 = ($7<<24>>24)==(0);
  42045. if ($8) {
  42046. HEAP32[5465] = 0;
  42047. $$0 = 0;
  42048. break;
  42049. }
  42050. $9 = (_strcspn($6,$1)|0);
  42051. $10 = (($6) + ($9)|0);
  42052. HEAP32[5465] = $10;
  42053. $11 = HEAP8[$10>>0]|0;
  42054. $12 = ($11<<24>>24)==(0);
  42055. if ($12) {
  42056. HEAP32[5465] = 0;
  42057. $$0 = $6;
  42058. break;
  42059. } else {
  42060. $13 = ((($10)) + 1|0);
  42061. HEAP32[5465] = $13;
  42062. HEAP8[$10>>0] = 0;
  42063. $$0 = $6;
  42064. break;
  42065. }
  42066. }
  42067. } while(0);
  42068. return ($$0|0);
  42069. }
  42070. function _malloc($0) {
  42071. $0 = $0|0;
  42072. 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;
  42073. 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;
  42074. 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;
  42075. 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;
  42076. 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;
  42077. 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;
  42078. 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;
  42079. 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;
  42080. 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;
  42081. 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;
  42082. 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;
  42083. 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;
  42084. 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;
  42085. 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;
  42086. 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;
  42087. 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;
  42088. 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;
  42089. 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;
  42090. 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;
  42091. 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;
  42092. 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;
  42093. 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;
  42094. 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;
  42095. 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;
  42096. 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;
  42097. 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;
  42098. 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;
  42099. 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;
  42100. 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;
  42101. 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;
  42102. 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;
  42103. 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;
  42104. 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;
  42105. 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;
  42106. 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;
  42107. 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;
  42108. 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;
  42109. 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;
  42110. 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;
  42111. 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;
  42112. 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;
  42113. 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;
  42114. 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;
  42115. 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;
  42116. 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;
  42117. 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;
  42118. 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;
  42119. 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;
  42120. 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;
  42121. 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;
  42122. 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;
  42123. 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;
  42124. 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;
  42125. 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;
  42126. 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;
  42127. 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;
  42128. 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;
  42129. 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;
  42130. 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;
  42131. sp = STACKTOP;
  42132. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  42133. $1 = sp;
  42134. $2 = ($0>>>0)<(245);
  42135. do {
  42136. if ($2) {
  42137. $3 = ($0>>>0)<(11);
  42138. $4 = (($0) + 11)|0;
  42139. $5 = $4 & -8;
  42140. $6 = $3 ? 16 : $5;
  42141. $7 = $6 >>> 3;
  42142. $8 = HEAP32[5466]|0;
  42143. $9 = $8 >>> $7;
  42144. $10 = $9 & 3;
  42145. $11 = ($10|0)==(0);
  42146. if (!($11)) {
  42147. $12 = $9 & 1;
  42148. $13 = $12 ^ 1;
  42149. $14 = (($13) + ($7))|0;
  42150. $15 = $14 << 1;
  42151. $16 = (21904 + ($15<<2)|0);
  42152. $17 = ((($16)) + 8|0);
  42153. $18 = HEAP32[$17>>2]|0;
  42154. $19 = ((($18)) + 8|0);
  42155. $20 = HEAP32[$19>>2]|0;
  42156. $21 = ($16|0)==($20|0);
  42157. do {
  42158. if ($21) {
  42159. $22 = 1 << $14;
  42160. $23 = $22 ^ -1;
  42161. $24 = $8 & $23;
  42162. HEAP32[5466] = $24;
  42163. } else {
  42164. $25 = HEAP32[(21880)>>2]|0;
  42165. $26 = ($20>>>0)<($25>>>0);
  42166. if ($26) {
  42167. _abort();
  42168. // unreachable;
  42169. }
  42170. $27 = ((($20)) + 12|0);
  42171. $28 = HEAP32[$27>>2]|0;
  42172. $29 = ($28|0)==($18|0);
  42173. if ($29) {
  42174. HEAP32[$27>>2] = $16;
  42175. HEAP32[$17>>2] = $20;
  42176. break;
  42177. } else {
  42178. _abort();
  42179. // unreachable;
  42180. }
  42181. }
  42182. } while(0);
  42183. $30 = $14 << 3;
  42184. $31 = $30 | 3;
  42185. $32 = ((($18)) + 4|0);
  42186. HEAP32[$32>>2] = $31;
  42187. $33 = (($18) + ($30)|0);
  42188. $34 = ((($33)) + 4|0);
  42189. $35 = HEAP32[$34>>2]|0;
  42190. $36 = $35 | 1;
  42191. HEAP32[$34>>2] = $36;
  42192. $$0 = $19;
  42193. STACKTOP = sp;return ($$0|0);
  42194. }
  42195. $37 = HEAP32[(21872)>>2]|0;
  42196. $38 = ($6>>>0)>($37>>>0);
  42197. if ($38) {
  42198. $39 = ($9|0)==(0);
  42199. if (!($39)) {
  42200. $40 = $9 << $7;
  42201. $41 = 2 << $7;
  42202. $42 = (0 - ($41))|0;
  42203. $43 = $41 | $42;
  42204. $44 = $40 & $43;
  42205. $45 = (0 - ($44))|0;
  42206. $46 = $44 & $45;
  42207. $47 = (($46) + -1)|0;
  42208. $48 = $47 >>> 12;
  42209. $49 = $48 & 16;
  42210. $50 = $47 >>> $49;
  42211. $51 = $50 >>> 5;
  42212. $52 = $51 & 8;
  42213. $53 = $52 | $49;
  42214. $54 = $50 >>> $52;
  42215. $55 = $54 >>> 2;
  42216. $56 = $55 & 4;
  42217. $57 = $53 | $56;
  42218. $58 = $54 >>> $56;
  42219. $59 = $58 >>> 1;
  42220. $60 = $59 & 2;
  42221. $61 = $57 | $60;
  42222. $62 = $58 >>> $60;
  42223. $63 = $62 >>> 1;
  42224. $64 = $63 & 1;
  42225. $65 = $61 | $64;
  42226. $66 = $62 >>> $64;
  42227. $67 = (($65) + ($66))|0;
  42228. $68 = $67 << 1;
  42229. $69 = (21904 + ($68<<2)|0);
  42230. $70 = ((($69)) + 8|0);
  42231. $71 = HEAP32[$70>>2]|0;
  42232. $72 = ((($71)) + 8|0);
  42233. $73 = HEAP32[$72>>2]|0;
  42234. $74 = ($69|0)==($73|0);
  42235. do {
  42236. if ($74) {
  42237. $75 = 1 << $67;
  42238. $76 = $75 ^ -1;
  42239. $77 = $8 & $76;
  42240. HEAP32[5466] = $77;
  42241. $98 = $77;
  42242. } else {
  42243. $78 = HEAP32[(21880)>>2]|0;
  42244. $79 = ($73>>>0)<($78>>>0);
  42245. if ($79) {
  42246. _abort();
  42247. // unreachable;
  42248. }
  42249. $80 = ((($73)) + 12|0);
  42250. $81 = HEAP32[$80>>2]|0;
  42251. $82 = ($81|0)==($71|0);
  42252. if ($82) {
  42253. HEAP32[$80>>2] = $69;
  42254. HEAP32[$70>>2] = $73;
  42255. $98 = $8;
  42256. break;
  42257. } else {
  42258. _abort();
  42259. // unreachable;
  42260. }
  42261. }
  42262. } while(0);
  42263. $83 = $67 << 3;
  42264. $84 = (($83) - ($6))|0;
  42265. $85 = $6 | 3;
  42266. $86 = ((($71)) + 4|0);
  42267. HEAP32[$86>>2] = $85;
  42268. $87 = (($71) + ($6)|0);
  42269. $88 = $84 | 1;
  42270. $89 = ((($87)) + 4|0);
  42271. HEAP32[$89>>2] = $88;
  42272. $90 = (($87) + ($84)|0);
  42273. HEAP32[$90>>2] = $84;
  42274. $91 = ($37|0)==(0);
  42275. if (!($91)) {
  42276. $92 = HEAP32[(21884)>>2]|0;
  42277. $93 = $37 >>> 3;
  42278. $94 = $93 << 1;
  42279. $95 = (21904 + ($94<<2)|0);
  42280. $96 = 1 << $93;
  42281. $97 = $98 & $96;
  42282. $99 = ($97|0)==(0);
  42283. if ($99) {
  42284. $100 = $98 | $96;
  42285. HEAP32[5466] = $100;
  42286. $$pre = ((($95)) + 8|0);
  42287. $$0199 = $95;$$pre$phiZ2D = $$pre;
  42288. } else {
  42289. $101 = ((($95)) + 8|0);
  42290. $102 = HEAP32[$101>>2]|0;
  42291. $103 = HEAP32[(21880)>>2]|0;
  42292. $104 = ($102>>>0)<($103>>>0);
  42293. if ($104) {
  42294. _abort();
  42295. // unreachable;
  42296. } else {
  42297. $$0199 = $102;$$pre$phiZ2D = $101;
  42298. }
  42299. }
  42300. HEAP32[$$pre$phiZ2D>>2] = $92;
  42301. $105 = ((($$0199)) + 12|0);
  42302. HEAP32[$105>>2] = $92;
  42303. $106 = ((($92)) + 8|0);
  42304. HEAP32[$106>>2] = $$0199;
  42305. $107 = ((($92)) + 12|0);
  42306. HEAP32[$107>>2] = $95;
  42307. }
  42308. HEAP32[(21872)>>2] = $84;
  42309. HEAP32[(21884)>>2] = $87;
  42310. $$0 = $72;
  42311. STACKTOP = sp;return ($$0|0);
  42312. }
  42313. $108 = HEAP32[(21868)>>2]|0;
  42314. $109 = ($108|0)==(0);
  42315. if ($109) {
  42316. $$0197 = $6;
  42317. } else {
  42318. $110 = (0 - ($108))|0;
  42319. $111 = $108 & $110;
  42320. $112 = (($111) + -1)|0;
  42321. $113 = $112 >>> 12;
  42322. $114 = $113 & 16;
  42323. $115 = $112 >>> $114;
  42324. $116 = $115 >>> 5;
  42325. $117 = $116 & 8;
  42326. $118 = $117 | $114;
  42327. $119 = $115 >>> $117;
  42328. $120 = $119 >>> 2;
  42329. $121 = $120 & 4;
  42330. $122 = $118 | $121;
  42331. $123 = $119 >>> $121;
  42332. $124 = $123 >>> 1;
  42333. $125 = $124 & 2;
  42334. $126 = $122 | $125;
  42335. $127 = $123 >>> $125;
  42336. $128 = $127 >>> 1;
  42337. $129 = $128 & 1;
  42338. $130 = $126 | $129;
  42339. $131 = $127 >>> $129;
  42340. $132 = (($130) + ($131))|0;
  42341. $133 = (22168 + ($132<<2)|0);
  42342. $134 = HEAP32[$133>>2]|0;
  42343. $135 = ((($134)) + 4|0);
  42344. $136 = HEAP32[$135>>2]|0;
  42345. $137 = $136 & -8;
  42346. $138 = (($137) - ($6))|0;
  42347. $139 = ((($134)) + 16|0);
  42348. $140 = HEAP32[$139>>2]|0;
  42349. $not$5$i = ($140|0)==(0|0);
  42350. $$sink16$i = $not$5$i&1;
  42351. $141 = (((($134)) + 16|0) + ($$sink16$i<<2)|0);
  42352. $142 = HEAP32[$141>>2]|0;
  42353. $143 = ($142|0)==(0|0);
  42354. if ($143) {
  42355. $$0192$lcssa$i = $134;$$0193$lcssa$i = $138;
  42356. } else {
  42357. $$01928$i = $134;$$01937$i = $138;$145 = $142;
  42358. while(1) {
  42359. $144 = ((($145)) + 4|0);
  42360. $146 = HEAP32[$144>>2]|0;
  42361. $147 = $146 & -8;
  42362. $148 = (($147) - ($6))|0;
  42363. $149 = ($148>>>0)<($$01937$i>>>0);
  42364. $$$0193$i = $149 ? $148 : $$01937$i;
  42365. $$$0192$i = $149 ? $145 : $$01928$i;
  42366. $150 = ((($145)) + 16|0);
  42367. $151 = HEAP32[$150>>2]|0;
  42368. $not$$i = ($151|0)==(0|0);
  42369. $$sink1$i = $not$$i&1;
  42370. $152 = (((($145)) + 16|0) + ($$sink1$i<<2)|0);
  42371. $153 = HEAP32[$152>>2]|0;
  42372. $154 = ($153|0)==(0|0);
  42373. if ($154) {
  42374. $$0192$lcssa$i = $$$0192$i;$$0193$lcssa$i = $$$0193$i;
  42375. break;
  42376. } else {
  42377. $$01928$i = $$$0192$i;$$01937$i = $$$0193$i;$145 = $153;
  42378. }
  42379. }
  42380. }
  42381. $155 = HEAP32[(21880)>>2]|0;
  42382. $156 = ($$0192$lcssa$i>>>0)<($155>>>0);
  42383. if ($156) {
  42384. _abort();
  42385. // unreachable;
  42386. }
  42387. $157 = (($$0192$lcssa$i) + ($6)|0);
  42388. $158 = ($$0192$lcssa$i>>>0)<($157>>>0);
  42389. if (!($158)) {
  42390. _abort();
  42391. // unreachable;
  42392. }
  42393. $159 = ((($$0192$lcssa$i)) + 24|0);
  42394. $160 = HEAP32[$159>>2]|0;
  42395. $161 = ((($$0192$lcssa$i)) + 12|0);
  42396. $162 = HEAP32[$161>>2]|0;
  42397. $163 = ($162|0)==($$0192$lcssa$i|0);
  42398. do {
  42399. if ($163) {
  42400. $173 = ((($$0192$lcssa$i)) + 20|0);
  42401. $174 = HEAP32[$173>>2]|0;
  42402. $175 = ($174|0)==(0|0);
  42403. if ($175) {
  42404. $176 = ((($$0192$lcssa$i)) + 16|0);
  42405. $177 = HEAP32[$176>>2]|0;
  42406. $178 = ($177|0)==(0|0);
  42407. if ($178) {
  42408. $$3$i = 0;
  42409. break;
  42410. } else {
  42411. $$1196$i = $177;$$1198$i = $176;
  42412. }
  42413. } else {
  42414. $$1196$i = $174;$$1198$i = $173;
  42415. }
  42416. while(1) {
  42417. $179 = ((($$1196$i)) + 20|0);
  42418. $180 = HEAP32[$179>>2]|0;
  42419. $181 = ($180|0)==(0|0);
  42420. if (!($181)) {
  42421. $$1196$i = $180;$$1198$i = $179;
  42422. continue;
  42423. }
  42424. $182 = ((($$1196$i)) + 16|0);
  42425. $183 = HEAP32[$182>>2]|0;
  42426. $184 = ($183|0)==(0|0);
  42427. if ($184) {
  42428. break;
  42429. } else {
  42430. $$1196$i = $183;$$1198$i = $182;
  42431. }
  42432. }
  42433. $185 = ($$1198$i>>>0)<($155>>>0);
  42434. if ($185) {
  42435. _abort();
  42436. // unreachable;
  42437. } else {
  42438. HEAP32[$$1198$i>>2] = 0;
  42439. $$3$i = $$1196$i;
  42440. break;
  42441. }
  42442. } else {
  42443. $164 = ((($$0192$lcssa$i)) + 8|0);
  42444. $165 = HEAP32[$164>>2]|0;
  42445. $166 = ($165>>>0)<($155>>>0);
  42446. if ($166) {
  42447. _abort();
  42448. // unreachable;
  42449. }
  42450. $167 = ((($165)) + 12|0);
  42451. $168 = HEAP32[$167>>2]|0;
  42452. $169 = ($168|0)==($$0192$lcssa$i|0);
  42453. if (!($169)) {
  42454. _abort();
  42455. // unreachable;
  42456. }
  42457. $170 = ((($162)) + 8|0);
  42458. $171 = HEAP32[$170>>2]|0;
  42459. $172 = ($171|0)==($$0192$lcssa$i|0);
  42460. if ($172) {
  42461. HEAP32[$167>>2] = $162;
  42462. HEAP32[$170>>2] = $165;
  42463. $$3$i = $162;
  42464. break;
  42465. } else {
  42466. _abort();
  42467. // unreachable;
  42468. }
  42469. }
  42470. } while(0);
  42471. $186 = ($160|0)==(0|0);
  42472. L73: do {
  42473. if (!($186)) {
  42474. $187 = ((($$0192$lcssa$i)) + 28|0);
  42475. $188 = HEAP32[$187>>2]|0;
  42476. $189 = (22168 + ($188<<2)|0);
  42477. $190 = HEAP32[$189>>2]|0;
  42478. $191 = ($$0192$lcssa$i|0)==($190|0);
  42479. do {
  42480. if ($191) {
  42481. HEAP32[$189>>2] = $$3$i;
  42482. $cond$i = ($$3$i|0)==(0|0);
  42483. if ($cond$i) {
  42484. $192 = 1 << $188;
  42485. $193 = $192 ^ -1;
  42486. $194 = $108 & $193;
  42487. HEAP32[(21868)>>2] = $194;
  42488. break L73;
  42489. }
  42490. } else {
  42491. $195 = HEAP32[(21880)>>2]|0;
  42492. $196 = ($160>>>0)<($195>>>0);
  42493. if ($196) {
  42494. _abort();
  42495. // unreachable;
  42496. } else {
  42497. $197 = ((($160)) + 16|0);
  42498. $198 = HEAP32[$197>>2]|0;
  42499. $not$1$i = ($198|0)!=($$0192$lcssa$i|0);
  42500. $$sink2$i = $not$1$i&1;
  42501. $199 = (((($160)) + 16|0) + ($$sink2$i<<2)|0);
  42502. HEAP32[$199>>2] = $$3$i;
  42503. $200 = ($$3$i|0)==(0|0);
  42504. if ($200) {
  42505. break L73;
  42506. } else {
  42507. break;
  42508. }
  42509. }
  42510. }
  42511. } while(0);
  42512. $201 = HEAP32[(21880)>>2]|0;
  42513. $202 = ($$3$i>>>0)<($201>>>0);
  42514. if ($202) {
  42515. _abort();
  42516. // unreachable;
  42517. }
  42518. $203 = ((($$3$i)) + 24|0);
  42519. HEAP32[$203>>2] = $160;
  42520. $204 = ((($$0192$lcssa$i)) + 16|0);
  42521. $205 = HEAP32[$204>>2]|0;
  42522. $206 = ($205|0)==(0|0);
  42523. do {
  42524. if (!($206)) {
  42525. $207 = ($205>>>0)<($201>>>0);
  42526. if ($207) {
  42527. _abort();
  42528. // unreachable;
  42529. } else {
  42530. $208 = ((($$3$i)) + 16|0);
  42531. HEAP32[$208>>2] = $205;
  42532. $209 = ((($205)) + 24|0);
  42533. HEAP32[$209>>2] = $$3$i;
  42534. break;
  42535. }
  42536. }
  42537. } while(0);
  42538. $210 = ((($$0192$lcssa$i)) + 20|0);
  42539. $211 = HEAP32[$210>>2]|0;
  42540. $212 = ($211|0)==(0|0);
  42541. if (!($212)) {
  42542. $213 = HEAP32[(21880)>>2]|0;
  42543. $214 = ($211>>>0)<($213>>>0);
  42544. if ($214) {
  42545. _abort();
  42546. // unreachable;
  42547. } else {
  42548. $215 = ((($$3$i)) + 20|0);
  42549. HEAP32[$215>>2] = $211;
  42550. $216 = ((($211)) + 24|0);
  42551. HEAP32[$216>>2] = $$3$i;
  42552. break;
  42553. }
  42554. }
  42555. }
  42556. } while(0);
  42557. $217 = ($$0193$lcssa$i>>>0)<(16);
  42558. if ($217) {
  42559. $218 = (($$0193$lcssa$i) + ($6))|0;
  42560. $219 = $218 | 3;
  42561. $220 = ((($$0192$lcssa$i)) + 4|0);
  42562. HEAP32[$220>>2] = $219;
  42563. $221 = (($$0192$lcssa$i) + ($218)|0);
  42564. $222 = ((($221)) + 4|0);
  42565. $223 = HEAP32[$222>>2]|0;
  42566. $224 = $223 | 1;
  42567. HEAP32[$222>>2] = $224;
  42568. } else {
  42569. $225 = $6 | 3;
  42570. $226 = ((($$0192$lcssa$i)) + 4|0);
  42571. HEAP32[$226>>2] = $225;
  42572. $227 = $$0193$lcssa$i | 1;
  42573. $228 = ((($157)) + 4|0);
  42574. HEAP32[$228>>2] = $227;
  42575. $229 = (($157) + ($$0193$lcssa$i)|0);
  42576. HEAP32[$229>>2] = $$0193$lcssa$i;
  42577. $230 = ($37|0)==(0);
  42578. if (!($230)) {
  42579. $231 = HEAP32[(21884)>>2]|0;
  42580. $232 = $37 >>> 3;
  42581. $233 = $232 << 1;
  42582. $234 = (21904 + ($233<<2)|0);
  42583. $235 = 1 << $232;
  42584. $236 = $8 & $235;
  42585. $237 = ($236|0)==(0);
  42586. if ($237) {
  42587. $238 = $8 | $235;
  42588. HEAP32[5466] = $238;
  42589. $$pre$i = ((($234)) + 8|0);
  42590. $$0189$i = $234;$$pre$phi$iZ2D = $$pre$i;
  42591. } else {
  42592. $239 = ((($234)) + 8|0);
  42593. $240 = HEAP32[$239>>2]|0;
  42594. $241 = HEAP32[(21880)>>2]|0;
  42595. $242 = ($240>>>0)<($241>>>0);
  42596. if ($242) {
  42597. _abort();
  42598. // unreachable;
  42599. } else {
  42600. $$0189$i = $240;$$pre$phi$iZ2D = $239;
  42601. }
  42602. }
  42603. HEAP32[$$pre$phi$iZ2D>>2] = $231;
  42604. $243 = ((($$0189$i)) + 12|0);
  42605. HEAP32[$243>>2] = $231;
  42606. $244 = ((($231)) + 8|0);
  42607. HEAP32[$244>>2] = $$0189$i;
  42608. $245 = ((($231)) + 12|0);
  42609. HEAP32[$245>>2] = $234;
  42610. }
  42611. HEAP32[(21872)>>2] = $$0193$lcssa$i;
  42612. HEAP32[(21884)>>2] = $157;
  42613. }
  42614. $246 = ((($$0192$lcssa$i)) + 8|0);
  42615. $$0 = $246;
  42616. STACKTOP = sp;return ($$0|0);
  42617. }
  42618. } else {
  42619. $$0197 = $6;
  42620. }
  42621. } else {
  42622. $247 = ($0>>>0)>(4294967231);
  42623. if ($247) {
  42624. $$0197 = -1;
  42625. } else {
  42626. $248 = (($0) + 11)|0;
  42627. $249 = $248 & -8;
  42628. $250 = HEAP32[(21868)>>2]|0;
  42629. $251 = ($250|0)==(0);
  42630. if ($251) {
  42631. $$0197 = $249;
  42632. } else {
  42633. $252 = (0 - ($249))|0;
  42634. $253 = $248 >>> 8;
  42635. $254 = ($253|0)==(0);
  42636. if ($254) {
  42637. $$0358$i = 0;
  42638. } else {
  42639. $255 = ($249>>>0)>(16777215);
  42640. if ($255) {
  42641. $$0358$i = 31;
  42642. } else {
  42643. $256 = (($253) + 1048320)|0;
  42644. $257 = $256 >>> 16;
  42645. $258 = $257 & 8;
  42646. $259 = $253 << $258;
  42647. $260 = (($259) + 520192)|0;
  42648. $261 = $260 >>> 16;
  42649. $262 = $261 & 4;
  42650. $263 = $262 | $258;
  42651. $264 = $259 << $262;
  42652. $265 = (($264) + 245760)|0;
  42653. $266 = $265 >>> 16;
  42654. $267 = $266 & 2;
  42655. $268 = $263 | $267;
  42656. $269 = (14 - ($268))|0;
  42657. $270 = $264 << $267;
  42658. $271 = $270 >>> 15;
  42659. $272 = (($269) + ($271))|0;
  42660. $273 = $272 << 1;
  42661. $274 = (($272) + 7)|0;
  42662. $275 = $249 >>> $274;
  42663. $276 = $275 & 1;
  42664. $277 = $276 | $273;
  42665. $$0358$i = $277;
  42666. }
  42667. }
  42668. $278 = (22168 + ($$0358$i<<2)|0);
  42669. $279 = HEAP32[$278>>2]|0;
  42670. $280 = ($279|0)==(0|0);
  42671. L117: do {
  42672. if ($280) {
  42673. $$2355$i = 0;$$3$i201 = 0;$$3350$i = $252;
  42674. label = 81;
  42675. } else {
  42676. $281 = ($$0358$i|0)==(31);
  42677. $282 = $$0358$i >>> 1;
  42678. $283 = (25 - ($282))|0;
  42679. $284 = $281 ? 0 : $283;
  42680. $285 = $249 << $284;
  42681. $$0342$i = 0;$$0347$i = $252;$$0353$i = $279;$$0359$i = $285;$$0362$i = 0;
  42682. while(1) {
  42683. $286 = ((($$0353$i)) + 4|0);
  42684. $287 = HEAP32[$286>>2]|0;
  42685. $288 = $287 & -8;
  42686. $289 = (($288) - ($249))|0;
  42687. $290 = ($289>>>0)<($$0347$i>>>0);
  42688. if ($290) {
  42689. $291 = ($289|0)==(0);
  42690. if ($291) {
  42691. $$415$i = $$0353$i;$$435114$i = 0;$$435713$i = $$0353$i;
  42692. label = 85;
  42693. break L117;
  42694. } else {
  42695. $$1343$i = $$0353$i;$$1348$i = $289;
  42696. }
  42697. } else {
  42698. $$1343$i = $$0342$i;$$1348$i = $$0347$i;
  42699. }
  42700. $292 = ((($$0353$i)) + 20|0);
  42701. $293 = HEAP32[$292>>2]|0;
  42702. $294 = $$0359$i >>> 31;
  42703. $295 = (((($$0353$i)) + 16|0) + ($294<<2)|0);
  42704. $296 = HEAP32[$295>>2]|0;
  42705. $297 = ($293|0)==(0|0);
  42706. $298 = ($293|0)==($296|0);
  42707. $or$cond2$i = $297 | $298;
  42708. $$1363$i = $or$cond2$i ? $$0362$i : $293;
  42709. $299 = ($296|0)==(0|0);
  42710. $not$8$i = $299 ^ 1;
  42711. $300 = $not$8$i&1;
  42712. $$0359$$i = $$0359$i << $300;
  42713. if ($299) {
  42714. $$2355$i = $$1363$i;$$3$i201 = $$1343$i;$$3350$i = $$1348$i;
  42715. label = 81;
  42716. break;
  42717. } else {
  42718. $$0342$i = $$1343$i;$$0347$i = $$1348$i;$$0353$i = $296;$$0359$i = $$0359$$i;$$0362$i = $$1363$i;
  42719. }
  42720. }
  42721. }
  42722. } while(0);
  42723. if ((label|0) == 81) {
  42724. $301 = ($$2355$i|0)==(0|0);
  42725. $302 = ($$3$i201|0)==(0|0);
  42726. $or$cond$i = $301 & $302;
  42727. if ($or$cond$i) {
  42728. $303 = 2 << $$0358$i;
  42729. $304 = (0 - ($303))|0;
  42730. $305 = $303 | $304;
  42731. $306 = $250 & $305;
  42732. $307 = ($306|0)==(0);
  42733. if ($307) {
  42734. $$0197 = $249;
  42735. break;
  42736. }
  42737. $308 = (0 - ($306))|0;
  42738. $309 = $306 & $308;
  42739. $310 = (($309) + -1)|0;
  42740. $311 = $310 >>> 12;
  42741. $312 = $311 & 16;
  42742. $313 = $310 >>> $312;
  42743. $314 = $313 >>> 5;
  42744. $315 = $314 & 8;
  42745. $316 = $315 | $312;
  42746. $317 = $313 >>> $315;
  42747. $318 = $317 >>> 2;
  42748. $319 = $318 & 4;
  42749. $320 = $316 | $319;
  42750. $321 = $317 >>> $319;
  42751. $322 = $321 >>> 1;
  42752. $323 = $322 & 2;
  42753. $324 = $320 | $323;
  42754. $325 = $321 >>> $323;
  42755. $326 = $325 >>> 1;
  42756. $327 = $326 & 1;
  42757. $328 = $324 | $327;
  42758. $329 = $325 >>> $327;
  42759. $330 = (($328) + ($329))|0;
  42760. $331 = (22168 + ($330<<2)|0);
  42761. $332 = HEAP32[$331>>2]|0;
  42762. $$4$ph$i = 0;$$4357$ph$i = $332;
  42763. } else {
  42764. $$4$ph$i = $$3$i201;$$4357$ph$i = $$2355$i;
  42765. }
  42766. $333 = ($$4357$ph$i|0)==(0|0);
  42767. if ($333) {
  42768. $$4$lcssa$i = $$4$ph$i;$$4351$lcssa$i = $$3350$i;
  42769. } else {
  42770. $$415$i = $$4$ph$i;$$435114$i = $$3350$i;$$435713$i = $$4357$ph$i;
  42771. label = 85;
  42772. }
  42773. }
  42774. if ((label|0) == 85) {
  42775. while(1) {
  42776. label = 0;
  42777. $334 = ((($$435713$i)) + 4|0);
  42778. $335 = HEAP32[$334>>2]|0;
  42779. $336 = $335 & -8;
  42780. $337 = (($336) - ($249))|0;
  42781. $338 = ($337>>>0)<($$435114$i>>>0);
  42782. $$$4351$i = $338 ? $337 : $$435114$i;
  42783. $$4357$$4$i = $338 ? $$435713$i : $$415$i;
  42784. $339 = ((($$435713$i)) + 16|0);
  42785. $340 = HEAP32[$339>>2]|0;
  42786. $not$1$i203 = ($340|0)==(0|0);
  42787. $$sink2$i204 = $not$1$i203&1;
  42788. $341 = (((($$435713$i)) + 16|0) + ($$sink2$i204<<2)|0);
  42789. $342 = HEAP32[$341>>2]|0;
  42790. $343 = ($342|0)==(0|0);
  42791. if ($343) {
  42792. $$4$lcssa$i = $$4357$$4$i;$$4351$lcssa$i = $$$4351$i;
  42793. break;
  42794. } else {
  42795. $$415$i = $$4357$$4$i;$$435114$i = $$$4351$i;$$435713$i = $342;
  42796. label = 85;
  42797. }
  42798. }
  42799. }
  42800. $344 = ($$4$lcssa$i|0)==(0|0);
  42801. if ($344) {
  42802. $$0197 = $249;
  42803. } else {
  42804. $345 = HEAP32[(21872)>>2]|0;
  42805. $346 = (($345) - ($249))|0;
  42806. $347 = ($$4351$lcssa$i>>>0)<($346>>>0);
  42807. if ($347) {
  42808. $348 = HEAP32[(21880)>>2]|0;
  42809. $349 = ($$4$lcssa$i>>>0)<($348>>>0);
  42810. if ($349) {
  42811. _abort();
  42812. // unreachable;
  42813. }
  42814. $350 = (($$4$lcssa$i) + ($249)|0);
  42815. $351 = ($$4$lcssa$i>>>0)<($350>>>0);
  42816. if (!($351)) {
  42817. _abort();
  42818. // unreachable;
  42819. }
  42820. $352 = ((($$4$lcssa$i)) + 24|0);
  42821. $353 = HEAP32[$352>>2]|0;
  42822. $354 = ((($$4$lcssa$i)) + 12|0);
  42823. $355 = HEAP32[$354>>2]|0;
  42824. $356 = ($355|0)==($$4$lcssa$i|0);
  42825. do {
  42826. if ($356) {
  42827. $366 = ((($$4$lcssa$i)) + 20|0);
  42828. $367 = HEAP32[$366>>2]|0;
  42829. $368 = ($367|0)==(0|0);
  42830. if ($368) {
  42831. $369 = ((($$4$lcssa$i)) + 16|0);
  42832. $370 = HEAP32[$369>>2]|0;
  42833. $371 = ($370|0)==(0|0);
  42834. if ($371) {
  42835. $$3372$i = 0;
  42836. break;
  42837. } else {
  42838. $$1370$i = $370;$$1374$i = $369;
  42839. }
  42840. } else {
  42841. $$1370$i = $367;$$1374$i = $366;
  42842. }
  42843. while(1) {
  42844. $372 = ((($$1370$i)) + 20|0);
  42845. $373 = HEAP32[$372>>2]|0;
  42846. $374 = ($373|0)==(0|0);
  42847. if (!($374)) {
  42848. $$1370$i = $373;$$1374$i = $372;
  42849. continue;
  42850. }
  42851. $375 = ((($$1370$i)) + 16|0);
  42852. $376 = HEAP32[$375>>2]|0;
  42853. $377 = ($376|0)==(0|0);
  42854. if ($377) {
  42855. break;
  42856. } else {
  42857. $$1370$i = $376;$$1374$i = $375;
  42858. }
  42859. }
  42860. $378 = ($$1374$i>>>0)<($348>>>0);
  42861. if ($378) {
  42862. _abort();
  42863. // unreachable;
  42864. } else {
  42865. HEAP32[$$1374$i>>2] = 0;
  42866. $$3372$i = $$1370$i;
  42867. break;
  42868. }
  42869. } else {
  42870. $357 = ((($$4$lcssa$i)) + 8|0);
  42871. $358 = HEAP32[$357>>2]|0;
  42872. $359 = ($358>>>0)<($348>>>0);
  42873. if ($359) {
  42874. _abort();
  42875. // unreachable;
  42876. }
  42877. $360 = ((($358)) + 12|0);
  42878. $361 = HEAP32[$360>>2]|0;
  42879. $362 = ($361|0)==($$4$lcssa$i|0);
  42880. if (!($362)) {
  42881. _abort();
  42882. // unreachable;
  42883. }
  42884. $363 = ((($355)) + 8|0);
  42885. $364 = HEAP32[$363>>2]|0;
  42886. $365 = ($364|0)==($$4$lcssa$i|0);
  42887. if ($365) {
  42888. HEAP32[$360>>2] = $355;
  42889. HEAP32[$363>>2] = $358;
  42890. $$3372$i = $355;
  42891. break;
  42892. } else {
  42893. _abort();
  42894. // unreachable;
  42895. }
  42896. }
  42897. } while(0);
  42898. $379 = ($353|0)==(0|0);
  42899. L164: do {
  42900. if ($379) {
  42901. $470 = $250;
  42902. } else {
  42903. $380 = ((($$4$lcssa$i)) + 28|0);
  42904. $381 = HEAP32[$380>>2]|0;
  42905. $382 = (22168 + ($381<<2)|0);
  42906. $383 = HEAP32[$382>>2]|0;
  42907. $384 = ($$4$lcssa$i|0)==($383|0);
  42908. do {
  42909. if ($384) {
  42910. HEAP32[$382>>2] = $$3372$i;
  42911. $cond$i208 = ($$3372$i|0)==(0|0);
  42912. if ($cond$i208) {
  42913. $385 = 1 << $381;
  42914. $386 = $385 ^ -1;
  42915. $387 = $250 & $386;
  42916. HEAP32[(21868)>>2] = $387;
  42917. $470 = $387;
  42918. break L164;
  42919. }
  42920. } else {
  42921. $388 = HEAP32[(21880)>>2]|0;
  42922. $389 = ($353>>>0)<($388>>>0);
  42923. if ($389) {
  42924. _abort();
  42925. // unreachable;
  42926. } else {
  42927. $390 = ((($353)) + 16|0);
  42928. $391 = HEAP32[$390>>2]|0;
  42929. $not$$i209 = ($391|0)!=($$4$lcssa$i|0);
  42930. $$sink3$i = $not$$i209&1;
  42931. $392 = (((($353)) + 16|0) + ($$sink3$i<<2)|0);
  42932. HEAP32[$392>>2] = $$3372$i;
  42933. $393 = ($$3372$i|0)==(0|0);
  42934. if ($393) {
  42935. $470 = $250;
  42936. break L164;
  42937. } else {
  42938. break;
  42939. }
  42940. }
  42941. }
  42942. } while(0);
  42943. $394 = HEAP32[(21880)>>2]|0;
  42944. $395 = ($$3372$i>>>0)<($394>>>0);
  42945. if ($395) {
  42946. _abort();
  42947. // unreachable;
  42948. }
  42949. $396 = ((($$3372$i)) + 24|0);
  42950. HEAP32[$396>>2] = $353;
  42951. $397 = ((($$4$lcssa$i)) + 16|0);
  42952. $398 = HEAP32[$397>>2]|0;
  42953. $399 = ($398|0)==(0|0);
  42954. do {
  42955. if (!($399)) {
  42956. $400 = ($398>>>0)<($394>>>0);
  42957. if ($400) {
  42958. _abort();
  42959. // unreachable;
  42960. } else {
  42961. $401 = ((($$3372$i)) + 16|0);
  42962. HEAP32[$401>>2] = $398;
  42963. $402 = ((($398)) + 24|0);
  42964. HEAP32[$402>>2] = $$3372$i;
  42965. break;
  42966. }
  42967. }
  42968. } while(0);
  42969. $403 = ((($$4$lcssa$i)) + 20|0);
  42970. $404 = HEAP32[$403>>2]|0;
  42971. $405 = ($404|0)==(0|0);
  42972. if ($405) {
  42973. $470 = $250;
  42974. } else {
  42975. $406 = HEAP32[(21880)>>2]|0;
  42976. $407 = ($404>>>0)<($406>>>0);
  42977. if ($407) {
  42978. _abort();
  42979. // unreachable;
  42980. } else {
  42981. $408 = ((($$3372$i)) + 20|0);
  42982. HEAP32[$408>>2] = $404;
  42983. $409 = ((($404)) + 24|0);
  42984. HEAP32[$409>>2] = $$3372$i;
  42985. $470 = $250;
  42986. break;
  42987. }
  42988. }
  42989. }
  42990. } while(0);
  42991. $410 = ($$4351$lcssa$i>>>0)<(16);
  42992. do {
  42993. if ($410) {
  42994. $411 = (($$4351$lcssa$i) + ($249))|0;
  42995. $412 = $411 | 3;
  42996. $413 = ((($$4$lcssa$i)) + 4|0);
  42997. HEAP32[$413>>2] = $412;
  42998. $414 = (($$4$lcssa$i) + ($411)|0);
  42999. $415 = ((($414)) + 4|0);
  43000. $416 = HEAP32[$415>>2]|0;
  43001. $417 = $416 | 1;
  43002. HEAP32[$415>>2] = $417;
  43003. } else {
  43004. $418 = $249 | 3;
  43005. $419 = ((($$4$lcssa$i)) + 4|0);
  43006. HEAP32[$419>>2] = $418;
  43007. $420 = $$4351$lcssa$i | 1;
  43008. $421 = ((($350)) + 4|0);
  43009. HEAP32[$421>>2] = $420;
  43010. $422 = (($350) + ($$4351$lcssa$i)|0);
  43011. HEAP32[$422>>2] = $$4351$lcssa$i;
  43012. $423 = $$4351$lcssa$i >>> 3;
  43013. $424 = ($$4351$lcssa$i>>>0)<(256);
  43014. if ($424) {
  43015. $425 = $423 << 1;
  43016. $426 = (21904 + ($425<<2)|0);
  43017. $427 = HEAP32[5466]|0;
  43018. $428 = 1 << $423;
  43019. $429 = $427 & $428;
  43020. $430 = ($429|0)==(0);
  43021. if ($430) {
  43022. $431 = $427 | $428;
  43023. HEAP32[5466] = $431;
  43024. $$pre$i210 = ((($426)) + 8|0);
  43025. $$0368$i = $426;$$pre$phi$i211Z2D = $$pre$i210;
  43026. } else {
  43027. $432 = ((($426)) + 8|0);
  43028. $433 = HEAP32[$432>>2]|0;
  43029. $434 = HEAP32[(21880)>>2]|0;
  43030. $435 = ($433>>>0)<($434>>>0);
  43031. if ($435) {
  43032. _abort();
  43033. // unreachable;
  43034. } else {
  43035. $$0368$i = $433;$$pre$phi$i211Z2D = $432;
  43036. }
  43037. }
  43038. HEAP32[$$pre$phi$i211Z2D>>2] = $350;
  43039. $436 = ((($$0368$i)) + 12|0);
  43040. HEAP32[$436>>2] = $350;
  43041. $437 = ((($350)) + 8|0);
  43042. HEAP32[$437>>2] = $$0368$i;
  43043. $438 = ((($350)) + 12|0);
  43044. HEAP32[$438>>2] = $426;
  43045. break;
  43046. }
  43047. $439 = $$4351$lcssa$i >>> 8;
  43048. $440 = ($439|0)==(0);
  43049. if ($440) {
  43050. $$0361$i = 0;
  43051. } else {
  43052. $441 = ($$4351$lcssa$i>>>0)>(16777215);
  43053. if ($441) {
  43054. $$0361$i = 31;
  43055. } else {
  43056. $442 = (($439) + 1048320)|0;
  43057. $443 = $442 >>> 16;
  43058. $444 = $443 & 8;
  43059. $445 = $439 << $444;
  43060. $446 = (($445) + 520192)|0;
  43061. $447 = $446 >>> 16;
  43062. $448 = $447 & 4;
  43063. $449 = $448 | $444;
  43064. $450 = $445 << $448;
  43065. $451 = (($450) + 245760)|0;
  43066. $452 = $451 >>> 16;
  43067. $453 = $452 & 2;
  43068. $454 = $449 | $453;
  43069. $455 = (14 - ($454))|0;
  43070. $456 = $450 << $453;
  43071. $457 = $456 >>> 15;
  43072. $458 = (($455) + ($457))|0;
  43073. $459 = $458 << 1;
  43074. $460 = (($458) + 7)|0;
  43075. $461 = $$4351$lcssa$i >>> $460;
  43076. $462 = $461 & 1;
  43077. $463 = $462 | $459;
  43078. $$0361$i = $463;
  43079. }
  43080. }
  43081. $464 = (22168 + ($$0361$i<<2)|0);
  43082. $465 = ((($350)) + 28|0);
  43083. HEAP32[$465>>2] = $$0361$i;
  43084. $466 = ((($350)) + 16|0);
  43085. $467 = ((($466)) + 4|0);
  43086. HEAP32[$467>>2] = 0;
  43087. HEAP32[$466>>2] = 0;
  43088. $468 = 1 << $$0361$i;
  43089. $469 = $470 & $468;
  43090. $471 = ($469|0)==(0);
  43091. if ($471) {
  43092. $472 = $470 | $468;
  43093. HEAP32[(21868)>>2] = $472;
  43094. HEAP32[$464>>2] = $350;
  43095. $473 = ((($350)) + 24|0);
  43096. HEAP32[$473>>2] = $464;
  43097. $474 = ((($350)) + 12|0);
  43098. HEAP32[$474>>2] = $350;
  43099. $475 = ((($350)) + 8|0);
  43100. HEAP32[$475>>2] = $350;
  43101. break;
  43102. }
  43103. $476 = HEAP32[$464>>2]|0;
  43104. $477 = ($$0361$i|0)==(31);
  43105. $478 = $$0361$i >>> 1;
  43106. $479 = (25 - ($478))|0;
  43107. $480 = $477 ? 0 : $479;
  43108. $481 = $$4351$lcssa$i << $480;
  43109. $$0344$i = $481;$$0345$i = $476;
  43110. while(1) {
  43111. $482 = ((($$0345$i)) + 4|0);
  43112. $483 = HEAP32[$482>>2]|0;
  43113. $484 = $483 & -8;
  43114. $485 = ($484|0)==($$4351$lcssa$i|0);
  43115. if ($485) {
  43116. label = 139;
  43117. break;
  43118. }
  43119. $486 = $$0344$i >>> 31;
  43120. $487 = (((($$0345$i)) + 16|0) + ($486<<2)|0);
  43121. $488 = $$0344$i << 1;
  43122. $489 = HEAP32[$487>>2]|0;
  43123. $490 = ($489|0)==(0|0);
  43124. if ($490) {
  43125. label = 136;
  43126. break;
  43127. } else {
  43128. $$0344$i = $488;$$0345$i = $489;
  43129. }
  43130. }
  43131. if ((label|0) == 136) {
  43132. $491 = HEAP32[(21880)>>2]|0;
  43133. $492 = ($487>>>0)<($491>>>0);
  43134. if ($492) {
  43135. _abort();
  43136. // unreachable;
  43137. } else {
  43138. HEAP32[$487>>2] = $350;
  43139. $493 = ((($350)) + 24|0);
  43140. HEAP32[$493>>2] = $$0345$i;
  43141. $494 = ((($350)) + 12|0);
  43142. HEAP32[$494>>2] = $350;
  43143. $495 = ((($350)) + 8|0);
  43144. HEAP32[$495>>2] = $350;
  43145. break;
  43146. }
  43147. }
  43148. else if ((label|0) == 139) {
  43149. $496 = ((($$0345$i)) + 8|0);
  43150. $497 = HEAP32[$496>>2]|0;
  43151. $498 = HEAP32[(21880)>>2]|0;
  43152. $499 = ($497>>>0)>=($498>>>0);
  43153. $not$9$i = ($$0345$i>>>0)>=($498>>>0);
  43154. $500 = $499 & $not$9$i;
  43155. if ($500) {
  43156. $501 = ((($497)) + 12|0);
  43157. HEAP32[$501>>2] = $350;
  43158. HEAP32[$496>>2] = $350;
  43159. $502 = ((($350)) + 8|0);
  43160. HEAP32[$502>>2] = $497;
  43161. $503 = ((($350)) + 12|0);
  43162. HEAP32[$503>>2] = $$0345$i;
  43163. $504 = ((($350)) + 24|0);
  43164. HEAP32[$504>>2] = 0;
  43165. break;
  43166. } else {
  43167. _abort();
  43168. // unreachable;
  43169. }
  43170. }
  43171. }
  43172. } while(0);
  43173. $505 = ((($$4$lcssa$i)) + 8|0);
  43174. $$0 = $505;
  43175. STACKTOP = sp;return ($$0|0);
  43176. } else {
  43177. $$0197 = $249;
  43178. }
  43179. }
  43180. }
  43181. }
  43182. }
  43183. } while(0);
  43184. $506 = HEAP32[(21872)>>2]|0;
  43185. $507 = ($506>>>0)<($$0197>>>0);
  43186. if (!($507)) {
  43187. $508 = (($506) - ($$0197))|0;
  43188. $509 = HEAP32[(21884)>>2]|0;
  43189. $510 = ($508>>>0)>(15);
  43190. if ($510) {
  43191. $511 = (($509) + ($$0197)|0);
  43192. HEAP32[(21884)>>2] = $511;
  43193. HEAP32[(21872)>>2] = $508;
  43194. $512 = $508 | 1;
  43195. $513 = ((($511)) + 4|0);
  43196. HEAP32[$513>>2] = $512;
  43197. $514 = (($511) + ($508)|0);
  43198. HEAP32[$514>>2] = $508;
  43199. $515 = $$0197 | 3;
  43200. $516 = ((($509)) + 4|0);
  43201. HEAP32[$516>>2] = $515;
  43202. } else {
  43203. HEAP32[(21872)>>2] = 0;
  43204. HEAP32[(21884)>>2] = 0;
  43205. $517 = $506 | 3;
  43206. $518 = ((($509)) + 4|0);
  43207. HEAP32[$518>>2] = $517;
  43208. $519 = (($509) + ($506)|0);
  43209. $520 = ((($519)) + 4|0);
  43210. $521 = HEAP32[$520>>2]|0;
  43211. $522 = $521 | 1;
  43212. HEAP32[$520>>2] = $522;
  43213. }
  43214. $523 = ((($509)) + 8|0);
  43215. $$0 = $523;
  43216. STACKTOP = sp;return ($$0|0);
  43217. }
  43218. $524 = HEAP32[(21876)>>2]|0;
  43219. $525 = ($524>>>0)>($$0197>>>0);
  43220. if ($525) {
  43221. $526 = (($524) - ($$0197))|0;
  43222. HEAP32[(21876)>>2] = $526;
  43223. $527 = HEAP32[(21888)>>2]|0;
  43224. $528 = (($527) + ($$0197)|0);
  43225. HEAP32[(21888)>>2] = $528;
  43226. $529 = $526 | 1;
  43227. $530 = ((($528)) + 4|0);
  43228. HEAP32[$530>>2] = $529;
  43229. $531 = $$0197 | 3;
  43230. $532 = ((($527)) + 4|0);
  43231. HEAP32[$532>>2] = $531;
  43232. $533 = ((($527)) + 8|0);
  43233. $$0 = $533;
  43234. STACKTOP = sp;return ($$0|0);
  43235. }
  43236. $534 = HEAP32[5584]|0;
  43237. $535 = ($534|0)==(0);
  43238. if ($535) {
  43239. HEAP32[(22344)>>2] = 4096;
  43240. HEAP32[(22340)>>2] = 4096;
  43241. HEAP32[(22348)>>2] = -1;
  43242. HEAP32[(22352)>>2] = -1;
  43243. HEAP32[(22356)>>2] = 0;
  43244. HEAP32[(22308)>>2] = 0;
  43245. $536 = $1;
  43246. $537 = $536 & -16;
  43247. $538 = $537 ^ 1431655768;
  43248. HEAP32[$1>>2] = $538;
  43249. HEAP32[5584] = $538;
  43250. $542 = 4096;
  43251. } else {
  43252. $$pre$i212 = HEAP32[(22344)>>2]|0;
  43253. $542 = $$pre$i212;
  43254. }
  43255. $539 = (($$0197) + 48)|0;
  43256. $540 = (($$0197) + 47)|0;
  43257. $541 = (($542) + ($540))|0;
  43258. $543 = (0 - ($542))|0;
  43259. $544 = $541 & $543;
  43260. $545 = ($544>>>0)>($$0197>>>0);
  43261. if (!($545)) {
  43262. $$0 = 0;
  43263. STACKTOP = sp;return ($$0|0);
  43264. }
  43265. $546 = HEAP32[(22304)>>2]|0;
  43266. $547 = ($546|0)==(0);
  43267. if (!($547)) {
  43268. $548 = HEAP32[(22296)>>2]|0;
  43269. $549 = (($548) + ($544))|0;
  43270. $550 = ($549>>>0)<=($548>>>0);
  43271. $551 = ($549>>>0)>($546>>>0);
  43272. $or$cond1$i = $550 | $551;
  43273. if ($or$cond1$i) {
  43274. $$0 = 0;
  43275. STACKTOP = sp;return ($$0|0);
  43276. }
  43277. }
  43278. $552 = HEAP32[(22308)>>2]|0;
  43279. $553 = $552 & 4;
  43280. $554 = ($553|0)==(0);
  43281. L244: do {
  43282. if ($554) {
  43283. $555 = HEAP32[(21888)>>2]|0;
  43284. $556 = ($555|0)==(0|0);
  43285. L246: do {
  43286. if ($556) {
  43287. label = 163;
  43288. } else {
  43289. $$0$i$i = (22312);
  43290. while(1) {
  43291. $557 = HEAP32[$$0$i$i>>2]|0;
  43292. $558 = ($557>>>0)>($555>>>0);
  43293. if (!($558)) {
  43294. $559 = ((($$0$i$i)) + 4|0);
  43295. $560 = HEAP32[$559>>2]|0;
  43296. $561 = (($557) + ($560)|0);
  43297. $562 = ($561>>>0)>($555>>>0);
  43298. if ($562) {
  43299. break;
  43300. }
  43301. }
  43302. $563 = ((($$0$i$i)) + 8|0);
  43303. $564 = HEAP32[$563>>2]|0;
  43304. $565 = ($564|0)==(0|0);
  43305. if ($565) {
  43306. label = 163;
  43307. break L246;
  43308. } else {
  43309. $$0$i$i = $564;
  43310. }
  43311. }
  43312. $588 = (($541) - ($524))|0;
  43313. $589 = $588 & $543;
  43314. $590 = ($589>>>0)<(2147483647);
  43315. if ($590) {
  43316. $591 = (_sbrk(($589|0))|0);
  43317. $592 = HEAP32[$$0$i$i>>2]|0;
  43318. $593 = HEAP32[$559>>2]|0;
  43319. $594 = (($592) + ($593)|0);
  43320. $595 = ($591|0)==($594|0);
  43321. if ($595) {
  43322. $596 = ($591|0)==((-1)|0);
  43323. if ($596) {
  43324. $$2234253237$i = $589;
  43325. } else {
  43326. $$723948$i = $589;$$749$i = $591;
  43327. label = 180;
  43328. break L244;
  43329. }
  43330. } else {
  43331. $$2247$ph$i = $591;$$2253$ph$i = $589;
  43332. label = 171;
  43333. }
  43334. } else {
  43335. $$2234253237$i = 0;
  43336. }
  43337. }
  43338. } while(0);
  43339. do {
  43340. if ((label|0) == 163) {
  43341. $566 = (_sbrk(0)|0);
  43342. $567 = ($566|0)==((-1)|0);
  43343. if ($567) {
  43344. $$2234253237$i = 0;
  43345. } else {
  43346. $568 = $566;
  43347. $569 = HEAP32[(22340)>>2]|0;
  43348. $570 = (($569) + -1)|0;
  43349. $571 = $570 & $568;
  43350. $572 = ($571|0)==(0);
  43351. $573 = (($570) + ($568))|0;
  43352. $574 = (0 - ($569))|0;
  43353. $575 = $573 & $574;
  43354. $576 = (($575) - ($568))|0;
  43355. $577 = $572 ? 0 : $576;
  43356. $$$i = (($577) + ($544))|0;
  43357. $578 = HEAP32[(22296)>>2]|0;
  43358. $579 = (($$$i) + ($578))|0;
  43359. $580 = ($$$i>>>0)>($$0197>>>0);
  43360. $581 = ($$$i>>>0)<(2147483647);
  43361. $or$cond$i214 = $580 & $581;
  43362. if ($or$cond$i214) {
  43363. $582 = HEAP32[(22304)>>2]|0;
  43364. $583 = ($582|0)==(0);
  43365. if (!($583)) {
  43366. $584 = ($579>>>0)<=($578>>>0);
  43367. $585 = ($579>>>0)>($582>>>0);
  43368. $or$cond2$i215 = $584 | $585;
  43369. if ($or$cond2$i215) {
  43370. $$2234253237$i = 0;
  43371. break;
  43372. }
  43373. }
  43374. $586 = (_sbrk(($$$i|0))|0);
  43375. $587 = ($586|0)==($566|0);
  43376. if ($587) {
  43377. $$723948$i = $$$i;$$749$i = $566;
  43378. label = 180;
  43379. break L244;
  43380. } else {
  43381. $$2247$ph$i = $586;$$2253$ph$i = $$$i;
  43382. label = 171;
  43383. }
  43384. } else {
  43385. $$2234253237$i = 0;
  43386. }
  43387. }
  43388. }
  43389. } while(0);
  43390. do {
  43391. if ((label|0) == 171) {
  43392. $597 = (0 - ($$2253$ph$i))|0;
  43393. $598 = ($$2247$ph$i|0)!=((-1)|0);
  43394. $599 = ($$2253$ph$i>>>0)<(2147483647);
  43395. $or$cond7$i = $599 & $598;
  43396. $600 = ($539>>>0)>($$2253$ph$i>>>0);
  43397. $or$cond10$i = $600 & $or$cond7$i;
  43398. if (!($or$cond10$i)) {
  43399. $610 = ($$2247$ph$i|0)==((-1)|0);
  43400. if ($610) {
  43401. $$2234253237$i = 0;
  43402. break;
  43403. } else {
  43404. $$723948$i = $$2253$ph$i;$$749$i = $$2247$ph$i;
  43405. label = 180;
  43406. break L244;
  43407. }
  43408. }
  43409. $601 = HEAP32[(22344)>>2]|0;
  43410. $602 = (($540) - ($$2253$ph$i))|0;
  43411. $603 = (($602) + ($601))|0;
  43412. $604 = (0 - ($601))|0;
  43413. $605 = $603 & $604;
  43414. $606 = ($605>>>0)<(2147483647);
  43415. if (!($606)) {
  43416. $$723948$i = $$2253$ph$i;$$749$i = $$2247$ph$i;
  43417. label = 180;
  43418. break L244;
  43419. }
  43420. $607 = (_sbrk(($605|0))|0);
  43421. $608 = ($607|0)==((-1)|0);
  43422. if ($608) {
  43423. (_sbrk(($597|0))|0);
  43424. $$2234253237$i = 0;
  43425. break;
  43426. } else {
  43427. $609 = (($605) + ($$2253$ph$i))|0;
  43428. $$723948$i = $609;$$749$i = $$2247$ph$i;
  43429. label = 180;
  43430. break L244;
  43431. }
  43432. }
  43433. } while(0);
  43434. $611 = HEAP32[(22308)>>2]|0;
  43435. $612 = $611 | 4;
  43436. HEAP32[(22308)>>2] = $612;
  43437. $$4236$i = $$2234253237$i;
  43438. label = 178;
  43439. } else {
  43440. $$4236$i = 0;
  43441. label = 178;
  43442. }
  43443. } while(0);
  43444. if ((label|0) == 178) {
  43445. $613 = ($544>>>0)<(2147483647);
  43446. if ($613) {
  43447. $614 = (_sbrk(($544|0))|0);
  43448. $615 = (_sbrk(0)|0);
  43449. $616 = ($614|0)!=((-1)|0);
  43450. $617 = ($615|0)!=((-1)|0);
  43451. $or$cond5$i = $616 & $617;
  43452. $618 = ($614>>>0)<($615>>>0);
  43453. $or$cond11$i = $618 & $or$cond5$i;
  43454. $619 = $615;
  43455. $620 = $614;
  43456. $621 = (($619) - ($620))|0;
  43457. $622 = (($$0197) + 40)|0;
  43458. $623 = ($621>>>0)>($622>>>0);
  43459. $$$4236$i = $623 ? $621 : $$4236$i;
  43460. $or$cond11$not$i = $or$cond11$i ^ 1;
  43461. $624 = ($614|0)==((-1)|0);
  43462. $not$$i216 = $623 ^ 1;
  43463. $625 = $624 | $not$$i216;
  43464. $or$cond50$i = $625 | $or$cond11$not$i;
  43465. if (!($or$cond50$i)) {
  43466. $$723948$i = $$$4236$i;$$749$i = $614;
  43467. label = 180;
  43468. }
  43469. }
  43470. }
  43471. if ((label|0) == 180) {
  43472. $626 = HEAP32[(22296)>>2]|0;
  43473. $627 = (($626) + ($$723948$i))|0;
  43474. HEAP32[(22296)>>2] = $627;
  43475. $628 = HEAP32[(22300)>>2]|0;
  43476. $629 = ($627>>>0)>($628>>>0);
  43477. if ($629) {
  43478. HEAP32[(22300)>>2] = $627;
  43479. }
  43480. $630 = HEAP32[(21888)>>2]|0;
  43481. $631 = ($630|0)==(0|0);
  43482. do {
  43483. if ($631) {
  43484. $632 = HEAP32[(21880)>>2]|0;
  43485. $633 = ($632|0)==(0|0);
  43486. $634 = ($$749$i>>>0)<($632>>>0);
  43487. $or$cond12$i = $633 | $634;
  43488. if ($or$cond12$i) {
  43489. HEAP32[(21880)>>2] = $$749$i;
  43490. }
  43491. HEAP32[(22312)>>2] = $$749$i;
  43492. HEAP32[(22316)>>2] = $$723948$i;
  43493. HEAP32[(22324)>>2] = 0;
  43494. $635 = HEAP32[5584]|0;
  43495. HEAP32[(21900)>>2] = $635;
  43496. HEAP32[(21896)>>2] = -1;
  43497. $$01$i$i = 0;
  43498. while(1) {
  43499. $636 = $$01$i$i << 1;
  43500. $637 = (21904 + ($636<<2)|0);
  43501. $638 = ((($637)) + 12|0);
  43502. HEAP32[$638>>2] = $637;
  43503. $639 = ((($637)) + 8|0);
  43504. HEAP32[$639>>2] = $637;
  43505. $640 = (($$01$i$i) + 1)|0;
  43506. $exitcond$i$i = ($640|0)==(32);
  43507. if ($exitcond$i$i) {
  43508. break;
  43509. } else {
  43510. $$01$i$i = $640;
  43511. }
  43512. }
  43513. $641 = (($$723948$i) + -40)|0;
  43514. $642 = ((($$749$i)) + 8|0);
  43515. $643 = $642;
  43516. $644 = $643 & 7;
  43517. $645 = ($644|0)==(0);
  43518. $646 = (0 - ($643))|0;
  43519. $647 = $646 & 7;
  43520. $648 = $645 ? 0 : $647;
  43521. $649 = (($$749$i) + ($648)|0);
  43522. $650 = (($641) - ($648))|0;
  43523. HEAP32[(21888)>>2] = $649;
  43524. HEAP32[(21876)>>2] = $650;
  43525. $651 = $650 | 1;
  43526. $652 = ((($649)) + 4|0);
  43527. HEAP32[$652>>2] = $651;
  43528. $653 = (($649) + ($650)|0);
  43529. $654 = ((($653)) + 4|0);
  43530. HEAP32[$654>>2] = 40;
  43531. $655 = HEAP32[(22352)>>2]|0;
  43532. HEAP32[(21892)>>2] = $655;
  43533. } else {
  43534. $$024371$i = (22312);
  43535. while(1) {
  43536. $656 = HEAP32[$$024371$i>>2]|0;
  43537. $657 = ((($$024371$i)) + 4|0);
  43538. $658 = HEAP32[$657>>2]|0;
  43539. $659 = (($656) + ($658)|0);
  43540. $660 = ($$749$i|0)==($659|0);
  43541. if ($660) {
  43542. label = 190;
  43543. break;
  43544. }
  43545. $661 = ((($$024371$i)) + 8|0);
  43546. $662 = HEAP32[$661>>2]|0;
  43547. $663 = ($662|0)==(0|0);
  43548. if ($663) {
  43549. break;
  43550. } else {
  43551. $$024371$i = $662;
  43552. }
  43553. }
  43554. if ((label|0) == 190) {
  43555. $664 = ((($$024371$i)) + 12|0);
  43556. $665 = HEAP32[$664>>2]|0;
  43557. $666 = $665 & 8;
  43558. $667 = ($666|0)==(0);
  43559. if ($667) {
  43560. $668 = ($630>>>0)>=($656>>>0);
  43561. $669 = ($630>>>0)<($$749$i>>>0);
  43562. $or$cond51$i = $669 & $668;
  43563. if ($or$cond51$i) {
  43564. $670 = (($658) + ($$723948$i))|0;
  43565. HEAP32[$657>>2] = $670;
  43566. $671 = HEAP32[(21876)>>2]|0;
  43567. $672 = ((($630)) + 8|0);
  43568. $673 = $672;
  43569. $674 = $673 & 7;
  43570. $675 = ($674|0)==(0);
  43571. $676 = (0 - ($673))|0;
  43572. $677 = $676 & 7;
  43573. $678 = $675 ? 0 : $677;
  43574. $679 = (($630) + ($678)|0);
  43575. $680 = (($$723948$i) - ($678))|0;
  43576. $681 = (($671) + ($680))|0;
  43577. HEAP32[(21888)>>2] = $679;
  43578. HEAP32[(21876)>>2] = $681;
  43579. $682 = $681 | 1;
  43580. $683 = ((($679)) + 4|0);
  43581. HEAP32[$683>>2] = $682;
  43582. $684 = (($679) + ($681)|0);
  43583. $685 = ((($684)) + 4|0);
  43584. HEAP32[$685>>2] = 40;
  43585. $686 = HEAP32[(22352)>>2]|0;
  43586. HEAP32[(21892)>>2] = $686;
  43587. break;
  43588. }
  43589. }
  43590. }
  43591. $687 = HEAP32[(21880)>>2]|0;
  43592. $688 = ($$749$i>>>0)<($687>>>0);
  43593. if ($688) {
  43594. HEAP32[(21880)>>2] = $$749$i;
  43595. $752 = $$749$i;
  43596. } else {
  43597. $752 = $687;
  43598. }
  43599. $689 = (($$749$i) + ($$723948$i)|0);
  43600. $$124470$i = (22312);
  43601. while(1) {
  43602. $690 = HEAP32[$$124470$i>>2]|0;
  43603. $691 = ($690|0)==($689|0);
  43604. if ($691) {
  43605. label = 198;
  43606. break;
  43607. }
  43608. $692 = ((($$124470$i)) + 8|0);
  43609. $693 = HEAP32[$692>>2]|0;
  43610. $694 = ($693|0)==(0|0);
  43611. if ($694) {
  43612. break;
  43613. } else {
  43614. $$124470$i = $693;
  43615. }
  43616. }
  43617. if ((label|0) == 198) {
  43618. $695 = ((($$124470$i)) + 12|0);
  43619. $696 = HEAP32[$695>>2]|0;
  43620. $697 = $696 & 8;
  43621. $698 = ($697|0)==(0);
  43622. if ($698) {
  43623. HEAP32[$$124470$i>>2] = $$749$i;
  43624. $699 = ((($$124470$i)) + 4|0);
  43625. $700 = HEAP32[$699>>2]|0;
  43626. $701 = (($700) + ($$723948$i))|0;
  43627. HEAP32[$699>>2] = $701;
  43628. $702 = ((($$749$i)) + 8|0);
  43629. $703 = $702;
  43630. $704 = $703 & 7;
  43631. $705 = ($704|0)==(0);
  43632. $706 = (0 - ($703))|0;
  43633. $707 = $706 & 7;
  43634. $708 = $705 ? 0 : $707;
  43635. $709 = (($$749$i) + ($708)|0);
  43636. $710 = ((($689)) + 8|0);
  43637. $711 = $710;
  43638. $712 = $711 & 7;
  43639. $713 = ($712|0)==(0);
  43640. $714 = (0 - ($711))|0;
  43641. $715 = $714 & 7;
  43642. $716 = $713 ? 0 : $715;
  43643. $717 = (($689) + ($716)|0);
  43644. $718 = $717;
  43645. $719 = $709;
  43646. $720 = (($718) - ($719))|0;
  43647. $721 = (($709) + ($$0197)|0);
  43648. $722 = (($720) - ($$0197))|0;
  43649. $723 = $$0197 | 3;
  43650. $724 = ((($709)) + 4|0);
  43651. HEAP32[$724>>2] = $723;
  43652. $725 = ($717|0)==($630|0);
  43653. do {
  43654. if ($725) {
  43655. $726 = HEAP32[(21876)>>2]|0;
  43656. $727 = (($726) + ($722))|0;
  43657. HEAP32[(21876)>>2] = $727;
  43658. HEAP32[(21888)>>2] = $721;
  43659. $728 = $727 | 1;
  43660. $729 = ((($721)) + 4|0);
  43661. HEAP32[$729>>2] = $728;
  43662. } else {
  43663. $730 = HEAP32[(21884)>>2]|0;
  43664. $731 = ($717|0)==($730|0);
  43665. if ($731) {
  43666. $732 = HEAP32[(21872)>>2]|0;
  43667. $733 = (($732) + ($722))|0;
  43668. HEAP32[(21872)>>2] = $733;
  43669. HEAP32[(21884)>>2] = $721;
  43670. $734 = $733 | 1;
  43671. $735 = ((($721)) + 4|0);
  43672. HEAP32[$735>>2] = $734;
  43673. $736 = (($721) + ($733)|0);
  43674. HEAP32[$736>>2] = $733;
  43675. break;
  43676. }
  43677. $737 = ((($717)) + 4|0);
  43678. $738 = HEAP32[$737>>2]|0;
  43679. $739 = $738 & 3;
  43680. $740 = ($739|0)==(1);
  43681. if ($740) {
  43682. $741 = $738 & -8;
  43683. $742 = $738 >>> 3;
  43684. $743 = ($738>>>0)<(256);
  43685. L314: do {
  43686. if ($743) {
  43687. $744 = ((($717)) + 8|0);
  43688. $745 = HEAP32[$744>>2]|0;
  43689. $746 = ((($717)) + 12|0);
  43690. $747 = HEAP32[$746>>2]|0;
  43691. $748 = $742 << 1;
  43692. $749 = (21904 + ($748<<2)|0);
  43693. $750 = ($745|0)==($749|0);
  43694. do {
  43695. if (!($750)) {
  43696. $751 = ($745>>>0)<($752>>>0);
  43697. if ($751) {
  43698. _abort();
  43699. // unreachable;
  43700. }
  43701. $753 = ((($745)) + 12|0);
  43702. $754 = HEAP32[$753>>2]|0;
  43703. $755 = ($754|0)==($717|0);
  43704. if ($755) {
  43705. break;
  43706. }
  43707. _abort();
  43708. // unreachable;
  43709. }
  43710. } while(0);
  43711. $756 = ($747|0)==($745|0);
  43712. if ($756) {
  43713. $757 = 1 << $742;
  43714. $758 = $757 ^ -1;
  43715. $759 = HEAP32[5466]|0;
  43716. $760 = $759 & $758;
  43717. HEAP32[5466] = $760;
  43718. break;
  43719. }
  43720. $761 = ($747|0)==($749|0);
  43721. do {
  43722. if ($761) {
  43723. $$pre10$i$i = ((($747)) + 8|0);
  43724. $$pre$phi11$i$iZ2D = $$pre10$i$i;
  43725. } else {
  43726. $762 = ($747>>>0)<($752>>>0);
  43727. if ($762) {
  43728. _abort();
  43729. // unreachable;
  43730. }
  43731. $763 = ((($747)) + 8|0);
  43732. $764 = HEAP32[$763>>2]|0;
  43733. $765 = ($764|0)==($717|0);
  43734. if ($765) {
  43735. $$pre$phi11$i$iZ2D = $763;
  43736. break;
  43737. }
  43738. _abort();
  43739. // unreachable;
  43740. }
  43741. } while(0);
  43742. $766 = ((($745)) + 12|0);
  43743. HEAP32[$766>>2] = $747;
  43744. HEAP32[$$pre$phi11$i$iZ2D>>2] = $745;
  43745. } else {
  43746. $767 = ((($717)) + 24|0);
  43747. $768 = HEAP32[$767>>2]|0;
  43748. $769 = ((($717)) + 12|0);
  43749. $770 = HEAP32[$769>>2]|0;
  43750. $771 = ($770|0)==($717|0);
  43751. do {
  43752. if ($771) {
  43753. $781 = ((($717)) + 16|0);
  43754. $782 = ((($781)) + 4|0);
  43755. $783 = HEAP32[$782>>2]|0;
  43756. $784 = ($783|0)==(0|0);
  43757. if ($784) {
  43758. $785 = HEAP32[$781>>2]|0;
  43759. $786 = ($785|0)==(0|0);
  43760. if ($786) {
  43761. $$3$i$i = 0;
  43762. break;
  43763. } else {
  43764. $$1291$i$i = $785;$$1293$i$i = $781;
  43765. }
  43766. } else {
  43767. $$1291$i$i = $783;$$1293$i$i = $782;
  43768. }
  43769. while(1) {
  43770. $787 = ((($$1291$i$i)) + 20|0);
  43771. $788 = HEAP32[$787>>2]|0;
  43772. $789 = ($788|0)==(0|0);
  43773. if (!($789)) {
  43774. $$1291$i$i = $788;$$1293$i$i = $787;
  43775. continue;
  43776. }
  43777. $790 = ((($$1291$i$i)) + 16|0);
  43778. $791 = HEAP32[$790>>2]|0;
  43779. $792 = ($791|0)==(0|0);
  43780. if ($792) {
  43781. break;
  43782. } else {
  43783. $$1291$i$i = $791;$$1293$i$i = $790;
  43784. }
  43785. }
  43786. $793 = ($$1293$i$i>>>0)<($752>>>0);
  43787. if ($793) {
  43788. _abort();
  43789. // unreachable;
  43790. } else {
  43791. HEAP32[$$1293$i$i>>2] = 0;
  43792. $$3$i$i = $$1291$i$i;
  43793. break;
  43794. }
  43795. } else {
  43796. $772 = ((($717)) + 8|0);
  43797. $773 = HEAP32[$772>>2]|0;
  43798. $774 = ($773>>>0)<($752>>>0);
  43799. if ($774) {
  43800. _abort();
  43801. // unreachable;
  43802. }
  43803. $775 = ((($773)) + 12|0);
  43804. $776 = HEAP32[$775>>2]|0;
  43805. $777 = ($776|0)==($717|0);
  43806. if (!($777)) {
  43807. _abort();
  43808. // unreachable;
  43809. }
  43810. $778 = ((($770)) + 8|0);
  43811. $779 = HEAP32[$778>>2]|0;
  43812. $780 = ($779|0)==($717|0);
  43813. if ($780) {
  43814. HEAP32[$775>>2] = $770;
  43815. HEAP32[$778>>2] = $773;
  43816. $$3$i$i = $770;
  43817. break;
  43818. } else {
  43819. _abort();
  43820. // unreachable;
  43821. }
  43822. }
  43823. } while(0);
  43824. $794 = ($768|0)==(0|0);
  43825. if ($794) {
  43826. break;
  43827. }
  43828. $795 = ((($717)) + 28|0);
  43829. $796 = HEAP32[$795>>2]|0;
  43830. $797 = (22168 + ($796<<2)|0);
  43831. $798 = HEAP32[$797>>2]|0;
  43832. $799 = ($717|0)==($798|0);
  43833. do {
  43834. if ($799) {
  43835. HEAP32[$797>>2] = $$3$i$i;
  43836. $cond$i$i = ($$3$i$i|0)==(0|0);
  43837. if (!($cond$i$i)) {
  43838. break;
  43839. }
  43840. $800 = 1 << $796;
  43841. $801 = $800 ^ -1;
  43842. $802 = HEAP32[(21868)>>2]|0;
  43843. $803 = $802 & $801;
  43844. HEAP32[(21868)>>2] = $803;
  43845. break L314;
  43846. } else {
  43847. $804 = HEAP32[(21880)>>2]|0;
  43848. $805 = ($768>>>0)<($804>>>0);
  43849. if ($805) {
  43850. _abort();
  43851. // unreachable;
  43852. } else {
  43853. $806 = ((($768)) + 16|0);
  43854. $807 = HEAP32[$806>>2]|0;
  43855. $not$$i17$i = ($807|0)!=($717|0);
  43856. $$sink1$i$i = $not$$i17$i&1;
  43857. $808 = (((($768)) + 16|0) + ($$sink1$i$i<<2)|0);
  43858. HEAP32[$808>>2] = $$3$i$i;
  43859. $809 = ($$3$i$i|0)==(0|0);
  43860. if ($809) {
  43861. break L314;
  43862. } else {
  43863. break;
  43864. }
  43865. }
  43866. }
  43867. } while(0);
  43868. $810 = HEAP32[(21880)>>2]|0;
  43869. $811 = ($$3$i$i>>>0)<($810>>>0);
  43870. if ($811) {
  43871. _abort();
  43872. // unreachable;
  43873. }
  43874. $812 = ((($$3$i$i)) + 24|0);
  43875. HEAP32[$812>>2] = $768;
  43876. $813 = ((($717)) + 16|0);
  43877. $814 = HEAP32[$813>>2]|0;
  43878. $815 = ($814|0)==(0|0);
  43879. do {
  43880. if (!($815)) {
  43881. $816 = ($814>>>0)<($810>>>0);
  43882. if ($816) {
  43883. _abort();
  43884. // unreachable;
  43885. } else {
  43886. $817 = ((($$3$i$i)) + 16|0);
  43887. HEAP32[$817>>2] = $814;
  43888. $818 = ((($814)) + 24|0);
  43889. HEAP32[$818>>2] = $$3$i$i;
  43890. break;
  43891. }
  43892. }
  43893. } while(0);
  43894. $819 = ((($813)) + 4|0);
  43895. $820 = HEAP32[$819>>2]|0;
  43896. $821 = ($820|0)==(0|0);
  43897. if ($821) {
  43898. break;
  43899. }
  43900. $822 = HEAP32[(21880)>>2]|0;
  43901. $823 = ($820>>>0)<($822>>>0);
  43902. if ($823) {
  43903. _abort();
  43904. // unreachable;
  43905. } else {
  43906. $824 = ((($$3$i$i)) + 20|0);
  43907. HEAP32[$824>>2] = $820;
  43908. $825 = ((($820)) + 24|0);
  43909. HEAP32[$825>>2] = $$3$i$i;
  43910. break;
  43911. }
  43912. }
  43913. } while(0);
  43914. $826 = (($717) + ($741)|0);
  43915. $827 = (($741) + ($722))|0;
  43916. $$0$i18$i = $826;$$0287$i$i = $827;
  43917. } else {
  43918. $$0$i18$i = $717;$$0287$i$i = $722;
  43919. }
  43920. $828 = ((($$0$i18$i)) + 4|0);
  43921. $829 = HEAP32[$828>>2]|0;
  43922. $830 = $829 & -2;
  43923. HEAP32[$828>>2] = $830;
  43924. $831 = $$0287$i$i | 1;
  43925. $832 = ((($721)) + 4|0);
  43926. HEAP32[$832>>2] = $831;
  43927. $833 = (($721) + ($$0287$i$i)|0);
  43928. HEAP32[$833>>2] = $$0287$i$i;
  43929. $834 = $$0287$i$i >>> 3;
  43930. $835 = ($$0287$i$i>>>0)<(256);
  43931. if ($835) {
  43932. $836 = $834 << 1;
  43933. $837 = (21904 + ($836<<2)|0);
  43934. $838 = HEAP32[5466]|0;
  43935. $839 = 1 << $834;
  43936. $840 = $838 & $839;
  43937. $841 = ($840|0)==(0);
  43938. do {
  43939. if ($841) {
  43940. $842 = $838 | $839;
  43941. HEAP32[5466] = $842;
  43942. $$pre$i19$i = ((($837)) + 8|0);
  43943. $$0295$i$i = $837;$$pre$phi$i20$iZ2D = $$pre$i19$i;
  43944. } else {
  43945. $843 = ((($837)) + 8|0);
  43946. $844 = HEAP32[$843>>2]|0;
  43947. $845 = HEAP32[(21880)>>2]|0;
  43948. $846 = ($844>>>0)<($845>>>0);
  43949. if (!($846)) {
  43950. $$0295$i$i = $844;$$pre$phi$i20$iZ2D = $843;
  43951. break;
  43952. }
  43953. _abort();
  43954. // unreachable;
  43955. }
  43956. } while(0);
  43957. HEAP32[$$pre$phi$i20$iZ2D>>2] = $721;
  43958. $847 = ((($$0295$i$i)) + 12|0);
  43959. HEAP32[$847>>2] = $721;
  43960. $848 = ((($721)) + 8|0);
  43961. HEAP32[$848>>2] = $$0295$i$i;
  43962. $849 = ((($721)) + 12|0);
  43963. HEAP32[$849>>2] = $837;
  43964. break;
  43965. }
  43966. $850 = $$0287$i$i >>> 8;
  43967. $851 = ($850|0)==(0);
  43968. do {
  43969. if ($851) {
  43970. $$0296$i$i = 0;
  43971. } else {
  43972. $852 = ($$0287$i$i>>>0)>(16777215);
  43973. if ($852) {
  43974. $$0296$i$i = 31;
  43975. break;
  43976. }
  43977. $853 = (($850) + 1048320)|0;
  43978. $854 = $853 >>> 16;
  43979. $855 = $854 & 8;
  43980. $856 = $850 << $855;
  43981. $857 = (($856) + 520192)|0;
  43982. $858 = $857 >>> 16;
  43983. $859 = $858 & 4;
  43984. $860 = $859 | $855;
  43985. $861 = $856 << $859;
  43986. $862 = (($861) + 245760)|0;
  43987. $863 = $862 >>> 16;
  43988. $864 = $863 & 2;
  43989. $865 = $860 | $864;
  43990. $866 = (14 - ($865))|0;
  43991. $867 = $861 << $864;
  43992. $868 = $867 >>> 15;
  43993. $869 = (($866) + ($868))|0;
  43994. $870 = $869 << 1;
  43995. $871 = (($869) + 7)|0;
  43996. $872 = $$0287$i$i >>> $871;
  43997. $873 = $872 & 1;
  43998. $874 = $873 | $870;
  43999. $$0296$i$i = $874;
  44000. }
  44001. } while(0);
  44002. $875 = (22168 + ($$0296$i$i<<2)|0);
  44003. $876 = ((($721)) + 28|0);
  44004. HEAP32[$876>>2] = $$0296$i$i;
  44005. $877 = ((($721)) + 16|0);
  44006. $878 = ((($877)) + 4|0);
  44007. HEAP32[$878>>2] = 0;
  44008. HEAP32[$877>>2] = 0;
  44009. $879 = HEAP32[(21868)>>2]|0;
  44010. $880 = 1 << $$0296$i$i;
  44011. $881 = $879 & $880;
  44012. $882 = ($881|0)==(0);
  44013. if ($882) {
  44014. $883 = $879 | $880;
  44015. HEAP32[(21868)>>2] = $883;
  44016. HEAP32[$875>>2] = $721;
  44017. $884 = ((($721)) + 24|0);
  44018. HEAP32[$884>>2] = $875;
  44019. $885 = ((($721)) + 12|0);
  44020. HEAP32[$885>>2] = $721;
  44021. $886 = ((($721)) + 8|0);
  44022. HEAP32[$886>>2] = $721;
  44023. break;
  44024. }
  44025. $887 = HEAP32[$875>>2]|0;
  44026. $888 = ($$0296$i$i|0)==(31);
  44027. $889 = $$0296$i$i >>> 1;
  44028. $890 = (25 - ($889))|0;
  44029. $891 = $888 ? 0 : $890;
  44030. $892 = $$0287$i$i << $891;
  44031. $$0288$i$i = $892;$$0289$i$i = $887;
  44032. while(1) {
  44033. $893 = ((($$0289$i$i)) + 4|0);
  44034. $894 = HEAP32[$893>>2]|0;
  44035. $895 = $894 & -8;
  44036. $896 = ($895|0)==($$0287$i$i|0);
  44037. if ($896) {
  44038. label = 265;
  44039. break;
  44040. }
  44041. $897 = $$0288$i$i >>> 31;
  44042. $898 = (((($$0289$i$i)) + 16|0) + ($897<<2)|0);
  44043. $899 = $$0288$i$i << 1;
  44044. $900 = HEAP32[$898>>2]|0;
  44045. $901 = ($900|0)==(0|0);
  44046. if ($901) {
  44047. label = 262;
  44048. break;
  44049. } else {
  44050. $$0288$i$i = $899;$$0289$i$i = $900;
  44051. }
  44052. }
  44053. if ((label|0) == 262) {
  44054. $902 = HEAP32[(21880)>>2]|0;
  44055. $903 = ($898>>>0)<($902>>>0);
  44056. if ($903) {
  44057. _abort();
  44058. // unreachable;
  44059. } else {
  44060. HEAP32[$898>>2] = $721;
  44061. $904 = ((($721)) + 24|0);
  44062. HEAP32[$904>>2] = $$0289$i$i;
  44063. $905 = ((($721)) + 12|0);
  44064. HEAP32[$905>>2] = $721;
  44065. $906 = ((($721)) + 8|0);
  44066. HEAP32[$906>>2] = $721;
  44067. break;
  44068. }
  44069. }
  44070. else if ((label|0) == 265) {
  44071. $907 = ((($$0289$i$i)) + 8|0);
  44072. $908 = HEAP32[$907>>2]|0;
  44073. $909 = HEAP32[(21880)>>2]|0;
  44074. $910 = ($908>>>0)>=($909>>>0);
  44075. $not$7$i$i = ($$0289$i$i>>>0)>=($909>>>0);
  44076. $911 = $910 & $not$7$i$i;
  44077. if ($911) {
  44078. $912 = ((($908)) + 12|0);
  44079. HEAP32[$912>>2] = $721;
  44080. HEAP32[$907>>2] = $721;
  44081. $913 = ((($721)) + 8|0);
  44082. HEAP32[$913>>2] = $908;
  44083. $914 = ((($721)) + 12|0);
  44084. HEAP32[$914>>2] = $$0289$i$i;
  44085. $915 = ((($721)) + 24|0);
  44086. HEAP32[$915>>2] = 0;
  44087. break;
  44088. } else {
  44089. _abort();
  44090. // unreachable;
  44091. }
  44092. }
  44093. }
  44094. } while(0);
  44095. $1047 = ((($709)) + 8|0);
  44096. $$0 = $1047;
  44097. STACKTOP = sp;return ($$0|0);
  44098. }
  44099. }
  44100. $$0$i$i$i = (22312);
  44101. while(1) {
  44102. $916 = HEAP32[$$0$i$i$i>>2]|0;
  44103. $917 = ($916>>>0)>($630>>>0);
  44104. if (!($917)) {
  44105. $918 = ((($$0$i$i$i)) + 4|0);
  44106. $919 = HEAP32[$918>>2]|0;
  44107. $920 = (($916) + ($919)|0);
  44108. $921 = ($920>>>0)>($630>>>0);
  44109. if ($921) {
  44110. break;
  44111. }
  44112. }
  44113. $922 = ((($$0$i$i$i)) + 8|0);
  44114. $923 = HEAP32[$922>>2]|0;
  44115. $$0$i$i$i = $923;
  44116. }
  44117. $924 = ((($920)) + -47|0);
  44118. $925 = ((($924)) + 8|0);
  44119. $926 = $925;
  44120. $927 = $926 & 7;
  44121. $928 = ($927|0)==(0);
  44122. $929 = (0 - ($926))|0;
  44123. $930 = $929 & 7;
  44124. $931 = $928 ? 0 : $930;
  44125. $932 = (($924) + ($931)|0);
  44126. $933 = ((($630)) + 16|0);
  44127. $934 = ($932>>>0)<($933>>>0);
  44128. $935 = $934 ? $630 : $932;
  44129. $936 = ((($935)) + 8|0);
  44130. $937 = ((($935)) + 24|0);
  44131. $938 = (($$723948$i) + -40)|0;
  44132. $939 = ((($$749$i)) + 8|0);
  44133. $940 = $939;
  44134. $941 = $940 & 7;
  44135. $942 = ($941|0)==(0);
  44136. $943 = (0 - ($940))|0;
  44137. $944 = $943 & 7;
  44138. $945 = $942 ? 0 : $944;
  44139. $946 = (($$749$i) + ($945)|0);
  44140. $947 = (($938) - ($945))|0;
  44141. HEAP32[(21888)>>2] = $946;
  44142. HEAP32[(21876)>>2] = $947;
  44143. $948 = $947 | 1;
  44144. $949 = ((($946)) + 4|0);
  44145. HEAP32[$949>>2] = $948;
  44146. $950 = (($946) + ($947)|0);
  44147. $951 = ((($950)) + 4|0);
  44148. HEAP32[$951>>2] = 40;
  44149. $952 = HEAP32[(22352)>>2]|0;
  44150. HEAP32[(21892)>>2] = $952;
  44151. $953 = ((($935)) + 4|0);
  44152. HEAP32[$953>>2] = 27;
  44153. ;HEAP32[$936>>2]=HEAP32[(22312)>>2]|0;HEAP32[$936+4>>2]=HEAP32[(22312)+4>>2]|0;HEAP32[$936+8>>2]=HEAP32[(22312)+8>>2]|0;HEAP32[$936+12>>2]=HEAP32[(22312)+12>>2]|0;
  44154. HEAP32[(22312)>>2] = $$749$i;
  44155. HEAP32[(22316)>>2] = $$723948$i;
  44156. HEAP32[(22324)>>2] = 0;
  44157. HEAP32[(22320)>>2] = $936;
  44158. $955 = $937;
  44159. while(1) {
  44160. $954 = ((($955)) + 4|0);
  44161. HEAP32[$954>>2] = 7;
  44162. $956 = ((($955)) + 8|0);
  44163. $957 = ($956>>>0)<($920>>>0);
  44164. if ($957) {
  44165. $955 = $954;
  44166. } else {
  44167. break;
  44168. }
  44169. }
  44170. $958 = ($935|0)==($630|0);
  44171. if (!($958)) {
  44172. $959 = $935;
  44173. $960 = $630;
  44174. $961 = (($959) - ($960))|0;
  44175. $962 = HEAP32[$953>>2]|0;
  44176. $963 = $962 & -2;
  44177. HEAP32[$953>>2] = $963;
  44178. $964 = $961 | 1;
  44179. $965 = ((($630)) + 4|0);
  44180. HEAP32[$965>>2] = $964;
  44181. HEAP32[$935>>2] = $961;
  44182. $966 = $961 >>> 3;
  44183. $967 = ($961>>>0)<(256);
  44184. if ($967) {
  44185. $968 = $966 << 1;
  44186. $969 = (21904 + ($968<<2)|0);
  44187. $970 = HEAP32[5466]|0;
  44188. $971 = 1 << $966;
  44189. $972 = $970 & $971;
  44190. $973 = ($972|0)==(0);
  44191. if ($973) {
  44192. $974 = $970 | $971;
  44193. HEAP32[5466] = $974;
  44194. $$pre$i$i = ((($969)) + 8|0);
  44195. $$0211$i$i = $969;$$pre$phi$i$iZ2D = $$pre$i$i;
  44196. } else {
  44197. $975 = ((($969)) + 8|0);
  44198. $976 = HEAP32[$975>>2]|0;
  44199. $977 = HEAP32[(21880)>>2]|0;
  44200. $978 = ($976>>>0)<($977>>>0);
  44201. if ($978) {
  44202. _abort();
  44203. // unreachable;
  44204. } else {
  44205. $$0211$i$i = $976;$$pre$phi$i$iZ2D = $975;
  44206. }
  44207. }
  44208. HEAP32[$$pre$phi$i$iZ2D>>2] = $630;
  44209. $979 = ((($$0211$i$i)) + 12|0);
  44210. HEAP32[$979>>2] = $630;
  44211. $980 = ((($630)) + 8|0);
  44212. HEAP32[$980>>2] = $$0211$i$i;
  44213. $981 = ((($630)) + 12|0);
  44214. HEAP32[$981>>2] = $969;
  44215. break;
  44216. }
  44217. $982 = $961 >>> 8;
  44218. $983 = ($982|0)==(0);
  44219. if ($983) {
  44220. $$0212$i$i = 0;
  44221. } else {
  44222. $984 = ($961>>>0)>(16777215);
  44223. if ($984) {
  44224. $$0212$i$i = 31;
  44225. } else {
  44226. $985 = (($982) + 1048320)|0;
  44227. $986 = $985 >>> 16;
  44228. $987 = $986 & 8;
  44229. $988 = $982 << $987;
  44230. $989 = (($988) + 520192)|0;
  44231. $990 = $989 >>> 16;
  44232. $991 = $990 & 4;
  44233. $992 = $991 | $987;
  44234. $993 = $988 << $991;
  44235. $994 = (($993) + 245760)|0;
  44236. $995 = $994 >>> 16;
  44237. $996 = $995 & 2;
  44238. $997 = $992 | $996;
  44239. $998 = (14 - ($997))|0;
  44240. $999 = $993 << $996;
  44241. $1000 = $999 >>> 15;
  44242. $1001 = (($998) + ($1000))|0;
  44243. $1002 = $1001 << 1;
  44244. $1003 = (($1001) + 7)|0;
  44245. $1004 = $961 >>> $1003;
  44246. $1005 = $1004 & 1;
  44247. $1006 = $1005 | $1002;
  44248. $$0212$i$i = $1006;
  44249. }
  44250. }
  44251. $1007 = (22168 + ($$0212$i$i<<2)|0);
  44252. $1008 = ((($630)) + 28|0);
  44253. HEAP32[$1008>>2] = $$0212$i$i;
  44254. $1009 = ((($630)) + 20|0);
  44255. HEAP32[$1009>>2] = 0;
  44256. HEAP32[$933>>2] = 0;
  44257. $1010 = HEAP32[(21868)>>2]|0;
  44258. $1011 = 1 << $$0212$i$i;
  44259. $1012 = $1010 & $1011;
  44260. $1013 = ($1012|0)==(0);
  44261. if ($1013) {
  44262. $1014 = $1010 | $1011;
  44263. HEAP32[(21868)>>2] = $1014;
  44264. HEAP32[$1007>>2] = $630;
  44265. $1015 = ((($630)) + 24|0);
  44266. HEAP32[$1015>>2] = $1007;
  44267. $1016 = ((($630)) + 12|0);
  44268. HEAP32[$1016>>2] = $630;
  44269. $1017 = ((($630)) + 8|0);
  44270. HEAP32[$1017>>2] = $630;
  44271. break;
  44272. }
  44273. $1018 = HEAP32[$1007>>2]|0;
  44274. $1019 = ($$0212$i$i|0)==(31);
  44275. $1020 = $$0212$i$i >>> 1;
  44276. $1021 = (25 - ($1020))|0;
  44277. $1022 = $1019 ? 0 : $1021;
  44278. $1023 = $961 << $1022;
  44279. $$0206$i$i = $1023;$$0207$i$i = $1018;
  44280. while(1) {
  44281. $1024 = ((($$0207$i$i)) + 4|0);
  44282. $1025 = HEAP32[$1024>>2]|0;
  44283. $1026 = $1025 & -8;
  44284. $1027 = ($1026|0)==($961|0);
  44285. if ($1027) {
  44286. label = 292;
  44287. break;
  44288. }
  44289. $1028 = $$0206$i$i >>> 31;
  44290. $1029 = (((($$0207$i$i)) + 16|0) + ($1028<<2)|0);
  44291. $1030 = $$0206$i$i << 1;
  44292. $1031 = HEAP32[$1029>>2]|0;
  44293. $1032 = ($1031|0)==(0|0);
  44294. if ($1032) {
  44295. label = 289;
  44296. break;
  44297. } else {
  44298. $$0206$i$i = $1030;$$0207$i$i = $1031;
  44299. }
  44300. }
  44301. if ((label|0) == 289) {
  44302. $1033 = HEAP32[(21880)>>2]|0;
  44303. $1034 = ($1029>>>0)<($1033>>>0);
  44304. if ($1034) {
  44305. _abort();
  44306. // unreachable;
  44307. } else {
  44308. HEAP32[$1029>>2] = $630;
  44309. $1035 = ((($630)) + 24|0);
  44310. HEAP32[$1035>>2] = $$0207$i$i;
  44311. $1036 = ((($630)) + 12|0);
  44312. HEAP32[$1036>>2] = $630;
  44313. $1037 = ((($630)) + 8|0);
  44314. HEAP32[$1037>>2] = $630;
  44315. break;
  44316. }
  44317. }
  44318. else if ((label|0) == 292) {
  44319. $1038 = ((($$0207$i$i)) + 8|0);
  44320. $1039 = HEAP32[$1038>>2]|0;
  44321. $1040 = HEAP32[(21880)>>2]|0;
  44322. $1041 = ($1039>>>0)>=($1040>>>0);
  44323. $not$$i$i = ($$0207$i$i>>>0)>=($1040>>>0);
  44324. $1042 = $1041 & $not$$i$i;
  44325. if ($1042) {
  44326. $1043 = ((($1039)) + 12|0);
  44327. HEAP32[$1043>>2] = $630;
  44328. HEAP32[$1038>>2] = $630;
  44329. $1044 = ((($630)) + 8|0);
  44330. HEAP32[$1044>>2] = $1039;
  44331. $1045 = ((($630)) + 12|0);
  44332. HEAP32[$1045>>2] = $$0207$i$i;
  44333. $1046 = ((($630)) + 24|0);
  44334. HEAP32[$1046>>2] = 0;
  44335. break;
  44336. } else {
  44337. _abort();
  44338. // unreachable;
  44339. }
  44340. }
  44341. }
  44342. }
  44343. } while(0);
  44344. $1048 = HEAP32[(21876)>>2]|0;
  44345. $1049 = ($1048>>>0)>($$0197>>>0);
  44346. if ($1049) {
  44347. $1050 = (($1048) - ($$0197))|0;
  44348. HEAP32[(21876)>>2] = $1050;
  44349. $1051 = HEAP32[(21888)>>2]|0;
  44350. $1052 = (($1051) + ($$0197)|0);
  44351. HEAP32[(21888)>>2] = $1052;
  44352. $1053 = $1050 | 1;
  44353. $1054 = ((($1052)) + 4|0);
  44354. HEAP32[$1054>>2] = $1053;
  44355. $1055 = $$0197 | 3;
  44356. $1056 = ((($1051)) + 4|0);
  44357. HEAP32[$1056>>2] = $1055;
  44358. $1057 = ((($1051)) + 8|0);
  44359. $$0 = $1057;
  44360. STACKTOP = sp;return ($$0|0);
  44361. }
  44362. }
  44363. $1058 = (___errno_location()|0);
  44364. HEAP32[$1058>>2] = 12;
  44365. $$0 = 0;
  44366. STACKTOP = sp;return ($$0|0);
  44367. }
  44368. function _free($0) {
  44369. $0 = $0|0;
  44370. 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;
  44371. 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;
  44372. 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;
  44373. 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;
  44374. 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;
  44375. 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;
  44376. 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;
  44377. 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;
  44378. 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;
  44379. 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;
  44380. 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;
  44381. 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;
  44382. 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;
  44383. 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;
  44384. 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;
  44385. 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;
  44386. 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;
  44387. var $99 = 0, $cond421 = 0, $cond422 = 0, $not$ = 0, $not$405 = 0, $not$437 = 0, label = 0, sp = 0;
  44388. sp = STACKTOP;
  44389. $1 = ($0|0)==(0|0);
  44390. if ($1) {
  44391. return;
  44392. }
  44393. $2 = ((($0)) + -8|0);
  44394. $3 = HEAP32[(21880)>>2]|0;
  44395. $4 = ($2>>>0)<($3>>>0);
  44396. if ($4) {
  44397. _abort();
  44398. // unreachable;
  44399. }
  44400. $5 = ((($0)) + -4|0);
  44401. $6 = HEAP32[$5>>2]|0;
  44402. $7 = $6 & 3;
  44403. $8 = ($7|0)==(1);
  44404. if ($8) {
  44405. _abort();
  44406. // unreachable;
  44407. }
  44408. $9 = $6 & -8;
  44409. $10 = (($2) + ($9)|0);
  44410. $11 = $6 & 1;
  44411. $12 = ($11|0)==(0);
  44412. L10: do {
  44413. if ($12) {
  44414. $13 = HEAP32[$2>>2]|0;
  44415. $14 = ($7|0)==(0);
  44416. if ($14) {
  44417. return;
  44418. }
  44419. $15 = (0 - ($13))|0;
  44420. $16 = (($2) + ($15)|0);
  44421. $17 = (($13) + ($9))|0;
  44422. $18 = ($16>>>0)<($3>>>0);
  44423. if ($18) {
  44424. _abort();
  44425. // unreachable;
  44426. }
  44427. $19 = HEAP32[(21884)>>2]|0;
  44428. $20 = ($16|0)==($19|0);
  44429. if ($20) {
  44430. $104 = ((($10)) + 4|0);
  44431. $105 = HEAP32[$104>>2]|0;
  44432. $106 = $105 & 3;
  44433. $107 = ($106|0)==(3);
  44434. if (!($107)) {
  44435. $$1 = $16;$$1382 = $17;$113 = $16;
  44436. break;
  44437. }
  44438. $108 = (($16) + ($17)|0);
  44439. $109 = ((($16)) + 4|0);
  44440. $110 = $17 | 1;
  44441. $111 = $105 & -2;
  44442. HEAP32[(21872)>>2] = $17;
  44443. HEAP32[$104>>2] = $111;
  44444. HEAP32[$109>>2] = $110;
  44445. HEAP32[$108>>2] = $17;
  44446. return;
  44447. }
  44448. $21 = $13 >>> 3;
  44449. $22 = ($13>>>0)<(256);
  44450. if ($22) {
  44451. $23 = ((($16)) + 8|0);
  44452. $24 = HEAP32[$23>>2]|0;
  44453. $25 = ((($16)) + 12|0);
  44454. $26 = HEAP32[$25>>2]|0;
  44455. $27 = $21 << 1;
  44456. $28 = (21904 + ($27<<2)|0);
  44457. $29 = ($24|0)==($28|0);
  44458. if (!($29)) {
  44459. $30 = ($24>>>0)<($3>>>0);
  44460. if ($30) {
  44461. _abort();
  44462. // unreachable;
  44463. }
  44464. $31 = ((($24)) + 12|0);
  44465. $32 = HEAP32[$31>>2]|0;
  44466. $33 = ($32|0)==($16|0);
  44467. if (!($33)) {
  44468. _abort();
  44469. // unreachable;
  44470. }
  44471. }
  44472. $34 = ($26|0)==($24|0);
  44473. if ($34) {
  44474. $35 = 1 << $21;
  44475. $36 = $35 ^ -1;
  44476. $37 = HEAP32[5466]|0;
  44477. $38 = $37 & $36;
  44478. HEAP32[5466] = $38;
  44479. $$1 = $16;$$1382 = $17;$113 = $16;
  44480. break;
  44481. }
  44482. $39 = ($26|0)==($28|0);
  44483. if ($39) {
  44484. $$pre444 = ((($26)) + 8|0);
  44485. $$pre$phi445Z2D = $$pre444;
  44486. } else {
  44487. $40 = ($26>>>0)<($3>>>0);
  44488. if ($40) {
  44489. _abort();
  44490. // unreachable;
  44491. }
  44492. $41 = ((($26)) + 8|0);
  44493. $42 = HEAP32[$41>>2]|0;
  44494. $43 = ($42|0)==($16|0);
  44495. if ($43) {
  44496. $$pre$phi445Z2D = $41;
  44497. } else {
  44498. _abort();
  44499. // unreachable;
  44500. }
  44501. }
  44502. $44 = ((($24)) + 12|0);
  44503. HEAP32[$44>>2] = $26;
  44504. HEAP32[$$pre$phi445Z2D>>2] = $24;
  44505. $$1 = $16;$$1382 = $17;$113 = $16;
  44506. break;
  44507. }
  44508. $45 = ((($16)) + 24|0);
  44509. $46 = HEAP32[$45>>2]|0;
  44510. $47 = ((($16)) + 12|0);
  44511. $48 = HEAP32[$47>>2]|0;
  44512. $49 = ($48|0)==($16|0);
  44513. do {
  44514. if ($49) {
  44515. $59 = ((($16)) + 16|0);
  44516. $60 = ((($59)) + 4|0);
  44517. $61 = HEAP32[$60>>2]|0;
  44518. $62 = ($61|0)==(0|0);
  44519. if ($62) {
  44520. $63 = HEAP32[$59>>2]|0;
  44521. $64 = ($63|0)==(0|0);
  44522. if ($64) {
  44523. $$3 = 0;
  44524. break;
  44525. } else {
  44526. $$1387 = $63;$$1390 = $59;
  44527. }
  44528. } else {
  44529. $$1387 = $61;$$1390 = $60;
  44530. }
  44531. while(1) {
  44532. $65 = ((($$1387)) + 20|0);
  44533. $66 = HEAP32[$65>>2]|0;
  44534. $67 = ($66|0)==(0|0);
  44535. if (!($67)) {
  44536. $$1387 = $66;$$1390 = $65;
  44537. continue;
  44538. }
  44539. $68 = ((($$1387)) + 16|0);
  44540. $69 = HEAP32[$68>>2]|0;
  44541. $70 = ($69|0)==(0|0);
  44542. if ($70) {
  44543. break;
  44544. } else {
  44545. $$1387 = $69;$$1390 = $68;
  44546. }
  44547. }
  44548. $71 = ($$1390>>>0)<($3>>>0);
  44549. if ($71) {
  44550. _abort();
  44551. // unreachable;
  44552. } else {
  44553. HEAP32[$$1390>>2] = 0;
  44554. $$3 = $$1387;
  44555. break;
  44556. }
  44557. } else {
  44558. $50 = ((($16)) + 8|0);
  44559. $51 = HEAP32[$50>>2]|0;
  44560. $52 = ($51>>>0)<($3>>>0);
  44561. if ($52) {
  44562. _abort();
  44563. // unreachable;
  44564. }
  44565. $53 = ((($51)) + 12|0);
  44566. $54 = HEAP32[$53>>2]|0;
  44567. $55 = ($54|0)==($16|0);
  44568. if (!($55)) {
  44569. _abort();
  44570. // unreachable;
  44571. }
  44572. $56 = ((($48)) + 8|0);
  44573. $57 = HEAP32[$56>>2]|0;
  44574. $58 = ($57|0)==($16|0);
  44575. if ($58) {
  44576. HEAP32[$53>>2] = $48;
  44577. HEAP32[$56>>2] = $51;
  44578. $$3 = $48;
  44579. break;
  44580. } else {
  44581. _abort();
  44582. // unreachable;
  44583. }
  44584. }
  44585. } while(0);
  44586. $72 = ($46|0)==(0|0);
  44587. if ($72) {
  44588. $$1 = $16;$$1382 = $17;$113 = $16;
  44589. } else {
  44590. $73 = ((($16)) + 28|0);
  44591. $74 = HEAP32[$73>>2]|0;
  44592. $75 = (22168 + ($74<<2)|0);
  44593. $76 = HEAP32[$75>>2]|0;
  44594. $77 = ($16|0)==($76|0);
  44595. do {
  44596. if ($77) {
  44597. HEAP32[$75>>2] = $$3;
  44598. $cond421 = ($$3|0)==(0|0);
  44599. if ($cond421) {
  44600. $78 = 1 << $74;
  44601. $79 = $78 ^ -1;
  44602. $80 = HEAP32[(21868)>>2]|0;
  44603. $81 = $80 & $79;
  44604. HEAP32[(21868)>>2] = $81;
  44605. $$1 = $16;$$1382 = $17;$113 = $16;
  44606. break L10;
  44607. }
  44608. } else {
  44609. $82 = HEAP32[(21880)>>2]|0;
  44610. $83 = ($46>>>0)<($82>>>0);
  44611. if ($83) {
  44612. _abort();
  44613. // unreachable;
  44614. } else {
  44615. $84 = ((($46)) + 16|0);
  44616. $85 = HEAP32[$84>>2]|0;
  44617. $not$405 = ($85|0)!=($16|0);
  44618. $$sink3 = $not$405&1;
  44619. $86 = (((($46)) + 16|0) + ($$sink3<<2)|0);
  44620. HEAP32[$86>>2] = $$3;
  44621. $87 = ($$3|0)==(0|0);
  44622. if ($87) {
  44623. $$1 = $16;$$1382 = $17;$113 = $16;
  44624. break L10;
  44625. } else {
  44626. break;
  44627. }
  44628. }
  44629. }
  44630. } while(0);
  44631. $88 = HEAP32[(21880)>>2]|0;
  44632. $89 = ($$3>>>0)<($88>>>0);
  44633. if ($89) {
  44634. _abort();
  44635. // unreachable;
  44636. }
  44637. $90 = ((($$3)) + 24|0);
  44638. HEAP32[$90>>2] = $46;
  44639. $91 = ((($16)) + 16|0);
  44640. $92 = HEAP32[$91>>2]|0;
  44641. $93 = ($92|0)==(0|0);
  44642. do {
  44643. if (!($93)) {
  44644. $94 = ($92>>>0)<($88>>>0);
  44645. if ($94) {
  44646. _abort();
  44647. // unreachable;
  44648. } else {
  44649. $95 = ((($$3)) + 16|0);
  44650. HEAP32[$95>>2] = $92;
  44651. $96 = ((($92)) + 24|0);
  44652. HEAP32[$96>>2] = $$3;
  44653. break;
  44654. }
  44655. }
  44656. } while(0);
  44657. $97 = ((($91)) + 4|0);
  44658. $98 = HEAP32[$97>>2]|0;
  44659. $99 = ($98|0)==(0|0);
  44660. if ($99) {
  44661. $$1 = $16;$$1382 = $17;$113 = $16;
  44662. } else {
  44663. $100 = HEAP32[(21880)>>2]|0;
  44664. $101 = ($98>>>0)<($100>>>0);
  44665. if ($101) {
  44666. _abort();
  44667. // unreachable;
  44668. } else {
  44669. $102 = ((($$3)) + 20|0);
  44670. HEAP32[$102>>2] = $98;
  44671. $103 = ((($98)) + 24|0);
  44672. HEAP32[$103>>2] = $$3;
  44673. $$1 = $16;$$1382 = $17;$113 = $16;
  44674. break;
  44675. }
  44676. }
  44677. }
  44678. } else {
  44679. $$1 = $2;$$1382 = $9;$113 = $2;
  44680. }
  44681. } while(0);
  44682. $112 = ($113>>>0)<($10>>>0);
  44683. if (!($112)) {
  44684. _abort();
  44685. // unreachable;
  44686. }
  44687. $114 = ((($10)) + 4|0);
  44688. $115 = HEAP32[$114>>2]|0;
  44689. $116 = $115 & 1;
  44690. $117 = ($116|0)==(0);
  44691. if ($117) {
  44692. _abort();
  44693. // unreachable;
  44694. }
  44695. $118 = $115 & 2;
  44696. $119 = ($118|0)==(0);
  44697. if ($119) {
  44698. $120 = HEAP32[(21888)>>2]|0;
  44699. $121 = ($10|0)==($120|0);
  44700. $122 = HEAP32[(21884)>>2]|0;
  44701. if ($121) {
  44702. $123 = HEAP32[(21876)>>2]|0;
  44703. $124 = (($123) + ($$1382))|0;
  44704. HEAP32[(21876)>>2] = $124;
  44705. HEAP32[(21888)>>2] = $$1;
  44706. $125 = $124 | 1;
  44707. $126 = ((($$1)) + 4|0);
  44708. HEAP32[$126>>2] = $125;
  44709. $127 = ($$1|0)==($122|0);
  44710. if (!($127)) {
  44711. return;
  44712. }
  44713. HEAP32[(21884)>>2] = 0;
  44714. HEAP32[(21872)>>2] = 0;
  44715. return;
  44716. }
  44717. $128 = ($10|0)==($122|0);
  44718. if ($128) {
  44719. $129 = HEAP32[(21872)>>2]|0;
  44720. $130 = (($129) + ($$1382))|0;
  44721. HEAP32[(21872)>>2] = $130;
  44722. HEAP32[(21884)>>2] = $113;
  44723. $131 = $130 | 1;
  44724. $132 = ((($$1)) + 4|0);
  44725. HEAP32[$132>>2] = $131;
  44726. $133 = (($113) + ($130)|0);
  44727. HEAP32[$133>>2] = $130;
  44728. return;
  44729. }
  44730. $134 = $115 & -8;
  44731. $135 = (($134) + ($$1382))|0;
  44732. $136 = $115 >>> 3;
  44733. $137 = ($115>>>0)<(256);
  44734. L108: do {
  44735. if ($137) {
  44736. $138 = ((($10)) + 8|0);
  44737. $139 = HEAP32[$138>>2]|0;
  44738. $140 = ((($10)) + 12|0);
  44739. $141 = HEAP32[$140>>2]|0;
  44740. $142 = $136 << 1;
  44741. $143 = (21904 + ($142<<2)|0);
  44742. $144 = ($139|0)==($143|0);
  44743. if (!($144)) {
  44744. $145 = HEAP32[(21880)>>2]|0;
  44745. $146 = ($139>>>0)<($145>>>0);
  44746. if ($146) {
  44747. _abort();
  44748. // unreachable;
  44749. }
  44750. $147 = ((($139)) + 12|0);
  44751. $148 = HEAP32[$147>>2]|0;
  44752. $149 = ($148|0)==($10|0);
  44753. if (!($149)) {
  44754. _abort();
  44755. // unreachable;
  44756. }
  44757. }
  44758. $150 = ($141|0)==($139|0);
  44759. if ($150) {
  44760. $151 = 1 << $136;
  44761. $152 = $151 ^ -1;
  44762. $153 = HEAP32[5466]|0;
  44763. $154 = $153 & $152;
  44764. HEAP32[5466] = $154;
  44765. break;
  44766. }
  44767. $155 = ($141|0)==($143|0);
  44768. if ($155) {
  44769. $$pre442 = ((($141)) + 8|0);
  44770. $$pre$phi443Z2D = $$pre442;
  44771. } else {
  44772. $156 = HEAP32[(21880)>>2]|0;
  44773. $157 = ($141>>>0)<($156>>>0);
  44774. if ($157) {
  44775. _abort();
  44776. // unreachable;
  44777. }
  44778. $158 = ((($141)) + 8|0);
  44779. $159 = HEAP32[$158>>2]|0;
  44780. $160 = ($159|0)==($10|0);
  44781. if ($160) {
  44782. $$pre$phi443Z2D = $158;
  44783. } else {
  44784. _abort();
  44785. // unreachable;
  44786. }
  44787. }
  44788. $161 = ((($139)) + 12|0);
  44789. HEAP32[$161>>2] = $141;
  44790. HEAP32[$$pre$phi443Z2D>>2] = $139;
  44791. } else {
  44792. $162 = ((($10)) + 24|0);
  44793. $163 = HEAP32[$162>>2]|0;
  44794. $164 = ((($10)) + 12|0);
  44795. $165 = HEAP32[$164>>2]|0;
  44796. $166 = ($165|0)==($10|0);
  44797. do {
  44798. if ($166) {
  44799. $177 = ((($10)) + 16|0);
  44800. $178 = ((($177)) + 4|0);
  44801. $179 = HEAP32[$178>>2]|0;
  44802. $180 = ($179|0)==(0|0);
  44803. if ($180) {
  44804. $181 = HEAP32[$177>>2]|0;
  44805. $182 = ($181|0)==(0|0);
  44806. if ($182) {
  44807. $$3400 = 0;
  44808. break;
  44809. } else {
  44810. $$1398 = $181;$$1402 = $177;
  44811. }
  44812. } else {
  44813. $$1398 = $179;$$1402 = $178;
  44814. }
  44815. while(1) {
  44816. $183 = ((($$1398)) + 20|0);
  44817. $184 = HEAP32[$183>>2]|0;
  44818. $185 = ($184|0)==(0|0);
  44819. if (!($185)) {
  44820. $$1398 = $184;$$1402 = $183;
  44821. continue;
  44822. }
  44823. $186 = ((($$1398)) + 16|0);
  44824. $187 = HEAP32[$186>>2]|0;
  44825. $188 = ($187|0)==(0|0);
  44826. if ($188) {
  44827. break;
  44828. } else {
  44829. $$1398 = $187;$$1402 = $186;
  44830. }
  44831. }
  44832. $189 = HEAP32[(21880)>>2]|0;
  44833. $190 = ($$1402>>>0)<($189>>>0);
  44834. if ($190) {
  44835. _abort();
  44836. // unreachable;
  44837. } else {
  44838. HEAP32[$$1402>>2] = 0;
  44839. $$3400 = $$1398;
  44840. break;
  44841. }
  44842. } else {
  44843. $167 = ((($10)) + 8|0);
  44844. $168 = HEAP32[$167>>2]|0;
  44845. $169 = HEAP32[(21880)>>2]|0;
  44846. $170 = ($168>>>0)<($169>>>0);
  44847. if ($170) {
  44848. _abort();
  44849. // unreachable;
  44850. }
  44851. $171 = ((($168)) + 12|0);
  44852. $172 = HEAP32[$171>>2]|0;
  44853. $173 = ($172|0)==($10|0);
  44854. if (!($173)) {
  44855. _abort();
  44856. // unreachable;
  44857. }
  44858. $174 = ((($165)) + 8|0);
  44859. $175 = HEAP32[$174>>2]|0;
  44860. $176 = ($175|0)==($10|0);
  44861. if ($176) {
  44862. HEAP32[$171>>2] = $165;
  44863. HEAP32[$174>>2] = $168;
  44864. $$3400 = $165;
  44865. break;
  44866. } else {
  44867. _abort();
  44868. // unreachable;
  44869. }
  44870. }
  44871. } while(0);
  44872. $191 = ($163|0)==(0|0);
  44873. if (!($191)) {
  44874. $192 = ((($10)) + 28|0);
  44875. $193 = HEAP32[$192>>2]|0;
  44876. $194 = (22168 + ($193<<2)|0);
  44877. $195 = HEAP32[$194>>2]|0;
  44878. $196 = ($10|0)==($195|0);
  44879. do {
  44880. if ($196) {
  44881. HEAP32[$194>>2] = $$3400;
  44882. $cond422 = ($$3400|0)==(0|0);
  44883. if ($cond422) {
  44884. $197 = 1 << $193;
  44885. $198 = $197 ^ -1;
  44886. $199 = HEAP32[(21868)>>2]|0;
  44887. $200 = $199 & $198;
  44888. HEAP32[(21868)>>2] = $200;
  44889. break L108;
  44890. }
  44891. } else {
  44892. $201 = HEAP32[(21880)>>2]|0;
  44893. $202 = ($163>>>0)<($201>>>0);
  44894. if ($202) {
  44895. _abort();
  44896. // unreachable;
  44897. } else {
  44898. $203 = ((($163)) + 16|0);
  44899. $204 = HEAP32[$203>>2]|0;
  44900. $not$ = ($204|0)!=($10|0);
  44901. $$sink5 = $not$&1;
  44902. $205 = (((($163)) + 16|0) + ($$sink5<<2)|0);
  44903. HEAP32[$205>>2] = $$3400;
  44904. $206 = ($$3400|0)==(0|0);
  44905. if ($206) {
  44906. break L108;
  44907. } else {
  44908. break;
  44909. }
  44910. }
  44911. }
  44912. } while(0);
  44913. $207 = HEAP32[(21880)>>2]|0;
  44914. $208 = ($$3400>>>0)<($207>>>0);
  44915. if ($208) {
  44916. _abort();
  44917. // unreachable;
  44918. }
  44919. $209 = ((($$3400)) + 24|0);
  44920. HEAP32[$209>>2] = $163;
  44921. $210 = ((($10)) + 16|0);
  44922. $211 = HEAP32[$210>>2]|0;
  44923. $212 = ($211|0)==(0|0);
  44924. do {
  44925. if (!($212)) {
  44926. $213 = ($211>>>0)<($207>>>0);
  44927. if ($213) {
  44928. _abort();
  44929. // unreachable;
  44930. } else {
  44931. $214 = ((($$3400)) + 16|0);
  44932. HEAP32[$214>>2] = $211;
  44933. $215 = ((($211)) + 24|0);
  44934. HEAP32[$215>>2] = $$3400;
  44935. break;
  44936. }
  44937. }
  44938. } while(0);
  44939. $216 = ((($210)) + 4|0);
  44940. $217 = HEAP32[$216>>2]|0;
  44941. $218 = ($217|0)==(0|0);
  44942. if (!($218)) {
  44943. $219 = HEAP32[(21880)>>2]|0;
  44944. $220 = ($217>>>0)<($219>>>0);
  44945. if ($220) {
  44946. _abort();
  44947. // unreachable;
  44948. } else {
  44949. $221 = ((($$3400)) + 20|0);
  44950. HEAP32[$221>>2] = $217;
  44951. $222 = ((($217)) + 24|0);
  44952. HEAP32[$222>>2] = $$3400;
  44953. break;
  44954. }
  44955. }
  44956. }
  44957. }
  44958. } while(0);
  44959. $223 = $135 | 1;
  44960. $224 = ((($$1)) + 4|0);
  44961. HEAP32[$224>>2] = $223;
  44962. $225 = (($113) + ($135)|0);
  44963. HEAP32[$225>>2] = $135;
  44964. $226 = HEAP32[(21884)>>2]|0;
  44965. $227 = ($$1|0)==($226|0);
  44966. if ($227) {
  44967. HEAP32[(21872)>>2] = $135;
  44968. return;
  44969. } else {
  44970. $$2 = $135;
  44971. }
  44972. } else {
  44973. $228 = $115 & -2;
  44974. HEAP32[$114>>2] = $228;
  44975. $229 = $$1382 | 1;
  44976. $230 = ((($$1)) + 4|0);
  44977. HEAP32[$230>>2] = $229;
  44978. $231 = (($113) + ($$1382)|0);
  44979. HEAP32[$231>>2] = $$1382;
  44980. $$2 = $$1382;
  44981. }
  44982. $232 = $$2 >>> 3;
  44983. $233 = ($$2>>>0)<(256);
  44984. if ($233) {
  44985. $234 = $232 << 1;
  44986. $235 = (21904 + ($234<<2)|0);
  44987. $236 = HEAP32[5466]|0;
  44988. $237 = 1 << $232;
  44989. $238 = $236 & $237;
  44990. $239 = ($238|0)==(0);
  44991. if ($239) {
  44992. $240 = $236 | $237;
  44993. HEAP32[5466] = $240;
  44994. $$pre = ((($235)) + 8|0);
  44995. $$0403 = $235;$$pre$phiZ2D = $$pre;
  44996. } else {
  44997. $241 = ((($235)) + 8|0);
  44998. $242 = HEAP32[$241>>2]|0;
  44999. $243 = HEAP32[(21880)>>2]|0;
  45000. $244 = ($242>>>0)<($243>>>0);
  45001. if ($244) {
  45002. _abort();
  45003. // unreachable;
  45004. } else {
  45005. $$0403 = $242;$$pre$phiZ2D = $241;
  45006. }
  45007. }
  45008. HEAP32[$$pre$phiZ2D>>2] = $$1;
  45009. $245 = ((($$0403)) + 12|0);
  45010. HEAP32[$245>>2] = $$1;
  45011. $246 = ((($$1)) + 8|0);
  45012. HEAP32[$246>>2] = $$0403;
  45013. $247 = ((($$1)) + 12|0);
  45014. HEAP32[$247>>2] = $235;
  45015. return;
  45016. }
  45017. $248 = $$2 >>> 8;
  45018. $249 = ($248|0)==(0);
  45019. if ($249) {
  45020. $$0396 = 0;
  45021. } else {
  45022. $250 = ($$2>>>0)>(16777215);
  45023. if ($250) {
  45024. $$0396 = 31;
  45025. } else {
  45026. $251 = (($248) + 1048320)|0;
  45027. $252 = $251 >>> 16;
  45028. $253 = $252 & 8;
  45029. $254 = $248 << $253;
  45030. $255 = (($254) + 520192)|0;
  45031. $256 = $255 >>> 16;
  45032. $257 = $256 & 4;
  45033. $258 = $257 | $253;
  45034. $259 = $254 << $257;
  45035. $260 = (($259) + 245760)|0;
  45036. $261 = $260 >>> 16;
  45037. $262 = $261 & 2;
  45038. $263 = $258 | $262;
  45039. $264 = (14 - ($263))|0;
  45040. $265 = $259 << $262;
  45041. $266 = $265 >>> 15;
  45042. $267 = (($264) + ($266))|0;
  45043. $268 = $267 << 1;
  45044. $269 = (($267) + 7)|0;
  45045. $270 = $$2 >>> $269;
  45046. $271 = $270 & 1;
  45047. $272 = $271 | $268;
  45048. $$0396 = $272;
  45049. }
  45050. }
  45051. $273 = (22168 + ($$0396<<2)|0);
  45052. $274 = ((($$1)) + 28|0);
  45053. HEAP32[$274>>2] = $$0396;
  45054. $275 = ((($$1)) + 16|0);
  45055. $276 = ((($$1)) + 20|0);
  45056. HEAP32[$276>>2] = 0;
  45057. HEAP32[$275>>2] = 0;
  45058. $277 = HEAP32[(21868)>>2]|0;
  45059. $278 = 1 << $$0396;
  45060. $279 = $277 & $278;
  45061. $280 = ($279|0)==(0);
  45062. do {
  45063. if ($280) {
  45064. $281 = $277 | $278;
  45065. HEAP32[(21868)>>2] = $281;
  45066. HEAP32[$273>>2] = $$1;
  45067. $282 = ((($$1)) + 24|0);
  45068. HEAP32[$282>>2] = $273;
  45069. $283 = ((($$1)) + 12|0);
  45070. HEAP32[$283>>2] = $$1;
  45071. $284 = ((($$1)) + 8|0);
  45072. HEAP32[$284>>2] = $$1;
  45073. } else {
  45074. $285 = HEAP32[$273>>2]|0;
  45075. $286 = ($$0396|0)==(31);
  45076. $287 = $$0396 >>> 1;
  45077. $288 = (25 - ($287))|0;
  45078. $289 = $286 ? 0 : $288;
  45079. $290 = $$2 << $289;
  45080. $$0383 = $290;$$0384 = $285;
  45081. while(1) {
  45082. $291 = ((($$0384)) + 4|0);
  45083. $292 = HEAP32[$291>>2]|0;
  45084. $293 = $292 & -8;
  45085. $294 = ($293|0)==($$2|0);
  45086. if ($294) {
  45087. label = 124;
  45088. break;
  45089. }
  45090. $295 = $$0383 >>> 31;
  45091. $296 = (((($$0384)) + 16|0) + ($295<<2)|0);
  45092. $297 = $$0383 << 1;
  45093. $298 = HEAP32[$296>>2]|0;
  45094. $299 = ($298|0)==(0|0);
  45095. if ($299) {
  45096. label = 121;
  45097. break;
  45098. } else {
  45099. $$0383 = $297;$$0384 = $298;
  45100. }
  45101. }
  45102. if ((label|0) == 121) {
  45103. $300 = HEAP32[(21880)>>2]|0;
  45104. $301 = ($296>>>0)<($300>>>0);
  45105. if ($301) {
  45106. _abort();
  45107. // unreachable;
  45108. } else {
  45109. HEAP32[$296>>2] = $$1;
  45110. $302 = ((($$1)) + 24|0);
  45111. HEAP32[$302>>2] = $$0384;
  45112. $303 = ((($$1)) + 12|0);
  45113. HEAP32[$303>>2] = $$1;
  45114. $304 = ((($$1)) + 8|0);
  45115. HEAP32[$304>>2] = $$1;
  45116. break;
  45117. }
  45118. }
  45119. else if ((label|0) == 124) {
  45120. $305 = ((($$0384)) + 8|0);
  45121. $306 = HEAP32[$305>>2]|0;
  45122. $307 = HEAP32[(21880)>>2]|0;
  45123. $308 = ($306>>>0)>=($307>>>0);
  45124. $not$437 = ($$0384>>>0)>=($307>>>0);
  45125. $309 = $308 & $not$437;
  45126. if ($309) {
  45127. $310 = ((($306)) + 12|0);
  45128. HEAP32[$310>>2] = $$1;
  45129. HEAP32[$305>>2] = $$1;
  45130. $311 = ((($$1)) + 8|0);
  45131. HEAP32[$311>>2] = $306;
  45132. $312 = ((($$1)) + 12|0);
  45133. HEAP32[$312>>2] = $$0384;
  45134. $313 = ((($$1)) + 24|0);
  45135. HEAP32[$313>>2] = 0;
  45136. break;
  45137. } else {
  45138. _abort();
  45139. // unreachable;
  45140. }
  45141. }
  45142. }
  45143. } while(0);
  45144. $314 = HEAP32[(21896)>>2]|0;
  45145. $315 = (($314) + -1)|0;
  45146. HEAP32[(21896)>>2] = $315;
  45147. $316 = ($315|0)==(0);
  45148. if ($316) {
  45149. $$0212$in$i = (22320);
  45150. } else {
  45151. return;
  45152. }
  45153. while(1) {
  45154. $$0212$i = HEAP32[$$0212$in$i>>2]|0;
  45155. $317 = ($$0212$i|0)==(0|0);
  45156. $318 = ((($$0212$i)) + 8|0);
  45157. if ($317) {
  45158. break;
  45159. } else {
  45160. $$0212$in$i = $318;
  45161. }
  45162. }
  45163. HEAP32[(21896)>>2] = -1;
  45164. return;
  45165. }
  45166. function _realloc($0,$1) {
  45167. $0 = $0|0;
  45168. $1 = $1|0;
  45169. 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;
  45170. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  45171. sp = STACKTOP;
  45172. $2 = ($0|0)==(0|0);
  45173. if ($2) {
  45174. $3 = (_malloc($1)|0);
  45175. $$1 = $3;
  45176. return ($$1|0);
  45177. }
  45178. $4 = ($1>>>0)>(4294967231);
  45179. if ($4) {
  45180. $5 = (___errno_location()|0);
  45181. HEAP32[$5>>2] = 12;
  45182. $$1 = 0;
  45183. return ($$1|0);
  45184. }
  45185. $6 = ($1>>>0)<(11);
  45186. $7 = (($1) + 11)|0;
  45187. $8 = $7 & -8;
  45188. $9 = $6 ? 16 : $8;
  45189. $10 = ((($0)) + -8|0);
  45190. $11 = (_try_realloc_chunk($10,$9)|0);
  45191. $12 = ($11|0)==(0|0);
  45192. if (!($12)) {
  45193. $13 = ((($11)) + 8|0);
  45194. $$1 = $13;
  45195. return ($$1|0);
  45196. }
  45197. $14 = (_malloc($1)|0);
  45198. $15 = ($14|0)==(0|0);
  45199. if ($15) {
  45200. $$1 = 0;
  45201. return ($$1|0);
  45202. }
  45203. $16 = ((($0)) + -4|0);
  45204. $17 = HEAP32[$16>>2]|0;
  45205. $18 = $17 & -8;
  45206. $19 = $17 & 3;
  45207. $20 = ($19|0)==(0);
  45208. $21 = $20 ? 8 : 4;
  45209. $22 = (($18) - ($21))|0;
  45210. $23 = ($22>>>0)<($1>>>0);
  45211. $24 = $23 ? $22 : $1;
  45212. _memcpy(($14|0),($0|0),($24|0))|0;
  45213. _free($0);
  45214. $$1 = $14;
  45215. return ($$1|0);
  45216. }
  45217. function _try_realloc_chunk($0,$1) {
  45218. $0 = $0|0;
  45219. $1 = $1|0;
  45220. 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;
  45221. 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;
  45222. 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;
  45223. 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;
  45224. 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;
  45225. 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;
  45226. 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;
  45227. 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;
  45228. 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;
  45229. var $cond = 0, $not$ = 0, $notlhs = 0, $notrhs = 0, $or$cond$not = 0, $or$cond3 = 0, $storemerge = 0, $storemerge1 = 0, label = 0, sp = 0;
  45230. sp = STACKTOP;
  45231. $2 = ((($0)) + 4|0);
  45232. $3 = HEAP32[$2>>2]|0;
  45233. $4 = $3 & -8;
  45234. $5 = (($0) + ($4)|0);
  45235. $6 = HEAP32[(21880)>>2]|0;
  45236. $7 = $3 & 3;
  45237. $notlhs = ($0>>>0)>=($6>>>0);
  45238. $notrhs = ($7|0)!=(1);
  45239. $or$cond$not = $notrhs & $notlhs;
  45240. $8 = ($0>>>0)<($5>>>0);
  45241. $or$cond3 = $or$cond$not & $8;
  45242. if (!($or$cond3)) {
  45243. _abort();
  45244. // unreachable;
  45245. }
  45246. $9 = ((($5)) + 4|0);
  45247. $10 = HEAP32[$9>>2]|0;
  45248. $11 = $10 & 1;
  45249. $12 = ($11|0)==(0);
  45250. if ($12) {
  45251. _abort();
  45252. // unreachable;
  45253. }
  45254. $13 = ($7|0)==(0);
  45255. if ($13) {
  45256. $14 = ($1>>>0)<(256);
  45257. if ($14) {
  45258. $$2 = 0;
  45259. return ($$2|0);
  45260. }
  45261. $15 = (($1) + 4)|0;
  45262. $16 = ($4>>>0)<($15>>>0);
  45263. if (!($16)) {
  45264. $17 = (($4) - ($1))|0;
  45265. $18 = HEAP32[(22344)>>2]|0;
  45266. $19 = $18 << 1;
  45267. $20 = ($17>>>0)>($19>>>0);
  45268. if (!($20)) {
  45269. $$2 = $0;
  45270. return ($$2|0);
  45271. }
  45272. }
  45273. $$2 = 0;
  45274. return ($$2|0);
  45275. }
  45276. $21 = ($4>>>0)<($1>>>0);
  45277. if (!($21)) {
  45278. $22 = (($4) - ($1))|0;
  45279. $23 = ($22>>>0)>(15);
  45280. if (!($23)) {
  45281. $$2 = $0;
  45282. return ($$2|0);
  45283. }
  45284. $24 = (($0) + ($1)|0);
  45285. $25 = $3 & 1;
  45286. $26 = $25 | $1;
  45287. $27 = $26 | 2;
  45288. HEAP32[$2>>2] = $27;
  45289. $28 = ((($24)) + 4|0);
  45290. $29 = $22 | 3;
  45291. HEAP32[$28>>2] = $29;
  45292. $30 = (($24) + ($22)|0);
  45293. $31 = ((($30)) + 4|0);
  45294. $32 = HEAP32[$31>>2]|0;
  45295. $33 = $32 | 1;
  45296. HEAP32[$31>>2] = $33;
  45297. _dispose_chunk($24,$22);
  45298. $$2 = $0;
  45299. return ($$2|0);
  45300. }
  45301. $34 = HEAP32[(21888)>>2]|0;
  45302. $35 = ($5|0)==($34|0);
  45303. if ($35) {
  45304. $36 = HEAP32[(21876)>>2]|0;
  45305. $37 = (($36) + ($4))|0;
  45306. $38 = ($37>>>0)>($1>>>0);
  45307. $39 = (($37) - ($1))|0;
  45308. $40 = (($0) + ($1)|0);
  45309. if (!($38)) {
  45310. $$2 = 0;
  45311. return ($$2|0);
  45312. }
  45313. $41 = $39 | 1;
  45314. $42 = ((($40)) + 4|0);
  45315. $43 = $3 & 1;
  45316. $44 = $43 | $1;
  45317. $45 = $44 | 2;
  45318. HEAP32[$2>>2] = $45;
  45319. HEAP32[$42>>2] = $41;
  45320. HEAP32[(21888)>>2] = $40;
  45321. HEAP32[(21876)>>2] = $39;
  45322. $$2 = $0;
  45323. return ($$2|0);
  45324. }
  45325. $46 = HEAP32[(21884)>>2]|0;
  45326. $47 = ($5|0)==($46|0);
  45327. if ($47) {
  45328. $48 = HEAP32[(21872)>>2]|0;
  45329. $49 = (($48) + ($4))|0;
  45330. $50 = ($49>>>0)<($1>>>0);
  45331. if ($50) {
  45332. $$2 = 0;
  45333. return ($$2|0);
  45334. }
  45335. $51 = (($49) - ($1))|0;
  45336. $52 = ($51>>>0)>(15);
  45337. $53 = $3 & 1;
  45338. if ($52) {
  45339. $54 = (($0) + ($1)|0);
  45340. $55 = (($54) + ($51)|0);
  45341. $56 = $53 | $1;
  45342. $57 = $56 | 2;
  45343. HEAP32[$2>>2] = $57;
  45344. $58 = ((($54)) + 4|0);
  45345. $59 = $51 | 1;
  45346. HEAP32[$58>>2] = $59;
  45347. HEAP32[$55>>2] = $51;
  45348. $60 = ((($55)) + 4|0);
  45349. $61 = HEAP32[$60>>2]|0;
  45350. $62 = $61 & -2;
  45351. HEAP32[$60>>2] = $62;
  45352. $storemerge = $54;$storemerge1 = $51;
  45353. } else {
  45354. $63 = $53 | $49;
  45355. $64 = $63 | 2;
  45356. HEAP32[$2>>2] = $64;
  45357. $65 = (($0) + ($49)|0);
  45358. $66 = ((($65)) + 4|0);
  45359. $67 = HEAP32[$66>>2]|0;
  45360. $68 = $67 | 1;
  45361. HEAP32[$66>>2] = $68;
  45362. $storemerge = 0;$storemerge1 = 0;
  45363. }
  45364. HEAP32[(21872)>>2] = $storemerge1;
  45365. HEAP32[(21884)>>2] = $storemerge;
  45366. $$2 = $0;
  45367. return ($$2|0);
  45368. }
  45369. $69 = $10 & 2;
  45370. $70 = ($69|0)==(0);
  45371. if (!($70)) {
  45372. $$2 = 0;
  45373. return ($$2|0);
  45374. }
  45375. $71 = $10 & -8;
  45376. $72 = (($71) + ($4))|0;
  45377. $73 = ($72>>>0)<($1>>>0);
  45378. if ($73) {
  45379. $$2 = 0;
  45380. return ($$2|0);
  45381. }
  45382. $74 = (($72) - ($1))|0;
  45383. $75 = $10 >>> 3;
  45384. $76 = ($10>>>0)<(256);
  45385. L49: do {
  45386. if ($76) {
  45387. $77 = ((($5)) + 8|0);
  45388. $78 = HEAP32[$77>>2]|0;
  45389. $79 = ((($5)) + 12|0);
  45390. $80 = HEAP32[$79>>2]|0;
  45391. $81 = $75 << 1;
  45392. $82 = (21904 + ($81<<2)|0);
  45393. $83 = ($78|0)==($82|0);
  45394. if (!($83)) {
  45395. $84 = ($78>>>0)<($6>>>0);
  45396. if ($84) {
  45397. _abort();
  45398. // unreachable;
  45399. }
  45400. $85 = ((($78)) + 12|0);
  45401. $86 = HEAP32[$85>>2]|0;
  45402. $87 = ($86|0)==($5|0);
  45403. if (!($87)) {
  45404. _abort();
  45405. // unreachable;
  45406. }
  45407. }
  45408. $88 = ($80|0)==($78|0);
  45409. if ($88) {
  45410. $89 = 1 << $75;
  45411. $90 = $89 ^ -1;
  45412. $91 = HEAP32[5466]|0;
  45413. $92 = $91 & $90;
  45414. HEAP32[5466] = $92;
  45415. break;
  45416. }
  45417. $93 = ($80|0)==($82|0);
  45418. if ($93) {
  45419. $$pre = ((($80)) + 8|0);
  45420. $$pre$phiZ2D = $$pre;
  45421. } else {
  45422. $94 = ($80>>>0)<($6>>>0);
  45423. if ($94) {
  45424. _abort();
  45425. // unreachable;
  45426. }
  45427. $95 = ((($80)) + 8|0);
  45428. $96 = HEAP32[$95>>2]|0;
  45429. $97 = ($96|0)==($5|0);
  45430. if ($97) {
  45431. $$pre$phiZ2D = $95;
  45432. } else {
  45433. _abort();
  45434. // unreachable;
  45435. }
  45436. }
  45437. $98 = ((($78)) + 12|0);
  45438. HEAP32[$98>>2] = $80;
  45439. HEAP32[$$pre$phiZ2D>>2] = $78;
  45440. } else {
  45441. $99 = ((($5)) + 24|0);
  45442. $100 = HEAP32[$99>>2]|0;
  45443. $101 = ((($5)) + 12|0);
  45444. $102 = HEAP32[$101>>2]|0;
  45445. $103 = ($102|0)==($5|0);
  45446. do {
  45447. if ($103) {
  45448. $113 = ((($5)) + 16|0);
  45449. $114 = ((($113)) + 4|0);
  45450. $115 = HEAP32[$114>>2]|0;
  45451. $116 = ($115|0)==(0|0);
  45452. if ($116) {
  45453. $117 = HEAP32[$113>>2]|0;
  45454. $118 = ($117|0)==(0|0);
  45455. if ($118) {
  45456. $$3 = 0;
  45457. break;
  45458. } else {
  45459. $$1272 = $117;$$1275 = $113;
  45460. }
  45461. } else {
  45462. $$1272 = $115;$$1275 = $114;
  45463. }
  45464. while(1) {
  45465. $119 = ((($$1272)) + 20|0);
  45466. $120 = HEAP32[$119>>2]|0;
  45467. $121 = ($120|0)==(0|0);
  45468. if (!($121)) {
  45469. $$1272 = $120;$$1275 = $119;
  45470. continue;
  45471. }
  45472. $122 = ((($$1272)) + 16|0);
  45473. $123 = HEAP32[$122>>2]|0;
  45474. $124 = ($123|0)==(0|0);
  45475. if ($124) {
  45476. break;
  45477. } else {
  45478. $$1272 = $123;$$1275 = $122;
  45479. }
  45480. }
  45481. $125 = ($$1275>>>0)<($6>>>0);
  45482. if ($125) {
  45483. _abort();
  45484. // unreachable;
  45485. } else {
  45486. HEAP32[$$1275>>2] = 0;
  45487. $$3 = $$1272;
  45488. break;
  45489. }
  45490. } else {
  45491. $104 = ((($5)) + 8|0);
  45492. $105 = HEAP32[$104>>2]|0;
  45493. $106 = ($105>>>0)<($6>>>0);
  45494. if ($106) {
  45495. _abort();
  45496. // unreachable;
  45497. }
  45498. $107 = ((($105)) + 12|0);
  45499. $108 = HEAP32[$107>>2]|0;
  45500. $109 = ($108|0)==($5|0);
  45501. if (!($109)) {
  45502. _abort();
  45503. // unreachable;
  45504. }
  45505. $110 = ((($102)) + 8|0);
  45506. $111 = HEAP32[$110>>2]|0;
  45507. $112 = ($111|0)==($5|0);
  45508. if ($112) {
  45509. HEAP32[$107>>2] = $102;
  45510. HEAP32[$110>>2] = $105;
  45511. $$3 = $102;
  45512. break;
  45513. } else {
  45514. _abort();
  45515. // unreachable;
  45516. }
  45517. }
  45518. } while(0);
  45519. $126 = ($100|0)==(0|0);
  45520. if (!($126)) {
  45521. $127 = ((($5)) + 28|0);
  45522. $128 = HEAP32[$127>>2]|0;
  45523. $129 = (22168 + ($128<<2)|0);
  45524. $130 = HEAP32[$129>>2]|0;
  45525. $131 = ($5|0)==($130|0);
  45526. do {
  45527. if ($131) {
  45528. HEAP32[$129>>2] = $$3;
  45529. $cond = ($$3|0)==(0|0);
  45530. if ($cond) {
  45531. $132 = 1 << $128;
  45532. $133 = $132 ^ -1;
  45533. $134 = HEAP32[(21868)>>2]|0;
  45534. $135 = $134 & $133;
  45535. HEAP32[(21868)>>2] = $135;
  45536. break L49;
  45537. }
  45538. } else {
  45539. $136 = HEAP32[(21880)>>2]|0;
  45540. $137 = ($100>>>0)<($136>>>0);
  45541. if ($137) {
  45542. _abort();
  45543. // unreachable;
  45544. } else {
  45545. $138 = ((($100)) + 16|0);
  45546. $139 = HEAP32[$138>>2]|0;
  45547. $not$ = ($139|0)!=($5|0);
  45548. $$sink1 = $not$&1;
  45549. $140 = (((($100)) + 16|0) + ($$sink1<<2)|0);
  45550. HEAP32[$140>>2] = $$3;
  45551. $141 = ($$3|0)==(0|0);
  45552. if ($141) {
  45553. break L49;
  45554. } else {
  45555. break;
  45556. }
  45557. }
  45558. }
  45559. } while(0);
  45560. $142 = HEAP32[(21880)>>2]|0;
  45561. $143 = ($$3>>>0)<($142>>>0);
  45562. if ($143) {
  45563. _abort();
  45564. // unreachable;
  45565. }
  45566. $144 = ((($$3)) + 24|0);
  45567. HEAP32[$144>>2] = $100;
  45568. $145 = ((($5)) + 16|0);
  45569. $146 = HEAP32[$145>>2]|0;
  45570. $147 = ($146|0)==(0|0);
  45571. do {
  45572. if (!($147)) {
  45573. $148 = ($146>>>0)<($142>>>0);
  45574. if ($148) {
  45575. _abort();
  45576. // unreachable;
  45577. } else {
  45578. $149 = ((($$3)) + 16|0);
  45579. HEAP32[$149>>2] = $146;
  45580. $150 = ((($146)) + 24|0);
  45581. HEAP32[$150>>2] = $$3;
  45582. break;
  45583. }
  45584. }
  45585. } while(0);
  45586. $151 = ((($145)) + 4|0);
  45587. $152 = HEAP32[$151>>2]|0;
  45588. $153 = ($152|0)==(0|0);
  45589. if (!($153)) {
  45590. $154 = HEAP32[(21880)>>2]|0;
  45591. $155 = ($152>>>0)<($154>>>0);
  45592. if ($155) {
  45593. _abort();
  45594. // unreachable;
  45595. } else {
  45596. $156 = ((($$3)) + 20|0);
  45597. HEAP32[$156>>2] = $152;
  45598. $157 = ((($152)) + 24|0);
  45599. HEAP32[$157>>2] = $$3;
  45600. break;
  45601. }
  45602. }
  45603. }
  45604. }
  45605. } while(0);
  45606. $158 = ($74>>>0)<(16);
  45607. $159 = $3 & 1;
  45608. if ($158) {
  45609. $160 = $72 | $159;
  45610. $161 = $160 | 2;
  45611. HEAP32[$2>>2] = $161;
  45612. $162 = (($0) + ($72)|0);
  45613. $163 = ((($162)) + 4|0);
  45614. $164 = HEAP32[$163>>2]|0;
  45615. $165 = $164 | 1;
  45616. HEAP32[$163>>2] = $165;
  45617. $$2 = $0;
  45618. return ($$2|0);
  45619. } else {
  45620. $166 = (($0) + ($1)|0);
  45621. $167 = $159 | $1;
  45622. $168 = $167 | 2;
  45623. HEAP32[$2>>2] = $168;
  45624. $169 = ((($166)) + 4|0);
  45625. $170 = $74 | 3;
  45626. HEAP32[$169>>2] = $170;
  45627. $171 = (($166) + ($74)|0);
  45628. $172 = ((($171)) + 4|0);
  45629. $173 = HEAP32[$172>>2]|0;
  45630. $174 = $173 | 1;
  45631. HEAP32[$172>>2] = $174;
  45632. _dispose_chunk($166,$74);
  45633. $$2 = $0;
  45634. return ($$2|0);
  45635. }
  45636. return (0)|0;
  45637. }
  45638. function _dispose_chunk($0,$1) {
  45639. $0 = $0|0;
  45640. $1 = $1|0;
  45641. 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;
  45642. 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;
  45643. 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;
  45644. 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;
  45645. 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;
  45646. 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;
  45647. 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;
  45648. 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;
  45649. 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;
  45650. 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;
  45651. 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;
  45652. 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;
  45653. 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;
  45654. 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;
  45655. 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;
  45656. 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;
  45657. var $97 = 0, $98 = 0, $99 = 0, $cond = 0, $cond17 = 0, $not$ = 0, $not$1 = 0, $not$19 = 0, label = 0, sp = 0;
  45658. sp = STACKTOP;
  45659. $2 = (($0) + ($1)|0);
  45660. $3 = ((($0)) + 4|0);
  45661. $4 = HEAP32[$3>>2]|0;
  45662. $5 = $4 & 1;
  45663. $6 = ($5|0)==(0);
  45664. L1: do {
  45665. if ($6) {
  45666. $7 = HEAP32[$0>>2]|0;
  45667. $8 = $4 & 3;
  45668. $9 = ($8|0)==(0);
  45669. if ($9) {
  45670. return;
  45671. }
  45672. $10 = (0 - ($7))|0;
  45673. $11 = (($0) + ($10)|0);
  45674. $12 = (($7) + ($1))|0;
  45675. $13 = HEAP32[(21880)>>2]|0;
  45676. $14 = ($11>>>0)<($13>>>0);
  45677. if ($14) {
  45678. _abort();
  45679. // unreachable;
  45680. }
  45681. $15 = HEAP32[(21884)>>2]|0;
  45682. $16 = ($11|0)==($15|0);
  45683. if ($16) {
  45684. $100 = ((($2)) + 4|0);
  45685. $101 = HEAP32[$100>>2]|0;
  45686. $102 = $101 & 3;
  45687. $103 = ($102|0)==(3);
  45688. if (!($103)) {
  45689. $$1 = $11;$$1418 = $12;
  45690. break;
  45691. }
  45692. $104 = (($11) + ($12)|0);
  45693. $105 = ((($11)) + 4|0);
  45694. $106 = $12 | 1;
  45695. $107 = $101 & -2;
  45696. HEAP32[(21872)>>2] = $12;
  45697. HEAP32[$100>>2] = $107;
  45698. HEAP32[$105>>2] = $106;
  45699. HEAP32[$104>>2] = $12;
  45700. return;
  45701. }
  45702. $17 = $7 >>> 3;
  45703. $18 = ($7>>>0)<(256);
  45704. if ($18) {
  45705. $19 = ((($11)) + 8|0);
  45706. $20 = HEAP32[$19>>2]|0;
  45707. $21 = ((($11)) + 12|0);
  45708. $22 = HEAP32[$21>>2]|0;
  45709. $23 = $17 << 1;
  45710. $24 = (21904 + ($23<<2)|0);
  45711. $25 = ($20|0)==($24|0);
  45712. if (!($25)) {
  45713. $26 = ($20>>>0)<($13>>>0);
  45714. if ($26) {
  45715. _abort();
  45716. // unreachable;
  45717. }
  45718. $27 = ((($20)) + 12|0);
  45719. $28 = HEAP32[$27>>2]|0;
  45720. $29 = ($28|0)==($11|0);
  45721. if (!($29)) {
  45722. _abort();
  45723. // unreachable;
  45724. }
  45725. }
  45726. $30 = ($22|0)==($20|0);
  45727. if ($30) {
  45728. $31 = 1 << $17;
  45729. $32 = $31 ^ -1;
  45730. $33 = HEAP32[5466]|0;
  45731. $34 = $33 & $32;
  45732. HEAP32[5466] = $34;
  45733. $$1 = $11;$$1418 = $12;
  45734. break;
  45735. }
  45736. $35 = ($22|0)==($24|0);
  45737. if ($35) {
  45738. $$pre25 = ((($22)) + 8|0);
  45739. $$pre$phi26Z2D = $$pre25;
  45740. } else {
  45741. $36 = ($22>>>0)<($13>>>0);
  45742. if ($36) {
  45743. _abort();
  45744. // unreachable;
  45745. }
  45746. $37 = ((($22)) + 8|0);
  45747. $38 = HEAP32[$37>>2]|0;
  45748. $39 = ($38|0)==($11|0);
  45749. if ($39) {
  45750. $$pre$phi26Z2D = $37;
  45751. } else {
  45752. _abort();
  45753. // unreachable;
  45754. }
  45755. }
  45756. $40 = ((($20)) + 12|0);
  45757. HEAP32[$40>>2] = $22;
  45758. HEAP32[$$pre$phi26Z2D>>2] = $20;
  45759. $$1 = $11;$$1418 = $12;
  45760. break;
  45761. }
  45762. $41 = ((($11)) + 24|0);
  45763. $42 = HEAP32[$41>>2]|0;
  45764. $43 = ((($11)) + 12|0);
  45765. $44 = HEAP32[$43>>2]|0;
  45766. $45 = ($44|0)==($11|0);
  45767. do {
  45768. if ($45) {
  45769. $55 = ((($11)) + 16|0);
  45770. $56 = ((($55)) + 4|0);
  45771. $57 = HEAP32[$56>>2]|0;
  45772. $58 = ($57|0)==(0|0);
  45773. if ($58) {
  45774. $59 = HEAP32[$55>>2]|0;
  45775. $60 = ($59|0)==(0|0);
  45776. if ($60) {
  45777. $$3 = 0;
  45778. break;
  45779. } else {
  45780. $$1426 = $59;$$1429 = $55;
  45781. }
  45782. } else {
  45783. $$1426 = $57;$$1429 = $56;
  45784. }
  45785. while(1) {
  45786. $61 = ((($$1426)) + 20|0);
  45787. $62 = HEAP32[$61>>2]|0;
  45788. $63 = ($62|0)==(0|0);
  45789. if (!($63)) {
  45790. $$1426 = $62;$$1429 = $61;
  45791. continue;
  45792. }
  45793. $64 = ((($$1426)) + 16|0);
  45794. $65 = HEAP32[$64>>2]|0;
  45795. $66 = ($65|0)==(0|0);
  45796. if ($66) {
  45797. break;
  45798. } else {
  45799. $$1426 = $65;$$1429 = $64;
  45800. }
  45801. }
  45802. $67 = ($$1429>>>0)<($13>>>0);
  45803. if ($67) {
  45804. _abort();
  45805. // unreachable;
  45806. } else {
  45807. HEAP32[$$1429>>2] = 0;
  45808. $$3 = $$1426;
  45809. break;
  45810. }
  45811. } else {
  45812. $46 = ((($11)) + 8|0);
  45813. $47 = HEAP32[$46>>2]|0;
  45814. $48 = ($47>>>0)<($13>>>0);
  45815. if ($48) {
  45816. _abort();
  45817. // unreachable;
  45818. }
  45819. $49 = ((($47)) + 12|0);
  45820. $50 = HEAP32[$49>>2]|0;
  45821. $51 = ($50|0)==($11|0);
  45822. if (!($51)) {
  45823. _abort();
  45824. // unreachable;
  45825. }
  45826. $52 = ((($44)) + 8|0);
  45827. $53 = HEAP32[$52>>2]|0;
  45828. $54 = ($53|0)==($11|0);
  45829. if ($54) {
  45830. HEAP32[$49>>2] = $44;
  45831. HEAP32[$52>>2] = $47;
  45832. $$3 = $44;
  45833. break;
  45834. } else {
  45835. _abort();
  45836. // unreachable;
  45837. }
  45838. }
  45839. } while(0);
  45840. $68 = ($42|0)==(0|0);
  45841. if ($68) {
  45842. $$1 = $11;$$1418 = $12;
  45843. } else {
  45844. $69 = ((($11)) + 28|0);
  45845. $70 = HEAP32[$69>>2]|0;
  45846. $71 = (22168 + ($70<<2)|0);
  45847. $72 = HEAP32[$71>>2]|0;
  45848. $73 = ($11|0)==($72|0);
  45849. do {
  45850. if ($73) {
  45851. HEAP32[$71>>2] = $$3;
  45852. $cond = ($$3|0)==(0|0);
  45853. if ($cond) {
  45854. $74 = 1 << $70;
  45855. $75 = $74 ^ -1;
  45856. $76 = HEAP32[(21868)>>2]|0;
  45857. $77 = $76 & $75;
  45858. HEAP32[(21868)>>2] = $77;
  45859. $$1 = $11;$$1418 = $12;
  45860. break L1;
  45861. }
  45862. } else {
  45863. $78 = HEAP32[(21880)>>2]|0;
  45864. $79 = ($42>>>0)<($78>>>0);
  45865. if ($79) {
  45866. _abort();
  45867. // unreachable;
  45868. } else {
  45869. $80 = ((($42)) + 16|0);
  45870. $81 = HEAP32[$80>>2]|0;
  45871. $not$1 = ($81|0)!=($11|0);
  45872. $$sink2 = $not$1&1;
  45873. $82 = (((($42)) + 16|0) + ($$sink2<<2)|0);
  45874. HEAP32[$82>>2] = $$3;
  45875. $83 = ($$3|0)==(0|0);
  45876. if ($83) {
  45877. $$1 = $11;$$1418 = $12;
  45878. break L1;
  45879. } else {
  45880. break;
  45881. }
  45882. }
  45883. }
  45884. } while(0);
  45885. $84 = HEAP32[(21880)>>2]|0;
  45886. $85 = ($$3>>>0)<($84>>>0);
  45887. if ($85) {
  45888. _abort();
  45889. // unreachable;
  45890. }
  45891. $86 = ((($$3)) + 24|0);
  45892. HEAP32[$86>>2] = $42;
  45893. $87 = ((($11)) + 16|0);
  45894. $88 = HEAP32[$87>>2]|0;
  45895. $89 = ($88|0)==(0|0);
  45896. do {
  45897. if (!($89)) {
  45898. $90 = ($88>>>0)<($84>>>0);
  45899. if ($90) {
  45900. _abort();
  45901. // unreachable;
  45902. } else {
  45903. $91 = ((($$3)) + 16|0);
  45904. HEAP32[$91>>2] = $88;
  45905. $92 = ((($88)) + 24|0);
  45906. HEAP32[$92>>2] = $$3;
  45907. break;
  45908. }
  45909. }
  45910. } while(0);
  45911. $93 = ((($87)) + 4|0);
  45912. $94 = HEAP32[$93>>2]|0;
  45913. $95 = ($94|0)==(0|0);
  45914. if ($95) {
  45915. $$1 = $11;$$1418 = $12;
  45916. } else {
  45917. $96 = HEAP32[(21880)>>2]|0;
  45918. $97 = ($94>>>0)<($96>>>0);
  45919. if ($97) {
  45920. _abort();
  45921. // unreachable;
  45922. } else {
  45923. $98 = ((($$3)) + 20|0);
  45924. HEAP32[$98>>2] = $94;
  45925. $99 = ((($94)) + 24|0);
  45926. HEAP32[$99>>2] = $$3;
  45927. $$1 = $11;$$1418 = $12;
  45928. break;
  45929. }
  45930. }
  45931. }
  45932. } else {
  45933. $$1 = $0;$$1418 = $1;
  45934. }
  45935. } while(0);
  45936. $108 = HEAP32[(21880)>>2]|0;
  45937. $109 = ($2>>>0)<($108>>>0);
  45938. if ($109) {
  45939. _abort();
  45940. // unreachable;
  45941. }
  45942. $110 = ((($2)) + 4|0);
  45943. $111 = HEAP32[$110>>2]|0;
  45944. $112 = $111 & 2;
  45945. $113 = ($112|0)==(0);
  45946. if ($113) {
  45947. $114 = HEAP32[(21888)>>2]|0;
  45948. $115 = ($2|0)==($114|0);
  45949. $116 = HEAP32[(21884)>>2]|0;
  45950. if ($115) {
  45951. $117 = HEAP32[(21876)>>2]|0;
  45952. $118 = (($117) + ($$1418))|0;
  45953. HEAP32[(21876)>>2] = $118;
  45954. HEAP32[(21888)>>2] = $$1;
  45955. $119 = $118 | 1;
  45956. $120 = ((($$1)) + 4|0);
  45957. HEAP32[$120>>2] = $119;
  45958. $121 = ($$1|0)==($116|0);
  45959. if (!($121)) {
  45960. return;
  45961. }
  45962. HEAP32[(21884)>>2] = 0;
  45963. HEAP32[(21872)>>2] = 0;
  45964. return;
  45965. }
  45966. $122 = ($2|0)==($116|0);
  45967. if ($122) {
  45968. $123 = HEAP32[(21872)>>2]|0;
  45969. $124 = (($123) + ($$1418))|0;
  45970. HEAP32[(21872)>>2] = $124;
  45971. HEAP32[(21884)>>2] = $$1;
  45972. $125 = $124 | 1;
  45973. $126 = ((($$1)) + 4|0);
  45974. HEAP32[$126>>2] = $125;
  45975. $127 = (($$1) + ($124)|0);
  45976. HEAP32[$127>>2] = $124;
  45977. return;
  45978. }
  45979. $128 = $111 & -8;
  45980. $129 = (($128) + ($$1418))|0;
  45981. $130 = $111 >>> 3;
  45982. $131 = ($111>>>0)<(256);
  45983. L96: do {
  45984. if ($131) {
  45985. $132 = ((($2)) + 8|0);
  45986. $133 = HEAP32[$132>>2]|0;
  45987. $134 = ((($2)) + 12|0);
  45988. $135 = HEAP32[$134>>2]|0;
  45989. $136 = $130 << 1;
  45990. $137 = (21904 + ($136<<2)|0);
  45991. $138 = ($133|0)==($137|0);
  45992. if (!($138)) {
  45993. $139 = ($133>>>0)<($108>>>0);
  45994. if ($139) {
  45995. _abort();
  45996. // unreachable;
  45997. }
  45998. $140 = ((($133)) + 12|0);
  45999. $141 = HEAP32[$140>>2]|0;
  46000. $142 = ($141|0)==($2|0);
  46001. if (!($142)) {
  46002. _abort();
  46003. // unreachable;
  46004. }
  46005. }
  46006. $143 = ($135|0)==($133|0);
  46007. if ($143) {
  46008. $144 = 1 << $130;
  46009. $145 = $144 ^ -1;
  46010. $146 = HEAP32[5466]|0;
  46011. $147 = $146 & $145;
  46012. HEAP32[5466] = $147;
  46013. break;
  46014. }
  46015. $148 = ($135|0)==($137|0);
  46016. if ($148) {
  46017. $$pre23 = ((($135)) + 8|0);
  46018. $$pre$phi24Z2D = $$pre23;
  46019. } else {
  46020. $149 = ($135>>>0)<($108>>>0);
  46021. if ($149) {
  46022. _abort();
  46023. // unreachable;
  46024. }
  46025. $150 = ((($135)) + 8|0);
  46026. $151 = HEAP32[$150>>2]|0;
  46027. $152 = ($151|0)==($2|0);
  46028. if ($152) {
  46029. $$pre$phi24Z2D = $150;
  46030. } else {
  46031. _abort();
  46032. // unreachable;
  46033. }
  46034. }
  46035. $153 = ((($133)) + 12|0);
  46036. HEAP32[$153>>2] = $135;
  46037. HEAP32[$$pre$phi24Z2D>>2] = $133;
  46038. } else {
  46039. $154 = ((($2)) + 24|0);
  46040. $155 = HEAP32[$154>>2]|0;
  46041. $156 = ((($2)) + 12|0);
  46042. $157 = HEAP32[$156>>2]|0;
  46043. $158 = ($157|0)==($2|0);
  46044. do {
  46045. if ($158) {
  46046. $168 = ((($2)) + 16|0);
  46047. $169 = ((($168)) + 4|0);
  46048. $170 = HEAP32[$169>>2]|0;
  46049. $171 = ($170|0)==(0|0);
  46050. if ($171) {
  46051. $172 = HEAP32[$168>>2]|0;
  46052. $173 = ($172|0)==(0|0);
  46053. if ($173) {
  46054. $$3435 = 0;
  46055. break;
  46056. } else {
  46057. $$1433 = $172;$$1437 = $168;
  46058. }
  46059. } else {
  46060. $$1433 = $170;$$1437 = $169;
  46061. }
  46062. while(1) {
  46063. $174 = ((($$1433)) + 20|0);
  46064. $175 = HEAP32[$174>>2]|0;
  46065. $176 = ($175|0)==(0|0);
  46066. if (!($176)) {
  46067. $$1433 = $175;$$1437 = $174;
  46068. continue;
  46069. }
  46070. $177 = ((($$1433)) + 16|0);
  46071. $178 = HEAP32[$177>>2]|0;
  46072. $179 = ($178|0)==(0|0);
  46073. if ($179) {
  46074. break;
  46075. } else {
  46076. $$1433 = $178;$$1437 = $177;
  46077. }
  46078. }
  46079. $180 = ($$1437>>>0)<($108>>>0);
  46080. if ($180) {
  46081. _abort();
  46082. // unreachable;
  46083. } else {
  46084. HEAP32[$$1437>>2] = 0;
  46085. $$3435 = $$1433;
  46086. break;
  46087. }
  46088. } else {
  46089. $159 = ((($2)) + 8|0);
  46090. $160 = HEAP32[$159>>2]|0;
  46091. $161 = ($160>>>0)<($108>>>0);
  46092. if ($161) {
  46093. _abort();
  46094. // unreachable;
  46095. }
  46096. $162 = ((($160)) + 12|0);
  46097. $163 = HEAP32[$162>>2]|0;
  46098. $164 = ($163|0)==($2|0);
  46099. if (!($164)) {
  46100. _abort();
  46101. // unreachable;
  46102. }
  46103. $165 = ((($157)) + 8|0);
  46104. $166 = HEAP32[$165>>2]|0;
  46105. $167 = ($166|0)==($2|0);
  46106. if ($167) {
  46107. HEAP32[$162>>2] = $157;
  46108. HEAP32[$165>>2] = $160;
  46109. $$3435 = $157;
  46110. break;
  46111. } else {
  46112. _abort();
  46113. // unreachable;
  46114. }
  46115. }
  46116. } while(0);
  46117. $181 = ($155|0)==(0|0);
  46118. if (!($181)) {
  46119. $182 = ((($2)) + 28|0);
  46120. $183 = HEAP32[$182>>2]|0;
  46121. $184 = (22168 + ($183<<2)|0);
  46122. $185 = HEAP32[$184>>2]|0;
  46123. $186 = ($2|0)==($185|0);
  46124. do {
  46125. if ($186) {
  46126. HEAP32[$184>>2] = $$3435;
  46127. $cond17 = ($$3435|0)==(0|0);
  46128. if ($cond17) {
  46129. $187 = 1 << $183;
  46130. $188 = $187 ^ -1;
  46131. $189 = HEAP32[(21868)>>2]|0;
  46132. $190 = $189 & $188;
  46133. HEAP32[(21868)>>2] = $190;
  46134. break L96;
  46135. }
  46136. } else {
  46137. $191 = HEAP32[(21880)>>2]|0;
  46138. $192 = ($155>>>0)<($191>>>0);
  46139. if ($192) {
  46140. _abort();
  46141. // unreachable;
  46142. } else {
  46143. $193 = ((($155)) + 16|0);
  46144. $194 = HEAP32[$193>>2]|0;
  46145. $not$ = ($194|0)!=($2|0);
  46146. $$sink4 = $not$&1;
  46147. $195 = (((($155)) + 16|0) + ($$sink4<<2)|0);
  46148. HEAP32[$195>>2] = $$3435;
  46149. $196 = ($$3435|0)==(0|0);
  46150. if ($196) {
  46151. break L96;
  46152. } else {
  46153. break;
  46154. }
  46155. }
  46156. }
  46157. } while(0);
  46158. $197 = HEAP32[(21880)>>2]|0;
  46159. $198 = ($$3435>>>0)<($197>>>0);
  46160. if ($198) {
  46161. _abort();
  46162. // unreachable;
  46163. }
  46164. $199 = ((($$3435)) + 24|0);
  46165. HEAP32[$199>>2] = $155;
  46166. $200 = ((($2)) + 16|0);
  46167. $201 = HEAP32[$200>>2]|0;
  46168. $202 = ($201|0)==(0|0);
  46169. do {
  46170. if (!($202)) {
  46171. $203 = ($201>>>0)<($197>>>0);
  46172. if ($203) {
  46173. _abort();
  46174. // unreachable;
  46175. } else {
  46176. $204 = ((($$3435)) + 16|0);
  46177. HEAP32[$204>>2] = $201;
  46178. $205 = ((($201)) + 24|0);
  46179. HEAP32[$205>>2] = $$3435;
  46180. break;
  46181. }
  46182. }
  46183. } while(0);
  46184. $206 = ((($200)) + 4|0);
  46185. $207 = HEAP32[$206>>2]|0;
  46186. $208 = ($207|0)==(0|0);
  46187. if (!($208)) {
  46188. $209 = HEAP32[(21880)>>2]|0;
  46189. $210 = ($207>>>0)<($209>>>0);
  46190. if ($210) {
  46191. _abort();
  46192. // unreachable;
  46193. } else {
  46194. $211 = ((($$3435)) + 20|0);
  46195. HEAP32[$211>>2] = $207;
  46196. $212 = ((($207)) + 24|0);
  46197. HEAP32[$212>>2] = $$3435;
  46198. break;
  46199. }
  46200. }
  46201. }
  46202. }
  46203. } while(0);
  46204. $213 = $129 | 1;
  46205. $214 = ((($$1)) + 4|0);
  46206. HEAP32[$214>>2] = $213;
  46207. $215 = (($$1) + ($129)|0);
  46208. HEAP32[$215>>2] = $129;
  46209. $216 = HEAP32[(21884)>>2]|0;
  46210. $217 = ($$1|0)==($216|0);
  46211. if ($217) {
  46212. HEAP32[(21872)>>2] = $129;
  46213. return;
  46214. } else {
  46215. $$2 = $129;
  46216. }
  46217. } else {
  46218. $218 = $111 & -2;
  46219. HEAP32[$110>>2] = $218;
  46220. $219 = $$1418 | 1;
  46221. $220 = ((($$1)) + 4|0);
  46222. HEAP32[$220>>2] = $219;
  46223. $221 = (($$1) + ($$1418)|0);
  46224. HEAP32[$221>>2] = $$1418;
  46225. $$2 = $$1418;
  46226. }
  46227. $222 = $$2 >>> 3;
  46228. $223 = ($$2>>>0)<(256);
  46229. if ($223) {
  46230. $224 = $222 << 1;
  46231. $225 = (21904 + ($224<<2)|0);
  46232. $226 = HEAP32[5466]|0;
  46233. $227 = 1 << $222;
  46234. $228 = $226 & $227;
  46235. $229 = ($228|0)==(0);
  46236. if ($229) {
  46237. $230 = $226 | $227;
  46238. HEAP32[5466] = $230;
  46239. $$pre = ((($225)) + 8|0);
  46240. $$0438 = $225;$$pre$phiZ2D = $$pre;
  46241. } else {
  46242. $231 = ((($225)) + 8|0);
  46243. $232 = HEAP32[$231>>2]|0;
  46244. $233 = HEAP32[(21880)>>2]|0;
  46245. $234 = ($232>>>0)<($233>>>0);
  46246. if ($234) {
  46247. _abort();
  46248. // unreachable;
  46249. } else {
  46250. $$0438 = $232;$$pre$phiZ2D = $231;
  46251. }
  46252. }
  46253. HEAP32[$$pre$phiZ2D>>2] = $$1;
  46254. $235 = ((($$0438)) + 12|0);
  46255. HEAP32[$235>>2] = $$1;
  46256. $236 = ((($$1)) + 8|0);
  46257. HEAP32[$236>>2] = $$0438;
  46258. $237 = ((($$1)) + 12|0);
  46259. HEAP32[$237>>2] = $225;
  46260. return;
  46261. }
  46262. $238 = $$2 >>> 8;
  46263. $239 = ($238|0)==(0);
  46264. if ($239) {
  46265. $$0431 = 0;
  46266. } else {
  46267. $240 = ($$2>>>0)>(16777215);
  46268. if ($240) {
  46269. $$0431 = 31;
  46270. } else {
  46271. $241 = (($238) + 1048320)|0;
  46272. $242 = $241 >>> 16;
  46273. $243 = $242 & 8;
  46274. $244 = $238 << $243;
  46275. $245 = (($244) + 520192)|0;
  46276. $246 = $245 >>> 16;
  46277. $247 = $246 & 4;
  46278. $248 = $247 | $243;
  46279. $249 = $244 << $247;
  46280. $250 = (($249) + 245760)|0;
  46281. $251 = $250 >>> 16;
  46282. $252 = $251 & 2;
  46283. $253 = $248 | $252;
  46284. $254 = (14 - ($253))|0;
  46285. $255 = $249 << $252;
  46286. $256 = $255 >>> 15;
  46287. $257 = (($254) + ($256))|0;
  46288. $258 = $257 << 1;
  46289. $259 = (($257) + 7)|0;
  46290. $260 = $$2 >>> $259;
  46291. $261 = $260 & 1;
  46292. $262 = $261 | $258;
  46293. $$0431 = $262;
  46294. }
  46295. }
  46296. $263 = (22168 + ($$0431<<2)|0);
  46297. $264 = ((($$1)) + 28|0);
  46298. HEAP32[$264>>2] = $$0431;
  46299. $265 = ((($$1)) + 16|0);
  46300. $266 = ((($$1)) + 20|0);
  46301. HEAP32[$266>>2] = 0;
  46302. HEAP32[$265>>2] = 0;
  46303. $267 = HEAP32[(21868)>>2]|0;
  46304. $268 = 1 << $$0431;
  46305. $269 = $267 & $268;
  46306. $270 = ($269|0)==(0);
  46307. if ($270) {
  46308. $271 = $267 | $268;
  46309. HEAP32[(21868)>>2] = $271;
  46310. HEAP32[$263>>2] = $$1;
  46311. $272 = ((($$1)) + 24|0);
  46312. HEAP32[$272>>2] = $263;
  46313. $273 = ((($$1)) + 12|0);
  46314. HEAP32[$273>>2] = $$1;
  46315. $274 = ((($$1)) + 8|0);
  46316. HEAP32[$274>>2] = $$1;
  46317. return;
  46318. }
  46319. $275 = HEAP32[$263>>2]|0;
  46320. $276 = ($$0431|0)==(31);
  46321. $277 = $$0431 >>> 1;
  46322. $278 = (25 - ($277))|0;
  46323. $279 = $276 ? 0 : $278;
  46324. $280 = $$2 << $279;
  46325. $$0419 = $280;$$0420 = $275;
  46326. while(1) {
  46327. $281 = ((($$0420)) + 4|0);
  46328. $282 = HEAP32[$281>>2]|0;
  46329. $283 = $282 & -8;
  46330. $284 = ($283|0)==($$2|0);
  46331. if ($284) {
  46332. label = 121;
  46333. break;
  46334. }
  46335. $285 = $$0419 >>> 31;
  46336. $286 = (((($$0420)) + 16|0) + ($285<<2)|0);
  46337. $287 = $$0419 << 1;
  46338. $288 = HEAP32[$286>>2]|0;
  46339. $289 = ($288|0)==(0|0);
  46340. if ($289) {
  46341. label = 118;
  46342. break;
  46343. } else {
  46344. $$0419 = $287;$$0420 = $288;
  46345. }
  46346. }
  46347. if ((label|0) == 118) {
  46348. $290 = HEAP32[(21880)>>2]|0;
  46349. $291 = ($286>>>0)<($290>>>0);
  46350. if ($291) {
  46351. _abort();
  46352. // unreachable;
  46353. }
  46354. HEAP32[$286>>2] = $$1;
  46355. $292 = ((($$1)) + 24|0);
  46356. HEAP32[$292>>2] = $$0420;
  46357. $293 = ((($$1)) + 12|0);
  46358. HEAP32[$293>>2] = $$1;
  46359. $294 = ((($$1)) + 8|0);
  46360. HEAP32[$294>>2] = $$1;
  46361. return;
  46362. }
  46363. else if ((label|0) == 121) {
  46364. $295 = ((($$0420)) + 8|0);
  46365. $296 = HEAP32[$295>>2]|0;
  46366. $297 = HEAP32[(21880)>>2]|0;
  46367. $298 = ($296>>>0)>=($297>>>0);
  46368. $not$19 = ($$0420>>>0)>=($297>>>0);
  46369. $299 = $298 & $not$19;
  46370. if (!($299)) {
  46371. _abort();
  46372. // unreachable;
  46373. }
  46374. $300 = ((($296)) + 12|0);
  46375. HEAP32[$300>>2] = $$1;
  46376. HEAP32[$295>>2] = $$1;
  46377. $301 = ((($$1)) + 8|0);
  46378. HEAP32[$301>>2] = $296;
  46379. $302 = ((($$1)) + 12|0);
  46380. HEAP32[$302>>2] = $$0420;
  46381. $303 = ((($$1)) + 24|0);
  46382. HEAP32[$303>>2] = 0;
  46383. return;
  46384. }
  46385. }
  46386. function runPostSets() {
  46387. }
  46388. function _memset(ptr, value, num) {
  46389. ptr = ptr|0; value = value|0; num = num|0;
  46390. var end = 0, aligned_end = 0, block_aligned_end = 0, value4 = 0;
  46391. end = (ptr + num)|0;
  46392. value = value & 0xff;
  46393. if ((num|0) >= 67 /* 64 bytes for an unrolled loop + 3 bytes for unaligned head*/) {
  46394. while ((ptr&3) != 0) {
  46395. HEAP8[((ptr)>>0)]=value;
  46396. ptr = (ptr+1)|0;
  46397. }
  46398. aligned_end = (end & -4)|0;
  46399. block_aligned_end = (aligned_end - 64)|0;
  46400. value4 = value | (value << 8) | (value << 16) | (value << 24);
  46401. while((ptr|0) <= (block_aligned_end|0)) {
  46402. HEAP32[((ptr)>>2)]=value4;
  46403. HEAP32[(((ptr)+(4))>>2)]=value4;
  46404. HEAP32[(((ptr)+(8))>>2)]=value4;
  46405. HEAP32[(((ptr)+(12))>>2)]=value4;
  46406. HEAP32[(((ptr)+(16))>>2)]=value4;
  46407. HEAP32[(((ptr)+(20))>>2)]=value4;
  46408. HEAP32[(((ptr)+(24))>>2)]=value4;
  46409. HEAP32[(((ptr)+(28))>>2)]=value4;
  46410. HEAP32[(((ptr)+(32))>>2)]=value4;
  46411. HEAP32[(((ptr)+(36))>>2)]=value4;
  46412. HEAP32[(((ptr)+(40))>>2)]=value4;
  46413. HEAP32[(((ptr)+(44))>>2)]=value4;
  46414. HEAP32[(((ptr)+(48))>>2)]=value4;
  46415. HEAP32[(((ptr)+(52))>>2)]=value4;
  46416. HEAP32[(((ptr)+(56))>>2)]=value4;
  46417. HEAP32[(((ptr)+(60))>>2)]=value4;
  46418. ptr = (ptr + 64)|0;
  46419. }
  46420. while ((ptr|0) < (aligned_end|0) ) {
  46421. HEAP32[((ptr)>>2)]=value4;
  46422. ptr = (ptr+4)|0;
  46423. }
  46424. }
  46425. // The remaining bytes.
  46426. while ((ptr|0) < (end|0)) {
  46427. HEAP8[((ptr)>>0)]=value;
  46428. ptr = (ptr+1)|0;
  46429. }
  46430. return (end-num)|0;
  46431. }
  46432. function _i64Subtract(a, b, c, d) {
  46433. a = a|0; b = b|0; c = c|0; d = d|0;
  46434. var l = 0, h = 0;
  46435. l = (a - c)>>>0;
  46436. h = (b - d)>>>0;
  46437. h = (b - d - (((c>>>0) > (a>>>0))|0))>>>0; // Borrow one from high word to low word on underflow.
  46438. return ((tempRet0 = h,l|0)|0);
  46439. }
  46440. function _i64Add(a, b, c, d) {
  46441. /*
  46442. x = a + b*2^32
  46443. y = c + d*2^32
  46444. result = l + h*2^32
  46445. */
  46446. a = a|0; b = b|0; c = c|0; d = d|0;
  46447. var l = 0, h = 0;
  46448. l = (a + c)>>>0;
  46449. h = (b + d + (((l>>>0) < (a>>>0))|0))>>>0; // Add carry from low word to high word on overflow.
  46450. return ((tempRet0 = h,l|0)|0);
  46451. }
  46452. function ___muldsi3($a, $b) {
  46453. $a = $a | 0;
  46454. $b = $b | 0;
  46455. var $1 = 0, $2 = 0, $3 = 0, $6 = 0, $8 = 0, $11 = 0, $12 = 0;
  46456. $1 = $a & 65535;
  46457. $2 = $b & 65535;
  46458. $3 = Math_imul($2, $1) | 0;
  46459. $6 = $a >>> 16;
  46460. $8 = ($3 >>> 16) + (Math_imul($2, $6) | 0) | 0;
  46461. $11 = $b >>> 16;
  46462. $12 = Math_imul($11, $1) | 0;
  46463. return (tempRet0 = (($8 >>> 16) + (Math_imul($11, $6) | 0) | 0) + ((($8 & 65535) + $12 | 0) >>> 16) | 0, 0 | ($8 + $12 << 16 | $3 & 65535)) | 0;
  46464. }
  46465. function ___muldi3($a$0, $a$1, $b$0, $b$1) {
  46466. $a$0 = $a$0 | 0;
  46467. $a$1 = $a$1 | 0;
  46468. $b$0 = $b$0 | 0;
  46469. $b$1 = $b$1 | 0;
  46470. var $x_sroa_0_0_extract_trunc = 0, $y_sroa_0_0_extract_trunc = 0, $1$0 = 0, $1$1 = 0, $2 = 0;
  46471. $x_sroa_0_0_extract_trunc = $a$0;
  46472. $y_sroa_0_0_extract_trunc = $b$0;
  46473. $1$0 = ___muldsi3($x_sroa_0_0_extract_trunc, $y_sroa_0_0_extract_trunc) | 0;
  46474. $1$1 = tempRet0;
  46475. $2 = Math_imul($a$1, $y_sroa_0_0_extract_trunc) | 0;
  46476. return (tempRet0 = ((Math_imul($b$1, $x_sroa_0_0_extract_trunc) | 0) + $2 | 0) + $1$1 | $1$1 & 0, 0 | $1$0 & -1) | 0;
  46477. }
  46478. function _memcpy(dest, src, num) {
  46479. dest = dest|0; src = src|0; num = num|0;
  46480. var ret = 0;
  46481. var aligned_dest_end = 0;
  46482. var block_aligned_dest_end = 0;
  46483. var dest_end = 0;
  46484. // Test against a benchmarked cutoff limit for when HEAPU8.set() becomes faster to use.
  46485. if ((num|0) >=
  46486. 8192
  46487. ) {
  46488. return _emscripten_memcpy_big(dest|0, src|0, num|0)|0;
  46489. }
  46490. ret = dest|0;
  46491. dest_end = (dest + num)|0;
  46492. if ((dest&3) == (src&3)) {
  46493. // The initial unaligned < 4-byte front.
  46494. while (dest & 3) {
  46495. if ((num|0) == 0) return ret|0;
  46496. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  46497. dest = (dest+1)|0;
  46498. src = (src+1)|0;
  46499. num = (num-1)|0;
  46500. }
  46501. aligned_dest_end = (dest_end & -4)|0;
  46502. block_aligned_dest_end = (aligned_dest_end - 64)|0;
  46503. while ((dest|0) <= (block_aligned_dest_end|0) ) {
  46504. HEAP32[((dest)>>2)]=((HEAP32[((src)>>2)])|0);
  46505. HEAP32[(((dest)+(4))>>2)]=((HEAP32[(((src)+(4))>>2)])|0);
  46506. HEAP32[(((dest)+(8))>>2)]=((HEAP32[(((src)+(8))>>2)])|0);
  46507. HEAP32[(((dest)+(12))>>2)]=((HEAP32[(((src)+(12))>>2)])|0);
  46508. HEAP32[(((dest)+(16))>>2)]=((HEAP32[(((src)+(16))>>2)])|0);
  46509. HEAP32[(((dest)+(20))>>2)]=((HEAP32[(((src)+(20))>>2)])|0);
  46510. HEAP32[(((dest)+(24))>>2)]=((HEAP32[(((src)+(24))>>2)])|0);
  46511. HEAP32[(((dest)+(28))>>2)]=((HEAP32[(((src)+(28))>>2)])|0);
  46512. HEAP32[(((dest)+(32))>>2)]=((HEAP32[(((src)+(32))>>2)])|0);
  46513. HEAP32[(((dest)+(36))>>2)]=((HEAP32[(((src)+(36))>>2)])|0);
  46514. HEAP32[(((dest)+(40))>>2)]=((HEAP32[(((src)+(40))>>2)])|0);
  46515. HEAP32[(((dest)+(44))>>2)]=((HEAP32[(((src)+(44))>>2)])|0);
  46516. HEAP32[(((dest)+(48))>>2)]=((HEAP32[(((src)+(48))>>2)])|0);
  46517. HEAP32[(((dest)+(52))>>2)]=((HEAP32[(((src)+(52))>>2)])|0);
  46518. HEAP32[(((dest)+(56))>>2)]=((HEAP32[(((src)+(56))>>2)])|0);
  46519. HEAP32[(((dest)+(60))>>2)]=((HEAP32[(((src)+(60))>>2)])|0);
  46520. dest = (dest+64)|0;
  46521. src = (src+64)|0;
  46522. }
  46523. while ((dest|0) < (aligned_dest_end|0) ) {
  46524. HEAP32[((dest)>>2)]=((HEAP32[((src)>>2)])|0);
  46525. dest = (dest+4)|0;
  46526. src = (src+4)|0;
  46527. }
  46528. } else {
  46529. // In the unaligned copy case, unroll a bit as well.
  46530. aligned_dest_end = (dest_end - 4)|0;
  46531. while ((dest|0) < (aligned_dest_end|0) ) {
  46532. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  46533. HEAP8[(((dest)+(1))>>0)]=((HEAP8[(((src)+(1))>>0)])|0);
  46534. HEAP8[(((dest)+(2))>>0)]=((HEAP8[(((src)+(2))>>0)])|0);
  46535. HEAP8[(((dest)+(3))>>0)]=((HEAP8[(((src)+(3))>>0)])|0);
  46536. dest = (dest+4)|0;
  46537. src = (src+4)|0;
  46538. }
  46539. }
  46540. // The remaining unaligned < 4 byte tail.
  46541. while ((dest|0) < (dest_end|0)) {
  46542. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  46543. dest = (dest+1)|0;
  46544. src = (src+1)|0;
  46545. }
  46546. return ret|0;
  46547. }
  46548. function _memmove(dest, src, num) {
  46549. dest = dest|0; src = src|0; num = num|0;
  46550. var ret = 0;
  46551. if (((src|0) < (dest|0)) & ((dest|0) < ((src + num)|0))) {
  46552. // Unlikely case: Copy backwards in a safe manner
  46553. ret = dest;
  46554. src = (src + num)|0;
  46555. dest = (dest + num)|0;
  46556. while ((num|0) > 0) {
  46557. dest = (dest - 1)|0;
  46558. src = (src - 1)|0;
  46559. num = (num - 1)|0;
  46560. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  46561. }
  46562. dest = ret;
  46563. } else {
  46564. _memcpy(dest, src, num) | 0;
  46565. }
  46566. return dest | 0;
  46567. }
  46568. function _llvm_cttz_i32(x) {
  46569. x = x|0;
  46570. var ret = 0;
  46571. ret = ((HEAP8[(((cttz_i8)+(x & 0xff))>>0)])|0);
  46572. if ((ret|0) < 8) return ret|0;
  46573. ret = ((HEAP8[(((cttz_i8)+((x >> 8)&0xff))>>0)])|0);
  46574. if ((ret|0) < 8) return (ret + 8)|0;
  46575. ret = ((HEAP8[(((cttz_i8)+((x >> 16)&0xff))>>0)])|0);
  46576. if ((ret|0) < 8) return (ret + 16)|0;
  46577. return (((HEAP8[(((cttz_i8)+(x >>> 24))>>0)])|0) + 24)|0;
  46578. }
  46579. function ___udivmoddi4($a$0, $a$1, $b$0, $b$1, $rem) {
  46580. $a$0 = $a$0 | 0;
  46581. $a$1 = $a$1 | 0;
  46582. $b$0 = $b$0 | 0;
  46583. $b$1 = $b$1 | 0;
  46584. $rem = $rem | 0;
  46585. 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;
  46586. $n_sroa_0_0_extract_trunc = $a$0;
  46587. $n_sroa_1_4_extract_shift$0 = $a$1;
  46588. $n_sroa_1_4_extract_trunc = $n_sroa_1_4_extract_shift$0;
  46589. $d_sroa_0_0_extract_trunc = $b$0;
  46590. $d_sroa_1_4_extract_shift$0 = $b$1;
  46591. $d_sroa_1_4_extract_trunc = $d_sroa_1_4_extract_shift$0;
  46592. if (($n_sroa_1_4_extract_trunc | 0) == 0) {
  46593. $4 = ($rem | 0) != 0;
  46594. if (($d_sroa_1_4_extract_trunc | 0) == 0) {
  46595. if ($4) {
  46596. HEAP32[$rem >> 2] = ($n_sroa_0_0_extract_trunc >>> 0) % ($d_sroa_0_0_extract_trunc >>> 0);
  46597. HEAP32[$rem + 4 >> 2] = 0;
  46598. }
  46599. $_0$1 = 0;
  46600. $_0$0 = ($n_sroa_0_0_extract_trunc >>> 0) / ($d_sroa_0_0_extract_trunc >>> 0) >>> 0;
  46601. return (tempRet0 = $_0$1, $_0$0) | 0;
  46602. } else {
  46603. if (!$4) {
  46604. $_0$1 = 0;
  46605. $_0$0 = 0;
  46606. return (tempRet0 = $_0$1, $_0$0) | 0;
  46607. }
  46608. HEAP32[$rem >> 2] = $a$0 & -1;
  46609. HEAP32[$rem + 4 >> 2] = $a$1 & 0;
  46610. $_0$1 = 0;
  46611. $_0$0 = 0;
  46612. return (tempRet0 = $_0$1, $_0$0) | 0;
  46613. }
  46614. }
  46615. $17 = ($d_sroa_1_4_extract_trunc | 0) == 0;
  46616. do {
  46617. if (($d_sroa_0_0_extract_trunc | 0) == 0) {
  46618. if ($17) {
  46619. if (($rem | 0) != 0) {
  46620. HEAP32[$rem >> 2] = ($n_sroa_1_4_extract_trunc >>> 0) % ($d_sroa_0_0_extract_trunc >>> 0);
  46621. HEAP32[$rem + 4 >> 2] = 0;
  46622. }
  46623. $_0$1 = 0;
  46624. $_0$0 = ($n_sroa_1_4_extract_trunc >>> 0) / ($d_sroa_0_0_extract_trunc >>> 0) >>> 0;
  46625. return (tempRet0 = $_0$1, $_0$0) | 0;
  46626. }
  46627. if (($n_sroa_0_0_extract_trunc | 0) == 0) {
  46628. if (($rem | 0) != 0) {
  46629. HEAP32[$rem >> 2] = 0;
  46630. HEAP32[$rem + 4 >> 2] = ($n_sroa_1_4_extract_trunc >>> 0) % ($d_sroa_1_4_extract_trunc >>> 0);
  46631. }
  46632. $_0$1 = 0;
  46633. $_0$0 = ($n_sroa_1_4_extract_trunc >>> 0) / ($d_sroa_1_4_extract_trunc >>> 0) >>> 0;
  46634. return (tempRet0 = $_0$1, $_0$0) | 0;
  46635. }
  46636. $37 = $d_sroa_1_4_extract_trunc - 1 | 0;
  46637. if (($37 & $d_sroa_1_4_extract_trunc | 0) == 0) {
  46638. if (($rem | 0) != 0) {
  46639. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  46640. HEAP32[$rem + 4 >> 2] = $37 & $n_sroa_1_4_extract_trunc | $a$1 & 0;
  46641. }
  46642. $_0$1 = 0;
  46643. $_0$0 = $n_sroa_1_4_extract_trunc >>> ((_llvm_cttz_i32($d_sroa_1_4_extract_trunc | 0) | 0) >>> 0);
  46644. return (tempRet0 = $_0$1, $_0$0) | 0;
  46645. }
  46646. $49 = Math_clz32($d_sroa_1_4_extract_trunc | 0) | 0;
  46647. $51 = $49 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  46648. if ($51 >>> 0 <= 30) {
  46649. $57 = $51 + 1 | 0;
  46650. $58 = 31 - $51 | 0;
  46651. $sr_1_ph = $57;
  46652. $r_sroa_0_1_ph = $n_sroa_1_4_extract_trunc << $58 | $n_sroa_0_0_extract_trunc >>> ($57 >>> 0);
  46653. $r_sroa_1_1_ph = $n_sroa_1_4_extract_trunc >>> ($57 >>> 0);
  46654. $q_sroa_0_1_ph = 0;
  46655. $q_sroa_1_1_ph = $n_sroa_0_0_extract_trunc << $58;
  46656. break;
  46657. }
  46658. if (($rem | 0) == 0) {
  46659. $_0$1 = 0;
  46660. $_0$0 = 0;
  46661. return (tempRet0 = $_0$1, $_0$0) | 0;
  46662. }
  46663. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  46664. HEAP32[$rem + 4 >> 2] = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  46665. $_0$1 = 0;
  46666. $_0$0 = 0;
  46667. return (tempRet0 = $_0$1, $_0$0) | 0;
  46668. } else {
  46669. if (!$17) {
  46670. $117 = Math_clz32($d_sroa_1_4_extract_trunc | 0) | 0;
  46671. $119 = $117 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  46672. if ($119 >>> 0 <= 31) {
  46673. $125 = $119 + 1 | 0;
  46674. $126 = 31 - $119 | 0;
  46675. $130 = $119 - 31 >> 31;
  46676. $sr_1_ph = $125;
  46677. $r_sroa_0_1_ph = $n_sroa_0_0_extract_trunc >>> ($125 >>> 0) & $130 | $n_sroa_1_4_extract_trunc << $126;
  46678. $r_sroa_1_1_ph = $n_sroa_1_4_extract_trunc >>> ($125 >>> 0) & $130;
  46679. $q_sroa_0_1_ph = 0;
  46680. $q_sroa_1_1_ph = $n_sroa_0_0_extract_trunc << $126;
  46681. break;
  46682. }
  46683. if (($rem | 0) == 0) {
  46684. $_0$1 = 0;
  46685. $_0$0 = 0;
  46686. return (tempRet0 = $_0$1, $_0$0) | 0;
  46687. }
  46688. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  46689. HEAP32[$rem + 4 >> 2] = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  46690. $_0$1 = 0;
  46691. $_0$0 = 0;
  46692. return (tempRet0 = $_0$1, $_0$0) | 0;
  46693. }
  46694. $66 = $d_sroa_0_0_extract_trunc - 1 | 0;
  46695. if (($66 & $d_sroa_0_0_extract_trunc | 0) != 0) {
  46696. $86 = (Math_clz32($d_sroa_0_0_extract_trunc | 0) | 0) + 33 | 0;
  46697. $88 = $86 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  46698. $89 = 64 - $88 | 0;
  46699. $91 = 32 - $88 | 0;
  46700. $92 = $91 >> 31;
  46701. $95 = $88 - 32 | 0;
  46702. $105 = $95 >> 31;
  46703. $sr_1_ph = $88;
  46704. $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;
  46705. $r_sroa_1_1_ph = $105 & $n_sroa_1_4_extract_trunc >>> ($88 >>> 0);
  46706. $q_sroa_0_1_ph = $n_sroa_0_0_extract_trunc << $89 & $92;
  46707. $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;
  46708. break;
  46709. }
  46710. if (($rem | 0) != 0) {
  46711. HEAP32[$rem >> 2] = $66 & $n_sroa_0_0_extract_trunc;
  46712. HEAP32[$rem + 4 >> 2] = 0;
  46713. }
  46714. if (($d_sroa_0_0_extract_trunc | 0) == 1) {
  46715. $_0$1 = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  46716. $_0$0 = 0 | $a$0 & -1;
  46717. return (tempRet0 = $_0$1, $_0$0) | 0;
  46718. } else {
  46719. $78 = _llvm_cttz_i32($d_sroa_0_0_extract_trunc | 0) | 0;
  46720. $_0$1 = 0 | $n_sroa_1_4_extract_trunc >>> ($78 >>> 0);
  46721. $_0$0 = $n_sroa_1_4_extract_trunc << 32 - $78 | $n_sroa_0_0_extract_trunc >>> ($78 >>> 0) | 0;
  46722. return (tempRet0 = $_0$1, $_0$0) | 0;
  46723. }
  46724. }
  46725. } while (0);
  46726. if (($sr_1_ph | 0) == 0) {
  46727. $q_sroa_1_1_lcssa = $q_sroa_1_1_ph;
  46728. $q_sroa_0_1_lcssa = $q_sroa_0_1_ph;
  46729. $r_sroa_1_1_lcssa = $r_sroa_1_1_ph;
  46730. $r_sroa_0_1_lcssa = $r_sroa_0_1_ph;
  46731. $carry_0_lcssa$1 = 0;
  46732. $carry_0_lcssa$0 = 0;
  46733. } else {
  46734. $d_sroa_0_0_insert_insert99$0 = 0 | $b$0 & -1;
  46735. $d_sroa_0_0_insert_insert99$1 = $d_sroa_1_4_extract_shift$0 | $b$1 & 0;
  46736. $137$0 = _i64Add($d_sroa_0_0_insert_insert99$0 | 0, $d_sroa_0_0_insert_insert99$1 | 0, -1, -1) | 0;
  46737. $137$1 = tempRet0;
  46738. $q_sroa_1_1198 = $q_sroa_1_1_ph;
  46739. $q_sroa_0_1199 = $q_sroa_0_1_ph;
  46740. $r_sroa_1_1200 = $r_sroa_1_1_ph;
  46741. $r_sroa_0_1201 = $r_sroa_0_1_ph;
  46742. $sr_1202 = $sr_1_ph;
  46743. $carry_0203 = 0;
  46744. while (1) {
  46745. $147 = $q_sroa_0_1199 >>> 31 | $q_sroa_1_1198 << 1;
  46746. $149 = $carry_0203 | $q_sroa_0_1199 << 1;
  46747. $r_sroa_0_0_insert_insert42$0 = 0 | ($r_sroa_0_1201 << 1 | $q_sroa_1_1198 >>> 31);
  46748. $r_sroa_0_0_insert_insert42$1 = $r_sroa_0_1201 >>> 31 | $r_sroa_1_1200 << 1 | 0;
  46749. _i64Subtract($137$0 | 0, $137$1 | 0, $r_sroa_0_0_insert_insert42$0 | 0, $r_sroa_0_0_insert_insert42$1 | 0) | 0;
  46750. $150$1 = tempRet0;
  46751. $151$0 = $150$1 >> 31 | (($150$1 | 0) < 0 ? -1 : 0) << 1;
  46752. $152 = $151$0 & 1;
  46753. $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;
  46754. $r_sroa_0_0_extract_trunc = $154$0;
  46755. $r_sroa_1_4_extract_trunc = tempRet0;
  46756. $155 = $sr_1202 - 1 | 0;
  46757. if (($155 | 0) == 0) {
  46758. break;
  46759. } else {
  46760. $q_sroa_1_1198 = $147;
  46761. $q_sroa_0_1199 = $149;
  46762. $r_sroa_1_1200 = $r_sroa_1_4_extract_trunc;
  46763. $r_sroa_0_1201 = $r_sroa_0_0_extract_trunc;
  46764. $sr_1202 = $155;
  46765. $carry_0203 = $152;
  46766. }
  46767. }
  46768. $q_sroa_1_1_lcssa = $147;
  46769. $q_sroa_0_1_lcssa = $149;
  46770. $r_sroa_1_1_lcssa = $r_sroa_1_4_extract_trunc;
  46771. $r_sroa_0_1_lcssa = $r_sroa_0_0_extract_trunc;
  46772. $carry_0_lcssa$1 = 0;
  46773. $carry_0_lcssa$0 = $152;
  46774. }
  46775. $q_sroa_0_0_insert_ext75$0 = $q_sroa_0_1_lcssa;
  46776. $q_sroa_0_0_insert_ext75$1 = 0;
  46777. $q_sroa_0_0_insert_insert77$1 = $q_sroa_1_1_lcssa | $q_sroa_0_0_insert_ext75$1;
  46778. if (($rem | 0) != 0) {
  46779. HEAP32[$rem >> 2] = 0 | $r_sroa_0_1_lcssa;
  46780. HEAP32[$rem + 4 >> 2] = $r_sroa_1_1_lcssa | 0;
  46781. }
  46782. $_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;
  46783. $_0$0 = ($q_sroa_0_0_insert_ext75$0 << 1 | 0 >>> 31) & -2 | $carry_0_lcssa$0;
  46784. return (tempRet0 = $_0$1, $_0$0) | 0;
  46785. }
  46786. function ___uremdi3($a$0, $a$1, $b$0, $b$1) {
  46787. $a$0 = $a$0 | 0;
  46788. $a$1 = $a$1 | 0;
  46789. $b$0 = $b$0 | 0;
  46790. $b$1 = $b$1 | 0;
  46791. var $rem = 0, __stackBase__ = 0;
  46792. __stackBase__ = STACKTOP;
  46793. STACKTOP = STACKTOP + 16 | 0;
  46794. $rem = __stackBase__ | 0;
  46795. ___udivmoddi4($a$0, $a$1, $b$0, $b$1, $rem) | 0;
  46796. STACKTOP = __stackBase__;
  46797. return (tempRet0 = HEAP32[$rem + 4 >> 2] | 0, HEAP32[$rem >> 2] | 0) | 0;
  46798. }
  46799. function ___udivdi3($a$0, $a$1, $b$0, $b$1) {
  46800. $a$0 = $a$0 | 0;
  46801. $a$1 = $a$1 | 0;
  46802. $b$0 = $b$0 | 0;
  46803. $b$1 = $b$1 | 0;
  46804. var $1$0 = 0;
  46805. $1$0 = ___udivmoddi4($a$0, $a$1, $b$0, $b$1, 0) | 0;
  46806. return $1$0 | 0;
  46807. }
  46808. function _roundf(f) {
  46809. f = +f;
  46810. return f >= +0 ? +Math_floor(f + +0.5) : +Math_ceil(f - +0.5); // TODO: use fround?
  46811. }
  46812. function _bitshift64Lshr(low, high, bits) {
  46813. low = low|0; high = high|0; bits = bits|0;
  46814. var ander = 0;
  46815. if ((bits|0) < 32) {
  46816. ander = ((1 << bits) - 1)|0;
  46817. tempRet0 = high >>> bits;
  46818. return (low >>> bits) | ((high&ander) << (32 - bits));
  46819. }
  46820. tempRet0 = 0;
  46821. return (high >>> (bits - 32))|0;
  46822. }
  46823. function _sbrk(increment) {
  46824. increment = increment|0;
  46825. var oldDynamicTop = 0;
  46826. var oldDynamicTopOnChange = 0;
  46827. var newDynamicTop = 0;
  46828. var totalMemory = 0;
  46829. increment = ((increment + 15) & -16)|0;
  46830. oldDynamicTop = HEAP32[DYNAMICTOP_PTR>>2]|0;
  46831. newDynamicTop = oldDynamicTop + increment | 0;
  46832. if (((increment|0) > 0 & (newDynamicTop|0) < (oldDynamicTop|0)) // Detect and fail if we would wrap around signed 32-bit int.
  46833. | (newDynamicTop|0) < 0) { // Also underflow, sbrk() should be able to be used to subtract.
  46834. abortOnCannotGrowMemory()|0;
  46835. ___setErrNo(12);
  46836. return -1;
  46837. }
  46838. HEAP32[DYNAMICTOP_PTR>>2] = newDynamicTop;
  46839. totalMemory = getTotalMemory()|0;
  46840. if ((newDynamicTop|0) > (totalMemory|0)) {
  46841. if ((enlargeMemory()|0) == 0) {
  46842. ___setErrNo(12);
  46843. HEAP32[DYNAMICTOP_PTR>>2] = oldDynamicTop;
  46844. return -1;
  46845. }
  46846. }
  46847. return oldDynamicTop|0;
  46848. }
  46849. function _bitshift64Shl(low, high, bits) {
  46850. low = low|0; high = high|0; bits = bits|0;
  46851. var ander = 0;
  46852. if ((bits|0) < 32) {
  46853. ander = ((1 << bits) - 1)|0;
  46854. tempRet0 = (high << bits) | ((low&(ander << (32 - bits))) >>> (32 - bits));
  46855. return low << bits;
  46856. }
  46857. tempRet0 = low << (bits - 32);
  46858. return 0;
  46859. }
  46860. function _llvm_bswap_i32(x) {
  46861. x = x|0;
  46862. return (((x&0xff)<<24) | (((x>>8)&0xff)<<16) | (((x>>16)&0xff)<<8) | (x>>>24))|0;
  46863. }
  46864. function dynCall_viiiii(index,a1,a2,a3,a4,a5) {
  46865. index = index|0;
  46866. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0;
  46867. FUNCTION_TABLE_viiiii[index&7](a1|0,a2|0,a3|0,a4|0,a5|0);
  46868. }
  46869. function dynCall_vd(index,a1) {
  46870. index = index|0;
  46871. a1=+a1;
  46872. FUNCTION_TABLE_vd[index&3](+a1);
  46873. }
  46874. function dynCall_vid(index,a1,a2) {
  46875. index = index|0;
  46876. a1=a1|0; a2=+a2;
  46877. FUNCTION_TABLE_vid[index&3](a1|0,+a2);
  46878. }
  46879. function dynCall_vi(index,a1) {
  46880. index = index|0;
  46881. a1=a1|0;
  46882. FUNCTION_TABLE_vi[index&31](a1|0);
  46883. }
  46884. function dynCall_vii(index,a1,a2) {
  46885. index = index|0;
  46886. a1=a1|0; a2=a2|0;
  46887. FUNCTION_TABLE_vii[index&63](a1|0,a2|0);
  46888. }
  46889. function dynCall_ii(index,a1) {
  46890. index = index|0;
  46891. a1=a1|0;
  46892. return FUNCTION_TABLE_ii[index&15](a1|0)|0;
  46893. }
  46894. function dynCall_viddd(index,a1,a2,a3,a4) {
  46895. index = index|0;
  46896. a1=a1|0; a2=+a2; a3=+a3; a4=+a4;
  46897. FUNCTION_TABLE_viddd[index&3](a1|0,+a2,+a3,+a4);
  46898. }
  46899. function dynCall_vidd(index,a1,a2,a3) {
  46900. index = index|0;
  46901. a1=a1|0; a2=+a2; a3=+a3;
  46902. FUNCTION_TABLE_vidd[index&7](a1|0,+a2,+a3);
  46903. }
  46904. function dynCall_iiii(index,a1,a2,a3) {
  46905. index = index|0;
  46906. a1=a1|0; a2=a2|0; a3=a3|0;
  46907. return FUNCTION_TABLE_iiii[index&15](a1|0,a2|0,a3|0)|0;
  46908. }
  46909. function dynCall_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8) {
  46910. index = index|0;
  46911. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0; a7=a7|0; a8=a8|0;
  46912. FUNCTION_TABLE_viiiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0,a8|0);
  46913. }
  46914. function dynCall_viiiiii(index,a1,a2,a3,a4,a5,a6) {
  46915. index = index|0;
  46916. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0;
  46917. FUNCTION_TABLE_viiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0);
  46918. }
  46919. function dynCall_viii(index,a1,a2,a3) {
  46920. index = index|0;
  46921. a1=a1|0; a2=a2|0; a3=a3|0;
  46922. FUNCTION_TABLE_viii[index&31](a1|0,a2|0,a3|0);
  46923. }
  46924. function dynCall_vidddd(index,a1,a2,a3,a4,a5) {
  46925. index = index|0;
  46926. a1=a1|0; a2=+a2; a3=+a3; a4=+a4; a5=+a5;
  46927. FUNCTION_TABLE_vidddd[index&3](a1|0,+a2,+a3,+a4,+a5);
  46928. }
  46929. function dynCall_vdi(index,a1,a2) {
  46930. index = index|0;
  46931. a1=+a1; a2=a2|0;
  46932. FUNCTION_TABLE_vdi[index&1](+a1,a2|0);
  46933. }
  46934. function dynCall_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7) {
  46935. index = index|0;
  46936. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0; a7=a7|0;
  46937. FUNCTION_TABLE_viiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0);
  46938. }
  46939. function dynCall_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9) {
  46940. index = index|0;
  46941. 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;
  46942. FUNCTION_TABLE_viiiiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0,a8|0,a9|0);
  46943. }
  46944. function dynCall_iii(index,a1,a2) {
  46945. index = index|0;
  46946. a1=a1|0; a2=a2|0;
  46947. return FUNCTION_TABLE_iii[index&3](a1|0,a2|0)|0;
  46948. }
  46949. function dynCall_i(index) {
  46950. index = index|0;
  46951. return FUNCTION_TABLE_i[index&3]()|0;
  46952. }
  46953. function dynCall_vdddddd(index,a1,a2,a3,a4,a5,a6) {
  46954. index = index|0;
  46955. a1=+a1; a2=+a2; a3=+a3; a4=+a4; a5=+a5; a6=+a6;
  46956. FUNCTION_TABLE_vdddddd[index&1](+a1,+a2,+a3,+a4,+a5,+a6);
  46957. }
  46958. function dynCall_vdddd(index,a1,a2,a3,a4) {
  46959. index = index|0;
  46960. a1=+a1; a2=+a2; a3=+a3; a4=+a4;
  46961. FUNCTION_TABLE_vdddd[index&3](+a1,+a2,+a3,+a4);
  46962. }
  46963. function dynCall_vdd(index,a1,a2) {
  46964. index = index|0;
  46965. a1=+a1; a2=+a2;
  46966. FUNCTION_TABLE_vdd[index&3](+a1,+a2);
  46967. }
  46968. function dynCall_v(index) {
  46969. index = index|0;
  46970. FUNCTION_TABLE_v[index&7]();
  46971. }
  46972. function dynCall_viid(index,a1,a2,a3) {
  46973. index = index|0;
  46974. a1=a1|0; a2=a2|0; a3=+a3;
  46975. FUNCTION_TABLE_viid[index&1](a1|0,a2|0,+a3);
  46976. }
  46977. function dynCall_viiii(index,a1,a2,a3,a4) {
  46978. index = index|0;
  46979. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0;
  46980. FUNCTION_TABLE_viiii[index&31](a1|0,a2|0,a3|0,a4|0);
  46981. }
  46982. function b0(p0,p1,p2,p3,p4) {
  46983. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0; nullFunc_viiiii(0);
  46984. }
  46985. function _emscripten_glUniform4i__wrapper(p0,p1,p2,p3,p4) {
  46986. 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);
  46987. }
  46988. function _emscripten_glFramebufferTexture2D__wrapper(p0,p1,p2,p3,p4) {
  46989. 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);
  46990. }
  46991. function _emscripten_glShaderBinary__wrapper(p0,p1,p2,p3,p4) {
  46992. 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);
  46993. }
  46994. function _emscripten_glDrawElementsInstanced__wrapper(p0,p1,p2,p3,p4) {
  46995. 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);
  46996. }
  46997. function b1(p0) {
  46998. p0 = +p0; nullFunc_vd(1);
  46999. }
  47000. function _emscripten_glClearDepth__wrapper(p0) {
  47001. p0 = +p0; _emscripten_glClearDepth(+p0);
  47002. }
  47003. function _emscripten_glClearDepthf__wrapper(p0) {
  47004. p0 = +p0; _emscripten_glClearDepthf(+p0);
  47005. }
  47006. function _emscripten_glLineWidth__wrapper(p0) {
  47007. p0 = +p0; _emscripten_glLineWidth(+p0);
  47008. }
  47009. function b2(p0,p1) {
  47010. p0 = p0|0;p1 = +p1; nullFunc_vid(2);
  47011. }
  47012. function _emscripten_glUniform1f__wrapper(p0,p1) {
  47013. p0 = p0|0;p1 = +p1; _emscripten_glUniform1f(p0|0,+p1);
  47014. }
  47015. function _emscripten_glVertexAttrib1f__wrapper(p0,p1) {
  47016. p0 = p0|0;p1 = +p1; _emscripten_glVertexAttrib1f(p0|0,+p1);
  47017. }
  47018. function b3(p0) {
  47019. p0 = p0|0; nullFunc_vi(3);
  47020. }
  47021. function _emscripten_glDeleteShader__wrapper(p0) {
  47022. p0 = p0|0; _emscripten_glDeleteShader(p0|0);
  47023. }
  47024. function _emscripten_glCompileShader__wrapper(p0) {
  47025. p0 = p0|0; _emscripten_glCompileShader(p0|0);
  47026. }
  47027. function _emscripten_glDeleteProgram__wrapper(p0) {
  47028. p0 = p0|0; _emscripten_glDeleteProgram(p0|0);
  47029. }
  47030. function _emscripten_glLinkProgram__wrapper(p0) {
  47031. p0 = p0|0; _emscripten_glLinkProgram(p0|0);
  47032. }
  47033. function _emscripten_glUseProgram__wrapper(p0) {
  47034. p0 = p0|0; _emscripten_glUseProgram(p0|0);
  47035. }
  47036. function _emscripten_glValidateProgram__wrapper(p0) {
  47037. p0 = p0|0; _emscripten_glValidateProgram(p0|0);
  47038. }
  47039. function _emscripten_glDeleteObjectARB__wrapper(p0) {
  47040. p0 = p0|0; _emscripten_glDeleteObjectARB(p0|0);
  47041. }
  47042. function _emscripten_glEnableClientState__wrapper(p0) {
  47043. p0 = p0|0; _emscripten_glEnableClientState(p0|0);
  47044. }
  47045. function _emscripten_glClientActiveTexture__wrapper(p0) {
  47046. p0 = p0|0; _emscripten_glClientActiveTexture(p0|0);
  47047. }
  47048. function _emscripten_glBindVertexArray__wrapper(p0) {
  47049. p0 = p0|0; _emscripten_glBindVertexArray(p0|0);
  47050. }
  47051. function _emscripten_glMatrixMode__wrapper(p0) {
  47052. p0 = p0|0; _emscripten_glMatrixMode(p0|0);
  47053. }
  47054. function _emscripten_glLoadMatrixf__wrapper(p0) {
  47055. p0 = p0|0; _emscripten_glLoadMatrixf(p0|0);
  47056. }
  47057. function _emscripten_glEnableVertexAttribArray__wrapper(p0) {
  47058. p0 = p0|0; _emscripten_glEnableVertexAttribArray(p0|0);
  47059. }
  47060. function _emscripten_glDisableVertexAttribArray__wrapper(p0) {
  47061. p0 = p0|0; _emscripten_glDisableVertexAttribArray(p0|0);
  47062. }
  47063. function _emscripten_glDepthFunc__wrapper(p0) {
  47064. p0 = p0|0; _emscripten_glDepthFunc(p0|0);
  47065. }
  47066. function _emscripten_glEnable__wrapper(p0) {
  47067. p0 = p0|0; _emscripten_glEnable(p0|0);
  47068. }
  47069. function _emscripten_glDisable__wrapper(p0) {
  47070. p0 = p0|0; _emscripten_glDisable(p0|0);
  47071. }
  47072. function _emscripten_glFrontFace__wrapper(p0) {
  47073. p0 = p0|0; _emscripten_glFrontFace(p0|0);
  47074. }
  47075. function _emscripten_glCullFace__wrapper(p0) {
  47076. p0 = p0|0; _emscripten_glCullFace(p0|0);
  47077. }
  47078. function _emscripten_glClear__wrapper(p0) {
  47079. p0 = p0|0; _emscripten_glClear(p0|0);
  47080. }
  47081. function _emscripten_glClearStencil__wrapper(p0) {
  47082. p0 = p0|0; _emscripten_glClearStencil(p0|0);
  47083. }
  47084. function _emscripten_glDepthMask__wrapper(p0) {
  47085. p0 = p0|0; _emscripten_glDepthMask(p0|0);
  47086. }
  47087. function _emscripten_glStencilMask__wrapper(p0) {
  47088. p0 = p0|0; _emscripten_glStencilMask(p0|0);
  47089. }
  47090. function _emscripten_glGenerateMipmap__wrapper(p0) {
  47091. p0 = p0|0; _emscripten_glGenerateMipmap(p0|0);
  47092. }
  47093. function _emscripten_glActiveTexture__wrapper(p0) {
  47094. p0 = p0|0; _emscripten_glActiveTexture(p0|0);
  47095. }
  47096. function _emscripten_glBlendEquation__wrapper(p0) {
  47097. p0 = p0|0; _emscripten_glBlendEquation(p0|0);
  47098. }
  47099. function b4(p0,p1) {
  47100. p0 = p0|0;p1 = p1|0; nullFunc_vii(4);
  47101. }
  47102. function _emscripten_glPixelStorei__wrapper(p0,p1) {
  47103. p0 = p0|0;p1 = p1|0; _emscripten_glPixelStorei(p0|0,p1|0);
  47104. }
  47105. function _emscripten_glGetIntegerv__wrapper(p0,p1) {
  47106. p0 = p0|0;p1 = p1|0; _emscripten_glGetIntegerv(p0|0,p1|0);
  47107. }
  47108. function _emscripten_glGetFloatv__wrapper(p0,p1) {
  47109. p0 = p0|0;p1 = p1|0; _emscripten_glGetFloatv(p0|0,p1|0);
  47110. }
  47111. function _emscripten_glGetBooleanv__wrapper(p0,p1) {
  47112. p0 = p0|0;p1 = p1|0; _emscripten_glGetBooleanv(p0|0,p1|0);
  47113. }
  47114. function _emscripten_glGenTextures__wrapper(p0,p1) {
  47115. p0 = p0|0;p1 = p1|0; _emscripten_glGenTextures(p0|0,p1|0);
  47116. }
  47117. function _emscripten_glDeleteTextures__wrapper(p0,p1) {
  47118. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteTextures(p0|0,p1|0);
  47119. }
  47120. function _emscripten_glBindTexture__wrapper(p0,p1) {
  47121. p0 = p0|0;p1 = p1|0; _emscripten_glBindTexture(p0|0,p1|0);
  47122. }
  47123. function _emscripten_glGenBuffers__wrapper(p0,p1) {
  47124. p0 = p0|0;p1 = p1|0; _emscripten_glGenBuffers(p0|0,p1|0);
  47125. }
  47126. function _emscripten_glDeleteBuffers__wrapper(p0,p1) {
  47127. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteBuffers(p0|0,p1|0);
  47128. }
  47129. function _emscripten_glGenRenderbuffers__wrapper(p0,p1) {
  47130. p0 = p0|0;p1 = p1|0; _emscripten_glGenRenderbuffers(p0|0,p1|0);
  47131. }
  47132. function _emscripten_glDeleteRenderbuffers__wrapper(p0,p1) {
  47133. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteRenderbuffers(p0|0,p1|0);
  47134. }
  47135. function _emscripten_glBindRenderbuffer__wrapper(p0,p1) {
  47136. p0 = p0|0;p1 = p1|0; _emscripten_glBindRenderbuffer(p0|0,p1|0);
  47137. }
  47138. function _emscripten_glUniform1i__wrapper(p0,p1) {
  47139. p0 = p0|0;p1 = p1|0; _emscripten_glUniform1i(p0|0,p1|0);
  47140. }
  47141. function _emscripten_glBindBuffer__wrapper(p0,p1) {
  47142. p0 = p0|0;p1 = p1|0; _emscripten_glBindBuffer(p0|0,p1|0);
  47143. }
  47144. function _emscripten_glVertexAttrib1fv__wrapper(p0,p1) {
  47145. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib1fv(p0|0,p1|0);
  47146. }
  47147. function _emscripten_glVertexAttrib2fv__wrapper(p0,p1) {
  47148. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib2fv(p0|0,p1|0);
  47149. }
  47150. function _emscripten_glVertexAttrib3fv__wrapper(p0,p1) {
  47151. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib3fv(p0|0,p1|0);
  47152. }
  47153. function _emscripten_glVertexAttrib4fv__wrapper(p0,p1) {
  47154. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib4fv(p0|0,p1|0);
  47155. }
  47156. function _emscripten_glAttachShader__wrapper(p0,p1) {
  47157. p0 = p0|0;p1 = p1|0; _emscripten_glAttachShader(p0|0,p1|0);
  47158. }
  47159. function _emscripten_glDetachShader__wrapper(p0,p1) {
  47160. p0 = p0|0;p1 = p1|0; _emscripten_glDetachShader(p0|0,p1|0);
  47161. }
  47162. function _emscripten_glBindFramebuffer__wrapper(p0,p1) {
  47163. p0 = p0|0;p1 = p1|0; _emscripten_glBindFramebuffer(p0|0,p1|0);
  47164. }
  47165. function _emscripten_glGenFramebuffers__wrapper(p0,p1) {
  47166. p0 = p0|0;p1 = p1|0; _emscripten_glGenFramebuffers(p0|0,p1|0);
  47167. }
  47168. function _emscripten_glDeleteFramebuffers__wrapper(p0,p1) {
  47169. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteFramebuffers(p0|0,p1|0);
  47170. }
  47171. function _emscripten_glBindProgramARB__wrapper(p0,p1) {
  47172. p0 = p0|0;p1 = p1|0; _emscripten_glBindProgramARB(p0|0,p1|0);
  47173. }
  47174. function _emscripten_glGetPointerv__wrapper(p0,p1) {
  47175. p0 = p0|0;p1 = p1|0; _emscripten_glGetPointerv(p0|0,p1|0);
  47176. }
  47177. function _emscripten_glGenVertexArrays__wrapper(p0,p1) {
  47178. p0 = p0|0;p1 = p1|0; _emscripten_glGenVertexArrays(p0|0,p1|0);
  47179. }
  47180. function _emscripten_glDeleteVertexArrays__wrapper(p0,p1) {
  47181. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteVertexArrays(p0|0,p1|0);
  47182. }
  47183. function _emscripten_glVertexAttribDivisor__wrapper(p0,p1) {
  47184. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttribDivisor(p0|0,p1|0);
  47185. }
  47186. function _emscripten_glBlendFunc__wrapper(p0,p1) {
  47187. p0 = p0|0;p1 = p1|0; _emscripten_glBlendFunc(p0|0,p1|0);
  47188. }
  47189. function _emscripten_glBlendEquationSeparate__wrapper(p0,p1) {
  47190. p0 = p0|0;p1 = p1|0; _emscripten_glBlendEquationSeparate(p0|0,p1|0);
  47191. }
  47192. function _emscripten_glStencilMaskSeparate__wrapper(p0,p1) {
  47193. p0 = p0|0;p1 = p1|0; _emscripten_glStencilMaskSeparate(p0|0,p1|0);
  47194. }
  47195. function _emscripten_glHint__wrapper(p0,p1) {
  47196. p0 = p0|0;p1 = p1|0; _emscripten_glHint(p0|0,p1|0);
  47197. }
  47198. function _emscripten_glDrawBuffers__wrapper(p0,p1) {
  47199. p0 = p0|0;p1 = p1|0; _emscripten_glDrawBuffers(p0|0,p1|0);
  47200. }
  47201. function b5(p0) {
  47202. p0 = p0|0; nullFunc_ii(5);return 0;
  47203. }
  47204. function _emscripten_glGetString__wrapper(p0) {
  47205. p0 = p0|0; return _emscripten_glGetString(p0|0)|0;
  47206. }
  47207. function _emscripten_glIsTexture__wrapper(p0) {
  47208. p0 = p0|0; return _emscripten_glIsTexture(p0|0)|0;
  47209. }
  47210. function _emscripten_glIsBuffer__wrapper(p0) {
  47211. p0 = p0|0; return _emscripten_glIsBuffer(p0|0)|0;
  47212. }
  47213. function _emscripten_glIsRenderbuffer__wrapper(p0) {
  47214. p0 = p0|0; return _emscripten_glIsRenderbuffer(p0|0)|0;
  47215. }
  47216. function _emscripten_glCreateShader__wrapper(p0) {
  47217. p0 = p0|0; return _emscripten_glCreateShader(p0|0)|0;
  47218. }
  47219. function _emscripten_glIsShader__wrapper(p0) {
  47220. p0 = p0|0; return _emscripten_glIsShader(p0|0)|0;
  47221. }
  47222. function _emscripten_glIsProgram__wrapper(p0) {
  47223. p0 = p0|0; return _emscripten_glIsProgram(p0|0)|0;
  47224. }
  47225. function _emscripten_glIsFramebuffer__wrapper(p0) {
  47226. p0 = p0|0; return _emscripten_glIsFramebuffer(p0|0)|0;
  47227. }
  47228. function _emscripten_glCheckFramebufferStatus__wrapper(p0) {
  47229. p0 = p0|0; return _emscripten_glCheckFramebufferStatus(p0|0)|0;
  47230. }
  47231. function _emscripten_glIsEnabled__wrapper(p0) {
  47232. p0 = p0|0; return _emscripten_glIsEnabled(p0|0)|0;
  47233. }
  47234. function b6(p0,p1,p2,p3) {
  47235. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; nullFunc_viddd(6);
  47236. }
  47237. function _emscripten_glUniform3f__wrapper(p0,p1,p2,p3) {
  47238. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glUniform3f(p0|0,+p1,+p2,+p3);
  47239. }
  47240. function _emscripten_glVertexAttrib3f__wrapper(p0,p1,p2,p3) {
  47241. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glVertexAttrib3f(p0|0,+p1,+p2,+p3);
  47242. }
  47243. function b7(p0,p1,p2) {
  47244. p0 = p0|0;p1 = +p1;p2 = +p2; nullFunc_vidd(7);
  47245. }
  47246. function _emscripten_glUniform2f__wrapper(p0,p1,p2) {
  47247. p0 = p0|0;p1 = +p1;p2 = +p2; _emscripten_glUniform2f(p0|0,+p1,+p2);
  47248. }
  47249. function _emscripten_glVertexAttrib2f__wrapper(p0,p1,p2) {
  47250. p0 = p0|0;p1 = +p1;p2 = +p2; _emscripten_glVertexAttrib2f(p0|0,+p1,+p2);
  47251. }
  47252. function b8(p0,p1,p2) {
  47253. p0 = p0|0;p1 = p1|0;p2 = p2|0; nullFunc_iiii(8);return 0;
  47254. }
  47255. function b9(p0,p1,p2,p3,p4,p5,p6,p7) {
  47256. 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);
  47257. }
  47258. function _emscripten_glCompressedTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  47259. 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);
  47260. }
  47261. function _emscripten_glCopyTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  47262. 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);
  47263. }
  47264. function _emscripten_glCopyTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  47265. 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);
  47266. }
  47267. function b10(p0,p1,p2,p3,p4,p5) {
  47268. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0; nullFunc_viiiiii(10);
  47269. }
  47270. function _emscripten_glDrawRangeElements__wrapper(p0,p1,p2,p3,p4,p5) {
  47271. 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);
  47272. }
  47273. function _emscripten_glVertexAttribPointer__wrapper(p0,p1,p2,p3,p4,p5) {
  47274. 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);
  47275. }
  47276. function b11(p0,p1,p2) {
  47277. p0 = p0|0;p1 = p1|0;p2 = p2|0; nullFunc_viii(11);
  47278. }
  47279. function _emscripten_glGetTexParameterfv__wrapper(p0,p1,p2) {
  47280. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetTexParameterfv(p0|0,p1|0,p2|0);
  47281. }
  47282. function _emscripten_glGetTexParameteriv__wrapper(p0,p1,p2) {
  47283. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetTexParameteriv(p0|0,p1|0,p2|0);
  47284. }
  47285. function _emscripten_glTexParameterfv__wrapper(p0,p1,p2) {
  47286. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameterfv(p0|0,p1|0,p2|0);
  47287. }
  47288. function _emscripten_glTexParameteriv__wrapper(p0,p1,p2) {
  47289. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameteriv(p0|0,p1|0,p2|0);
  47290. }
  47291. function _emscripten_glGetBufferParameteriv__wrapper(p0,p1,p2) {
  47292. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetBufferParameteriv(p0|0,p1|0,p2|0);
  47293. }
  47294. function _emscripten_glGetRenderbufferParameteriv__wrapper(p0,p1,p2) {
  47295. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetRenderbufferParameteriv(p0|0,p1|0,p2|0);
  47296. }
  47297. function _emscripten_glGetUniformfv__wrapper(p0,p1,p2) {
  47298. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetUniformfv(p0|0,p1|0,p2|0);
  47299. }
  47300. function _emscripten_glGetUniformiv__wrapper(p0,p1,p2) {
  47301. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetUniformiv(p0|0,p1|0,p2|0);
  47302. }
  47303. function _emscripten_glGetVertexAttribfv__wrapper(p0,p1,p2) {
  47304. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribfv(p0|0,p1|0,p2|0);
  47305. }
  47306. function _emscripten_glGetVertexAttribiv__wrapper(p0,p1,p2) {
  47307. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribiv(p0|0,p1|0,p2|0);
  47308. }
  47309. function _emscripten_glGetVertexAttribPointerv__wrapper(p0,p1,p2) {
  47310. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribPointerv(p0|0,p1|0,p2|0);
  47311. }
  47312. function _emscripten_glUniform2i__wrapper(p0,p1,p2) {
  47313. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2i(p0|0,p1|0,p2|0);
  47314. }
  47315. function _emscripten_glUniform1iv__wrapper(p0,p1,p2) {
  47316. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform1iv(p0|0,p1|0,p2|0);
  47317. }
  47318. function _emscripten_glUniform2iv__wrapper(p0,p1,p2) {
  47319. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2iv(p0|0,p1|0,p2|0);
  47320. }
  47321. function _emscripten_glUniform3iv__wrapper(p0,p1,p2) {
  47322. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform3iv(p0|0,p1|0,p2|0);
  47323. }
  47324. function _emscripten_glUniform4iv__wrapper(p0,p1,p2) {
  47325. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform4iv(p0|0,p1|0,p2|0);
  47326. }
  47327. function _emscripten_glUniform1fv__wrapper(p0,p1,p2) {
  47328. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform1fv(p0|0,p1|0,p2|0);
  47329. }
  47330. function _emscripten_glUniform2fv__wrapper(p0,p1,p2) {
  47331. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2fv(p0|0,p1|0,p2|0);
  47332. }
  47333. function _emscripten_glUniform3fv__wrapper(p0,p1,p2) {
  47334. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform3fv(p0|0,p1|0,p2|0);
  47335. }
  47336. function _emscripten_glUniform4fv__wrapper(p0,p1,p2) {
  47337. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform4fv(p0|0,p1|0,p2|0);
  47338. }
  47339. function _emscripten_glGetShaderiv__wrapper(p0,p1,p2) {
  47340. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetShaderiv(p0|0,p1|0,p2|0);
  47341. }
  47342. function _emscripten_glGetProgramiv__wrapper(p0,p1,p2) {
  47343. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetProgramiv(p0|0,p1|0,p2|0);
  47344. }
  47345. function _emscripten_glBindAttribLocation__wrapper(p0,p1,p2) {
  47346. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glBindAttribLocation(p0|0,p1|0,p2|0);
  47347. }
  47348. function _emscripten_glGetObjectParameterivARB__wrapper(p0,p1,p2) {
  47349. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetObjectParameterivARB(p0|0,p1|0,p2|0);
  47350. }
  47351. function _emscripten_glNormalPointer__wrapper(p0,p1,p2) {
  47352. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glNormalPointer(p0|0,p1|0,p2|0);
  47353. }
  47354. function _emscripten_glDrawArrays__wrapper(p0,p1,p2) {
  47355. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glDrawArrays(p0|0,p1|0,p2|0);
  47356. }
  47357. function _emscripten_glTexParameteri__wrapper(p0,p1,p2) {
  47358. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameteri(p0|0,p1|0,p2|0);
  47359. }
  47360. function _emscripten_glStencilFunc__wrapper(p0,p1,p2) {
  47361. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glStencilFunc(p0|0,p1|0,p2|0);
  47362. }
  47363. function _emscripten_glStencilOp__wrapper(p0,p1,p2) {
  47364. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glStencilOp(p0|0,p1|0,p2|0);
  47365. }
  47366. function b12(p0,p1,p2,p3,p4) {
  47367. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; nullFunc_vidddd(12);
  47368. }
  47369. function _emscripten_glUniform4f__wrapper(p0,p1,p2,p3,p4) {
  47370. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; _emscripten_glUniform4f(p0|0,+p1,+p2,+p3,+p4);
  47371. }
  47372. function _emscripten_glVertexAttrib4f__wrapper(p0,p1,p2,p3,p4) {
  47373. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; _emscripten_glVertexAttrib4f(p0|0,+p1,+p2,+p3,+p4);
  47374. }
  47375. function b13(p0,p1) {
  47376. p0 = +p0;p1 = p1|0; nullFunc_vdi(13);
  47377. }
  47378. function _emscripten_glSampleCoverage__wrapper(p0,p1) {
  47379. p0 = +p0;p1 = p1|0; _emscripten_glSampleCoverage(+p0,p1|0);
  47380. }
  47381. function b14(p0,p1,p2,p3,p4,p5,p6) {
  47382. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0;p6 = p6|0; nullFunc_viiiiiii(14);
  47383. }
  47384. function _emscripten_glReadPixels__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  47385. 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);
  47386. }
  47387. function _emscripten_glGetActiveUniform__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  47388. 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);
  47389. }
  47390. function _emscripten_glGetActiveAttrib__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  47391. 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);
  47392. }
  47393. function b15(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  47394. 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);
  47395. }
  47396. function _emscripten_glCompressedTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  47397. 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);
  47398. }
  47399. function _emscripten_glTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  47400. 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);
  47401. }
  47402. function _emscripten_glTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  47403. 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);
  47404. }
  47405. function b16(p0,p1) {
  47406. p0 = p0|0;p1 = p1|0; nullFunc_iii(16);return 0;
  47407. }
  47408. function _emscripten_glGetUniformLocation__wrapper(p0,p1) {
  47409. p0 = p0|0;p1 = p1|0; return _emscripten_glGetUniformLocation(p0|0,p1|0)|0;
  47410. }
  47411. function _emscripten_glGetAttribLocation__wrapper(p0,p1) {
  47412. p0 = p0|0;p1 = p1|0; return _emscripten_glGetAttribLocation(p0|0,p1|0)|0;
  47413. }
  47414. function b17() {
  47415. ; nullFunc_i(17);return 0;
  47416. }
  47417. function _emscripten_glCreateProgram__wrapper() {
  47418. ; return _emscripten_glCreateProgram()|0;
  47419. }
  47420. function _emscripten_glGetError__wrapper() {
  47421. ; return _emscripten_glGetError()|0;
  47422. }
  47423. function b18(p0,p1,p2,p3,p4,p5) {
  47424. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4;p5 = +p5; nullFunc_vdddddd(18);
  47425. }
  47426. function _emscripten_glFrustum__wrapper(p0,p1,p2,p3,p4,p5) {
  47427. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4;p5 = +p5; _emscripten_glFrustum(+p0,+p1,+p2,+p3,+p4,+p5);
  47428. }
  47429. function b19(p0,p1,p2,p3) {
  47430. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; nullFunc_vdddd(19);
  47431. }
  47432. function _emscripten_glRotatef__wrapper(p0,p1,p2,p3) {
  47433. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glRotatef(+p0,+p1,+p2,+p3);
  47434. }
  47435. function _emscripten_glClearColor__wrapper(p0,p1,p2,p3) {
  47436. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glClearColor(+p0,+p1,+p2,+p3);
  47437. }
  47438. function _emscripten_glBlendColor__wrapper(p0,p1,p2,p3) {
  47439. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glBlendColor(+p0,+p1,+p2,+p3);
  47440. }
  47441. function b20(p0,p1) {
  47442. p0 = +p0;p1 = +p1; nullFunc_vdd(20);
  47443. }
  47444. function _emscripten_glDepthRange__wrapper(p0,p1) {
  47445. p0 = +p0;p1 = +p1; _emscripten_glDepthRange(+p0,+p1);
  47446. }
  47447. function _emscripten_glDepthRangef__wrapper(p0,p1) {
  47448. p0 = +p0;p1 = +p1; _emscripten_glDepthRangef(+p0,+p1);
  47449. }
  47450. function _emscripten_glPolygonOffset__wrapper(p0,p1) {
  47451. p0 = +p0;p1 = +p1; _emscripten_glPolygonOffset(+p0,+p1);
  47452. }
  47453. function b21() {
  47454. ; nullFunc_v(21);
  47455. }
  47456. function _emscripten_glLoadIdentity__wrapper() {
  47457. ; _emscripten_glLoadIdentity();
  47458. }
  47459. function _emscripten_glReleaseShaderCompiler__wrapper() {
  47460. ; _emscripten_glReleaseShaderCompiler();
  47461. }
  47462. function _emscripten_glFinish__wrapper() {
  47463. ; _emscripten_glFinish();
  47464. }
  47465. function _emscripten_glFlush__wrapper() {
  47466. ; _emscripten_glFlush();
  47467. }
  47468. function b22(p0,p1,p2) {
  47469. p0 = p0|0;p1 = p1|0;p2 = +p2; nullFunc_viid(22);
  47470. }
  47471. function _emscripten_glTexParameterf__wrapper(p0,p1,p2) {
  47472. p0 = p0|0;p1 = p1|0;p2 = +p2; _emscripten_glTexParameterf(p0|0,p1|0,+p2);
  47473. }
  47474. function b23(p0,p1,p2,p3) {
  47475. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; nullFunc_viiii(23);
  47476. }
  47477. function _emscripten_glBufferData__wrapper(p0,p1,p2,p3) {
  47478. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBufferData(p0|0,p1|0,p2|0,p3|0);
  47479. }
  47480. function _emscripten_glBufferSubData__wrapper(p0,p1,p2,p3) {
  47481. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBufferSubData(p0|0,p1|0,p2|0,p3|0);
  47482. }
  47483. function _emscripten_glUniform3i__wrapper(p0,p1,p2,p3) {
  47484. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniform3i(p0|0,p1|0,p2|0,p3|0);
  47485. }
  47486. function _emscripten_glUniformMatrix2fv__wrapper(p0,p1,p2,p3) {
  47487. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix2fv(p0|0,p1|0,p2|0,p3|0);
  47488. }
  47489. function _emscripten_glUniformMatrix3fv__wrapper(p0,p1,p2,p3) {
  47490. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix3fv(p0|0,p1|0,p2|0,p3|0);
  47491. }
  47492. function _emscripten_glUniformMatrix4fv__wrapper(p0,p1,p2,p3) {
  47493. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix4fv(p0|0,p1|0,p2|0,p3|0);
  47494. }
  47495. function _emscripten_glGetAttachedShaders__wrapper(p0,p1,p2,p3) {
  47496. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetAttachedShaders(p0|0,p1|0,p2|0,p3|0);
  47497. }
  47498. function _emscripten_glShaderSource__wrapper(p0,p1,p2,p3) {
  47499. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glShaderSource(p0|0,p1|0,p2|0,p3|0);
  47500. }
  47501. function _emscripten_glGetShaderSource__wrapper(p0,p1,p2,p3) {
  47502. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderSource(p0|0,p1|0,p2|0,p3|0);
  47503. }
  47504. function _emscripten_glGetShaderInfoLog__wrapper(p0,p1,p2,p3) {
  47505. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderInfoLog(p0|0,p1|0,p2|0,p3|0);
  47506. }
  47507. function _emscripten_glGetShaderPrecisionFormat__wrapper(p0,p1,p2,p3) {
  47508. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderPrecisionFormat(p0|0,p1|0,p2|0,p3|0);
  47509. }
  47510. function _emscripten_glGetProgramInfoLog__wrapper(p0,p1,p2,p3) {
  47511. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetProgramInfoLog(p0|0,p1|0,p2|0,p3|0);
  47512. }
  47513. function _emscripten_glFramebufferRenderbuffer__wrapper(p0,p1,p2,p3) {
  47514. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glFramebufferRenderbuffer(p0|0,p1|0,p2|0,p3|0);
  47515. }
  47516. function _emscripten_glGetFramebufferAttachmentParameteriv__wrapper(p0,p1,p2,p3) {
  47517. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetFramebufferAttachmentParameteriv(p0|0,p1|0,p2|0,p3|0);
  47518. }
  47519. function _emscripten_glGetInfoLogARB__wrapper(p0,p1,p2,p3) {
  47520. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetInfoLogARB(p0|0,p1|0,p2|0,p3|0);
  47521. }
  47522. function _emscripten_glVertexPointer__wrapper(p0,p1,p2,p3) {
  47523. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glVertexPointer(p0|0,p1|0,p2|0,p3|0);
  47524. }
  47525. function _emscripten_glTexCoordPointer__wrapper(p0,p1,p2,p3) {
  47526. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glTexCoordPointer(p0|0,p1|0,p2|0,p3|0);
  47527. }
  47528. function _emscripten_glColorPointer__wrapper(p0,p1,p2,p3) {
  47529. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glColorPointer(p0|0,p1|0,p2|0,p3|0);
  47530. }
  47531. function _emscripten_glDrawElements__wrapper(p0,p1,p2,p3) {
  47532. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glDrawElements(p0|0,p1|0,p2|0,p3|0);
  47533. }
  47534. function _emscripten_glDrawArraysInstanced__wrapper(p0,p1,p2,p3) {
  47535. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glDrawArraysInstanced(p0|0,p1|0,p2|0,p3|0);
  47536. }
  47537. function _emscripten_glViewport__wrapper(p0,p1,p2,p3) {
  47538. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glViewport(p0|0,p1|0,p2|0,p3|0);
  47539. }
  47540. function _emscripten_glScissor__wrapper(p0,p1,p2,p3) {
  47541. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glScissor(p0|0,p1|0,p2|0,p3|0);
  47542. }
  47543. function _emscripten_glColorMask__wrapper(p0,p1,p2,p3) {
  47544. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glColorMask(p0|0,p1|0,p2|0,p3|0);
  47545. }
  47546. function _emscripten_glRenderbufferStorage__wrapper(p0,p1,p2,p3) {
  47547. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glRenderbufferStorage(p0|0,p1|0,p2|0,p3|0);
  47548. }
  47549. function _emscripten_glBlendFuncSeparate__wrapper(p0,p1,p2,p3) {
  47550. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBlendFuncSeparate(p0|0,p1|0,p2|0,p3|0);
  47551. }
  47552. function _emscripten_glStencilFuncSeparate__wrapper(p0,p1,p2,p3) {
  47553. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glStencilFuncSeparate(p0|0,p1|0,p2|0,p3|0);
  47554. }
  47555. function _emscripten_glStencilOpSeparate__wrapper(p0,p1,p2,p3) {
  47556. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glStencilOpSeparate(p0|0,p1|0,p2|0,p3|0);
  47557. }
  47558. // EMSCRIPTEN_END_FUNCS
  47559. var FUNCTION_TABLE_viiiii = [b0,_KeyCallback,_emscripten_glUniform4i__wrapper,_emscripten_glFramebufferTexture2D__wrapper,_emscripten_glShaderBinary__wrapper,_emscripten_glDrawElementsInstanced__wrapper,b0,b0];
  47560. var FUNCTION_TABLE_vd = [b1,_emscripten_glClearDepth__wrapper,_emscripten_glClearDepthf__wrapper,_emscripten_glLineWidth__wrapper];
  47561. var FUNCTION_TABLE_vid = [b2,_emscripten_glUniform1f__wrapper,_emscripten_glVertexAttrib1f__wrapper,b2];
  47562. 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
  47563. ,b3,b3,b3];
  47564. 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
  47565. ,b4,b4,b4,b4,b4];
  47566. 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];
  47567. var FUNCTION_TABLE_viddd = [b6,_emscripten_glUniform3f__wrapper,_emscripten_glVertexAttrib3f__wrapper,b6];
  47568. var FUNCTION_TABLE_vidd = [b7,_MouseCursorPosCallback,_ScrollCallback,_emscripten_glUniform2f__wrapper,_emscripten_glVertexAttrib2f__wrapper,b7,b7,b7];
  47569. var FUNCTION_TABLE_iiii = [b8,_stbi__stdio_read,___stdout_write,___stdio_seek,_EmscriptenFullscreenChangeCallback,_EmscriptenKeyboardCallback,_EmscriptenMouseCallback,_EmscriptenTouchCallback,_EmscriptenGamepadCallback,___stdio_write,___stdio_read,_do_read,b8,b8,b8,b8];
  47570. var FUNCTION_TABLE_viiiiiiii = [b9,_emscripten_glCompressedTexImage2D__wrapper,_emscripten_glCopyTexImage2D__wrapper,_emscripten_glCopyTexSubImage2D__wrapper];
  47571. var FUNCTION_TABLE_viiiiii = [b10,_emscripten_glDrawRangeElements__wrapper,_emscripten_glVertexAttribPointer__wrapper,b10];
  47572. 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];
  47573. var FUNCTION_TABLE_vidddd = [b12,_emscripten_glUniform4f__wrapper,_emscripten_glVertexAttrib4f__wrapper,b12];
  47574. var FUNCTION_TABLE_vdi = [b13,_emscripten_glSampleCoverage__wrapper];
  47575. var FUNCTION_TABLE_viiiiiii = [b14,_emscripten_glReadPixels__wrapper,_emscripten_glGetActiveUniform__wrapper,_emscripten_glGetActiveAttrib__wrapper];
  47576. var FUNCTION_TABLE_viiiiiiiii = [b15,_emscripten_glCompressedTexSubImage2D__wrapper,_emscripten_glTexImage2D__wrapper,_emscripten_glTexSubImage2D__wrapper];
  47577. var FUNCTION_TABLE_iii = [b16,_emscripten_glGetUniformLocation__wrapper,_emscripten_glGetAttribLocation__wrapper,b16];
  47578. var FUNCTION_TABLE_i = [b17,_emscripten_glCreateProgram__wrapper,_emscripten_glGetError__wrapper,b17];
  47579. var FUNCTION_TABLE_vdddddd = [b18,_emscripten_glFrustum__wrapper];
  47580. var FUNCTION_TABLE_vdddd = [b19,_emscripten_glRotatef__wrapper,_emscripten_glClearColor__wrapper,_emscripten_glBlendColor__wrapper];
  47581. var FUNCTION_TABLE_vdd = [b20,_emscripten_glDepthRange__wrapper,_emscripten_glDepthRangef__wrapper,_emscripten_glPolygonOffset__wrapper];
  47582. var FUNCTION_TABLE_v = [b21,_UpdateDrawFrame,_emscripten_glLoadIdentity__wrapper,_emscripten_glReleaseShaderCompiler__wrapper,_emscripten_glFinish__wrapper,_emscripten_glFlush__wrapper,b21,b21];
  47583. var FUNCTION_TABLE_viid = [b22,_emscripten_glTexParameterf__wrapper];
  47584. 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];
  47585. return { _roundf: _roundf, _main: _main, _llvm_cttz_i32: _llvm_cttz_i32, _bitshift64Lshr: _bitshift64Lshr, _bitshift64Shl: _bitshift64Shl, _fflush: _fflush, _memset: _memset, _sbrk: _sbrk, _memcpy: _memcpy, _llvm_bswap_i32: _llvm_bswap_i32, ___muldi3: ___muldi3, ___uremdi3: ___uremdi3, _i64Subtract: _i64Subtract, ___udivmoddi4: ___udivmoddi4, _i64Add: _i64Add, _emscripten_get_global_libc: _emscripten_get_global_libc, _emscripten_GetProcAddress: _emscripten_GetProcAddress, ___udivdi3: ___udivdi3, ___errno_location: ___errno_location, ___muldsi3: ___muldsi3, _free: _free, _memmove: _memmove, _strstr: _strstr, _malloc: _malloc, runPostSets: runPostSets, _emscripten_replace_memory: _emscripten_replace_memory, 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 };
  47586. })
  47587. // EMSCRIPTEN_END_ASM
  47588. (Module.asmGlobalArg, Module.asmLibraryArg, buffer);
  47589. var real__roundf = asm["_roundf"]; asm["_roundf"] = function() {
  47590. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47591. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47592. return real__roundf.apply(null, arguments);
  47593. };
  47594. var real__main = asm["_main"]; asm["_main"] = function() {
  47595. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47596. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47597. return real__main.apply(null, arguments);
  47598. };
  47599. var real_stackSave = asm["stackSave"]; asm["stackSave"] = function() {
  47600. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47601. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47602. return real_stackSave.apply(null, arguments);
  47603. };
  47604. var real_getTempRet0 = asm["getTempRet0"]; asm["getTempRet0"] = function() {
  47605. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47606. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47607. return real_getTempRet0.apply(null, arguments);
  47608. };
  47609. var real_setThrew = asm["setThrew"]; asm["setThrew"] = function() {
  47610. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47611. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47612. return real_setThrew.apply(null, arguments);
  47613. };
  47614. var real__bitshift64Lshr = asm["_bitshift64Lshr"]; asm["_bitshift64Lshr"] = function() {
  47615. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47616. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47617. return real__bitshift64Lshr.apply(null, arguments);
  47618. };
  47619. var real__bitshift64Shl = asm["_bitshift64Shl"]; asm["_bitshift64Shl"] = function() {
  47620. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47621. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47622. return real__bitshift64Shl.apply(null, arguments);
  47623. };
  47624. var real__fflush = asm["_fflush"]; asm["_fflush"] = function() {
  47625. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47626. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47627. return real__fflush.apply(null, arguments);
  47628. };
  47629. var real__llvm_cttz_i32 = asm["_llvm_cttz_i32"]; asm["_llvm_cttz_i32"] = function() {
  47630. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47631. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47632. return real__llvm_cttz_i32.apply(null, arguments);
  47633. };
  47634. var real__sbrk = asm["_sbrk"]; asm["_sbrk"] = function() {
  47635. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47636. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47637. return real__sbrk.apply(null, arguments);
  47638. };
  47639. var real__llvm_bswap_i32 = asm["_llvm_bswap_i32"]; asm["_llvm_bswap_i32"] = function() {
  47640. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47641. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47642. return real__llvm_bswap_i32.apply(null, arguments);
  47643. };
  47644. var real____muldi3 = asm["___muldi3"]; asm["___muldi3"] = function() {
  47645. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47646. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47647. return real____muldi3.apply(null, arguments);
  47648. };
  47649. var real____uremdi3 = asm["___uremdi3"]; asm["___uremdi3"] = function() {
  47650. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47651. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47652. return real____uremdi3.apply(null, arguments);
  47653. };
  47654. var real_stackAlloc = asm["stackAlloc"]; asm["stackAlloc"] = function() {
  47655. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47656. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47657. return real_stackAlloc.apply(null, arguments);
  47658. };
  47659. var real__i64Subtract = asm["_i64Subtract"]; asm["_i64Subtract"] = function() {
  47660. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47661. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47662. return real__i64Subtract.apply(null, arguments);
  47663. };
  47664. var real____udivmoddi4 = asm["___udivmoddi4"]; asm["___udivmoddi4"] = function() {
  47665. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47666. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47667. return real____udivmoddi4.apply(null, arguments);
  47668. };
  47669. var real_setTempRet0 = asm["setTempRet0"]; asm["setTempRet0"] = function() {
  47670. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47671. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47672. return real_setTempRet0.apply(null, arguments);
  47673. };
  47674. var real__i64Add = asm["_i64Add"]; asm["_i64Add"] = function() {
  47675. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47676. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47677. return real__i64Add.apply(null, arguments);
  47678. };
  47679. var real__emscripten_get_global_libc = asm["_emscripten_get_global_libc"]; asm["_emscripten_get_global_libc"] = function() {
  47680. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47681. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47682. return real__emscripten_get_global_libc.apply(null, arguments);
  47683. };
  47684. var real__emscripten_GetProcAddress = asm["_emscripten_GetProcAddress"]; asm["_emscripten_GetProcAddress"] = function() {
  47685. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47686. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47687. return real__emscripten_GetProcAddress.apply(null, arguments);
  47688. };
  47689. var real____udivdi3 = asm["___udivdi3"]; asm["___udivdi3"] = function() {
  47690. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47691. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47692. return real____udivdi3.apply(null, arguments);
  47693. };
  47694. var real____errno_location = asm["___errno_location"]; asm["___errno_location"] = function() {
  47695. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47696. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47697. return real____errno_location.apply(null, arguments);
  47698. };
  47699. var real____muldsi3 = asm["___muldsi3"]; asm["___muldsi3"] = function() {
  47700. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47701. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47702. return real____muldsi3.apply(null, arguments);
  47703. };
  47704. var real__free = asm["_free"]; asm["_free"] = function() {
  47705. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47706. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47707. return real__free.apply(null, arguments);
  47708. };
  47709. var real_establishStackSpace = asm["establishStackSpace"]; asm["establishStackSpace"] = function() {
  47710. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47711. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47712. return real_establishStackSpace.apply(null, arguments);
  47713. };
  47714. var real__memmove = asm["_memmove"]; asm["_memmove"] = function() {
  47715. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47716. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47717. return real__memmove.apply(null, arguments);
  47718. };
  47719. var real__strstr = asm["_strstr"]; asm["_strstr"] = function() {
  47720. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47721. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47722. return real__strstr.apply(null, arguments);
  47723. };
  47724. var real_stackRestore = asm["stackRestore"]; asm["stackRestore"] = function() {
  47725. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47726. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47727. return real_stackRestore.apply(null, arguments);
  47728. };
  47729. var real__malloc = asm["_malloc"]; asm["_malloc"] = function() {
  47730. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47731. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47732. return real__malloc.apply(null, arguments);
  47733. };
  47734. var _roundf = Module["_roundf"] = asm["_roundf"];
  47735. var _main = Module["_main"] = asm["_main"];
  47736. var stackSave = Module["stackSave"] = asm["stackSave"];
  47737. var getTempRet0 = Module["getTempRet0"] = asm["getTempRet0"];
  47738. var _memset = Module["_memset"] = asm["_memset"];
  47739. var setThrew = Module["setThrew"] = asm["setThrew"];
  47740. var _bitshift64Lshr = Module["_bitshift64Lshr"] = asm["_bitshift64Lshr"];
  47741. var _bitshift64Shl = Module["_bitshift64Shl"] = asm["_bitshift64Shl"];
  47742. var _fflush = Module["_fflush"] = asm["_fflush"];
  47743. var _llvm_cttz_i32 = Module["_llvm_cttz_i32"] = asm["_llvm_cttz_i32"];
  47744. var _sbrk = Module["_sbrk"] = asm["_sbrk"];
  47745. var _memcpy = Module["_memcpy"] = asm["_memcpy"];
  47746. var _llvm_bswap_i32 = Module["_llvm_bswap_i32"] = asm["_llvm_bswap_i32"];
  47747. var ___muldi3 = Module["___muldi3"] = asm["___muldi3"];
  47748. var ___uremdi3 = Module["___uremdi3"] = asm["___uremdi3"];
  47749. var stackAlloc = Module["stackAlloc"] = asm["stackAlloc"];
  47750. var _i64Subtract = Module["_i64Subtract"] = asm["_i64Subtract"];
  47751. var ___udivmoddi4 = Module["___udivmoddi4"] = asm["___udivmoddi4"];
  47752. var setTempRet0 = Module["setTempRet0"] = asm["setTempRet0"];
  47753. var _i64Add = Module["_i64Add"] = asm["_i64Add"];
  47754. var _emscripten_get_global_libc = Module["_emscripten_get_global_libc"] = asm["_emscripten_get_global_libc"];
  47755. var _emscripten_GetProcAddress = Module["_emscripten_GetProcAddress"] = asm["_emscripten_GetProcAddress"];
  47756. var ___udivdi3 = Module["___udivdi3"] = asm["___udivdi3"];
  47757. var ___errno_location = Module["___errno_location"] = asm["___errno_location"];
  47758. var ___muldsi3 = Module["___muldsi3"] = asm["___muldsi3"];
  47759. var _free = Module["_free"] = asm["_free"];
  47760. var runPostSets = Module["runPostSets"] = asm["runPostSets"];
  47761. var establishStackSpace = Module["establishStackSpace"] = asm["establishStackSpace"];
  47762. var _memmove = Module["_memmove"] = asm["_memmove"];
  47763. var _strstr = Module["_strstr"] = asm["_strstr"];
  47764. var stackRestore = Module["stackRestore"] = asm["stackRestore"];
  47765. var _malloc = Module["_malloc"] = asm["_malloc"];
  47766. var _emscripten_replace_memory = Module["_emscripten_replace_memory"] = asm["_emscripten_replace_memory"];
  47767. var dynCall_viiiii = Module["dynCall_viiiii"] = asm["dynCall_viiiii"];
  47768. var dynCall_vd = Module["dynCall_vd"] = asm["dynCall_vd"];
  47769. var dynCall_vid = Module["dynCall_vid"] = asm["dynCall_vid"];
  47770. var dynCall_vi = Module["dynCall_vi"] = asm["dynCall_vi"];
  47771. var dynCall_vii = Module["dynCall_vii"] = asm["dynCall_vii"];
  47772. var dynCall_ii = Module["dynCall_ii"] = asm["dynCall_ii"];
  47773. var dynCall_viddd = Module["dynCall_viddd"] = asm["dynCall_viddd"];
  47774. var dynCall_vidd = Module["dynCall_vidd"] = asm["dynCall_vidd"];
  47775. var dynCall_iiii = Module["dynCall_iiii"] = asm["dynCall_iiii"];
  47776. var dynCall_viiiiiiii = Module["dynCall_viiiiiiii"] = asm["dynCall_viiiiiiii"];
  47777. var dynCall_viiiiii = Module["dynCall_viiiiii"] = asm["dynCall_viiiiii"];
  47778. var dynCall_viii = Module["dynCall_viii"] = asm["dynCall_viii"];
  47779. var dynCall_vidddd = Module["dynCall_vidddd"] = asm["dynCall_vidddd"];
  47780. var dynCall_vdi = Module["dynCall_vdi"] = asm["dynCall_vdi"];
  47781. var dynCall_viiiiiii = Module["dynCall_viiiiiii"] = asm["dynCall_viiiiiii"];
  47782. var dynCall_viiiiiiiii = Module["dynCall_viiiiiiiii"] = asm["dynCall_viiiiiiiii"];
  47783. var dynCall_iii = Module["dynCall_iii"] = asm["dynCall_iii"];
  47784. var dynCall_i = Module["dynCall_i"] = asm["dynCall_i"];
  47785. var dynCall_vdddddd = Module["dynCall_vdddddd"] = asm["dynCall_vdddddd"];
  47786. var dynCall_vdddd = Module["dynCall_vdddd"] = asm["dynCall_vdddd"];
  47787. var dynCall_vdd = Module["dynCall_vdd"] = asm["dynCall_vdd"];
  47788. var dynCall_v = Module["dynCall_v"] = asm["dynCall_v"];
  47789. var dynCall_viid = Module["dynCall_viid"] = asm["dynCall_viid"];
  47790. var dynCall_viiii = Module["dynCall_viiii"] = asm["dynCall_viiii"];
  47791. ;
  47792. Runtime.stackAlloc = Module['stackAlloc'];
  47793. Runtime.stackSave = Module['stackSave'];
  47794. Runtime.stackRestore = Module['stackRestore'];
  47795. Runtime.establishStackSpace = Module['establishStackSpace'];
  47796. Runtime.setTempRet0 = Module['setTempRet0'];
  47797. Runtime.getTempRet0 = Module['getTempRet0'];
  47798. // === Auto-generated postamble setup entry stuff ===
  47799. Module['asm'] = asm;
  47800. function ExitStatus(status) {
  47801. this.name = "ExitStatus";
  47802. this.message = "Program terminated with exit(" + status + ")";
  47803. this.status = status;
  47804. };
  47805. ExitStatus.prototype = new Error();
  47806. ExitStatus.prototype.constructor = ExitStatus;
  47807. var initialStackTop;
  47808. var preloadStartTime = null;
  47809. var calledMain = false;
  47810. dependenciesFulfilled = function runCaller() {
  47811. // If run has never been called, and we should call run (INVOKE_RUN is true, and Module.noInitialRun is not false)
  47812. if (!Module['calledRun']) run();
  47813. if (!Module['calledRun']) dependenciesFulfilled = runCaller; // try this again later, after new deps are fulfilled
  47814. }
  47815. Module['callMain'] = Module.callMain = function callMain(args) {
  47816. assert(runDependencies == 0, 'cannot call main when async dependencies remain! (listen on __ATMAIN__)');
  47817. assert(__ATPRERUN__.length == 0, 'cannot call main when preRun functions remain to be called');
  47818. args = args || [];
  47819. ensureInitRuntime();
  47820. var argc = args.length+1;
  47821. function pad() {
  47822. for (var i = 0; i < 4-1; i++) {
  47823. argv.push(0);
  47824. }
  47825. }
  47826. var argv = [allocate(intArrayFromString(Module['thisProgram']), 'i8', ALLOC_NORMAL) ];
  47827. pad();
  47828. for (var i = 0; i < argc-1; i = i + 1) {
  47829. argv.push(allocate(intArrayFromString(args[i]), 'i8', ALLOC_NORMAL));
  47830. pad();
  47831. }
  47832. argv.push(0);
  47833. argv = allocate(argv, 'i32', ALLOC_NORMAL);
  47834. try {
  47835. var ret = Module['_main'](argc, argv, 0);
  47836. // if we're not running an evented main loop, it's time to exit
  47837. exit(ret, /* implicit = */ true);
  47838. }
  47839. catch(e) {
  47840. if (e instanceof ExitStatus) {
  47841. // exit() throws this once it's done to make sure execution
  47842. // has been stopped completely
  47843. return;
  47844. } else if (e == 'SimulateInfiniteLoop') {
  47845. // running an evented main loop, don't immediately exit
  47846. Module['noExitRuntime'] = true;
  47847. return;
  47848. } else {
  47849. var toLog = e;
  47850. if (e && typeof e === 'object' && e.stack) {
  47851. toLog = [e, e.stack];
  47852. }
  47853. Module.printErr('exception thrown: ' + toLog);
  47854. Module['quit'](1, e);
  47855. }
  47856. } finally {
  47857. calledMain = true;
  47858. }
  47859. }
  47860. function run(args) {
  47861. args = args || Module['arguments'];
  47862. if (preloadStartTime === null) preloadStartTime = Date.now();
  47863. if (runDependencies > 0) {
  47864. Module.printErr('run() called, but dependencies remain, so not running');
  47865. return;
  47866. }
  47867. writeStackCookie();
  47868. preRun();
  47869. if (runDependencies > 0) return; // a preRun added a dependency, run will be called later
  47870. if (Module['calledRun']) return; // run may have just been called through dependencies being fulfilled just in this very frame
  47871. function doRun() {
  47872. if (Module['calledRun']) return; // run may have just been called while the async setStatus time below was happening
  47873. Module['calledRun'] = true;
  47874. if (ABORT) return;
  47875. ensureInitRuntime();
  47876. preMain();
  47877. if (ENVIRONMENT_IS_WEB && preloadStartTime !== null) {
  47878. Module.printErr('pre-main prep time: ' + (Date.now() - preloadStartTime) + ' ms');
  47879. }
  47880. if (Module['onRuntimeInitialized']) Module['onRuntimeInitialized']();
  47881. if (Module['_main'] && shouldRunNow) Module['callMain'](args);
  47882. postRun();
  47883. }
  47884. if (Module['setStatus']) {
  47885. Module['setStatus']('Running...');
  47886. setTimeout(function() {
  47887. setTimeout(function() {
  47888. Module['setStatus']('');
  47889. }, 1);
  47890. doRun();
  47891. }, 1);
  47892. } else {
  47893. doRun();
  47894. }
  47895. checkStackCookie();
  47896. }
  47897. Module['run'] = Module.run = run;
  47898. function exit(status, implicit) {
  47899. if (implicit && Module['noExitRuntime']) {
  47900. 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)');
  47901. return;
  47902. }
  47903. if (Module['noExitRuntime']) {
  47904. 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)');
  47905. } else {
  47906. ABORT = true;
  47907. EXITSTATUS = status;
  47908. STACKTOP = initialStackTop;
  47909. exitRuntime();
  47910. if (Module['onExit']) Module['onExit'](status);
  47911. }
  47912. if (ENVIRONMENT_IS_NODE) {
  47913. process['exit'](status);
  47914. }
  47915. Module['quit'](status, new ExitStatus(status));
  47916. }
  47917. Module['exit'] = Module.exit = exit;
  47918. var abortDecorators = [];
  47919. function abort(what) {
  47920. if (what !== undefined) {
  47921. Module.print(what);
  47922. Module.printErr(what);
  47923. what = JSON.stringify(what)
  47924. } else {
  47925. what = '';
  47926. }
  47927. ABORT = true;
  47928. EXITSTATUS = 1;
  47929. var extra = '';
  47930. var output = 'abort(' + what + ') at ' + stackTrace() + extra;
  47931. if (abortDecorators) {
  47932. abortDecorators.forEach(function(decorator) {
  47933. output = decorator(output, what);
  47934. });
  47935. }
  47936. throw output;
  47937. }
  47938. Module['abort'] = Module.abort = abort;
  47939. // {{PRE_RUN_ADDITIONS}}
  47940. if (Module['preInit']) {
  47941. if (typeof Module['preInit'] == 'function') Module['preInit'] = [Module['preInit']];
  47942. while (Module['preInit'].length > 0) {
  47943. Module['preInit'].pop()();
  47944. }
  47945. }
  47946. // shouldRunNow refers to calling main(), not run().
  47947. var shouldRunNow = true;
  47948. if (Module['noInitialRun']) {
  47949. shouldRunNow = false;
  47950. }
  47951. run();
  47952. // {{POST_RUN_ADDITIONS}}
  47953. // {{MODULE_ADDITIONS}}